From 8d7d3c8ea1acccbeabf935c213e6cce0e705fe2d Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 11 Jul 2024 10:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoicing/components/addConsTakin.vue | 407 ++++++++++-------- src/views/product/add_shop.vue | 32 +- 2 files changed, 256 insertions(+), 183 deletions(-) diff --git a/src/views/invoicing/components/addConsTakin.vue b/src/views/invoicing/components/addConsTakin.vue index ce33793..fd9edd0 100644 --- a/src/views/invoicing/components/addConsTakin.vue +++ b/src/views/invoicing/components/addConsTakin.vue @@ -1,36 +1,68 @@ - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - - - - - - ¥{{ formatDecimal(scope.row.price) }} - - - - - - - ¥{{ formatDecimal(scope.row.lpAmount) }} - - - - - - - - - + + + ¥{{ formatDecimal(scope.row.price) }} + + + + + + + ¥{{ formatDecimal(scope.row.lpAmount) }} + + + + + + + + + \ No newline at end of file + diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index 7ea4564..381ceec 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -222,6 +222,14 @@ > + + + + + + + + 起售数量 + + + + + + 库存数量 @@ -466,7 +486,7 @@ @@ -657,7 +677,8 @@ export default { originPrice: 0, stockNumber: 0, firstShared: 0, - barCode: `${localStorage.getItem("shopId")}${dayjs().valueOf()}` + barCode: `${localStorage.getItem("shopId")}${dayjs().valueOf()}`, + suit: 1 }, tableAddShopIndex: null, isEditor: false, @@ -992,10 +1013,15 @@ export default { this.form.skuList = newarr.map(item => { this.originSkuList.map(val => { if (item.specSnap == val.specSnap) { - for (let key in item) { + for (let key in val) { item[key] = val[key]; } item.id = val.id; + } else { + item.productId = this.$route.query.goods_id; + item.realSalesNumber = ""; + item.shopId = localStorage.getItem("shopId"); + item.warnLine = ""; } });