|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|