From 131f45388633a6670800926fefe17918e30b70ed Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 27 三月 2026 15:26:03 +0800
Subject: [PATCH] 军泰伟业 1.生产订单添加领料功能 2.将报工台账单的查看投入迁移到生产订单
---
src/views/productionManagement/workOrder/index.vue | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index e12fe84..f8b0594 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -128,6 +128,10 @@
<span class="info-value">{{ transferCardRowData.completeQuantity }}</span>
</div>
<div class="info-item">
+ <span class="info-label">寰呯敓浜ф暟閲�</span>
+ <span class="info-value">{{ (transferCardRowData.planQuantity || 0) - (transferCardRowData.completeQuantity || 0) }}</span>
+ </div>
+ <div class="info-item">
<span class="info-label">鑹搧鏁伴噺</span>
<span class="info-value">0</span>
</div>
@@ -224,6 +228,7 @@
downProductWorkOrder,
} from "@/api/productionManagement/workOrder.js";
import { getUserProfile, userListNoPageByTenantId } from "@/api/system/user.js";
+
import QRCode from "qrcode";
import { getCurrentInstance, reactive, toRefs } from "vue";
import FilesDia from "./components/filesDia.vue";
@@ -255,10 +260,6 @@
prop: "model"
},
{
- label: "瑙勬牸鍨嬪彿",
- prop: "drawingNumber",
- },
- {
label: "鍗曚綅",
prop: "unit",
},
@@ -274,6 +275,11 @@
{
label: "瀹屾垚鏁伴噺",
prop: "completeQuantity",
+ width: "140",
+ },
+ {
+ label: "寰呯敓浜ф暟閲�",
+ prop: "pendingQuantity",
width: "140",
},
{
@@ -333,7 +339,7 @@
clickFun: row => {
showReportDialog(row);
},
- disabled: row => row.planQuantity <= 0,
+ disabled: row => row.status === 1 || row.status === 3 || row.planQuantity <= 0,
},
],
},
@@ -406,7 +412,10 @@
productWorkOrderPage(params)
.then(res => {
tableLoading.value = false;
- tableData.value = res.data.records;
+ tableData.value = res.data.records.map(item => ({
+ ...item,
+ pendingQuantity: (item.planQuantity || 0) - (item.completeQuantity || 0)
+ }));
page.total = res.data.total;
})
.catch(() => {
@@ -497,7 +506,7 @@
const showReportDialog = row => {
currentReportRowData.value = row;
- reportForm.planQuantity = row.planQuantity;
+ reportForm.planQuantity = row.planQuantity - row.completeQuantity;
reportForm.quantity = row.quantity;
reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
reportForm.workOrderId = row.id;
@@ -641,6 +650,7 @@
justify-content: flex-start;
}
}
+
</style>
<style lang="scss">
--
Gitblit v1.9.3