快乐的昕的电脑
2025-10-11 8c9119c6dd2b8fd349bc4b91182204cda3556570
前端改为表单提交
已修改1个文件
12 ■■■■■ 文件已修改
components/mold.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/mold.vue
@@ -261,15 +261,13 @@
                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; // 假设后端直接返回表格数组