From ae67578b19ae1551c904f36f00a13b5b143999ab Mon Sep 17 00:00:00 2001 From: "huojin\\hj" <982011> Date: Thu, 24 Jul 2025 14:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=99=E6=83=B3=E7=9B=91=E6=8E=A7=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E5=88=97=E5=90=84=E7=B1=BB=E5=9E=8B=E5=9C=A8?= =?UTF-8?q?=E5=BA=93=E6=80=BB=E6=95=B0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/duochaxun/Liaoxiangjiankong.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/wms-vue/src/components/duochaxun/Liaoxiangjiankong.vue b/wms-vue/src/components/duochaxun/Liaoxiangjiankong.vue index 4f1ab39..67180fb 100644 --- a/wms-vue/src/components/duochaxun/Liaoxiangjiankong.vue +++ b/wms-vue/src/components/duochaxun/Liaoxiangjiankong.vue @@ -143,6 +143,17 @@ + + + + {{ getInStockTotal(scope.row) }} + + + + total + (Number(row.mzk) || 0), 0); let kzkSum = this.tableData.reduce((total, row) => total + (Number(row.kzk) || 0), 0); return 30500 - mzkSum - kzkSum; - } + }, + }, mounted: function () { this.queryUser(); @@ -394,6 +406,10 @@ export default { } } // 其余情况默认 + }, + getInStockTotal(row) { + // 计算各类型在库总数 + return (Number(row.mzk) || 0) + (Number(row.kzk) || 0); } } }