From e3cadadc1e03e0648a079f7fc8bf8b3d0d64bc27 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 15 四月 2024 15:54:04 +0800 Subject: [PATCH] wms的出库入库调拨 3个模块新建,编辑,列表增加 主管,会计,保管员3个字段以及新建,编辑联调 --- src/views/operate/inventoryAdjustment/index.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue index 10a7700..daa9bec 100644 --- a/src/views/operate/inventoryAdjustment/index.vue +++ b/src/views/operate/inventoryAdjustment/index.vue @@ -64,9 +64,11 @@ getInventoryAdjustmentList, addInventoryAdjustment, updateInventoryAdjustment, - finishInventoryAdjustment + finishInventoryAdjustment, + getLocationProductAmount } from "@/api/operate/inventoryAdjustment" import { currentTime } from "@/common/config/index" + export default { name: "InventoryAdjustment", props: {}, @@ -314,10 +316,19 @@ console.log(item, prop) this.locationId = item.value }, - // 閫変腑浜у搧鏂规硶 - selProductClick(value, item) { + // 閫夋嫨浜у搧鏂规硶 + async selProductClick(value, item) { + console.log("鐪嬬湅杩斿洖",this.tableData) if (value === "product") { this.productId = item.productId + await getLocationProductAmount({ + locationId:this.locationId, + productId:this.productId + }).then((res)=>{ + if(res&&res.code===200){ + this.tableData[0].amount=res.data.amount||0 + } + }) } }, // 鑾峰彇褰撳墠鏃堕棿 -- Gitblit v1.8.0