From a1970159beb7d40c34afc9cab57c83a6be097684 Mon Sep 17 00:00:00 2001 From: loujf Date: Tue, 2 Aug 2022 16:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/acs/produceshiftorder/index.vue | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/acs/qd/src/views/acs/produceshiftorder/index.vue b/acs/qd/src/views/acs/produceshiftorder/index.vue index 03f171c..9acb908 100644 --- a/acs/qd/src/views/acs/produceshiftorder/index.vue +++ b/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 + } } } }