From 301cbea766080fb65b8c6af563388b61606322f3 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 19 十月 2023 14:23:25 +0800 Subject: [PATCH] Merge branch 'dev' into songshankun/adjust-style --- src/views/warehouseManage/listingRules/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/warehouseManage/listingRules/index.vue b/src/views/warehouseManage/listingRules/index.vue index 4f68893..78e234e 100644 --- a/src/views/warehouseManage/listingRules/index.vue +++ b/src/views/warehouseManage/listingRules/index.vue @@ -122,8 +122,8 @@ const list = res.data.map((item) => { return { ...item, - areaName: item.area.jointName, - subLocation: item.location.jointName, + areaName: {label:item.area.jointName,value:item.area.id}, + subLocation: {label:item.location.jointName,value:item.location.id}, productName: item.product.name, productCategory: item.productCategory.name, isSet: false, @@ -155,7 +155,7 @@ this.isRowClick = false this.currentRowId = 0 this.countId++ - this.tableData.push({ + this.tableData.unshift({ countId: this.countId, areaId: 0, areaName: "", @@ -227,7 +227,7 @@ item.isEdit = true }) } else { - this.tableData.splice(this.tableData.length - 1, 1) + this.tableData.splice(0, 1) } this.addTitle = "鏂板缓" this.showDiscard = false -- Gitblit v1.8.0