From 02cb47bef10bafc3a591f160f0b286df529c704a Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 12 四月 2024 15:10:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1
---
wx/pages/factory_change_personnel/factory_change_personnel.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/wx/pages/factory_change_personnel/factory_change_personnel.vue b/wx/pages/factory_change_personnel/factory_change_personnel.vue
index 57e8de2..179e044 100644
--- a/wx/pages/factory_change_personnel/factory_change_personnel.vue
+++ b/wx/pages/factory_change_personnel/factory_change_personnel.vue
@@ -168,13 +168,21 @@
},
// 鎼滅储
changeSearch(name) {
+ if (!name) {
+ this.user = []
+ return
+ }
this.$u.api.memberFindListByDTO({
name,
insuranceApplyId: this.insuranceApplyId,
validTime: this.validTime
}).then(res => {
if (res.code === 200) {
- this.user = res.data
+ if (res.data.length > 0) {
+ this.user = res.data
+ } else {
+ uni.showToast({ title: '鏈壘鍒拌浜哄憳', icon: 'none' })
+ }
}
})
},
@@ -227,6 +235,10 @@
this.show1 = false
},
submit() {
+ if (!this.model.memberId) return uni.showToast({
+ title: '璇烽�夋嫨浜哄憳',
+ icon: 'none'
+ })
this.$refs.uForm.validate().then(res => {
uni.$emit('data', this.model)
uni.navigateBack({ delta: 1 });
--
Gitblit v1.9.3