From 0c742784ffbf071e968fc6f2a980849b3e5e6c05 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 18 十月 2025 09:56:20 +0800
Subject: [PATCH] BUG修改
---
components/mold.vue | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index cb66288..f719e1b 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -444,24 +444,24 @@
}
},
// 鑷姩甯﹀嚭宸ュ崟鍒�鍏蜂俊鎭�
- async fetchDefaultToolFromWorkOrder() {
- if (!this.workOrderNo) return;
- try {
- const res = await this.$post({
- url: '/Womdaa/GetWomdaasByShow',
- data: JSON.stringify({ daa001: this.workOrderNo }),
- headers: { 'Content-Type': 'application/json' }
- });
- if (res.status === 0 && Array.isArray(res.data?.tbBillList) && res.data.tbBillList.length > 0) {
- const tool = res.data.tbBillList[0];
- this.selectedToolNo = tool.cutterId || tool.cutteR_ID || '';
- this.toolName = tool.cutterName || tool.cutteR_NAME || '';
- this.toolModel = tool.cutterModel || tool.cutteR_MODEL || '';
- }
- } catch (e) {
- console.warn('鑷姩甯﹀嚭宸ュ崟鍒�鍏峰け璐�', e);
- }
- },
+ async fetchDefaultToolFromWorkOrder() {
+ if (!this.machineNo) return; // 娉ㄦ剰锛氳繖閲岀敤鏈哄彴鍙�
+ try {
+ const res = await this.$post({
+ url: '/Womdaa/GetWomdaasByShow',
+ data: JSON.stringify({ machineNo: this.machineNo }),
+ headers: { 'Content-Type': 'application/json' }
+ });
+ if (res.status === 0 && Array.isArray(res.data?.tbBillList) && res.data.tbBillList.length > 0) {
+ const tool = res.data.tbBillList[0];
+ this.selectedToolNo = tool.cutterId || tool.cutteR_ID || '';
+ this.toolName = tool.cutterName || tool.cutteR_NAME || '';
+ this.toolModel = tool.cutterModel || tool.cutteR_MODEL || '';
+ }
+ } catch (e) {
+ console.warn('鑷姩甯﹀嚭宸ュ崟鍒�鍏峰け璐�', e);
+ }
+ },
formatDateTime(dateTimeStr) {
if (!dateTimeStr) return '';
try {
--
Gitblit v1.9.3