From 7e57010a2e922f91490eed18054ee44ae7a41af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Wed, 23 Jul 2025 14:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=8F=AD=E4=BF=A1=E6=81=AF=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=EF=BC=8C=E4=BA=BA=E5=91=98=E6=9F=A5=E8=AF=A2=E6=A0=B9?= =?UTF-8?q?=E6=8D=AEBU=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/scheduling/scheduling.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/modules/scheduling/scheduling.vue b/src/views/modules/scheduling/scheduling.vue index 05a5285..525ff0a 100644 --- a/src/views/modules/scheduling/scheduling.vue +++ b/src/views/modules/scheduling/scheduling.vue @@ -34,6 +34,7 @@ export default { span:3, saveSchedulingFlag: false, fastAddFlag: false, + recordAddPeoPleFlag : false, insertSchedulingFlag: false, detailData: { site: '', @@ -276,12 +277,17 @@ export default { }, getPeopleList(){ this.insertSchedulingFlag = true + this.recordAddPeoPleFlag = true this.getOperatorList() this.fastAddFlag = true }, // 获取机修人员列表 async getOperatorList () { - this.detailData.bu = '2_01-Label' + if (this.recordAddPeoPleFlag){ + this.detailData.bu = this.queryLineRow.site + '_' + this.queryLineRow.buNo + } else { + this.detailData.bu = this.saveData.bu + } //默认查询 角色:机修人员 let filterList = this.roleList.filter(item => item.roleName === '机修人员') if (filterList.length > 0) { @@ -506,6 +512,7 @@ export default { this.peopleList = [] this.classesList2 = [] this.saveSchedulingFlag = true; + this.recordAddPeoPleFlag = false }, async saveHeaderFunction(){ if (this.saveData.bu == null || this.saveData.bu === ''){ @@ -559,6 +566,10 @@ export default { this.handleQuery(); }, addPeopleModal () { + if (this.saveData.bu == null || this.saveData.bu == ''){ + this.$message.warning("请先选择BU") + return + } this.insertSchedulingFlag = false this.itemSelections1 = null this.itemSelections2 = null