From 0ba48acf41de849f004171046eb5927325775230 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 20 十月 2025 16:42:18 +0800
Subject: [PATCH] 当outSum === "1"允许继续后续逻辑
---
components/mold.vue | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index 49eb5c6..80e9cf3 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -263,7 +263,7 @@
workOrderNo: this.workOrderNo,
machineNo: this.machineNo,
toolNo: this.selectedToolNo,
- type: '涓婂垁',
+ type: '涓婃満',
useLimit,
sdjs // 涓婂垁璁℃暟锛堝伐鍗曞綋鍓嶆暟閲囷級
};
@@ -274,12 +274,16 @@
data: JSON.stringify(payload),
headers: { 'Content-Type': 'application/json' }
});
- if (res.data && res.data.outMsg) {
- this.$showMessage(res.data.outMsg);
- } else if (res.status === 0) {
- this.$showMessage('涓婂垁鎻愪氦鎴愬姛');
- } else {
- this.$showMessage(res.message || '涓婂垁鎻愪氦澶辫触');
+ if (res.data && res.data.outMsg !== undefined) {
+ uni.showToast({
+ title: res.data.outMsg || '',
+ icon: 'error'
+ });
+ if (res.data.outSum === "1") {
+ // 鍏佽缁х画鍚庣画閫昏緫
+ } else {
+ return;
+ }
}
if (res.status === 0) {
await this.fetchFormData();
@@ -307,7 +311,7 @@
workOrderNo: this.workOrderNo,
machineNo: this.machineNo,
toolNo: this.selectedToolNo,
- type: '涓嬪垁',
+ type: '涓嬫満',
useLimit,
xdjs // 涓嬪垁璁℃暟
};
@@ -318,12 +322,16 @@
data: JSON.stringify(payload),
headers: { 'Content-Type': 'application/json' }
});
- if (res.data && res.data.outMsg) {
- this.$showMessage(res.data.outMsg);
- } else if (res.status === 0) {
- this.$showMessage('涓嬪垁鎻愪氦鎴愬姛');
- } else {
- this.$showMessage(res.message || '涓嬪垁鎻愪氦澶辫触');
+ if (res.data && res.data.outMsg !== undefined) {
+ uni.showToast({
+ title: res.data.outMsg || '',
+ icon: 'error'
+ });
+ if (res.data.outSum === "1") {
+ // 鍏佽缁х画鍚庣画閫昏緫
+ } else {
+ return;
+ }
}
if (res.status === 0) {
await this.fetchFormData();
--
Gitblit v1.9.3