From 4c69135048805961613203bde492a19348d6a8dd Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 18 Jul 2023 11:24:17 +0800 Subject: [PATCH] update order --- src/views/modules/pms/firingStep/config.js | 13 +++++++++- .../order/components/ListSectionWithHead.vue | 14 ++++++++++- .../pms/order/components/ListViewWithHead.vue | 12 ++++++++++ src/views/modules/pms/order/config.js | 24 +++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) diff --git a/src/views/modules/pms/firingStep/config.js b/src/views/modules/pms/firingStep/config.js index ca86451..7af7d05 100644 --- a/src/views/modules/pms/firingStep/config.js +++ b/src/views/modules/pms/firingStep/config.js @@ -20,7 +20,11 @@ export default function () { fixed: "right", width: 128, subcomponent: TableOperaionComponent, - options: [ { name: "copy", label: "复制", icon: "copy-document" }, { name: "edit", label: "编辑", icon: "edit-outline" }, { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:blenderStep:delete" }], + options: [ + { name: "copy", label: "复制", icon: "copy-document" }, + { name: "edit", label: "编辑", icon: "edit-outline" }, + { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:blenderStep:delete" }, + ], }, ]; @@ -58,6 +62,12 @@ export default function () { name: "查询", }, }, + { + button: { + type: "plain", + name: "同步", + }, + }, // { // button: { // type: "plain", @@ -216,6 +226,7 @@ export default function () { subase: "/pms/equipmentTechParam", subpage: "/pms/equipmentTechParam/page", copyUrl: "/pms/equipmentTech/copy", + syncUrl: "/pms/trans/kilnSync" // more... }, }; diff --git a/src/views/modules/pms/order/components/ListSectionWithHead.vue b/src/views/modules/pms/order/components/ListSectionWithHead.vue index a2b3649..98dd7f7 100644 --- a/src/views/modules/pms/order/components/ListSectionWithHead.vue +++ b/src/views/modules/pms/order/components/ListSectionWithHead.vue @@ -227,7 +227,7 @@ export default { } }) .catch((errMsg) => { - console.log('ere...') + console.log("ere..."); this.$message({ message: errMsg, type: "error", @@ -390,6 +390,18 @@ export default { this.showUploadDialog(payload); // alert('/pms/order/importExcelOrder'); break; + case "压制工艺": + // 跳转至压制工艺页面 + alert("跳转至压制工艺页面"); + // this.$router.push({ path: "/pms/pressing-process", query: { orderId: payload.id } }); + break; + case "烧制曲线": + // 跳转至烧制曲线页面 + alert("跳转至烧制曲线页面"); + break; + case "检测工艺": // 跳转至检测工艺页面 + alert("跳转至检测工艺页面"); + break; } }, diff --git a/src/views/modules/pms/order/components/ListViewWithHead.vue b/src/views/modules/pms/order/components/ListViewWithHead.vue index 2d26a6b..9f49ff3 100644 --- a/src/views/modules/pms/order/components/ListViewWithHead.vue +++ b/src/views/modules/pms/order/components/ListViewWithHead.vue @@ -454,6 +454,18 @@ export default { } } case "pending": + console.log("[search form btn click]", type, btnName, payload); + if (btnName === "压制工艺") { + // 跳转至压制工艺页面 + alert("跳转至压制工艺页面"); + // this.$router.push({ path: "/pms/pressing-process", query: { orderId: payload.id } }); + } else if (btnName === '烧制曲线') { + // 跳转至烧制曲线页面 + alert("跳转至烧制曲线页面"); + } else if (btnName === '检测工艺') { + // 跳转至检测工艺页面 + alert("跳转至检测工艺页面"); + } break; case "finished": break; diff --git a/src/views/modules/pms/order/config.js b/src/views/modules/pms/order/config.js index 0b03b52..8f9b57b 100644 --- a/src/views/modules/pms/order/config.js +++ b/src/views/modules/pms/order/config.js @@ -178,6 +178,30 @@ export default function () { plain: true, }, }, + { + button: { + name: '压制工艺' + }, + bind: { + plain: true + } + }, + { + button: { + name: '烧制曲线' + }, + bind: { + plain: true + } + }, + { + button: { + name: '检测工艺' + }, + bind: { + plain: true + } + } ], finished: [ {