|
@@ -54,7 +54,7 @@
|
|
|
|
|
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
<van-cell v-show="nfcImage.length > 0" :border="false" >
|
|
<van-cell v-show="nfcImage.length > 0" :border="false" >
|
|
|
- <img v-if="enable" class="nfc-img" v-for="(v,i) in nfcImage" :src="v.url" alt="" :key="v.url">
|
|
|
|
|
|
|
+ <img class="nfc-img" v-for="(v,i) in selectArea.nfclist" v-if="v.img" :src="imgUrl(v.img)" alt="" :key="v.img">
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-panel>
|
|
</van-panel>
|
|
@@ -124,9 +124,16 @@
|
|
|
<div class="upload-box" >
|
|
<div class="upload-box" >
|
|
|
<uploader v-model="item.imgData"/>
|
|
<uploader v-model="item.imgData"/>
|
|
|
</div>
|
|
</div>
|
|
|
- <select-cell :disabled="enable" 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 :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" />
|
|
|
|
|
|
|
+ <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>
|
|
@@ -153,7 +160,6 @@ 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(){
|
|
@@ -189,15 +195,15 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed:{
|
|
computed:{
|
|
|
},
|
|
},
|
|
|
- watch:{
|
|
|
|
|
- NFCList(){
|
|
|
|
|
- if(!this.NFCList) return;
|
|
|
|
|
- let arr = this.NFCList.filter(item=>{
|
|
|
|
|
- return item.status == 0;
|
|
|
|
|
- })
|
|
|
|
|
- this.NFCNum = arr.length;
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // watch:{
|
|
|
|
|
+ // NFCList(){
|
|
|
|
|
+ // if(!this.NFCList) return;
|
|
|
|
|
+ // let arr = this.NFCList.filter(item=>{
|
|
|
|
|
+ // return item.status == 0;
|
|
|
|
|
+ // })
|
|
|
|
|
+ // this.NFCNum = arr.length;
|
|
|
|
|
+ // },
|
|
|
|
|
+ // },
|
|
|
methods:{
|
|
methods:{
|
|
|
//初始化数据
|
|
//初始化数据
|
|
|
getData() {
|
|
getData() {
|
|
@@ -217,7 +223,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.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();
|
|
@@ -248,9 +254,9 @@ export default {
|
|
|
dateTime:new Date(),
|
|
dateTime:new Date(),
|
|
|
isSubmit:0,
|
|
isSubmit:0,
|
|
|
resumptionId:this.$route.query.id,
|
|
resumptionId:this.$route.query.id,
|
|
|
- year: this.taskInfo.year,
|
|
|
|
|
|
|
+ lfghfear: this.taskInfo.year,
|
|
|
quarter: this.taskInfo.quarter,
|
|
quarter: this.taskInfo.quarter,
|
|
|
- nfcData:[],
|
|
|
|
|
|
|
+ nfcData:this.nfcImage,
|
|
|
pointdata,
|
|
pointdata,
|
|
|
}
|
|
}
|
|
|
saveTaskData(data).then(res=>{
|
|
saveTaskData(data).then(res=>{
|
|
@@ -312,7 +318,7 @@ export default {
|
|
|
getNFCItemNum(){
|
|
getNFCItemNum(){
|
|
|
let num = 0;
|
|
let num = 0;
|
|
|
this.selectArea.nfclist.forEach(v=>{
|
|
this.selectArea.nfclist.forEach(v=>{
|
|
|
- if(v.status === 0 ){
|
|
|
|
|
|
|
+ if(v.status === 0 || !v.img){
|
|
|
num++;
|
|
num++;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -375,6 +381,7 @@ export default {
|
|
|
this.checkList = [];
|
|
this.checkList = [];
|
|
|
this.checkItemList = [];
|
|
this.checkItemList = [];
|
|
|
this.NFCNum = 0;
|
|
this.NFCNum = 0;
|
|
|
|
|
+ this.enable = false;
|
|
|
},
|
|
},
|
|
|
//切换开关时添加操作时间
|
|
//切换开关时添加操作时间
|
|
|
switchChange(item){
|
|
switchChange(item){
|
|
@@ -384,9 +391,13 @@ export default {
|
|
|
//添加图片时的回调
|
|
//添加图片时的回调
|
|
|
changeNfcImg(imgItem){
|
|
changeNfcImg(imgItem){
|
|
|
console.log(imgItem,'imgItem')
|
|
console.log(imgItem,'imgItem')
|
|
|
- let arr = [];
|
|
|
|
|
- arr.push(imgItem);
|
|
|
|
|
- this.nfcImage = arr;
|
|
|
|
|
|
|
+ this.selectArea.nfclist.forEach(v=>{
|
|
|
|
|
+ if(v.nfccdoe === imgItem.nfcCode){
|
|
|
|
|
+ v.img = imgItem.url;
|
|
|
|
|
+ this.nfcImage.push(v);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log( this.selectArea.nfclist,this.nfcImage,'nfcObj')
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|