安全措施确认人意见页面逻辑修改
parent
0061934964
commit
1c0a927269
|
@ -115,7 +115,7 @@
|
||||||
|
|
||||||
<view class="cu-form-group" v-if="item.QUESTION1">
|
<view class="cu-form-group" v-if="item.QUESTION1">
|
||||||
<view class="title">{{item.QUESTION1}}</view>
|
<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>
|
||||||
<view class="cu-form-group" v-if="item.QUESTION2">
|
<view class="cu-form-group" v-if="item.QUESTION2">
|
||||||
<view class="title">{{item.QUESTION2}}</view>
|
<view class="title">{{item.QUESTION2}}</view>
|
||||||
|
@ -133,13 +133,13 @@
|
||||||
</view>
|
</view>
|
||||||
</uni-td>
|
</uni-td>
|
||||||
<uni-td align="center">
|
<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">
|
<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>
|
<text class="wui-pl10">不涉及</text></radio>
|
||||||
</view>
|
</view>
|
||||||
<view class="group" style="margin-bottom: 10px">
|
<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>
|
<text class="wui-pl10">涉 及</text></radio>
|
||||||
</view>
|
</view>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
|
@ -158,12 +158,12 @@
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">其他安全措施:</view>
|
<view class="title">其他安全措施:</view>
|
||||||
<view v-for="(item, index) in pd.safetyList" :key="index">
|
<view v-for="(item, index) in safetyList" :key="index">
|
||||||
<view v-if="!pd.SAFETY_SIGNATURE && !forbidEdit">
|
<view v-if="!pd.SAFETY_SIGNATURE ">
|
||||||
<input v-model="item.APPROVAL_CONTENT" :disabled="forbidEdit" placeholder="请输入" style="width: 100%; height: 40px;"></input>
|
<input v-if="!forbidEdit" name="input" ref="OTHER_PROTECTIVE_MEASURES" v-model="pd.APPROVAL_CONTENT" :disabled="forbidEdit" placeholder="请输入"></input>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -583,7 +583,6 @@ export default {
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
console.log(res.data.pd,'11111111111111111111111')
|
|
||||||
_this.pd = res.data.pd; //参数map
|
_this.pd = res.data.pd; //参数map
|
||||||
if (res.data.measuresList && res.data.measuresList.length > 0) {
|
if (res.data.measuresList && res.data.measuresList.length > 0) {
|
||||||
_this.measuresList = res.data.measuresList
|
_this.measuresList = res.data.measuresList
|
||||||
|
@ -592,9 +591,10 @@ export default {
|
||||||
}
|
}
|
||||||
_this.measuresList = res.data.measuresList
|
_this.measuresList = res.data.measuresList
|
||||||
_this.files = res.data.imgList;
|
_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.forbidEdit = _this.safetyList.some(item => item.APPROVAL_STATUS === '1');
|
||||||
_this.updateForbidEdit();
|
// _this.updateForbidEdit();
|
||||||
|
|
||||||
let dongHuoCaoZuoRenPic = res.data.imgList2
|
let dongHuoCaoZuoRenPic = res.data.imgList2
|
||||||
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
|
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
|
||||||
_this.pd.dongHuoCaoZuoRenPic = []
|
_this.pd.dongHuoCaoZuoRenPic = []
|
||||||
|
|
Loading…
Reference in New Issue