作业槽查询逻辑调整

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',
align: 'left',
searchLabelWidth: 80,
cascader: ['batchNo'],
width: 120,
rules: [
{
@ -193,8 +194,8 @@ export default {
value: 'id',
res: 'data.records',
},
change: (val) =>{
this.equipmentChange(val.item,'equipmentId')
change: val => {
this.equipmentChange(val.item, 'equipmentId');
},
},
{
@ -271,17 +272,12 @@ export default {
headerAlign: 'center',
align: 'left',
width: 120,
type: 'select',
dicData: [
{
label: '进行中',
value: 1,
},
{
label: '已完成',
value: 2,
type: 'select', //accumulateClass_status
dicUrl: '/blade-system/dict/dictionary?code=accumulateClass_status',
props: {
label: 'dictValue',
value: 'dictKey',
},
],
},
{
label: '添加量',
@ -377,19 +373,13 @@ export default {
headerAlign: 'center',
align: 'left',
width: 120,
type: 'select',
dicData: [
{
label: '长期',
value: 1,
},
{
label: '一次性',
value: 2,
type: 'select', //periodOfValidity
dicUrl: '/blade-system/dict/dictionary?code=periodOfValidity',
props: {
label: 'dictValue',
value: 'dictKey',
},
],
},
],
},
};
@ -398,7 +388,7 @@ export default {
methods: {
equipmentChange(val, type) {
if (val && type == 'equipmentId') {
this.form.deviceName = val.deviceName
this.form.deviceName = val.deviceName;
}
},
//
@ -429,7 +419,7 @@ export default {
type: 'warning',
})
.then(() => {
let ids=this.selectionList.map(item=>item.id)
let ids = this.selectionList.map(item => item.id);
return batchReset({ ids: ids.join(',') });
})
.then(() => {
@ -444,7 +434,6 @@ export default {
// // this.showMaintain = true;
// this.showDialog = true;
// this.moldAddMore = false;
},
handleDelete() {
if (this.selectionList.length == 0) {

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

Loading…
Cancel
Save