安全措施确认人意见页面逻辑修改

bug优化0603
WenShiJun 2024-06-17 09:11:31 +08:00
parent 0061934964
commit 1c0a927269
1 changed files with 11 additions and 11 deletions

View File

@ -115,7 +115,7 @@
<view class="cu-form-group" v-if="item.QUESTION1">
<view class="title">{{item.QUESTION1}}</view>
<input name="input" :disabled="forbidEdit" v-model="item.ANSWER1" type="number" placeholder="请输入"></input>
<input name="input" :disabled="forbidEdit" v-model="item.ANSWER1" type="number" placeholder="请输入" ></input>
</view>
<view class="cu-form-group" v-if="item.QUESTION2">
<view class="title">{{item.QUESTION2}}</view>
@ -133,13 +133,13 @@
</view>
</uni-td>
<uni-td align="center">
<radio-group class="wui-radio-group wui-radio-col">
<radio-group class="wui-radio-group wui-radio-col" >
<view class="group" style="margin-bottom: 10px">
<radio class='radio' value="-1" :checked="item.STATUS=='-1'" @click="changeRadio(index,'-1')">
<radio class='radio' value="-1" :checked="item.STATUS=='-1'" @click="changeRadio(index,'-1')" :disabled="forbidEdit">
<text class="wui-pl10">不涉及</text></radio>
</view>
<view class="group" style="margin-bottom: 10px">
<radio class='radio' value="1" :checked="item.STATUS=='1'" @click="changeRadio(index,'1')">
<radio class='radio' value="1" :checked="item.STATUS=='1'" @click="changeRadio(index,'1')" :disabled="forbidEdit">
<text class="wui-pl10">&nbsp;&nbsp;&nbsp;&nbsp;</text></radio>
</view>
</radio-group>
@ -158,12 +158,12 @@
<!-- </view>-->
<view class="cu-form-group">
<view class="title">其他安全措施</view>
<view v-for="(item, index) in pd.safetyList" :key="index">
<view v-if="!pd.SAFETY_SIGNATURE && !forbidEdit">
<input v-model="item.APPROVAL_CONTENT" :disabled="forbidEdit" placeholder="请输入" style="width: 100%; height: 40px;"></input>
<view v-for="(item, index) in safetyList" :key="index">
<view v-if="!pd.SAFETY_SIGNATURE ">
<input v-if="!forbidEdit" name="input" ref="OTHER_PROTECTIVE_MEASURES" v-model="pd.APPROVAL_CONTENT" :disabled="forbidEdit" placeholder="请输入"></input>
</view>
<view v-else>
<input v-model="item.APPROVAL_CONTENT" :disabled="true" style="width: 100%; height: 40px;"></input>
<input v-model="item.APPROVAL_CONTENT" :disabled="true" style="width: 100%; height: 40px;":readonly="true"></input>
</view>
</view>
</view>
@ -583,7 +583,6 @@ export default {
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
console.log(res.data.pd,'11111111111111111111111')
_this.pd = res.data.pd; //map
if (res.data.measuresList && res.data.measuresList.length > 0) {
_this.measuresList = res.data.measuresList
@ -592,9 +591,10 @@ export default {
}
_this.measuresList = res.data.measuresList
_this.files = res.data.imgList;
_this.safetyList = res.data.safetyList || [];
_this.safetyList = res.data.pd.safetyList || [];
_this.forbidEdit = _this.safetyList.some(item => item.APPROVAL_STATUS === '1');
_this.updateForbidEdit();
// _this.updateForbidEdit();
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []