From c247462e015367027091761a66118156794963a6 Mon Sep 17 00:00:00 2001 From: zhangli <2235006734@qq.com> Date: Wed, 25 Oct 2023 19:52:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=B8=8B=E6=9E=B6=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../downShelfStrategy/AddForm copy.vue | 523 ++++++++++++ .../strategy/downShelfStrategy/AddForm.vue | 746 ++++++++++-------- .../wms/strategy/downShelfStrategy/index.vue | 89 ++- .../wms/strategy/upShelfStrategy/AddForm.vue | 9 +- 4 files changed, 1028 insertions(+), 339 deletions(-) create mode 100644 src/views/wms/strategy/downShelfStrategy/AddForm copy.vue diff --git a/src/views/wms/strategy/downShelfStrategy/AddForm copy.vue b/src/views/wms/strategy/downShelfStrategy/AddForm copy.vue new file mode 100644 index 000000000..419a7ef11 --- /dev/null +++ b/src/views/wms/strategy/downShelfStrategy/AddForm copy.vue @@ -0,0 +1,523 @@ + + + + + + + 规则 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 规则条件 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 规则配置 + + + + + + + + + + + + + + + + + + + {{ + item.label }} + + + + + + + + + + {{ item.label + }} + + + + + + + + + + {{ item.label + }} + + + + + + + + + + {{ item.label + }} + + + + + + + + + + {{ item.label + }} + + + + + + + + + + + + + + + + {{ + item.label + }} + + + + + + + + + + + + + + + + + + + + 小时 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/wms/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/strategy/downShelfStrategy/AddForm.vue index 419a7ef11..468ee08b1 100644 --- a/src/views/wms/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/strategy/downShelfStrategy/AddForm.vue @@ -1,15 +1,15 @@ - + - - - 规则 - + + + + 规则 - - + + @@ -18,8 +18,8 @@ - - + + @@ -33,240 +33,211 @@ - - - - - 规则条件 - - - - - - - + + + + + + 规则条件 + + + + + + - - + + - - + + - - - - - + + + - - + + - - + + - - - - - - - + + - - + + + + + + + + - - + + + - - - - - - + + + + - - + + - - - - - - + + + + - - + + - - - - - - - - - + + + + + - - - - - 规则配置 - - - - - - - + + + + + 规则配置 + + + + + + - - + + - - - - + + - - {{ - item.label }} + + {{ + cur.label }} - - - - + + - - {{ item.label - }} + + {{ + cur.label }} - - - - + + - - {{ item.label - }} + + {{ + cur.label }} - - - - + + - - {{ item.label - }} + + {{ + cur.label }} - - - - + + - - {{ item.label - }} + + {{ + cur.label }} - - - - - + + + - - - - + + - - {{ - item.label - }} + + {{ cur.label }} - - - - - + + + + - - - - - + + + - - - - - 小时 + + + 小时 - - - - - + + + - - - - - + + + - - - - - + + + - - + + @@ -276,7 +247,17 @@ diff --git a/src/views/wms/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/strategy/upShelfStrategy/AddForm.vue index c365c722a..711e4873f 100644 --- a/src/views/wms/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/strategy/upShelfStrategy/AddForm.vue @@ -231,7 +231,7 @@ const formData = ref({ ], configuration: [ // 仓库 - { ParamCode: 'WarehouseCode', Value: "" }, + { ParamCode: 'LocationCode', Value: "" }, // 优先空库位 { ParamCode: 'EmptyLocationFirst', Value: false }, // 优先非空库位 @@ -323,22 +323,19 @@ const changeCalculation = () => { const getFormWarehouseList = async () => { options.warehouseList = await getWarehouseList(); } -getFormWarehouseList() // 获取库区列表 const getFormAreaList = async () => { options.warehouseList = await getAreaList(); } -getFormWarehouseList() // 获取库位组列表 const getFormLocationgrouList = async () => { options.warehouseList = await getLocationgroupList(); } -getFormWarehouseList() // 获取库位列表 const getFormLocationList = async () => { options.warehouseList = await getLocationList(); } -getFormWarehouseList() +getFormLocationList() // 选择仓库/库位/库位组/库区 const changeWarehouse = (e) => { formData.value.configuration[0].Value = '' @@ -463,7 +460,7 @@ const resetForm = () => { configuration: [ // 仓库 - { ParamCode: 'WarehouseCode', Value: "" }, + { ParamCode: 'LocationCode', Value: "" }, // 优先空库位 { ParamCode: 'EmptyLocationFirst', Value: false }, // 优先非空库位 From 0a78c84bdc44d9a0403e3ad4bac23d6b640f0155 Mon Sep 17 00:00:00 2001 From: zhangli <2235006734@qq.com> Date: Thu, 26 Oct 2023 09:24:44 +0800 Subject: [PATCH 2/3] 1 --- src/views/wms/purchaseclaimRequestMain/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wms/purchaseclaimRequestMain/index.vue b/src/views/wms/purchaseclaimRequestMain/index.vue index b302c23a9..25429df70 100644 --- a/src/views/wms/purchaseclaimRequestMain/index.vue +++ b/src/views/wms/purchaseclaimRequestMain/index.vue @@ -272,7 +272,8 @@ const handleDeleteTable = (item, index) => { // 主子数据 提交 const submitForm = async (formType, data) => { - data.details = tableData.value // 拼接子表数据参数 + data.subList = tableData.value // 拼接子表数据参数 + console.log(data); if (formType === 'create') { await PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain(data) message.success(t('common.createSuccess')) From 81cb2288fc7377a745287346e37b30224510654b Mon Sep 17 00:00:00 2001 From: zhangli <2235006734@qq.com> Date: Thu, 26 Oct 2023 09:33:57 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/strategy/downShelfStrategy/AddForm.vue | 4 ++-- src/views/wms/strategy/downShelfStrategy/index.vue | 2 +- src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue | 4 ++-- src/views/wms/strategy/purchaseReceiptStrategy/index.vue | 2 +- src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue | 4 ++-- src/views/wms/strategy/supplieDeliveryStrategy/index.vue | 2 +- src/views/wms/strategy/upShelfStrategy/AddForm.vue | 4 ++-- src/views/wms/strategy/upShelfStrategy/index.vue | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/wms/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/strategy/downShelfStrategy/AddForm.vue index 468ee08b1..8149ed38e 100644 --- a/src/views/wms/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/strategy/downShelfStrategy/AddForm.vue @@ -445,7 +445,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.name = data.name formData.value.description = data.description formData.value.priority = data.priority - formData.value.status = data.status == 1 ? true : false + formData.value.status = data.status == 0 ? true : false if (data.condition) { formData.value.condition = JSON.parse(data.condition) } @@ -491,7 +491,7 @@ const submitForm = async () => { name: formData.value.name,//名称 description: formData.value.description,//描述 priority: formData.value.priority,//优先级 - status: formData.value.status ? 1 : 0,//状态 + status: formData.value.status ? 0 : 1,//状态 //规则条件集合 condition: JSON.stringify(formData.value.condition), configuration: JSON.stringify(formData.value.configuration) diff --git a/src/views/wms/strategy/downShelfStrategy/index.vue b/src/views/wms/strategy/downShelfStrategy/index.vue index 5db913e63..dd5f89a05 100644 --- a/src/views/wms/strategy/downShelfStrategy/index.vue +++ b/src/views/wms/strategy/downShelfStrategy/index.vue @@ -12,7 +12,7 @@ - + diff --git a/src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue b/src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue index 563ee2b05..a1d5626dc 100644 --- a/src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue +++ b/src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue @@ -243,7 +243,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.name = data.name formData.value.description = data.description formData.value.priority = data.priority - formData.value.status = data.status == 1 ? true : false + formData.value.status = data.status == 0 ? true : false if (data.condition) { formData.value.condition = JSON.parse(data.condition) } @@ -277,7 +277,7 @@ const submitForm = async () => { name: formData.value.name,//名称 description: formData.value.description,//描述 priority: formData.value.priority,//优先级 - status: formData.value.status ? 1 : 0,//状态 + status: formData.value.status ? 0 : 1,//状态 //规则条件集合 condition: JSON.stringify(formData.value.condition), configuration: JSON.stringify(formData.value.configuration) diff --git a/src/views/wms/strategy/purchaseReceiptStrategy/index.vue b/src/views/wms/strategy/purchaseReceiptStrategy/index.vue index d7be6760b..683a6a00c 100644 --- a/src/views/wms/strategy/purchaseReceiptStrategy/index.vue +++ b/src/views/wms/strategy/purchaseReceiptStrategy/index.vue @@ -12,7 +12,7 @@ - + diff --git a/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue b/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue index ac0a9f41e..8300007cb 100644 --- a/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue +++ b/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue @@ -302,7 +302,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.name = data.name formData.value.description = data.description formData.value.priority = data.priority - formData.value.status = data.status == 1 ? true : false + formData.value.status = data.status == 0 ? true : false if (data.condition) { formData.value.condition = JSON.parse(data.condition) } @@ -336,7 +336,7 @@ const submitForm = async () => { name: formData.value.name,//名称 description: formData.value.description,//描述 priority: formData.value.priority,//优先级 - status: formData.value.status ? 1 : 0,//状态 + status: formData.value.status ? 0 : 1,//状态 //规则条件集合 condition: JSON.stringify(formData.value.condition), configuration: JSON.stringify(formData.value.configuration) diff --git a/src/views/wms/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/strategy/supplieDeliveryStrategy/index.vue index 7e15a84f1..21ff30d3b 100644 --- a/src/views/wms/strategy/supplieDeliveryStrategy/index.vue +++ b/src/views/wms/strategy/supplieDeliveryStrategy/index.vue @@ -12,7 +12,7 @@ - + diff --git a/src/views/wms/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/strategy/upShelfStrategy/AddForm.vue index 711e4873f..74cbb3d89 100644 --- a/src/views/wms/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/strategy/upShelfStrategy/AddForm.vue @@ -366,7 +366,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.name = data.name formData.value.description = data.description formData.value.priority = data.priority - formData.value.status = data.status == 1 ? true : false + formData.value.status = data.status == 0 ? true : false if (data.condition) { formData.value.condition = JSON.parse(data.condition) } @@ -413,7 +413,7 @@ const submitForm = async () => { name: formData.value.name,//名称 description: formData.value.description,//描述 priority: formData.value.priority,//优先级 - status: formData.value.status ? 1 : 0,//状态 + status: formData.value.status ? 0 : 1,//状态 //规则条件集合 condition: JSON.stringify(formData.value.condition), configuration: JSON.stringify(formData.value.configuration) diff --git a/src/views/wms/strategy/upShelfStrategy/index.vue b/src/views/wms/strategy/upShelfStrategy/index.vue index 3f4f1d24d..30126820f 100644 --- a/src/views/wms/strategy/upShelfStrategy/index.vue +++ b/src/views/wms/strategy/upShelfStrategy/index.vue @@ -12,7 +12,7 @@ - +