From 0a0aaff74884a8ecab15fb581855a148f442f5c5 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 25 十二月 2025 10:12:52 +0800
Subject: [PATCH] 上下刀调机逻辑优化
---
components/mold.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index ff12f7e..569f1d4 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -832,16 +832,16 @@
}
const staffNo = this.tiaojiStaffNo.split(':')[0];
- const totalQty = okQty + badQty; // 璇曚骇鎬绘暟 = 鑹搧鏁� + 涓嶈壇鍝佹暟
+ const currentCjNum = this.order?.currentCjNum || 0;
// 璋冪敤鎶ヨ瘯浜ф暟鎺ュ彛(浣跨敤鎶ュ伐鐣岄潰鐨勬帴鍙�)
const payload = {
orderNo: this.workOrderNo,
orderId: this.orderId, // 闇�瑕佷粠宸ュ崟鏁版嵁涓幏鍙�
- bf: totalQty, // 璇曚骇鎬绘暟
+ bf: badQty, // bf浼犻�掍笉鑹搧鏁�
staffNo: staffNo,
- initCjNum: this.order?.initCjNum || 0,
- currentCjNum: this.order?.currentCjNum || 0,
+ initCjNum: currentCjNum - badQty - okQty, // initCjNum = currentCjNum - bf - 鑹搧鏁�
+ currentCjNum: currentCjNum,
type: 'tiaoji', // 鏍囪瘑涓鸿皟鏈烘姤宸�
tiaojiOkQty: okQty, // 鏂板:鑹搧鏁�
tiaojiBadQty: badQty // 鏂板:涓嶈壇鍝佹暟
--
Gitblit v1.9.3