Browse Source

更新

master
loujf 2 years ago
parent
commit
a1970159be
  1. 46
      acs/qd/src/views/acs/produceshiftorder/index.vue

46
acs/qd/src/views/acs/produceshiftorder/index.vue

@ -145,29 +145,29 @@ export default {
// false
[CRUD.HOOK.beforeRefresh]() {
return true
}
},
beforeHandleCommand(index, row, command) {
return {
'index': index,
'row': row,
'command': command
}
},
finish(index, row) {
debugger
crudProduceshiftorder.finish(row.order_id).then(res => {
this.crud.toQuery()
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
handleCommand(command) {
switch (command.command) {
case 'a'://
this.finish(command.index, command.row)
break
},
beforeHandleCommand(index, row, command) {
return {
'index': index,
'row': row,
'command': command
}
},
finish(index, row) {
debugger
crudProduceshiftorder.finish(row.order_id).then(res => {
this.crud.toQuery()
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
})
},
handleCommand(command) {
switch (command.command) {
case 'a'://
this.finish(command.index, command.row)
break
}
}
}
}

Loading…
Cancel
Save