From 2cd0feba2a9eee02597ffc9cf0e9d1166451aa4c Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Fri, 10 Oct 2025 11:29:16 +0800
Subject: [PATCH] =?UTF-8?q?2025-10-10=20=E9=A2=86=E6=96=99=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7=E7=AE=A1=E7=90=86=E7=9A=84=E6=9D=90=E6=96=99=E6=98=8E?=
=?UTF-8?q?=E7=BB=86=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/orderIssure/soIssueNotify.js | 1 +
.../soIssueNotify/searchIssureNotify.vue | 127 +++++++++---------
2 files changed, 67 insertions(+), 61 deletions(-)
diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js
index e226ace..289b133 100644
--- a/src/api/orderIssure/soIssueNotify.js
+++ b/src/api/orderIssure/soIssueNotify.js
@@ -53,3 +53,4 @@ export const saveIssueNoOrderDetail = data => createAPI(`/orderIssure/issureNoti
export const updateNotifyDetail = data => createAPI(`/orderIssure/issureNotify/updateNotifyDetail`,'post',data)
+export const saveSOIssueNotifyOrderMateria = data => createAPI(`/orderIssure/issureNotify/saveSOIssueNotifyOrderMateria`,'post',data)
diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
index 70170e5..f09db08 100644
--- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
+++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
@@ -202,20 +202,56 @@
+ label="调机用量">
- scope.row.qtyToIssue = value.match(/^(\d+\.?\d*|\.\d+)$/) ? value : ''"
+ { scope.row.componentScrap = value.match(/^(\d+\.?\d*|\.\d+)$/) ? value : ''; updateQtyToIssue(scope.row); }"
style="height: 11px; width: 98%;">
- {{calculateQtyToIssue(scope.row)}}
+ {{scope.row.componentScrap}}
+
+
+
+
+
+
+ { scope.row.firstInspectionQty = value.match(/^(\d+\.?\d*|\.\d+)$/) ? value : ''; updateQtyToIssue(scope.row); }"
+ style="height: 11px; width: 98%;">
+
+
+
+ {{scope.row.firstInspectionQty}}
+
+
+
+
+
+
+ { scope.row.standardDosage = value.match(/^(\d+\.?\d*|\.\d+)$/) ? value : ''; updateQtyToIssue(scope.row); }"
+ style="height: 11px; width: 98%;">
+
+
+
+ {{scope.row.standardDosage}}
@@ -1006,7 +1042,8 @@
, xiadaNotify
, editNotifyMaterial
, deleteNotify,
- updateNotifyDetail
+ updateNotifyDetail,
+ saveSOIssueNotifyOrderMateria
} from "@/api/orderIssure/soIssueNotify.js"
import {
searchShopOrderByPaging
@@ -1527,26 +1564,7 @@
status: true,
fixed: '',
columnWidth: 100
- },{
- userId: this.$store.state.user.name,
- functionId: 701002,
- serialNumber: '701002Table3NeedDate',
- tableId: "701002Table3",
- tableName: "申请单材料明细表",
- columnProp: "needDate",
- headerAlign: "center",
- align: "center",
- columnLabel: "需求时间",
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 110
},
- ],
- columnList3s:[
{
userId: this.$store.state.user.name,
functionId: 701002,
@@ -1564,50 +1582,37 @@
status: true,
fixed: '',
columnWidth: 80
- },{
- userId: this.$store.state.user.name,
- functionId: 701002,
- serialNumber: '701002Table3ComponentScrap',
- tableId: "701002Table3",
- tableName: "申请单材料明细表",
- columnProp: "componentScrap",
- headerAlign: "center",
- align: "right",
- columnLabel: "调机量",
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 80
- },{
+ },
+ {
userId: this.$store.state.user.name,
functionId: 701002,
- serialNumber: '701002Table3FirstInspectionQty',
+ serialNumber: '701002Table3NeedDate',
tableId: "701002Table3",
tableName: "申请单材料明细表",
- columnProp: "firstInspectionQty",
+ columnProp: "needDate",
headerAlign: "center",
- align: "right",
- columnLabel: "首检量",
+ align: "center",
+ columnLabel: "需求时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
- },{
+ columnWidth: 110
+ },
+ ],
+ columnList3s:[
+ {
userId: this.$store.state.user.name,
functionId: 701002,
- serialNumber: '701002Table3StandardDosage',
+ serialNumber: '701002Table3QtyToIssue',
tableId: "701002Table3",
tableName: "申请单材料明细表",
- columnProp: "standardDosage",
+ columnProp: "qtyToIssue",
headerAlign: "center",
align: "right",
- columnLabel: "标准用量",
+ columnLabel: "申请数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -3677,6 +3682,15 @@
return (componentScrap + firstInspectionQty + standardDosage).toFixed(2);
},
+ // 更新申请数量
+ updateQtyToIssue(row) {
+ const componentScrap = parseFloat(row.componentScrap) || 0;
+ const firstInspectionQty = parseFloat(row.firstInspectionQty) || 0;
+ const standardDosage = parseFloat(row.standardDosage) || 0;
+ // 使用 $set 确保响应式更新
+ this.$set(row, 'qtyToIssue', (componentScrap + firstInspectionQty + standardDosage).toFixed(2));
+ },
+
// 打开新增材料模态框
addMaterialModal() {
if (!this.currentRow || !this.currentRow.notifyNo) {
@@ -3768,15 +3782,6 @@
})
},
- // 获取下一个申请单序号
- getNextItemNo() {
- if (this.dataList3.length === 0) {
- return 1;
- }
- const maxItemNo = Math.max(...this.dataList3.map(item => item.itemNo || 0));
- return maxItemNo + 1;
- },
-
// 获取基础数据列表S
getBaseList (val, type) {
this.tagNo = val