|
@@ -49,12 +49,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template #extra>
|
|
<template #extra>
|
|
|
<span style="display: inline-block;color:#969799;">{{NFCNum}}</span>
|
|
<span style="display: inline-block;color:#969799;">{{NFCNum}}</span>
|
|
|
- <img v-if="NFCNum" :src="require('../../../assets/svg/NFC.svg')" class="nfc-icon" @click="clickNFC"/>
|
|
|
|
|
|
|
+ <img v-if="enable && NFCNum" :src="require('../../../assets/svg/NFC.svg')" class="nfc-icon" @click="clickNFC"/>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
<van-cell v-show="nfcImage.length > 0" :border="false" >
|
|
<van-cell v-show="nfcImage.length > 0" :border="false" >
|
|
|
- <img class="nfc-img" v-for="(v,i) in nfcImage" :src="v.url" alt="" :key="v.url">
|
|
|
|
|
|
|
+ <img v-if="enable" class="nfc-img" v-for="(v,i) in nfcImage" :src="v.url" alt="" :key="v.url">
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-panel>
|
|
</van-panel>
|
|
@@ -95,7 +95,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 检查项目2 -->
|
|
<!-- 检查项目2 -->
|
|
|
- <fieldset class="fieldset" >
|
|
|
|
|
|
|
+ <fieldset class="fieldset" :disabled="!enable">
|
|
|
<div class="card" v-if="selectArea">
|
|
<div class="card" v-if="selectArea">
|
|
|
<van-collapse v-model="activeNames" v-for="v in checkList" :key="v.itemid">
|
|
<van-collapse v-model="activeNames" v-for="v in checkList" :key="v.itemid">
|
|
|
<van-collapse-item :title="v.itemname" :name="v.itemname" >
|
|
<van-collapse-item :title="v.itemname" :name="v.itemname" >
|
|
@@ -103,6 +103,7 @@
|
|
|
<van-cell :title="item.pointname">
|
|
<van-cell :title="item.pointname">
|
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
|
<van-switch
|
|
<van-switch
|
|
|
|
|
+ v-if="enable"
|
|
|
v-model="item.resvalue"
|
|
v-model="item.resvalue"
|
|
|
:active-value="1"
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
:inactive-value="0"
|
|
@@ -123,15 +124,15 @@
|
|
|
<div class="upload-box" >
|
|
<div class="upload-box" >
|
|
|
<uploader v-model="item.imgData"/>
|
|
<uploader v-model="item.imgData"/>
|
|
|
</div>
|
|
</div>
|
|
|
- <select-cell title="整改期限" v-model="item.rectificationDeadline" :dict="'rectification_deadline'" />
|
|
|
|
|
|
|
+ <select-cell :disabled="enable" title="整改期限" v-model="item.rectificationDeadline" :dict="'rectification_deadline'" />
|
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
- <date-cell v-if="item.businessType === 1" v-for="(val,ind) in item.protectionVo" :title="val.protectionName" v-model="val.statusUpdateTime" :key="val.id" date-type="datetime" />
|
|
|
|
|
|
|
+ <date-cell :disabled="enable" v-if="item.businessType === 1" v-for="(val,ind) in item.protectionVo" :title="val.protectionName" v-model="val.statusUpdateTime" :key="val.id" date-type="datetime" />
|
|
|
</div>
|
|
</div>
|
|
|
</van-collapse-item>
|
|
</van-collapse-item>
|
|
|
</van-collapse>
|
|
</van-collapse>
|
|
|
</div >
|
|
</div >
|
|
|
- <p v-if="disabled" class="warning-msg">需要完成所有区域的履职内容才能提交内容</p>
|
|
|
|
|
- <div v-if="disabled" class="flex-box">
|
|
|
|
|
|
|
+ <p v-if="enable" class="warning-msg">需要完成所有区域的履职内容才能提交内容</p>
|
|
|
|
|
+ <div v-if="enable" class="flex-box">
|
|
|
<van-button type="default" style="width: 28%;" plain @click="goBack">取消</van-button>
|
|
<van-button type="default" style="width: 28%;" plain @click="goBack">取消</van-button>
|
|
|
<van-button type="info" style="width: 28%;" plain hairline @click="saveData">保存</van-button>
|
|
<van-button type="info" style="width: 28%;" plain hairline @click="saveData">保存</van-button>
|
|
|
<van-button type="info" style="width: 28%;" @click="submitData">提交</van-button>
|
|
<van-button type="info" style="width: 28%;" @click="submitData">提交</van-button>
|
|
@@ -140,7 +141,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- nfc弹窗 -->
|
|
<!-- nfc弹窗 -->
|
|
|
- <nfc-popup ref="NfcPopup" @change="changeNfcImg"></nfc-popup>
|
|
|
|
|
|
|
+ <nfc-popup v-if="enable" ref="NfcPopup" @change="changeNfcImg"></nfc-popup>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -152,6 +153,7 @@ import Uploader from '@/components/upload';
|
|
|
import NfcPopup from '@/components/nfcPopup/more';
|
|
import NfcPopup from '@/components/nfcPopup/more';
|
|
|
import {taskDetails,saveTaskData} from "@/views/menu/LZRegister/api";
|
|
import {taskDetails,saveTaskData} from "@/views/menu/LZRegister/api";
|
|
|
import {formatDate} from "@/filters/filter";
|
|
import {formatDate} from "@/filters/filter";
|
|
|
|
|
+import {imgUrl} from "@/utils";
|
|
|
export default {
|
|
export default {
|
|
|
components:{NavBar,SelectCell,DateCell,Uploader,NfcPopup},
|
|
components:{NavBar,SelectCell,DateCell,Uploader,NfcPopup},
|
|
|
data(){
|
|
data(){
|
|
@@ -179,11 +181,10 @@ export default {
|
|
|
checkNum:0,
|
|
checkNum:0,
|
|
|
//nfc图片
|
|
//nfc图片
|
|
|
nfcImage:[],
|
|
nfcImage:[],
|
|
|
- disabled:false,
|
|
|
|
|
|
|
+ enable:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.disabled = this.$route.query.disabled;
|
|
|
|
|
this.getData();
|
|
this.getData();
|
|
|
},
|
|
},
|
|
|
computed:{
|
|
computed:{
|
|
@@ -216,6 +217,7 @@ export default {
|
|
|
...res.data.taskObj
|
|
...res.data.taskObj
|
|
|
}
|
|
}
|
|
|
this.taskInfo.nfcScaning = res.data.nfcScaning;
|
|
this.taskInfo.nfcScaning = res.data.nfcScaning;
|
|
|
|
|
+ this.enable = this.taskInfo.status === 1 || this.taskInfo.status === 2;
|
|
|
this.areaList = res.data.taskarealist;
|
|
this.areaList = res.data.taskarealist;
|
|
|
this.activeArea(this.areaList[0],0);
|
|
this.activeArea(this.areaList[0],0);
|
|
|
this.getAllCheckItemNum();
|
|
this.getAllCheckItemNum();
|
|
@@ -285,7 +287,14 @@ export default {
|
|
|
this.checkList = area.checklist;
|
|
this.checkList = area.checklist;
|
|
|
//设置默认展开项
|
|
//设置默认展开项
|
|
|
this.activeNames = this.checkList.map(v=>v.itemname);
|
|
this.activeNames = this.checkList.map(v=>v.itemname);
|
|
|
- //this.NFCList = area.nfclist;
|
|
|
|
|
|
|
+ //回显nfc图片
|
|
|
|
|
+ area.nfclist.forEach( v =>{
|
|
|
|
|
+ if(v.img){
|
|
|
|
|
+ v.url = v.img;
|
|
|
|
|
+ this.nfcImage.push(v)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log(this.nfcImage,'nfcImage')
|
|
|
//获取当前区域检查项数量
|
|
//获取当前区域检查项数量
|
|
|
this.getCheckItemNum();
|
|
this.getCheckItemNum();
|
|
|
//获取当前区域nfc数量
|
|
//获取当前区域nfc数量
|