修复bug

pull/5/head
zhangqihang 2024-02-23 09:07:59 +08:00
parent c3cb02c9c4
commit 8a9707e924
4 changed files with 16 additions and 19 deletions

View File

@ -67,7 +67,7 @@
<text></text>
<text>
<button class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToDetail,item.OUTSOURCED_ID)"></button>
<button style="margin-left: 20upx;" class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToVideo,item.OUTSOURCED_ID)"></button>
<!-- <button style="margin-left: 20upx;" class="cu-btn bg-blue margin-tb-sm sm" @click="$noMultipleClicks(goToVideo,item.OUTSOURCED_ID)"></button> -->
</text>
</view>
</view>

View File

@ -25,19 +25,10 @@
<view>{{form.INSPECTION_CATEGORY}}现场检查记录</view>
</view>
<view class="cu-form-group">
<view class="title" style="height: auto;">
<view class="title">
<view>被检查单位</view>
</view>
<block v-if="!forbidEdit">
<view class="picker-tree-box">
<view class="picker-tree" @tap="showZgTree('tkiTree1', 1)">
{{ form.UNITS_NAME || '请选择' }}
</view>
</view>
<tki-tree ref="tkiTree1" :selectParent=true :range="treeNode" rangeKey="UNITS_NAME"
@confirm="zgtreeConfirm($event,'inspectedSiteuserList')" @cancel="zgtreeCancel"></tki-tree>
</block>
<block v-else>{{ form.UNITS_NAME }}</block>
<view>{{ form.UNITS_NAME }}</view>
</view>
<view class="cu-form-group" v-if="form.UNITS_NAME">
<view class="title">被检查单位现场负责人</view>
@ -1519,9 +1510,13 @@
success: (res) => {
if ("success" == res.data.result) {
_this.treeNode = res.data.varList;
_this.form.UNITS_NAME = _this.treeNode[0].UNITS_NAME
_this.form.UNITS_ID = _this.treeNode[0].UNITS_ID
_this.getUserList('inspectedSiteuserList', _this.treeNode[0].UNITS_ID)
if(!_this.form.UNITS_NAME) {
_this.form.UNITS_NAME = _this.treeNode[0].UNITS_NAME
}
if(!_this.form.UNITS_ID) {
_this.form.UNITS_ID = _this.treeNode[0].UNITS_ID
}
_this.getUserList('inspectedSiteuserList', _this.form.UNITS_ID)
} else {
uni.showToast({
title: res.data.message,
@ -1577,7 +1572,8 @@
},
success: function(res) {
if ("success" == res.data.result) {
console.log(res.data.pd);
_this.form.UNITS_NAME = res.data.pd.UNITS_NAME
_this.form.UNITS_ID = res.data.pd.UNITS_ID
_this.form.PERSONNELMANAGEMENT_ID = res.data.pd.PERSONNELMANAGEMENT_ID;
_this.form.PERSON_NAME = res.data.pd.NAME;
} else {

View File

@ -2,7 +2,7 @@
<view>
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
<block slot="backText">返回</block>
<block slot="content">安全环保检查指派确认人</block>
<block slot="content">安全环保检查指派</block>
</cu-custom>
<view class="form">
<view class="wui-form-list">
@ -398,6 +398,7 @@
HIDDEN_STATUS: '', // ID
principalList: [],
form: {
RECTIFICATIONORNAME:'',
HIDDENDESCR: '', //
CREATORNAME: '', //
HIDDENLEVELNAME: '', //

View File

@ -464,7 +464,7 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.form = res.data.pd; //map
_this.form.hiddenForm = res.data.hiddenList[0];
_this.form.hiddenForm = res.data.pd.hiddenList[0];
for (let i = 0; i < _this.form.inspectorList.length; i++) {
_this.inspectorList.push([])
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)