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 => {