快乐的昕的电脑
2025-10-13 749b366b2af987479d3e13a3dd1a478781211bb7
components/mold.vue
@@ -262,11 +262,11 @@
         },
            async fetchFormData() {
                const payload = {
                    workOrderNo: this.workOrderNo,
                    machineNo: this.machineNo,
                    workOrderNo: this.workOrderNo && this.workOrderNo.trim() !== '' ? this.workOrderNo : null,
                    machineNo: this.machineNo && this.machineNo.trim() !== '' ? this.machineNo : null,
                };
                const res = await this.$post({
                    url: '/MesCutterLedger/GetFormData',
                    url: '/api/MesCutterLedger/GetFormData', // 加上 /api 前缀
                    data: JSON.stringify(payload),
                    headers: { 'Content-Type': 'application/json' }
                });