components/mold.vue
@@ -210,11 +210,15 @@ // 新增:刷新按钮处理方法 async handleRefresh() { // 刷新刀具列表和表单数据 this.fetchTools(''); if (this.machineNo && this.workOrderNo) { await this.fetchFormData(); await this.fetchDefaultToolFromWorkOrder(); // 只更新第一行 currentCjNum if (this.toolRecords.length > 0) { const cjNum = await this.fetchCurrentCjNum(this.toolRecords[0].no); this.$set(this.toolRecords[0], 'currentCjNum', cjNum); } } this.$showMessage('刷新完成'); },