From 279e90bfa9e2cf184d369c791d3113fe5c362a0e Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 20 Sep 2023 17:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E9=99=84?= =?UTF-8?q?=E5=B1=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/product/index.vue | 136 +++++++++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 1 deletion(-) diff --git a/src/views/wms/product/index.vue b/src/views/wms/product/index.vue index a02e4ce..9483fac 100644 --- a/src/views/wms/product/index.vue +++ b/src/views/wms/product/index.vue @@ -73,7 +73,15 @@ - + + + @@ -286,6 +294,116 @@ 取 消 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -315,6 +433,7 @@ export default { title: "", // 是否显示弹出层 open: false, + openAttached: false, // 查询参数 queryParams: { pageNum: 1, @@ -395,6 +514,11 @@ export default { this.open = false; this.reset(); }, + // 取消按钮 + cancelAttached() { + this.openAttached = false; + this.reset(); + }, // 表单重置 reset() { this.form = { @@ -475,6 +599,16 @@ export default { this.title = "修改产品信息"; }); }, + // 查询明细按钮操作 + handleView(row){ + this.reset(); + const productId = row.productId || this.ids + getProduct(productId).then(response => { + this.form = response.data; + this.openAttached = true; + this.title = "查看产品信息"; + }); + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => {