From 185d675abf18f4c57fe660332271ba78045d88d7 Mon Sep 17 00:00:00 2001 From: 15386982806 Date: Tue, 16 Jan 2024 10:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E9=A2=84=E8=AD=A6=E8=BF=98?= =?UTF-8?q?=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/views/goods/goods-seller/goods.vue | 12 ++--- .../goods/goods-seller/goodsOperationSec.vue | 53 ++++++++++--------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index 63e4928b..6edda603 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -162,12 +162,12 @@ - -
-
- - - + + + + + +
diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index 73da8c5d..4ba576f9 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -213,11 +213,11 @@ overflow-x: hidden; } "> - + + + + + @@ -644,7 +644,7 @@ export default { "price", "weight", "quantity", - "alertQuantity", + // "alertQuantity", "specId", "specValueId", ], @@ -1058,7 +1058,7 @@ export default { price: e.price, // cost: e.cost, quantity: e.quantity, - alertQuantity: e.alertQuantity, + // alertQuantity: e.alertQuantity, weight: e.weight, }; e.specList.forEach((u) => { @@ -1362,7 +1362,7 @@ export default { find.sn && (find.sn = ""); // find.cost && (find.cost = ""); find.quantity && (find.quantity = ""); - find.alertQuantity && (find.alertQuantity = ""); + // find.alertQuantity && (find.alertQuantity = ""); find.weight && (find.weight = ""); this.skuTableData.splice(this.skuTableData.length, 0, find); @@ -1377,7 +1377,7 @@ export default { find.sn && (find.sn = ""); // find.cost && (find.cost = ""); find.quantity && (find.quantity = ""); - find.alertQuantity && (find.alertQuantity = ""); + // find.alertQuantity && (find.alertQuantity = ""); find.weight && (find.weight = ""); this.skuTableData.splice(index, 0, find); @@ -1464,10 +1464,10 @@ export default { title: "库存", slot: "quantity", }, - { - title: "库存预警", - slot: "alertQuantity", - }, + // { + // title: "库存预警", + // slot: "alertQuantity", + // }, { title: "货号", slot: "sn", @@ -1514,7 +1514,7 @@ export default { id: skus[index].id, sn: skus[index].sn, quantity: skus[index].quantity, - alertQuantity: skus[index].alertQuantity, + // alertQuantity: skus[index].alertQuantity, cost: 1, price: skus[index].price, [spec[0].name]: specItem.value, @@ -1596,18 +1596,19 @@ export default { this.validatatxt = "请输入0~99999999之间的整数"; return; } - } else if (item === "alertQuantity") { - if ( - !/^[0-9]\d*$/.test(row[item]) || - parseInt(row[item]) < 0 || - parseInt(row[item]) > 99999999 - ) { - // 库存预警 - this.validateError.push([index, item]); - this.validatatxt = "请输入0~99999999之间的整数"; - return; - } } + // else if (item === "alertQuantity") { + // if ( + // !/^[0-9]\d*$/.test(row[item]) || + // parseInt(row[item]) < 0 || + // parseInt(row[item]) > 99999999 + // ) { + // // 库存预警 + // this.validateError.push([index, item]); + // this.validatatxt = "请输入0~99999999之间的整数"; + // return; + // } + // } // else if (item === "cost" || item === "price") { // if ( // !regular.money.test(row[item]) || @@ -1700,7 +1701,7 @@ export default { cost: 1, price: sku.price, quantity: sku.quantity, - alertQuantity: sku.alertQuantity, + // alertQuantity: sku.alertQuantity, sn: sku.sn, images: sku.images, };