From 865abd6b3ee50f2b61ea543b57385cd3e1bc85e3 Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Tue, 4 Apr 2023 10:41:50 +0800 Subject: [PATCH] 12312 --- src/views/product/components/create.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 1425241..7d8fda4 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -132,6 +132,13 @@ export default { } }, }, + "form.productId": { + handler(n, o) { + if (n) { + + } + }, + }, "form.preQuantity": { handler(n, o) { if (n) { @@ -209,6 +216,7 @@ export default { } }, productDataList(e) { + console.log(e,'******************') this.productRowData = this.productNameList.filter((item) => item.id == e); this.form.salePrice = this.productRowData[0].salePrice2company; this.form.floorPrice = this.productRowData[0].floorPrice; @@ -245,7 +253,9 @@ export default { submit() { this.$refs["form"].validate((valid) => { if (valid) { + this.productDataList(this.form.productId); this.form.productMeasurement = this.productRowData[0].measurement; + delete this.form.id; this.judgeInterface(this.form).then((res) => { if (res.code === 20000) { this.$message.success(res.msg);