From d123ca35bb3ec4982af44aeb1ffffa8a3569a21b Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期五, 25 七月 2025 13:25:22 +0800
Subject: [PATCH] 代码提交
---
pages/QC/LLJ/yzxFrom.vue | 40 ++++++++++++++++++++++++++--------------
1 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/pages/QC/LLJ/yzxFrom.vue b/pages/QC/LLJ/yzxFrom.vue
index 0334b84..59fcbb9 100644
--- a/pages/QC/LLJ/yzxFrom.vue
+++ b/pages/QC/LLJ/yzxFrom.vue
@@ -153,30 +153,42 @@
data: submitData
}
}).then(res => {
-
+ if(res.status==0){
+ uni.showToast({
+ title: '淇濆瓨鎴愬姛',
+ icon: 'success',
+ duration: 2000
+ })
+ }else{
+ uni.showModal({
+ title: "鎻愮ず",
+ content: res.message,
+ confirmText: "纭畾",
+ showCancel: false,
+ success: (res) => {
+
+ }
+ })
+ }
}).catch(() => {
this.isLoading = false; // 鍑虹幇閿欒鏃剁粨鏉熷姞杞�
});
- uni.showToast({
- title: '淇濆瓨鎴愬姛',
- icon: 'success',
- duration: 2000
- })
+
} finally {
this.isSubmitting = false
}
},
validateForm() {
- for (const item of this.components) {
- if (item.selectedSpec === -1 || item.selectedMfg === -1) {
- return {
- valid: false,
- msg: `${item.name} 鏈畬鎴愰�夋嫨`
- }
- }
- }
+ // for (const item of this.components) {
+ // if (item.selectedSpec === -1 || item.selectedMfg === -1) {
+ // return {
+ // valid: false,
+ // msg: `${item.name} 鏈畬鎴愰�夋嫨`
+ // }
+ // }
+ // }
return { valid: true }
},
onLoad(options) {
--
Gitblit v1.9.3