|
|
@@ -115,6 +115,7 @@
|
|
|
</van-cell>
|
|
|
<van-cell-group v-show="item.resvalue">
|
|
|
<van-field
|
|
|
+ required
|
|
|
v-model="item.resremark"
|
|
|
rows="1"
|
|
|
autosize
|
|
|
@@ -122,9 +123,12 @@
|
|
|
type="textarea"
|
|
|
placeholder="请输入"/>
|
|
|
<div class="upload-box" >
|
|
|
- <uploader v-model="item.imgData"/>
|
|
|
+ <uploader :maxCount="5" v-if="enable" v-model="item.imgData"/>
|
|
|
+ <van-cell v-else>
|
|
|
+ <img class="nfc-img" v-for="v in item.imgData" :src="imgUrl(v.imgPath)" alt="" :key="v.id">
|
|
|
+ </van-cell>
|
|
|
</div>
|
|
|
- <select-cell :disabled="!enable" title="整改期限" v-model="item.rectificationDeadline" :dict="'rectification_deadline'" />
|
|
|
+ <select-cell required :disabled="!enable" title="整改期限" v-model="item.rectificationDeadline" :dict="'rectification_deadline'" />
|
|
|
</van-cell-group>
|
|
|
<date-cell
|
|
|
:disabled="!enable"
|
|
|
@@ -249,12 +253,20 @@ export default {
|
|
|
})
|
|
|
|
|
|
})
|
|
|
+ });
|
|
|
+ //验证必填项
|
|
|
+ pointdata.every(v=>{
|
|
|
+ if(v.resvalue === 1){
|
|
|
+ console.log(v,'验证')
|
|
|
+ if(!v.resremark) this.$toast('请填写情况描述');
|
|
|
+ if(!v.rectificationDeadline) this.$toast('请选择整改期限');
|
|
|
+ }
|
|
|
})
|
|
|
let data = {
|
|
|
dateTime:new Date(),
|
|
|
isSubmit:0,
|
|
|
resumptionId:this.$route.query.id,
|
|
|
- lfghfear: this.taskInfo.year,
|
|
|
+ year: this.taskInfo.year,
|
|
|
quarter: this.taskInfo.quarter,
|
|
|
nfcData:this.nfcImage,
|
|
|
pointdata,
|
|
|
@@ -343,6 +355,13 @@ export default {
|
|
|
|
|
|
})
|
|
|
})
|
|
|
+ //验证必填项
|
|
|
+ pointdata.forEach(v=>{
|
|
|
+ if(v.resvalue === 1){
|
|
|
+ if(!v.resremark) return this.$toast('请填写情况描述');
|
|
|
+ if(!v.rectificationDeadline) return this.$toast('请选择整改期限');
|
|
|
+ }
|
|
|
+ })
|
|
|
console.log(pointdata,'pointdata')
|
|
|
let data = {
|
|
|
dateTime:new Date(),
|