作业槽查询逻辑调整

dev-scheduling
jinna 3 months ago
parent 8ac7698dfd
commit 029f3b454a
  1. 41
      src/views/processManagement/bathRefine/accumulateClass.vue
  2. 1
      src/views/processManagement/bathRefine/components/periodicalBatch.vue

@ -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: [
{ {
@ -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,19 +373,13 @@ 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,
}, },
],
}, },
], ],
}, },
}; };
@ -398,7 +388,7 @@ export default {
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,7 +419,7 @@ 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(() => {
@ -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) {

@ -120,6 +120,7 @@ export default {
searchLabelWidth: 80, searchLabelWidth: 80,
dicUrl: '/blade-desk/bsWorkCenter/getList', dicUrl: '/blade-desk/bsWorkCenter/getList',
type:'select', type:'select',
cascader: ['batchNo'],
props: { props: {
label: 'wcName', label: 'wcName',
value: 'id', value: 'id',

Loading…
Cancel
Save