k94314517
2024-04-12 02cb47bef10bafc3a591f160f0b286df529c704a
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 });