From 3f8f5b5893477bd60019123b3f16e12ac6042cc0 Mon Sep 17 00:00:00 2001 From: zwq Date: Sun, 23 Apr 2023 14:55:15 +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/filters/basic-filter.js | 6 + src/filters/sys-filter.js | 6 +- src/i18n/en/basicData.js | 2 + src/i18n/zh/basicData.js | 2 + src/mixins/basic-page.js | 9 +- .../modules/job/schedule-add-or-update.vue | 15 +- src/views/modules/job/schedule.vue | 413 +++++++++++------- src/views/modules/sys/role-add-or-update.vue | 4 +- .../components/generalOperation-add.vue | 18 +- .../process-inspection/generalOperation.vue | 168 ++++--- src/views/spc-basic/factoryManage.vue | 5 +- 11 files changed, 402 insertions(+), 246 deletions(-) diff --git a/src/filters/basic-filter.js b/src/filters/basic-filter.js index c8a31d3..fefc16a 100644 --- a/src/filters/basic-filter.js +++ b/src/filters/basic-filter.js @@ -25,6 +25,12 @@ const table = { '1': '可计数', '2': '不可计数', }, + inspectionStage: { + 1: '进货检验', + 2: '过程检验', + 3: '成品检验', + 4: '出货检验', + } } export default function(dictTable) { diff --git a/src/filters/sys-filter.js b/src/filters/sys-filter.js index 7d10b0b..f6227c9 100644 --- a/src/filters/sys-filter.js +++ b/src/filters/sys-filter.js @@ -2,7 +2,7 @@ /* * @Date: 2020-12-29 16:49:28 * @LastEditors: zwq - * @LastEditTime: 2023-01-05 15:49:17 + * @LastEditTime: 2023-04-21 16:49:57 * @FilePath: \basic-admin\src\filters\basicData\index.js * @Description: */ @@ -29,6 +29,10 @@ const table = { '0': i18n.t('logLogin.status0'), '1': i18n.t('logLogin.status1') }, + scheduleStatus: { + '0': i18n.t('schedule.status0'), + '1': i18n.t('schedule.status1') + }, } export default function(dictTable) { diff --git a/src/i18n/en/basicData.js b/src/i18n/en/basicData.js index 47df50e..7cb9c9f 100644 --- a/src/i18n/en/basicData.js +++ b/src/i18n/en/basicData.js @@ -7,6 +7,8 @@ */ export default { + name: 'name', + code: 'code', status: 'status', createTime: 'create time', } diff --git a/src/i18n/zh/basicData.js b/src/i18n/zh/basicData.js index 674811a..c3aa84c 100644 --- a/src/i18n/zh/basicData.js +++ b/src/i18n/zh/basicData.js @@ -7,6 +7,8 @@ */ export default { + name: '名称', + code: '编码', status: '状态', createTime: '添加时间', } diff --git a/src/mixins/basic-page.js b/src/mixins/basic-page.js index 3c085f6..f8f15dd 100644 --- a/src/mixins/basic-page.js +++ b/src/mixins/basic-page.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2023-02-17 10:59:11 + * @LastEditTime: 2023-04-20 10:48:23 * @Description: */ export default { @@ -17,6 +17,7 @@ export default { }, addOrEditTitle: '', tableData: [], + dataForm: {}, listQuery: { limit: 10, page: 1, @@ -104,7 +105,7 @@ export default { this.$refs.addOrUpdate.init(val.data.id); }); } else if (val.type === "delete") { - this.deleteHandle(val.data.id, val.data.name) + this.deleteHandle(val.data.id, val.data.name,val.data._pageIndex) } else if (val.type === "change") { this.changeStatus(val.data.id) } else { @@ -112,8 +113,8 @@ export default { } }, // 删除 - deleteHandle(id, name) { - this.$confirm(`确定对[名称=${name}]进行删除操作?`, "提示", { + deleteHandle(id, name,index) { + this.$confirm(`确定对${name?'[名称='+name+']':'[序号='+index+']'}进行删除操作?`, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", diff --git a/src/views/modules/job/schedule-add-or-update.vue b/src/views/modules/job/schedule-add-or-update.vue index 1ab9520..72e3f6a 100644 --- a/src/views/modules/job/schedule-add-or-update.vue +++ b/src/views/modules/job/schedule-add-or-update.vue @@ -1,5 +1,4 @@ diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue index 92a41a5..12f1349 100644 --- a/src/views/modules/sys/role-add-or-update.vue +++ b/src/views/modules/sys/role-add-or-update.vue @@ -1,5 +1,5 @@