Browse Source

2025-04-30

定时创建质量任务
java8
fengyuan_yang 10 months ago
parent
commit
adebde4b07
  1. 3
      src/api/eam/eam_object_list.js
  2. 23
      src/views/modules/eam/eamWorkOrderForCheck.vue
  3. 2
      src/views/modules/eam/eamWorkOrderForDefect.vue
  4. 9
      src/views/modules/qc/IPQCResultEntry.vue
  5. 21
      src/views/modules/reportWorkOrder/reportDefectOrder.vue

3
src/api/eam/eam_object_list.js

@ -8,7 +8,8 @@ export const getFileContentList = data => createAPI('sys/file/getSysFileByOrderR
export const getDevicePartList = data => createAPI('pms/resourcespare/getResourceSpareListByResourceId','post',data) export const getDevicePartList = data => createAPI('pms/resourcespare/getResourceSpareListByResourceId','post',data)
/*查询设备的核心备件清单*/ /*查询设备的核心备件清单*/
export const getDeviceCorePartList = data => createAPI('pms/resourcespare/getDeviceCorePartList','post',data) export const getDeviceCorePartList = data => createAPI('pms/resourcespare/getDeviceCorePartList','post',data)
// 查询核心备件清单
export const getDeviceCorePartListAll = data => createAPI('pms/resourcespare/getDeviceCorePartListAll','post',data)
/*查询设备的点检项目列表*/ /*查询设备的点检项目列表*/
export const getCheckItemList = data => createAPI('pms/eamObject/getCheckItemList','post',data) export const getCheckItemList = data => createAPI('pms/eamObject/getCheckItemList','post',data)
/*查询设备的维保项目列表*/ /*查询设备的维保项目列表*/

23
src/views/modules/eam/eamWorkOrderForCheck.vue

@ -1499,15 +1499,6 @@
}, },
cancelOrder2 () { cancelOrder2 () {
// let obj = document.getElementsByName('addWorkOrderRule')
// let s = ''
// for (let i = 0; i < obj.length; i++) {
// if (obj[i].checked) {
// s += obj[i].value + ','
// }
// }
// s = s.substring(0,s.length-1)
// this.cancelData.cancelAll = s
if (this.cancelData.cancelAll === 'Y') { if (this.cancelData.cancelAll === 'Y') {
this.$confirm(`是否取消该计划设备的所有工单?`, '提示', { this.$confirm(`是否取消该计划设备的所有工单?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -1745,12 +1736,6 @@
case 2: case 2:
this.columnDetailList = data.rows this.columnDetailList = data.rows
break; break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
} }
} else { } else {
this.getColumnList(tableId, columnId) this.getColumnList(tableId, columnId)
@ -1774,15 +1759,7 @@
case 2: case 2:
this.columnDetailList = data.rows this.columnDetailList = data.rows
break; break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
} }
} else {
// this.showDefault = true.
} }
}) })
}, },

2
src/views/modules/eam/eamWorkOrderForDefect.vue

@ -2570,7 +2570,7 @@ export default {
orderNo: this.detailData.orderNo, orderNo: this.detailData.orderNo,
} }
getDeviceCorePartList(tempData).then(({data}) => { getDeviceCorePartList(tempData).then(({data}) => {
if (data && data.code === 200) {
if (data && data.code === 0) {
this.corePartSpareList = data.rows this.corePartSpareList = data.rows
} else { } else {
this.corePartSpareList = [] this.corePartSpareList = []

9
src/views/modules/qc/IPQCResultEntry.vue

@ -4045,7 +4045,6 @@
} }
await getTableUserListLanguage(queryTableUser).then(({data}) => { await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) { if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) { switch (columnId) {
case 1: case 1:
this.columnList1 = data.rows this.columnList1 = data.rows
@ -4056,9 +4055,6 @@
case 3: case 3:
this.seqDetailColumnList = data.rows this.seqDetailColumnList = data.rows
break; break;
// case 4:
// this.columnList3 = data.rows
// break;
} }
} else { } else {
this.getColumnList(tableId, columnId) this.getColumnList(tableId, columnId)
@ -4085,12 +4081,7 @@
case 3: case 3:
this.seqDetailColumnList = data.rows this.seqDetailColumnList = data.rows
break; break;
// case 4:
// this.columnList3 = data.rows
// break;
} }
} else {
// this.showDefault = true.
} }
}) })
}, },

21
src/views/modules/reportWorkOrder/reportDefectOrder.vue

@ -709,6 +709,7 @@
} from "@/api/eam/eam.js" } from "@/api/eam/eam.js"
import { import {
downLoadObjectFile, downLoadObjectFile,
getDeviceCorePartListAll,
getDeviceCorePartList, getDeviceCorePartList,
getDevicePartList, getDevicePartList,
getKnowledgeBaseList, getKnowledgeBaseList,
@ -749,6 +750,7 @@
orderNo: '' orderNo: ''
}, },
corePartSpareList: [], corePartSpareList: [],
corePartSpareListAll: [],
coreComponentData: { coreComponentData: {
site: '', site: '',
orderNo: '', orderNo: '',
@ -2687,6 +2689,23 @@
this.authReport = !reportFlag this.authReport = !reportFlag
}, },
//
getCorePartSpareListAll () {
let tempData = {
site: this.saveData.site,
buNo: this.saveData.buNo,
objectID: this.saveData.objectID,
orderNo: this.saveData.orderNo,
}
getDeviceCorePartList(tempData).then(({data}) => {
if (data && data.code === 0) {
this.corePartSpareListAll = data.rows
} else {
this.corePartSpareListAll = []
}
})
},
getCorePartSpareList () { getCorePartSpareList () {
let tempData = { let tempData = {
site: this.saveData.site, site: this.saveData.site,
@ -2695,7 +2714,7 @@
orderNo: this.saveData.orderNo, orderNo: this.saveData.orderNo,
} }
getDeviceCorePartList(tempData).then(({data}) => { getDeviceCorePartList(tempData).then(({data}) => {
if (data && data.code === 200) {
if (data && data.code === 0) {
this.corePartSpareList = data.rows this.corePartSpareList = data.rows
} else { } else {
this.corePartSpareList = [] this.corePartSpareList = []

Loading…
Cancel
Save