diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue
index 8ab8760..f8526fb 100644
--- a/src/views/firstOrder/components/inDialog.vue
+++ b/src/views/firstOrder/components/inDialog.vue
@@ -123,24 +123,7 @@
-
-
-
-
-
-
- {{
- scope.row.type == "NY" ? "耐用品" : "易耗品"
- }}
-
-
+
+
+
+
+
+
+
+ {{
+ scope.row.type == "NY" ? "耐用品" : "易耗品"
+ }}
+
+
-
-
-
-
-
-
- {{
- scope.row.type == "NY" ? "耐用品" : "易耗品"
- }}
-
-
+
{{ scope.row.theInboundQuantity || 0 }}
+
+
+
+
+
+
+ {{
+ scope.row.type == "NY" ? "耐用品" : "易耗品"
+ }}
+
+
-
-
- {{
- scope.row.type === "NY"
- ? "耐用品"
- : scope.row.type === "YH"
- ? "易耗品"
- : ""
- }}
-
-
+
{{ scope.row.outboundQuantity }}
+
+
+ {{
+ scope.row.type === "NY"
+ ? "耐用品"
+ : scope.row.type === "YH"
+ ? "易耗品"
+ : ""
+ }}
+
+
dept.departmentId === this.inBatchForm.department
);
- const deptName = selectedDept ? selectedDept.department : "";
- // this.sizeForm.inTableData = res.data.result.map((item) => ({
- // ...item,
- // IdDemandEndld: this.inBatchForm.batchType,
- // department: deptName,
- // }));
const processedData = res.data.result.map((item) => {
// 计算剩余可出库数量:申请数量 - 已出库数量
// 如果字段不存在,默认为 0
const appQty = Number(item.applicationQuantity || 0);
const outQty = Number(item.outboundQuantity || 0);
const defaultQty = appQty - outQty;
-
+ if (this.inBatchForm.optionType === "YH"){
+ item.department = selectedDept.departmentId
+ item.departmentName = selectedDept.department
+ }
return {
...item,
IdDemandEndld: this.inBatchForm.batchType,
@@ -823,6 +822,7 @@ export default {
this.dialogVisible = true;
this.batchTableData = res.data.result;
} else {
+
this.getStatistics();
}