From a4d2e10387522f171d01c8572f8f5ef22a7dc94d Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 22 Jan 2025 16:00:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hard/hard-sb/index.vue | 4 ++-- src/views/hard/hard-sh/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/hard/hard-sb/index.vue b/src/views/hard/hard-sb/index.vue index bfbbfdc..22a58e1 100644 --- a/src/views/hard/hard-sb/index.vue +++ b/src/views/hard/hard-sb/index.vue @@ -38,7 +38,7 @@ @selection-change="selectionChangHandle" @sort-change="sortChangeHandle" > - + @@ -104,7 +104,7 @@ const getSummaries = (param: any) => { const { columns, data } = param const totalColumns = ["totalPayPrice", "totalPayCount"] const totalRow = Array.from({ length: columns.length }) - totalRow[2] = "合计" + totalRow[0] = "合计" columns.forEach((i: any, index: number) => { if (totalColumns.includes(i.property)) { const total = data diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index f5baf14..7c17e80 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -38,7 +38,7 @@ @selection-change="selectionChangHandle" @sort-change="sortChangeHandle" > - + @@ -101,7 +101,7 @@ const getSummaries = (param: any) => { const { columns, data } = param const totalColumns = ["totalPayPrice", "totalPayCount"] const totalRow = Array.from({ length: columns.length }) - totalRow[2] = "合计" + totalRow[0] = "合计" columns.forEach((i: any, index: number) => { if (totalColumns.includes(i.property)) { const total = data From b615637843ac5003ae302128e708e00aadce496f Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Wed, 22 Jan 2025 16:56:07 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B6=85=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/supermarket/smSpu/form.vue | 36 ++--- src/views/supermarket/smSpu/index.vue | 11 +- .../components/supermarketUnit/form.vue | 6 +- .../supermarketerp/supermarketSpu/form.vue | 144 +++++++----------- 4 files changed, 77 insertions(+), 120 deletions(-) diff --git a/src/views/supermarket/smSpu/form.vue b/src/views/supermarket/smSpu/form.vue index 7c8a870..e263301 100644 --- a/src/views/supermarket/smSpu/form.vue +++ b/src/views/supermarket/smSpu/form.vue @@ -11,16 +11,8 @@ - - - - - - - - + + @@ -32,7 +24,7 @@ - + {{ item.label }} @@ -42,23 +34,15 @@ - + - - - - - - - - - - - - - + + + + + @@ -90,7 +74,7 @@ const form = reactive({ description: '', sliderPicUrls: '', sort: '', - status: '', + status: '0', giveIntegral: 0, deptId: '', salesCount: '', diff --git a/src/views/supermarket/smSpu/index.vue b/src/views/supermarket/smSpu/index.vue index 2f36245..81e9d84 100644 --- a/src/views/supermarket/smSpu/index.vue +++ b/src/views/supermarket/smSpu/index.vue @@ -31,19 +31,16 @@ @queryTable="getDataList"> - - - + - + @@ -139,4 +136,4 @@ const handleDelete = async (ids: string[]) => { useMessage().error(err.msg); } }; - \ No newline at end of file + diff --git a/src/views/supermarketerp/supermarketSpu/components/supermarketUnit/form.vue b/src/views/supermarketerp/supermarketSpu/components/supermarketUnit/form.vue index 8622b09..5718064 100644 --- a/src/views/supermarketerp/supermarketSpu/components/supermarketUnit/form.vue +++ b/src/views/supermarketerp/supermarketSpu/components/supermarketUnit/form.vue @@ -30,7 +30,11 @@ - + + + 注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一瓶矿泉水内装填'1',为售卖的最小基础单位,如果想按箱卖,在继续添加包装单位为箱,内装为24 + diff --git a/src/views/supermarketerp/supermarketSpu/form.vue b/src/views/supermarketerp/supermarketSpu/form.vue index 87bc001..551fb97 100644 --- a/src/views/supermarketerp/supermarketSpu/form.vue +++ b/src/views/supermarketerp/supermarketSpu/form.vue @@ -72,21 +72,53 @@ --> - - - - - + + + + + + + + + + + + + + + 注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一箱矿泉水内装填'24',是按整箱售卖,如果想拆开零售,再继续添加包装单位为瓶,内装为1 + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -96,86 +128,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + @@ -256,7 +223,7 @@ const form = reactive({ giveIntegral: 0, specification: "", origin: "", - packingQuantity: 0, + packageNum: 0, retailPrice: 0, purchasePrice: 0, supplierId: "", @@ -291,6 +258,11 @@ const dataRules = { supplierId: [{ required: true, message: "请选择货商", trigger: "blur" }], smErpUnitEntityList: [{ required: true, message: "请添加包装单位", trigger: "change" }], smErpAuxiliaryCodeEntityList: [{ required: true, message: "请添加辅助条码", trigger: "change" }], + // costPrice: [{ required: true, message: "成本价不能为空", trigger: "blur" }], + retailPrice: [{ required: true, message: "零售价不能为空", trigger: "blur" }], + unit: [{ required: true, message: "单位不能为空", trigger: "blur" }], + packageNum: [{ required: true, message: "内装数不能为空", trigger: "blur" }], + } const { supermarket_nature, status } = useDict("supermarket_nature", "status") const categoryOptions = ref([]) // 商品分类的下拉选项 From 8292325f02b3ff7cc3eb31f57c9d26d94e4309ed Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Wed, 22 Jan 2025 18:22:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B6=85=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supermarketerp/supermarketSpu/form.vue | 40 +++++++------------ 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/src/views/supermarketerp/supermarketSpu/form.vue b/src/views/supermarketerp/supermarketSpu/form.vue index 551fb97..467c2f6 100644 --- a/src/views/supermarketerp/supermarketSpu/form.vue +++ b/src/views/supermarketerp/supermarketSpu/form.vue @@ -67,22 +67,7 @@ - - - - - - - - - - - @@ -92,24 +77,29 @@ - + + + + + + - + - + - + @@ -128,6 +118,11 @@ + + + + + @@ -138,11 +133,6 @@ - - - - - @@ -217,7 +207,7 @@ const form = reactive({ picUrl: "", sliderPicUrls: "", sort: 0, - status: "", + status: "0", costPrice: 0, stock: 0, giveIntegral: 0,
注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一瓶矿泉水内装填'1',为售卖的最小基础单位,如果想按箱卖,在继续添加包装单位为箱,内装为24
注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一箱矿泉水内装填'24',是按整箱售卖,如果想拆开零售,再继续添加包装单位为瓶,内装为1