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

Loading…
Cancel
Save