From fb44e1b479b9193e15c8d0668121035a98c1355b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=98=8E=E6=85=A7?= <1191093413@qq.com> Date: Wed, 28 Feb 2024 14:48:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=92=8C=E6=B7=BB=E5=8A=A0=E5=BC=B9=E6=A1=86=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jianshui-ui/src/views/platform/product_info/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jianshui-ui/src/views/platform/product_info/index.vue b/jianshui-ui/src/views/platform/product_info/index.vue index 77a10fa..6aa8081 100644 --- a/jianshui-ui/src/views/platform/product_info/index.vue +++ b/jianshui-ui/src/views/platform/product_info/index.vue @@ -198,7 +198,7 @@ /> - + @@ -256,6 +256,8 @@ export default { loading: true, // 选中数组 ids: [], + //选中商品编码 + productCodes: [], // 非单个禁用 single: true, // 非多个禁用 @@ -351,6 +353,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id) + this.productCodes = selection.map(item => item.productCode) this.single = selection.length!==1 this.multiple = !selection.length }, @@ -393,7 +396,8 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除商品信息编号为"' + ids + '"的数据项?').then(function() { + const codes = row.productCode || this.productCodes; + this.$modal.confirm('是否确认删除商品编码为"' + codes + '"的数据项?').then(function() { return delProduct_info(ids); }).then(() => { this.getList();