| | |
| | | this.toolModel = ''; |
| | | }, |
| | | async fetchFormData() { |
| | | const payload = { |
| | | workOrderNo: this.workOrderNo, |
| | | machineNo: this.machineNo, |
| | | //useLimit: this.useLimitInput ? Number(this.useLimitInput) : null |
| | | }; |
| | | const payload = new URLSearchParams(); |
| | | payload.append('workOrderNo', this.workOrderNo); |
| | | payload.append('machineNo', this.machineNo); |
| | | const res = await this.$post({ |
| | | url: '/MesCutterLedger/GetFormData', |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | data: payload.toString(), |
| | | headers: { 'Content-Type': 'application/x-www-form-urlencoded' } |
| | | }); |
| | | if (res.status === 0) { |
| | | this.toolRecords = res.data; // 假设后端直接返回表格数组 |