快乐的昕的电脑
2025-10-18 a746a80c07cc6d1e4bfc2f85ebb61e038b7d986e
components/mold.vue
@@ -458,13 +458,18 @@
                  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 || '';
                        const order = res.data.tbBillList[0];
                        this.selectedToolNo = order.cutterId || order.cutteR_ID || '';
                        this.toolName = order.cutterName || order.cutteR_NAME || '';
                        this.toolModel = order.cutterModel || order.cutteR_MODEL || '';
                        // 关键:获取工单最新采集数
                        this.workOrderCurrentCjNum = order.CurrentCjNum ?? order.currentCjNum ?? null;
                    } else {
                        this.workOrderCurrentCjNum = null;
               }
            } catch (e) {
               console.warn('自动带出工单刀具失败', e);
                    this.workOrderCurrentCjNum = null;
            }
         },
         formatDateTime(dateTimeStr) {