From 250654511b963388636e31af0770bbf4ddf1aba6 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 28 Sep 2023 14:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=8F=AF=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/addGoods/price.vue | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/pages/product/addGoods/price.vue b/pages/product/addGoods/price.vue index 5d413a9..0dba6c6 100644 --- a/pages/product/addGoods/price.vue +++ b/pages/product/addGoods/price.vue @@ -44,6 +44,13 @@ type: 'digit', model: 'price', holder: '请填写售价' + }, { + id: 10, + label: '库存', + type: 'digit', + model: 'stock', + holder: '请填写库存', + disable: true }], moreThanList: [{ id: 2, @@ -141,16 +148,16 @@ } }) } - if (!this.$props.product_id) { - this.formList.push({ - id: 10, - label: '库存', - type: 'digit', - model: 'stock', - holder: '请填写库存', - disable: true - }) - } + // if (!this.$props.product_id) { + // this.formList.push({ + // id: 10, + // label: '库存', + // type: 'digit', + // model: 'stock', + // holder: '请填写库存', + // disable: true + // }) + // } }, destroyed() { setStorage('singleSpecification', {}); @@ -162,7 +169,8 @@ }, spliceMoreThan() { this.moreThanFlag = true; - this.formList.splice(!this.$props.product_id?2:1, this.formList.length); + // this.formList.splice(!this.$props.product_id ? 2 : 1, this.formList.length); + this.formList.splice(2, this.formList.length); }, input(val) { this.singleSpecification = val