Commit 9047ccc1 authored by xinzhedeai's avatar xinzhedeai

fix:检查单隐患整改显隐以及整改方法问题相关处理 443 445 452

parent 2f5834b8
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</div> </div>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
<van-cell-group v-if="flag==='JC_XQ' || flag==='YZG' || flag==='3'"> <van-cell-group v-if="item?.rectificationImageUrlList?.length">
<van-cell><span class="">整改情况:</span> <van-cell><span class="">整改情况:</span>
<div> <div>
<img v-for="(imgItem, subIndex) in item.rectificationImageUrlList" :src="imgItem" alt="" style="width:1.2rem;height:1.2rem;margin-right:.2rem;" /> <img v-for="(imgItem, subIndex) in item.rectificationImageUrlList" :src="imgItem" alt="" style="width:1.2rem;height:1.2rem;margin-right:.2rem;" />
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</van-cell-group> </van-cell-group>
<van-cell-group v-if="flag=='0'"> <van-cell-group v-if="flag=='0' && flag=='shop'">
<van-cell><span class="title_require">请上传整改图片:</span><span <van-cell><span class="title_require">请上传整改图片:</span><span
style="color: red;">(格式png/jpg/jpeg,最多4张)</span> style="color: red;">(格式png/jpg/jpeg,最多4张)</span>
<!-- <div> <!-- <div>
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<van-cell> <van-cell>
<van-field label="检查日期" v-model="checkDate" /> <van-field label="检查日期" v-model="checkDate" />
</van-cell> </van-cell>
<van-cell v-if="flag!='ADD'"> <van-cell v-if="flag!='ADD'&&flag!='JC_XQ'">
<van-field label="整改截止日期" v-model="rectificationDeadline" /> <van-field label="整改截止日期" v-model="rectificationDeadline" />
</van-cell> </van-cell>
<div v-if="flag=='0' || flag=='1' || flag=='3'"> <div v-if="flag=='0' || flag=='1' || flag=='3'">
......
...@@ -319,7 +319,8 @@ window.onload = function() { ...@@ -319,7 +319,8 @@ window.onload = function() {
}, 0) }, 0)
}, },
add4DZG_XQ() { add4DZG_XQ() {
if (!this.checkData.photos.length) { console.log('整改图片', this.checkData[0]['gqCheckItemList'][0].photos)
if (!this.checkData[0]['gqCheckItemList'][0].photos.length) {
vant.Dialog.alert({ vant.Dialog.alert({
message: '请上传整改图片', message: '请上传整改图片',
}) })
...@@ -337,7 +338,7 @@ window.onload = function() { ...@@ -337,7 +338,7 @@ window.onload = function() {
reqParams: { reqParams: {
sign: 7, sign: 7,
"hdId": this.id, "hdId": this.id,
"photos": this.checkData, "photos": this.checkData[0]['gqCheckItemList'][0].photos,
} }
}, (res, type) => { }, (res, type) => {
if (!res && !type) { // 如果是中台接口返回为undefined,则重新发起请求 if (!res && !type) { // 如果是中台接口返回为undefined,则重新发起请求
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment