|
|
|
@ -1,115 +1,154 @@
|
|
|
|
|
<template> |
|
|
|
|
<cs-page isCustom> |
|
|
|
|
<template #header> |
|
|
|
|
<view |
|
|
|
|
class="wd-flex wd-flex-row wd-flex-center" |
|
|
|
|
style="position: relative" |
|
|
|
|
@click="goBack" |
|
|
|
|
> |
|
|
|
|
<view class="icon-box"> |
|
|
|
|
<u-icon name="arrow-left" size="12"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-font-800 wd-text-16">企业档案</view> |
|
|
|
|
<scroll-view class="detail-container" scroll-y> |
|
|
|
|
<view class="box detail"> |
|
|
|
|
<view> |
|
|
|
|
<text class="wd-font-800 wd-text-16" style="margin-bottom: 4px"> |
|
|
|
|
{{ detail.enterprisesName }} |
|
|
|
|
</text> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<view class="detail-container"> |
|
|
|
|
<view class="box detail"> |
|
|
|
|
<view> |
|
|
|
|
<text class="wd-font-800 wd-text-16" style="margin-bottom: 4px"> |
|
|
|
|
{{ detail.enterprisesName }} |
|
|
|
|
</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="address"> |
|
|
|
|
<u-icon name="map" size="14" color="#17C653"></u-icon> |
|
|
|
|
<text style="text-decoration: underline"> |
|
|
|
|
{{ detail.address }} |
|
|
|
|
</text> |
|
|
|
|
<view class="address" @click="goView(detail)"> |
|
|
|
|
<u-icon name="map" size="14" color="#17C653"></u-icon> |
|
|
|
|
<text style="text-decoration: underline"> |
|
|
|
|
{{ detail.address }} |
|
|
|
|
</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="tagList"> |
|
|
|
|
<view class="tag"> |
|
|
|
|
{{ $dict.echoDicValue(dictMap.enterprises_type, detail.type) }} |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="align-items: center"> |
|
|
|
|
<text class="address" style="margin-right: 8px">环保负责人</text> |
|
|
|
|
<text style="margin-right: 16px"> |
|
|
|
|
{{ detail.enterprisesName }} |
|
|
|
|
</text> |
|
|
|
|
<text class="address" style="margin-right: 8px">联系方式</text> |
|
|
|
|
<text style="text-decoration: underline"> |
|
|
|
|
{{ detail.environmentalContactPhone }} |
|
|
|
|
</text> |
|
|
|
|
<view class="tag"> |
|
|
|
|
{{ $dict.echoDicValue(dictMap.enterprises_area, detail.region) }} |
|
|
|
|
</view> |
|
|
|
|
<view class="images-box"> |
|
|
|
|
<image |
|
|
|
|
v-for="(src, index) in detail.files" |
|
|
|
|
:key="index" |
|
|
|
|
:src="src.url" |
|
|
|
|
mode="widthFix" |
|
|
|
|
class="image" |
|
|
|
|
></image> |
|
|
|
|
<view |
|
|
|
|
class="tag" |
|
|
|
|
v-for="(tag, index) in detail.tagList" |
|
|
|
|
:key="index" |
|
|
|
|
> |
|
|
|
|
{{ tag }} |
|
|
|
|
</view> |
|
|
|
|
<text class="address">{{ detail.introduction }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="align-items: center"> |
|
|
|
|
<text class="address" style="margin-right: 8px">环保负责人</text> |
|
|
|
|
<text style="margin-right: 16px"> |
|
|
|
|
{{ detail.enterprisesName }} |
|
|
|
|
</text> |
|
|
|
|
<text class="address" style="margin-right: 8px">联系方式</text> |
|
|
|
|
<text style="text-decoration: underline"> |
|
|
|
|
{{ detail.environmentalContactPhone }} |
|
|
|
|
</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="images-box"> |
|
|
|
|
<image |
|
|
|
|
v-for="(src, index) in detail.files" |
|
|
|
|
:key="index" |
|
|
|
|
:src="src.url" |
|
|
|
|
mode="widthFix" |
|
|
|
|
class="image" |
|
|
|
|
></image> |
|
|
|
|
</view> |
|
|
|
|
<text class="address">{{ detail.introduction }}</text> |
|
|
|
|
<view class="status"> |
|
|
|
|
<cs-dict-tag |
|
|
|
|
:dict="dictMap.enterprises_status" |
|
|
|
|
:value="detail.enterprisesStatus" |
|
|
|
|
></cs-dict-tag> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view |
|
|
|
|
class="box wd-text-12" |
|
|
|
|
v-for="prove in detail.qualificationList" |
|
|
|
|
:key="prove.id" |
|
|
|
|
> |
|
|
|
|
<view class="wd-flex" style="gap: 8px"> |
|
|
|
|
<image |
|
|
|
|
src="@/static/images/enterprise/zz.png" |
|
|
|
|
style="width: 90px; height: 70px" |
|
|
|
|
mode="widthFix" |
|
|
|
|
></image> |
|
|
|
|
<view |
|
|
|
|
style="flex: 1; justify-content: space-between" |
|
|
|
|
class="wd-flex wd-flex-col" |
|
|
|
|
> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质名称</text> |
|
|
|
|
<view> |
|
|
|
|
{{ |
|
|
|
|
$dict.echoDicValue( |
|
|
|
|
dictMap.enterprise_qua, |
|
|
|
|
prove.qualificationName.toString() |
|
|
|
|
) |
|
|
|
|
}} |
|
|
|
|
</view> |
|
|
|
|
<view |
|
|
|
|
class="box wd-text-12 prove" |
|
|
|
|
v-for="prove in detail.qualificationList" |
|
|
|
|
:key="prove.id" |
|
|
|
|
> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; position: relative"> |
|
|
|
|
<image |
|
|
|
|
src="@/static/images/enterprise/zz.png" |
|
|
|
|
style="width: 90px; height: 70px" |
|
|
|
|
mode="widthFix" |
|
|
|
|
></image> |
|
|
|
|
<view |
|
|
|
|
style="flex: 1; justify-content: space-between" |
|
|
|
|
class="wd-flex wd-flex-col" |
|
|
|
|
> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质名称</text> |
|
|
|
|
<view> |
|
|
|
|
{{ |
|
|
|
|
$dict.echoDicValue( |
|
|
|
|
dictMap.enterprise_qua, |
|
|
|
|
prove.qualificationName.toString() |
|
|
|
|
) |
|
|
|
|
}} |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质编号</text> |
|
|
|
|
<view> |
|
|
|
|
{{ prove.enterpriseAuth }} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质编号</text> |
|
|
|
|
<view> |
|
|
|
|
{{ prove.enterpriseAuth }} |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质时限</text> |
|
|
|
|
<view> |
|
|
|
|
{{ $util.formatDate(prove.handleDate, 'YYYY/M/D') }}~ |
|
|
|
|
{{ $util.formatDate(prove.expiryDate, 'YYYY/M/D') }} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="wd-flex" style="gap: 8px; align-items: center"> |
|
|
|
|
<text class="label">资质时限</text> |
|
|
|
|
<view> |
|
|
|
|
{{ $util.formatDate(prove.handleDate, 'YYYY/M/D') }} ~ |
|
|
|
|
{{ $util.formatDate(prove.expiryDate, 'YYYY/M/D') }} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="status"> |
|
|
|
|
<cs-dict-tag |
|
|
|
|
:dict="dictMap.enterprise_qualification_status" |
|
|
|
|
:value="prove.status" |
|
|
|
|
></cs-dict-tag> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="box"> |
|
|
|
|
<view class="wd-font-800">执法记录</view> |
|
|
|
|
<cs-bottom-wrapper> |
|
|
|
|
<view class="operation"> |
|
|
|
|
<view |
|
|
|
|
class="btn green" |
|
|
|
|
@tap="showModel = true" |
|
|
|
|
v-if="!detail.isAudit" |
|
|
|
|
> |
|
|
|
|
确认审核 |
|
|
|
|
</view> |
|
|
|
|
<view :class="['btn', 'grey']">执法记录</view> |
|
|
|
|
</view> |
|
|
|
|
</cs-bottom-wrapper> |
|
|
|
|
|
|
|
|
|
<view class="button-box"> |
|
|
|
|
<view class="button">确认审核</view> |
|
|
|
|
<u-modal |
|
|
|
|
:show="showModel" |
|
|
|
|
confirmText="返回" |
|
|
|
|
showCancelButton |
|
|
|
|
cancel-text="确认" |
|
|
|
|
cancel-color="#17C653" |
|
|
|
|
confirm-color="#071437" |
|
|
|
|
@confirm="showModel = false" |
|
|
|
|
@cancel="postApi" |
|
|
|
|
> |
|
|
|
|
<view class="wd-flex wd-flex-col wd-flex-center" style="gap: 10px"> |
|
|
|
|
<view style="font-size: 18px; color: #071437; font-weight: 800"> |
|
|
|
|
是否审核? |
|
|
|
|
</view> |
|
|
|
|
<view class="">请确保企业信息真实性</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</cs-page> |
|
|
|
|
</u-modal> |
|
|
|
|
</scroll-view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getEnterPrise } from '@/api/enterprise/index.js' |
|
|
|
|
import { getEnterPrise, checkEnterprise } from '@/api/enterprise/index.js' |
|
|
|
|
import { getDictBatchByType } from '@/api/system/dict.js' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
detail: { |
|
|
|
|
id: '' |
|
|
|
|
id: '', |
|
|
|
|
type: '', |
|
|
|
|
region: '' |
|
|
|
|
}, |
|
|
|
|
showModel: false, |
|
|
|
|
dictMap: {} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -126,7 +165,12 @@ export default {
|
|
|
|
|
*/ |
|
|
|
|
async getDict() { |
|
|
|
|
const dict = await getDictBatchByType({ |
|
|
|
|
type: ['enterprises_type', 'enterprise_qua'].join(',') |
|
|
|
|
type: [ |
|
|
|
|
'enterprises_type', |
|
|
|
|
'enterprises_area', |
|
|
|
|
'enterprises_status', |
|
|
|
|
'enterprise_qualification_status' |
|
|
|
|
].join(',') |
|
|
|
|
}) |
|
|
|
|
this.dictMap = { |
|
|
|
|
...dict.data |
|
|
|
@ -140,6 +184,30 @@ export default {
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
url: '/pages/enterprise' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
goView(enterprise) { |
|
|
|
|
if (!enterprise.gpsLocation) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '暂无gps信息' |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
const position = enterprise.gpsLocation.split(',') |
|
|
|
|
this.$util.viewPosition({ |
|
|
|
|
lat: position[0], |
|
|
|
|
lng: position[1], |
|
|
|
|
name: enterprise.enterprisesName |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
postApi() { |
|
|
|
|
checkEnterprise(this.detail.id).then(() => { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '操作成功' |
|
|
|
|
}) |
|
|
|
|
this.showModel = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -165,8 +233,46 @@ export default {
|
|
|
|
|
gap: 5px; |
|
|
|
|
color: $uni-text-color-grey; |
|
|
|
|
} |
|
|
|
|
.tagList { |
|
|
|
|
display: flex; |
|
|
|
|
gap: 4px; |
|
|
|
|
color: $uni-text-color-grey; |
|
|
|
|
display: flex; |
|
|
|
|
.tag { |
|
|
|
|
font-size: 12px; |
|
|
|
|
display: flex; |
|
|
|
|
padding: 2px 6px; |
|
|
|
|
justify-content: center; |
|
|
|
|
align-items: center; |
|
|
|
|
border-radius: 2px; |
|
|
|
|
background: #f9f9f9; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.status { |
|
|
|
|
position: absolute; |
|
|
|
|
right: -19px; |
|
|
|
|
top: 6px; |
|
|
|
|
transform: rotateZ(45deg) translateX(20px) translateY(-20px); |
|
|
|
|
transform-origin: 50% 50%; |
|
|
|
|
padding: 4px 20px; |
|
|
|
|
font-size: 12px; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.prove { |
|
|
|
|
position: relative; |
|
|
|
|
overflow: hidden; |
|
|
|
|
.status { |
|
|
|
|
position: absolute; |
|
|
|
|
right: -19px; |
|
|
|
|
top: 6px; |
|
|
|
|
transform: rotateZ(45deg) translateX(20px) translateY(-20px); |
|
|
|
|
transform-origin: 50% 50%; |
|
|
|
|
padding: 4px 20px; |
|
|
|
|
font-size: 12px; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.images-box { |
|
|
|
|
display: flex; |
|
|
|
|
flex-flow: row nowrap; |
|
|
|
@ -178,6 +284,7 @@ export default {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.label { |
|
|
|
|
color: $uni-text-color-grey; |
|
|
|
|
} |
|
|
|
@ -185,33 +292,27 @@ export default {
|
|
|
|
|
position: absolute; |
|
|
|
|
left: 0; |
|
|
|
|
} |
|
|
|
|
.button-box { |
|
|
|
|
width: 100%; |
|
|
|
|
bottom: 0; |
|
|
|
|
position: fixed; |
|
|
|
|
background-color: #fff; |
|
|
|
|
.operation { |
|
|
|
|
padding: 12px; |
|
|
|
|
display: flex; |
|
|
|
|
left: 0; |
|
|
|
|
padding: var(--Number-12px, 12px); |
|
|
|
|
padding-bottom: 25px; |
|
|
|
|
align-items: center; |
|
|
|
|
gap: var(--Number-12px, 12px); |
|
|
|
|
.button { |
|
|
|
|
justify-content: center; |
|
|
|
|
gap: 12px; |
|
|
|
|
.btn { |
|
|
|
|
flex: 1; |
|
|
|
|
border-radius: 8px; |
|
|
|
|
display: flex; |
|
|
|
|
padding: var(--Number-12px, 12px) 0px; |
|
|
|
|
justify-content: center; |
|
|
|
|
padding: 12px 0; |
|
|
|
|
align-items: center; |
|
|
|
|
gap: var(--Number-12px, 12px); |
|
|
|
|
flex: 1 0 0; |
|
|
|
|
background: #17c653; |
|
|
|
|
border-radius: var(--Number-4px, 4px); |
|
|
|
|
background: var(--LightMode-Success-Success-Light, #eafff1); |
|
|
|
|
color: var(--LightMode-Success-Success, #17c653); |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 16px; |
|
|
|
|
font-style: normal; |
|
|
|
|
font-weight: 500; |
|
|
|
|
line-height: normal; |
|
|
|
|
justify-content: center; |
|
|
|
|
} |
|
|
|
|
.green { |
|
|
|
|
background-color: $cs-color-main; |
|
|
|
|
color: #fff; |
|
|
|
|
} |
|
|
|
|
.grey { |
|
|
|
|
background: #f1f1f4; |
|
|
|
|
color: #99a1b7; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|