diff --git a/src/views/modules/eam/eamWorkPlanForCheck.vue b/src/views/modules/eam/eamWorkPlanForCheck.vue index 7508181..ecf4983 100644 --- a/src/views/modules/eam/eamWorkPlanForCheck.vue +++ b/src/views/modules/eam/eamWorkPlanForCheck.vue @@ -2076,7 +2076,7 @@ this.$message.warning("请选择BU!") return } else { - conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" + " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" this.$refs.baseList.init(val, strVal, conSql) } } diff --git a/src/views/modules/eam/eamWorkPlanForMaintenance.vue b/src/views/modules/eam/eamWorkPlanForMaintenance.vue index 9154fb9..c31b5cf 100644 --- a/src/views/modules/eam/eamWorkPlanForMaintenance.vue +++ b/src/views/modules/eam/eamWorkPlanForMaintenance.vue @@ -2064,7 +2064,7 @@ this.$message.warning("请选择BU!") return } else { - conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" + " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" this.$refs.baseList.init(val, strVal, conSql) } } diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 5ffc8ea..5e0cddc 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -1170,8 +1170,9 @@ partMesType: '', productRev: '', invtype: '', - - remark: '' + remark: '', + codeNo: '', + codeDesc: '' }, itemData: { site: this.$store.state.user.site, @@ -2579,7 +2580,9 @@ partMesType: '', productRev: '', invtype: '', - remark: '' + remark: '', + codeNo: '', + codeDesc: '' } this.inventoryPartTable = 'General' this.modalDisableFlag = false @@ -2635,7 +2638,9 @@ partMesType: row.partMesType, productRev: row.productRev, invtype: row.invtype, - remark: row.remark + remark: row.remark, + codeNo: row.codeNo, + codeDesc: row.codeDesc } this.inventoryPartTable = 'General' this.modalDisableFlag = true @@ -3474,6 +3479,30 @@ } }, + // 属性输入校验 + modelBlur (tagNo) { + if (this.modalData.codeNo != null && this.modalData.codeNo !== '') { + let tempData = { + tagno: tagNo, + conditionSql: " and code_no = '" + this.modalData.codeNo + "'" + " and site = '" + this.modalData.bu.split('_')[0] + "'" + " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" + } + verifyData(tempData).then(({data}) => { + if (data && data.code === 0) { + if (data.baseListData.length > 0) { + this.modalData.codeNo = data.baseListData[0].code_no + this.modalData.codeDesc = data.baseListData[0].code_desc + } else { + this.$message.warning('该属性模板不存在!') + this.modalData.codeDesc = '' + } + } else { + this.$message.warning(data.msg) + this.modalData.codeDesc = '' + } + }) + } + }, + // ======== chooseList相关方法 ======== /** * 获取基础数据列表S @@ -3485,8 +3514,16 @@ this.tempCodeNo = this.modalData.codeNo this.$nextTick(() => { let strVal = '' + let conSql = '' + 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 === 510) { strVal = this.modalData.umId + conSql = '' } else if (val === 211) { strVal = this.modalData.otherGroup1 } else if (val === 212) { @@ -3495,12 +3532,13 @@ strVal = this.modalData.otherGroup3 } else if (val === 511) { strVal = this.modalData.defaultWarehouseID + conSql = '' } else if (val === 214) { strVal = this.modalData.familyID } else if (val === 219) { strVal = this.modalData.codeNo } - this.$refs.baseList.init(val, strVal) + this.$refs.baseList.init(val, strVal, conSql) }) }, /** diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index 50ea235..62507c6 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -1642,7 +1642,7 @@ export default { columnImage: false, status: true, fixed: '', - columnWidth: 200 + columnWidth: 150 }, { columnProp: 'workCenterNo', @@ -1653,7 +1653,7 @@ export default { columnImage: false, status: true, fixed: '', - columnWidth: 120 + columnWidth: 100 }, { columnProp: 'workCenterDesc', @@ -1664,7 +1664,7 @@ export default { columnImage: false, status: true, fixed: '', - columnWidth: 200 + columnWidth: 150 }, { columnProp: 'laborClassNo', @@ -1675,7 +1675,7 @@ export default { columnImage: false, status: true, fixed: '', - columnWidth: 120 + columnWidth: 100 }, { columnProp: 'laborClassDesc', @@ -1686,7 +1686,73 @@ export default { columnImage: false, status: true, fixed: '', - columnWidth: 200 + columnWidth: 150 + }, + { + columnProp: 'setupLaborClassNo', + headerAlign: "center", + align: "center", + columnLabel: '调机时人员等级编码', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 100 + }, + { + columnProp: 'setupLaborClassDesc', + headerAlign: "center", + align: "left", + columnLabel: '调机时人员等级描述', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 150 + }, + { + columnProp: 'laborRunFactor', + headerAlign: 'center', + align: 'right', + columnLabel: '人工单位产出', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 100 + }, + { + columnProp: 'machRunFactor', + headerAlign: 'center', + align: 'right', + columnLabel: '机器单位产出', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 100 + }, + { + columnProp: 'laborCycleTime', + headerAlign: 'center', + align: 'right', + columnLabel: '人工处理时间', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 100 + }, + { + columnProp: 'machCycleTime', + headerAlign: 'center', + align: 'right', + columnLabel: '机器处理时间', + columnHidden: false, + columnImage: false, + status: true, + fixed: '', + columnWidth: 100 }, ], // ======== 必填规则 ======== @@ -2310,6 +2376,14 @@ export default { // 基于标准工序快速创建 createByStandardOperation () { + if (this.detailData.alternativeNo === '' || this.detailData.alternativeNo == null) { + this.$message.warning('请先选择替代!') + return + } + if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') { + this.$message.warning('不可编辑的替代状态!') + return + } getStandardOperations(this.modalData).then(({data}) => { if (data && data.code === 0) { this.standardOperationList = data.rows diff --git a/src/views/modules/qc/qcItem.vue b/src/views/modules/qc/qcItem.vue index bcdd66d..d7e952c 100644 --- a/src/views/modules/qc/qcItem.vue +++ b/src/views/modules/qc/qcItem.vue @@ -1172,30 +1172,23 @@ this.$nextTick(() => { let strVal = '' let conSql = '' + 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 === 207) { strVal = this.modalData.samplingProgrammeNo - 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) + conSql = '' } + this.$refs.baseList.init(val, strVal, conSql) }) }, diff --git a/src/views/modules/qc/qcSamplingInspectionPlan.vue b/src/views/modules/qc/qcSamplingInspectionPlan.vue index a0d22ce..1ba507e 100644 --- a/src/views/modules/qc/qcSamplingInspectionPlan.vue +++ b/src/views/modules/qc/qcSamplingInspectionPlan.vue @@ -654,18 +654,21 @@ this.tagNo = val this.$nextTick(() => { let strVal = '' + let conSql = '' + 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 === 210) { strVal = this.detailData.samplingQtyNo - this.$refs.baseList.init(val, strVal) - } - if (val === 209) { + } else if (val === 209) { strVal = this.detailData.samplingQtyRankNo - this.$refs.baseList.init(val, strVal) - } - if (val === 208) { + } else if (val === 208) { strVal = this.detailData.samplingLevelNo - this.$refs.baseList.init(val, strVal) } + this.$refs.baseList.init(val, strVal, conSql) }) }, diff --git a/src/views/modules/qc/qcTemplate.vue b/src/views/modules/qc/qcTemplate.vue index c19882e..2d54503 100644 --- a/src/views/modules/qc/qcTemplate.vue +++ b/src/views/modules/qc/qcTemplate.vue @@ -1270,26 +1270,19 @@ this.$nextTick(() => { let strVal = '' let conSql = '' + 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 === 207) { strVal = this.modalData.samplingProgrammeNo - 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) - } - } + } + this.$refs.baseList.init(val, strVal, conSql) }) },