Browse Source

2024.1.26 1、设备清单

2、点检、维保模版-点检项目新增
          3、点检、维保计划
          4、维修反馈-新增
          5、检验项目维护-新增
          6、检验模板维护-新增、项目新增
          7、物料属性设置-新增、检验项目新增
          8、动态列
java8
yuejiayang 2 years ago
parent
commit
8c199ed37b
  1. 53
      src/views/modules/eam/com_eam_object_add_update.vue
  2. 9
      src/views/modules/eam/eamFeedBack.vue
  3. 9
      src/views/modules/eam/eamWorkPlanForMaintenance.vue
  4. 23
      src/views/modules/qc/qcItem.vue
  5. 19
      src/views/modules/qc/qcTemplate.vue

53
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)
})
},

9
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

9
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

23
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)
}
})

19
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)
}
}
})
},

Loading…
Cancel
Save