From fa523e19c4e89c3a08aff41fe5acb57392a0f0aa Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 18 十二月 2023 14:57:43 +0800 Subject: [PATCH] 修改库存调整路由跳转,重订货规则数量设置默认值,样式调整 --- src/components/makepager/CommonFormTableView.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 4cfa286..fae8e86 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -118,6 +118,7 @@ :controls="false" size="mini" style="width: 100%; margin-right: 5px" + :min="item.prop==='minInventory'?0:1" @change=" (val) => { commonInputChange(val, item.prop, scope.row) @@ -574,6 +575,7 @@ }, // 浣嶇疆 async getLocationList() { + this.locacionName = "" await getLocationList({ // keyword: "", jointName: this.initialPosition ? this.initialPosition : null, @@ -661,7 +663,16 @@ } else { let selIndex = 0 this.tableList.tableData.map((ite, index) => { - if (ite.id === row.id) { + // ite.id 鏄笂鏋惰鍒欑殑, ite.productId鏄簱瀛樿皟鏁寸殑 + if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) { + selIndex = index + ite.productId = item.id + ite.productName = item.name + ite.categoryId = item.categoryId + ite.productCategory = item.categoryName + ite.amount = item.amount + ite.unit = item.unit + }else if(ite.productId===row.productId){ selIndex = index ite.productId = item.id ite.productName = item.name @@ -872,7 +883,9 @@ }, // 琛岀偣鍑� tableRowClick(row) { - this.locacionName = row.location.name + if (this.isReorder) { + this.locacionName = row.location.name + } this.$emit("tableRowClick", row, row.index) }, // 鍗曢�夎鐩稿叧 -- Gitblit v1.8.0