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