From f73b2fd168df087bd4358f0739d4f2b2e9e89227 Mon Sep 17 00:00:00 2001 From: sj <1304317391@qq.com> Date: Thu, 10 Nov 2022 11:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=9A=E8=A7=84=E6=A0=BC?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=90=8C=E6=AD=A5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bxg/shop/goods/form.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/bxg/shop/goods/form.vue b/src/views/bxg/shop/goods/form.vue index dec6ebc..36362cc 100644 --- a/src/views/bxg/shop/goods/form.vue +++ b/src/views/bxg/shop/goods/form.vue @@ -134,7 +134,10 @@ {{ scope.row[scope.column.property] }}
- 删除 + 删除 + 同步 + +
@@ -646,6 +649,18 @@ export default { this.getInfo(); }, methods: { + blur(row) { + // console.log('index',row) + //将第一行的内容进行同步 + this.manyFormValidate.forEach(item=>{ + for (const ele in row){ + //图片/售价/成本价/原价/库存/重量/体积/所需积分 + if (ele=="pic"||ele=="price"||ele=="cost"||ele=="ot_price"||ele=="stock"||ele=="weight"||ele=="volume"||ele=="integral"){ + item[ele]=row[ele]; + } + } + }) + }, handleTabsEdit(targetName, action) { if (action === 'add') { let newTabName = ++this.tabIndex + '';