From 5961000f53e55e469e39688259bfa9d608f63b1d Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 28 Jul 2023 11:20:56 +0800 Subject: [PATCH 01/11] add order--edit --- .../order/components/ListSectionWithHead.vue | 5 +- .../pms/order/components/order--edit.vue | 806 ++++++++++++++++++ 2 files changed, 809 insertions(+), 2 deletions(-) create mode 100644 src/views/modules/pms/order/components/order--edit.vue diff --git a/src/views/modules/pms/order/components/ListSectionWithHead.vue b/src/views/modules/pms/order/components/ListSectionWithHead.vue index 79c498b..4b02408 100644 --- a/src/views/modules/pms/order/components/ListSectionWithHead.vue +++ b/src/views/modules/pms/order/components/ListSectionWithHead.vue @@ -32,7 +32,7 @@ :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> - + + +
+

+ {{ detailMode ? "查看详情" : dataForm.id ? "修改订单" : "新增订单" }} +

+
+ + + + + + + + + {{ dataForm.statusDictValue }} + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + + + + + + + + {{ opt.label }} + + {{ opt.undefined }} + + + + + + + + {{ dataForm.bomCode }} + + + + + {{ dataForm.ai }} + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + {{ opt.label }} + + {{ opt.code }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ opt.label }} + + {{ opt.name }} + + + + + + + + {{ dataForm.shortDesc }} + + + + + + + + + + + + + + + + +
+ + 取消 +
+
+ + + + + From 7f7e9d3b854ed4a0a782918baacfbc91f12948c2 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 28 Jul 2023 14:49:51 +0800 Subject: [PATCH 02/11] update order--edit --- .../order/components/ListSectionWithHead.vue | 26 +- .../pms/order/components/order--edit.vue | 585 ++++++++++-------- 2 files changed, 341 insertions(+), 270 deletions(-) diff --git a/src/views/modules/pms/order/components/ListSectionWithHead.vue b/src/views/modules/pms/order/components/ListSectionWithHead.vue index 4b02408..fd6fcb8 100644 --- a/src/views/modules/pms/order/components/ListSectionWithHead.vue +++ b/src/views/modules/pms/order/components/ListSectionWithHead.vue @@ -37,17 +37,7 @@ ref="order-dialog" v-if="renderDialog" fullscreen - :configs="dialogConfig" - @destroy-dialog="renderDialog = false" - @refreshDataList="getAList(Object.assign({}, listQuery, extraSearchConditions, params))" /> - - - + @closed="$emit('destroy')" + :close-on-click-modal="false" + v-loading="optionsLoading || formLoading">

- {{ detailMode ? "查看详情" : dataForm.id ? "修改订单" : "新增订单" }} + {{ mode.includes("detail") ? "查看详情" : dataForm.id ? "修改订单" : "新增订单" }}

- + - {{ dataForm.statusDictValue }} + {{ dataForm.statusDictValue }} @@ -41,7 +41,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -76,9 +76,15 @@ filterable clearable v-bind="{ placeholder: '选择压机', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -95,9 +101,15 @@ filterable clearable v-bind="{ placeholder: '选择混料机', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -111,9 +123,15 @@ filterable clearable v-bind="{ placeholder: '选择隧道窑', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -128,29 +146,51 @@ - + - - {{ opt.label }} - - {{ opt.undefined }} + @change="handleBomChange" + v-bind="{ placeholder: '选择配方号', filterable: true }"> + + {{ opt.label }} + + {{ opt.name }} - - {{ dataForm.bomCode }} + + {{ dataForm.brand }} - {{ dataForm.ai }} + + + + {{ opt.label }} + + @@ -160,9 +200,15 @@ filterable clearable v-bind="{ placeholder: '选择包装代码', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -178,9 +224,15 @@ filterable clearable v-bind="{ placeholder: '选择物料', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -194,9 +246,15 @@ filterable clearable v-bind="{ placeholder: '选择砖型', filterable: true }"> - + {{ opt.label }} - + {{ opt.code }} @@ -213,7 +271,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -229,7 +287,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -255,7 +313,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -270,7 +328,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -286,7 +344,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -317,7 +375,7 @@ type: 'number', message: '输入正确的数字类型', trigger: 'blur', - transform: '<<(val) => Number(val)>>', + transform: (val) => Number(val), }, ]"> @@ -339,9 +397,15 @@ prop="customerId" :rules="{ required: true, message: '必填项不能为空', trigger: 'blur' }"> - + {{ opt.label }} - + {{ opt.name }} @@ -350,7 +414,7 @@ - {{ dataForm.shortDesc }} + {{ dataForm.shortDesc }} @@ -368,23 +432,17 @@
- - 取消 + + 保存 + 更新 + 重置 + 取消
+ + From 87298d1c37405b294fd8695b090e355d0557b521 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 2 Aug 2023 15:40:41 +0800 Subject: [PATCH 10/11] =?UTF-8?q?update=20=E6=B7=B7=E6=96=99=E6=89=B9?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DialogJustForm.vue | 717 ++++++++++++++++++ .../components/ListViewWithHead.vue | 426 +++++++++++ src/views/modules/pms/blenderBatch/config.js | 14 + src/views/modules/pms/blenderBatch/index.vue | 3 +- 4 files changed, 1159 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/pms/blenderBatch/components/DialogJustForm.vue create mode 100644 src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue diff --git a/src/views/modules/pms/blenderBatch/components/DialogJustForm.vue b/src/views/modules/pms/blenderBatch/components/DialogJustForm.vue new file mode 100644 index 0000000..9c7bd1c --- /dev/null +++ b/src/views/modules/pms/blenderBatch/components/DialogJustForm.vue @@ -0,0 +1,717 @@ + + + + + diff --git a/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue b/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue new file mode 100644 index 0000000..5051f9f --- /dev/null +++ b/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue @@ -0,0 +1,426 @@ + + + + + + diff --git a/src/views/modules/pms/blenderBatch/config.js b/src/views/modules/pms/blenderBatch/config.js index b21614b..720c5ac 100644 --- a/src/views/modules/pms/blenderBatch/config.js +++ b/src/views/modules/pms/blenderBatch/config.js @@ -93,6 +93,20 @@ export default function () { rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { placeholder: "请输入批次重量" }, }, + { + input: true, + label: "牌号", + prop: "bomName", + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, + elparams: { placeholder: "请输入批次重量" }, + }, + { + select: [], + label: "版本号", + prop: "bomVersion", + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, + elparams: { placeholder: "请输入批次重量" }, + }, ], ], operations: [ diff --git a/src/views/modules/pms/blenderBatch/index.vue b/src/views/modules/pms/blenderBatch/index.vue index 0bc1aa7..8bb825f 100644 --- a/src/views/modules/pms/blenderBatch/index.vue +++ b/src/views/modules/pms/blenderBatch/index.vue @@ -10,7 +10,8 @@ + + diff --git a/src/views/modules/pms/blenderBatch/config.js b/src/views/modules/pms/blenderBatch/config.js index 720c5ac..fa45b42 100644 --- a/src/views/modules/pms/blenderBatch/config.js +++ b/src/views/modules/pms/blenderBatch/config.js @@ -24,8 +24,8 @@ export default function () { // { prop: "remark", label: "备注" }, // { prop: 'status', label: '状态', subcomponent: StatusComponent }, // subcomponent { prop: "description", label: "详情", subcomponent: TableTextComponent, actionName: "view-blender-batch-details" }, - { prop: 'bomName', label: '牌号' }, - { prop: 'bomVersion', label: '版本号' }, + { prop: "bomName", label: "牌号" }, + { prop: "bomVersion", label: "版本号" }, // { width: 160, prop: "createTime", label: "添加时间", filter: timeFilter }, { prop: "operations", @@ -93,6 +93,8 @@ export default function () { rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { placeholder: "请输入批次重量" }, }, + ], + [ { input: true, label: "牌号", @@ -100,6 +102,8 @@ export default function () { rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { placeholder: "请输入批次重量" }, }, + ], + [ { select: [], label: "版本号", diff --git a/src/views/modules/pms/blenderBatch/index.vue b/src/views/modules/pms/blenderBatch/index.vue index 8bb825f..f674c2e 100644 --- a/src/views/modules/pms/blenderBatch/index.vue +++ b/src/views/modules/pms/blenderBatch/index.vue @@ -4,7 +4,6 @@ :head-config="headFormConfigs" :dialog-configs="dialogConfigs" :list-query-extra="[{ blenderOrderId: id }]" - attach-list-query-extra="blenderOrderId" :trigger-update="triggerUpdateKey" /> @@ -24,7 +23,7 @@ export default { computed: { // 混料订单id id() { - console.log("computed id"); + console.log("computed id", this.$route.query.id || ""); return this.$route.query.id || ""; }, refreshPage() {