14905 没有选择作业负责人单位 就可以选择作业负责人了
parent
e2ad79f4ac
commit
0e44d6979f
|
@ -352,8 +352,8 @@
|
|||
</view>
|
||||
<view class="cu-form-group" v-if="!forbidEdit">
|
||||
<view class="title">项目主管部门负责人</view>
|
||||
<picker @change="xiangMuBuMenUserConfirm" :value="xiangMuFuZheRenIndex" :range="confirmUserList" range-key="NAME"
|
||||
:disabled="confirmUserList.length == 0" @click="isBlankList('xiangMu')">
|
||||
<picker @change="xiangMuBuMenUserConfirm" :value="xiangMuFuZheRenIndex" :range="xiangMuBuMenUserList" range-key="NAME"
|
||||
:disabled="xiangMuBuMenUserList.length == 0" @click="isBlankList('xiangMu')">
|
||||
<view class="picker">
|
||||
{{ pd.BELONGING_USER_NAME ? pd.BELONGING_USER_NAME : '请选择' }}
|
||||
</view>
|
||||
|
@ -746,6 +746,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
xiangMuBuMenUserList:[],
|
||||
baseImgPath: baseImgPath,
|
||||
buttonloading: false,
|
||||
isUps: false,
|
||||
|
@ -1415,7 +1416,7 @@ export default {
|
|||
}
|
||||
break
|
||||
case 'xiangMu':
|
||||
if (this.confirmUserList.length === 0) {
|
||||
if (this.xiangMuBuMenUserList.length === 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请先选择项目主管部门负责人',
|
||||
|
@ -1544,7 +1545,7 @@ export default {
|
|||
this.pd.BELONGING_USER_ID = ''
|
||||
this.pd.BELONGING_USER_NAME = ''
|
||||
this.$forceUpdate();//强制刷新
|
||||
this.getUserList(e[0].id, 'confirmUserList');
|
||||
this.getUserList(e[0].id, 'xiangMuBuMenUserList');
|
||||
},
|
||||
// 取消回调事件
|
||||
xiangMuBuMenCancel(e) {
|
||||
|
@ -1552,8 +1553,8 @@ export default {
|
|||
},
|
||||
xiangMuBuMenUserConfirm(e) {
|
||||
this.xiangMuFuZheRenIndex = e.detail.value;
|
||||
this.pd.BELONGING_USER_ID = this.confirmUserList[this.xiangMuFuZheRenIndex].USER_ID;
|
||||
this.pd.BELONGING_USER_NAME = this.confirmUserList[this.xiangMuFuZheRenIndex].NAME;
|
||||
this.pd.BELONGING_USER_ID = this.xiangMuBuMenUserList[this.xiangMuFuZheRenIndex].USER_ID;
|
||||
this.pd.BELONGING_USER_NAME = this.xiangMuBuMenUserList[this.xiangMuFuZheRenIndex].NAME;
|
||||
this.$forceUpdate();//强制刷新
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue