快乐的昕的电脑
2025-10-20 0ba48acf41de849f004171046eb5927325775230
components/mold.vue
@@ -263,7 +263,7 @@
                    workOrderNo: this.workOrderNo,
                    machineNo: this.machineNo,
                    toolNo: this.selectedToolNo,
                    type: '上刀',
                    type: '上机',
                    useLimit,
                    sdjs // 上刀计数(工单当前数采)
                };
@@ -274,16 +274,16 @@
                        data: JSON.stringify(payload),
                        headers: { 'Content-Type': 'application/json' }
                    });
                    if (res.data && res.data.outMsg) {
                        if (res.data.outMsg.includes('重复上下刀')) {
                            this.$showMessage(res.data.outMsg, { type: 'error' });
                    if (res.data && res.data.outMsg !== undefined) {
                        uni.showToast({
                            title: res.data.outMsg || '',
                            icon: 'error'
                        });
                        if (res.data.outSum === "1") {
                            // 允许继续后续逻辑
                        } else {
                            this.$showMessage(res.data.outMsg);
                            return;
                        }
                    } else if (res.status === 0) {
                        this.$showMessage('上刀提交成功');
                    } else {
                        this.$showMessage(res.message || '上刀提交失败');
                    }
                    if (res.status === 0) {
                        await this.fetchFormData();
@@ -311,7 +311,7 @@
                    workOrderNo: this.workOrderNo,
                    machineNo: this.machineNo,
                    toolNo: this.selectedToolNo,
                    type: '下刀',
                    type: '下机',
                    useLimit,
                    xdjs // 下刀计数
                };
@@ -322,16 +322,16 @@
                        data: JSON.stringify(payload),
                        headers: { 'Content-Type': 'application/json' }
                    });
                    if (res.data && res.data.outMsg) {
                        if (res.data.outMsg.includes('重复上下刀')) {
                            this.$showMessage(res.data.outMsg, { type: 'error' });
                    if (res.data && res.data.outMsg !== undefined) {
                        uni.showToast({
                            title: res.data.outMsg || '',
                            icon: 'error'
                        });
                        if (res.data.outSum === "1") {
                            // 允许继续后续逻辑
                        } else {
                            this.$showMessage(res.data.outMsg);
                            return;
                        }
                    } else if (res.status === 0) {
                        this.$showMessage('下刀提交成功');
                    } else {
                        this.$showMessage(res.message || '下刀提交失败');
                    }
                    if (res.status === 0) {
                        await this.fetchFormData();