|
|
|
@ -48,7 +48,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import addAccumulateClass from './components/addAccumulateClassDialog.vue'; |
|
|
|
import addAccumulateClass from './components/addAccumulateClassDialog.vue'; |
|
|
|
import maintainDialog from './components/maintainDialog.vue'; |
|
|
|
import maintainDialog from './components/maintainDialog.vue'; |
|
|
|
import { getList, add, remove, update,batchReset } from '@/api/processManagement/planClass.js'; |
|
|
|
import { getList, add, remove, update, batchReset } from '@/api/processManagement/planClass.js'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
@ -130,6 +130,7 @@ export default { |
|
|
|
headerAlign: 'center', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
align: 'left', |
|
|
|
searchLabelWidth: 80, |
|
|
|
searchLabelWidth: 80, |
|
|
|
|
|
|
|
cascader: ['batchNo'], |
|
|
|
width: 120, |
|
|
|
width: 120, |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -175,12 +176,12 @@ export default { |
|
|
|
headerAlign: 'center', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
align: 'left', |
|
|
|
width: 120, |
|
|
|
width: 120, |
|
|
|
editDisplay:false, |
|
|
|
editDisplay: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '设备名称', |
|
|
|
label: '设备名称', |
|
|
|
prop: 'device', |
|
|
|
prop: 'device', |
|
|
|
hide:true, |
|
|
|
hide: true, |
|
|
|
search: false, |
|
|
|
search: false, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
overHidden: true, |
|
|
|
overHidden: true, |
|
|
|
@ -193,8 +194,8 @@ export default { |
|
|
|
value: 'id', |
|
|
|
value: 'id', |
|
|
|
res: 'data.records', |
|
|
|
res: 'data.records', |
|
|
|
}, |
|
|
|
}, |
|
|
|
change: (val) =>{ |
|
|
|
change: val => { |
|
|
|
this.equipmentChange(val.item,'equipmentId') |
|
|
|
this.equipmentChange(val.item, 'equipmentId'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -271,17 +272,12 @@ export default { |
|
|
|
headerAlign: 'center', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
align: 'left', |
|
|
|
width: 120, |
|
|
|
width: 120, |
|
|
|
type: 'select', |
|
|
|
type: 'select', //accumulateClass_status |
|
|
|
dicData: [ |
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=accumulateClass_status', |
|
|
|
{ |
|
|
|
props: { |
|
|
|
label: '进行中', |
|
|
|
label: 'dictValue', |
|
|
|
value: 1, |
|
|
|
value: 'dictKey', |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '已完成', |
|
|
|
|
|
|
|
value: 2, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '添加量', |
|
|
|
label: '添加量', |
|
|
|
@ -377,28 +373,22 @@ export default { |
|
|
|
headerAlign: 'center', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
align: 'left', |
|
|
|
width: 120, |
|
|
|
width: 120, |
|
|
|
type: 'select', |
|
|
|
type: 'select', //periodOfValidity |
|
|
|
dicData: [ |
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=periodOfValidity', |
|
|
|
{ |
|
|
|
props: { |
|
|
|
label: '长期', |
|
|
|
label: 'dictValue', |
|
|
|
value: 1, |
|
|
|
value: 'dictKey', |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '一次性', |
|
|
|
|
|
|
|
value: 2, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() {}, |
|
|
|
mounted() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
equipmentChange(val,type){ |
|
|
|
equipmentChange(val, type) { |
|
|
|
if(val&&type=='equipmentId'){ |
|
|
|
if (val && type == 'equipmentId') { |
|
|
|
this.form.deviceName = val.deviceName |
|
|
|
this.form.deviceName = val.deviceName; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 关闭弹窗 |
|
|
|
// 关闭弹窗 |
|
|
|
@ -429,8 +419,8 @@ export default { |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
let ids=this.selectionList.map(item=>item.id) |
|
|
|
let ids = this.selectionList.map(item => item.id); |
|
|
|
return batchReset({ids:ids.join(',')}); |
|
|
|
return batchReset({ ids: ids.join(',') }); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
@ -444,7 +434,6 @@ export default { |
|
|
|
// // this.showMaintain = true; |
|
|
|
// // this.showMaintain = true; |
|
|
|
// this.showDialog = true; |
|
|
|
// this.showDialog = true; |
|
|
|
// this.moldAddMore = false; |
|
|
|
// this.moldAddMore = false; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
handleDelete() { |
|
|
|
handleDelete() { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|