From 0377c7e41ca903557b5a9fbf6173264e07615baf Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:22:43 +0800 Subject: [PATCH] =?UTF-8?q?2024.11.26=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/part/standardRoutingOperation.vue | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/src/views/modules/part/standardRoutingOperation.vue b/src/views/modules/part/standardRoutingOperation.vue index e09adea..aaafc0a 100644 --- a/src/views/modules/part/standardRoutingOperation.vue +++ b/src/views/modules/part/standardRoutingOperation.vue @@ -102,8 +102,8 @@ - 加工中心编码 - + 加工中心编码 + @@ -111,8 +111,8 @@ - 调机时人员等级编码 - + 调机时人员等级编码 + @@ -123,8 +123,8 @@ - 人员等级编码 - + 人员等级编码 + @@ -686,20 +686,19 @@ export default { this.$nextTick(() => { let strVal = '' let conSql = '' - if (val === 217) { + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } + if (val === 517) { if(type === 1) { strVal = this.modalData.laborClassNo?this.modalData.laborClassNo:'' } else if (type === 2) { strVal = this.modalData.setupLaborClassNo?this.modalData.setupLaborClassNo:'' } + conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" } - if (this.modalData.bu === null || this.modalData.bu === '') { - this.$message.warning("请选择BU!") - return - } else { - conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" + " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" - } - if (val === 216) { + if (val === 516) { strVal = this.modalData.workCenterNo?this.modalData.workCenterNo:'' conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" } @@ -711,7 +710,7 @@ export default { * @param val */ getBaseData (val) { - if (this.tagNo === 217) { + if (this.tagNo === 517) { if (this.tagNo1 === 1) { this.modalData.laborClassNo = val.class_no this.modalData.laborClassDesc = val.class_desc @@ -722,7 +721,7 @@ export default { this.modalData.laborClassDesc = val.class_desc } } - if (this.tagNo === 216) { + if (this.tagNo === 516) { this.modalData.workCenterNo = val.work_center_no this.modalData.workCenterDesc = val.work_center_desc } @@ -804,7 +803,7 @@ export default { changeSetupLaborClassNo () { if (this.modalData.setupLaborClassNo !== '' && this.modalData.setupLaborClassNo != null) { this.modalData.laborClassNo = this.modalData.setupLaborClassNo - this.laborClassBlur(217) + this.laborClassBlur(517) } }, @@ -819,9 +818,9 @@ export default { * 分类信息新增/编辑 */ async saveData () { - await this.workCenterBlur(216) - await this.laborClassBlur(217) - await this.setupLaborClassBlur(217) + await this.workCenterBlur(516) + await this.laborClassBlur(517) + await this.setupLaborClassBlur(517) if (this.modalData.bu === '' || this.modalData.bu == null) { this.$message.warning('请选择BU!') return