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 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..467c2f6 100644 --- a/src/views/supermarketerp/supermarketSpu/form.vue +++ b/src/views/supermarketerp/supermarketSpu/form.vue @@ -67,26 +67,48 @@ - - - - - - + + + + + 注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一箱矿泉水内装填'24',是按整箱售卖,如果想拆开零售,再继续添加包装单位为瓶,内装为1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -96,86 +118,21 @@ - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -250,13 +207,13 @@ const form = reactive({ picUrl: "", sliderPicUrls: "", sort: 0, - status: "", + status: "0", costPrice: 0, stock: 0, giveIntegral: 0, specification: "", origin: "", - packingQuantity: 0, + packageNum: 0, retailPrice: 0, purchasePrice: 0, supplierId: "", @@ -291,6 +248,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([]) // 商品分类的下拉选项
注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一瓶矿泉水内装填'1',为售卖的最小基础单位,如果想按箱卖,在继续添加包装单位为箱,内装为24
注:内装数据必须为该商品的最小售卖的基本单位,否则无法完成库存数量转换,影响erp库存自动扣减操作。 + 例如:一箱矿泉水内装填'24',是按整箱售卖,如果想拆开零售,再继续添加包装单位为瓶,内装为1