From 0268af855775e33b59e1a094db573c009f93b690 Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 30 Mar 2023 11:12:29 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=89=98=E7=9B=98-=E8=BD=BD=E7=A0=96?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DialogCarPayload.vue | 18 ++++++++++-------- src/components/DialogJustForm.vue | 13 ++++++++++++- src/views/atomViews/ListViewWithHead.vue | 3 ++- src/views/modules/pms/pallet/config.js | 13 +++++++------ src/views/modules/pms/pallet/index.vue | 4 +++- 5 files changed, 34 insertions(+), 17 deletions(-) diff --git a/src/components/DialogCarPayload.vue b/src/components/DialogCarPayload.vue index 2dc955a..1309419 100644 --- a/src/components/DialogCarPayload.vue +++ b/src/components/DialogCarPayload.vue @@ -8,9 +8,11 @@ :width="configs.dialogWidth ?? '50%'" > -
- 装载详情 - 添加记录 +
+ 装载详情 + 添加记录
@@ -59,8 +61,8 @@ export default { }, updateKey: { type: Number, - default: 1 - } + default: 1, + }, // extraParams: { // type: Object, // default: () => ({}) @@ -83,9 +85,9 @@ export default { watch: { updateKey(val, oldVal) { if (val !== oldVal) { - this.getList() + this.getList(); } - } + }, }, activated() { this.refreshLayoutKey = Math.random(); @@ -120,7 +122,7 @@ export default { }; this.$http - .get(this.urls.base + `/${this.id}`, { + .get((this.urls.payload ? this.urls.payload : this.urls.base) + `/${this.id}`, { params, }) .then(({ data: res }) => { diff --git a/src/components/DialogJustForm.vue b/src/components/DialogJustForm.vue index 4856dd0..efd523a 100644 --- a/src/components/DialogJustForm.vue +++ b/src/components/DialogJustForm.vue @@ -23,7 +23,9 @@ - {{ col.label }} + {{ + col.label + }} this.$http.get("/pms/car/page", { params: { page: 1, limit: 999 } }), rules: { required: true, message: "必填项不能为空", trigger: "blur" }, elparams: { - fliterable: true + disabled: true, } }, { @@ -94,16 +94,17 @@ export default function () { prop: "pos", // options: getDictDataList(), rules: { required: true, message: "必填项不能为空", trigger: "blur" }, - // elparams: { - // fliterable: true - // } + elparams: { + // fliterable: true + + } }, { label: "查看载砖详情", button: true, - onClick: (id) => { + onClick: function (id) { // 必须用 function 形式 console.log(`查看载砖详情`, id) - this.$emit({ type: 'to-car-payload', data: id }) + this.$emit('emit-data', { type: 'to-car-payload', data: id }) } }, ], diff --git a/src/views/modules/pms/pallet/index.vue b/src/views/modules/pms/pallet/index.vue index 4b31b75..ac9e422 100644 --- a/src/views/modules/pms/pallet/index.vue +++ b/src/views/modules/pms/pallet/index.vue @@ -3,6 +3,7 @@ :table-config="tableConfig" :head-config="headFormConfigs" :dialog-configs="dialogConfigs" + :car-payload-dialog-configs="carPayloadDialogConfigs" :list-query-extra="[ /** { pos: [] } **/ ]" @@ -24,9 +25,10 @@ export default { }; }, data() { - const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this); + const { tableConfig, headFormConfigs, urls, carPayloadDialogConfigs, dialogConfigs } = initConfig.call(this); return { tableConfig, + carPayloadDialogConfigs, headFormConfigs, allUrls: urls, dialogConfigs,