From 1df948e577f23bc3afe9ba7c9b09ed582c0a9754 Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 23 Mar 2023 10:47:41 +0800 Subject: [PATCH] add CarPayloadDialog --- src/components/DialogCarPayload.vue | 66 +++++----- src/mocks/index.js | 11 +- src/views/atomViews/ListViewWithHead.vue | 55 +++++--- src/views/modules/pms/carPayload/config.js | 117 ++++++++++++++++++ src/views/modules/pms/carPayload/index.vue | 32 +++++ .../pms/currentCarLocation/carPayload.vue | 28 +++++ .../modules/pms/currentCarLocation/config.js | 44 ++----- 7 files changed, 266 insertions(+), 87 deletions(-) create mode 100644 src/views/modules/pms/carPayload/config.js create mode 100644 src/views/modules/pms/carPayload/index.vue create mode 100644 src/views/modules/pms/currentCarLocation/carPayload.vue diff --git a/src/components/DialogCarPayload.vue b/src/components/DialogCarPayload.vue index a64f411..6c3ea10 100644 --- a/src/components/DialogCarPayload.vue +++ b/src/components/DialogCarPayload.vue @@ -9,14 +9,14 @@ + - - -
- - 取消 -
+ + + diff --git a/src/views/modules/pms/currentCarLocation/carPayload.vue b/src/views/modules/pms/currentCarLocation/carPayload.vue new file mode 100644 index 0000000..5760791 --- /dev/null +++ b/src/views/modules/pms/currentCarLocation/carPayload.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/views/modules/pms/currentCarLocation/config.js b/src/views/modules/pms/currentCarLocation/config.js index 015ab4e..821b765 100644 --- a/src/views/modules/pms/currentCarLocation/config.js +++ b/src/views/modules/pms/currentCarLocation/config.js @@ -62,38 +62,20 @@ export default function () { * 此为后者的配置: */ const dialogJustFormConfigs = { + carPayloadDialog: true, clickModalToClose: true, - form: { - rows: [ - [ - { - input: true, - label: "窑车号", - prop: "code", - rules: { required: true, message: "必填项不能为空", trigger: "blur" }, - elparams: { placeholder: "请输入窑车号" }, - }, - // { - // input: true, - // label: "编码", - // prop: "code", - // rules: { required: true, message: "必填项不能为空", trigger: "blur" }, - // elparams: { placeholder: "请输入料仓编码" }, - // }, - ], - // [{ component: QuillRichInput, label: "描述信息", prop: "description" }], - [{ - richInput: true, label: "描述信息", prop: "description" - }], - [{ input: true, label: "备注", prop: "remark", elparams: { placeholder: "备注" } }], - ], - operations: [ - { name: "add", label: "保存", type: "primary", permission: "pms:car:save", showOnEdit: false }, - { name: "update", label: "更新", type: "primary", permission: "pms:car:update", showOnEdit: true }, - { name: "reset", label: "重置", type: "warning", showAlways: true }, - // { name: 'cancel', label: '取消', showAlways: true }, - ], - }, + tableConfig: { + table: null, + column: [ + // tableProps + { prop: "name", label: "名称" }, + { prop: "code", label: "编码" }, + { prop: "sumqty", label: " 配方总重量" }, + { prop: "shortDesc", label: "物料销售文本短描述" }, + { prop: "description", label: "物料销售文本描述" }, + { prop: "remark", label: "备注" }, + ] + } }; // 备注:弹窗弹出的时间和网速有关......