From 057c13502ecedf49d85d47ab23f3492859f16653 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期六, 29 十一月 2025 10:43:15 +0800
Subject: [PATCH] fix: 技术文件变更时,生产就不能继续报工了。
---
src/pages/production/detail/twistDetail.vue | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/pages/production/detail/twistDetail.vue b/src/pages/production/detail/twistDetail.vue
index 0f7be88..ed3d10f 100644
--- a/src/pages/production/detail/twistDetail.vue
+++ b/src/pages/production/detail/twistDetail.vue
@@ -53,11 +53,13 @@
amount: undefined,
unAmount: undefined,
});
+const detailData = ref<any>({});
const getDetailData = async (id: string) => {
const { data } = await TwistApi.getTwistDetailById({
id: id,
});
+ detailData.value = data;
cardData.deviceModel = data.deviceModel;
cardData.model = data.model;
cardData.systemNo = data.systemNo;
@@ -84,7 +86,18 @@
};
// 澶勭悊鎶ュ伐鐐瑰嚮
-const handleReportClick = () => {
+const handleReportClick = async () => {
+ // 鍏堣姹傞獙璇佸彉鏇存帴鍙�
+ try {
+ const { code } = await TwistApi.verifyChanges({ projectId: detailData.value.projectId });
+ if (code !== 200) {
+ return;
+ }
+ } catch (error) {
+ console.error("楠岃瘉鍙樻洿澶辫触:", error);
+ return;
+ }
+
const prepareId = getPrepareId();
console.log("缁炵嚎琛ㄦ牸鎶ュ伐妫�鏌� - prepareId鍊�:", prepareId);
--
Gitblit v1.9.3