diff --git a/src/views/modules/eam/com_eam_object_add_update.vue b/src/views/modules/eam/com_eam_object_add_update.vue index cf1dc3a..ee3f429 100644 --- a/src/views/modules/eam/com_eam_object_add_update.vue +++ b/src/views/modules/eam/com_eam_object_add_update.vue @@ -446,7 +446,7 @@ export default { if (this.tagNo === 26) { //设置参数 this.pageData.locationID = val.LocationID; - this.$set(this.pageData,'locationName',val.LocationName) + this.pageData.locationName = val.LocationName; } else if (this.tagNo === 27) { //设置参数 this.pageData.familyID = val.FamilyID; @@ -479,22 +479,71 @@ export default { this.tagNo = val this.$nextTick(() => { let strVal = '' + let conSql = '' if (val === 26) { strVal = this.pageData.locationID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 27) { strVal = this.pageData.familyID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 28) { strVal = this.pageData.groupID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 29) { strVal = this.pageData.supplierID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 30) { strVal = this.pageData.manufacturerID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 503) { strVal = this.pageData.resourceID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and site = '" + this.pageData.bu.split('_')[0] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } }else if (val === 204) { strVal = this.pageData.deptID + if (this.pageData.bu === null || this.pageData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } } - this.$refs.baseList.init(val, strVal) }) }, diff --git a/src/views/modules/eam/eamFeedBack.vue b/src/views/modules/eam/eamFeedBack.vue index 31728e0..60630f4 100644 --- a/src/views/modules/eam/eamFeedBack.vue +++ b/src/views/modules/eam/eamFeedBack.vue @@ -810,13 +810,20 @@ this.tagNo = val this.$nextTick(() => { let strVal = '' + let conSql = '' if (val === 201) { strVal = this.modalData.planOperator this.$refs.baseList.init(val, strVal) } if (val === 200) { strVal = this.saveModalData.objectID - this.$refs.baseList.init(val, strVal) + if (this.saveModalData.bu === null || this.saveModalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.saveModalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } } if (val === 1055) { strVal = this.saveModalData.defectID diff --git a/src/views/modules/eam/eamWorkPlanForMaintenance.vue b/src/views/modules/eam/eamWorkPlanForMaintenance.vue index f0c1f97..509c7e4 100644 --- a/src/views/modules/eam/eamWorkPlanForMaintenance.vue +++ b/src/views/modules/eam/eamWorkPlanForMaintenance.vue @@ -1985,6 +1985,7 @@ // 获取基础数据列表S getBaseList (val,type) { this.tagNo = val + let conSql = '' this.$nextTick(() => { let strVal = '' if (val === 200 && this.modalDisableFlag !== true) { @@ -1993,7 +1994,13 @@ } if (val === 32) { strVal = this.modalData.propertiesCode - this.$refs.baseList.init(val, strVal) + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } } if (val === 201) { strVal = this.modalData.operator diff --git a/src/views/modules/qc/qcItem.vue b/src/views/modules/qc/qcItem.vue index 3ee7cdd..d3daf9f 100644 --- a/src/views/modules/qc/qcItem.vue +++ b/src/views/modules/qc/qcItem.vue @@ -806,16 +806,29 @@ this.tagNo = val this.$nextTick(() => { let strVal = '' - if (val === 1036) { - strVal = this.modalData.methodNo - this.$refs.baseList.init(val, strVal) - } + let conSql = '' if (val === 207) { strVal = this.modalData.samplingProgrammeNo - this.$refs.baseList.init(val, strVal) + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } } if (val === 208) { strVal = this.modalData.samplingLevelNo + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } + } + if (val === 1036) { + strVal = this.modalData.methodNo this.$refs.baseList.init(val, strVal) } }) diff --git a/src/views/modules/qc/qcTemplate.vue b/src/views/modules/qc/qcTemplate.vue index a0b3fda..b1c8dac 100644 --- a/src/views/modules/qc/qcTemplate.vue +++ b/src/views/modules/qc/qcTemplate.vue @@ -1066,14 +1066,27 @@ this.tagNo = val this.$nextTick(() => { let strVal = '' + let conSql = '' if (val === 207) { strVal = this.modalData.samplingProgrammeNo - this.$refs.baseList.init(val, strVal) + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } } if (val === 208) { strVal = this.modalData.samplingLevelNo - this.$refs.baseList.init(val, strVal) - } + if (this.modalData.bu === null || this.modalData.bu === '') { + this.$message.warning("请选择BU!") + return + } else { + conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + this.$refs.baseList.init(val, strVal, conSql) + } + } }) },