安全措施确认人意见页面逻辑修改
parent
0061934964
commit
1c0a927269
|
@ -135,11 +135,11 @@
|
|||
<uni-td align="center">
|
||||
<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">涉 及</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 = []
|
||||
|
|
Loading…
Reference in New Issue