From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交
---
wx/pages/factory_change_personnel/factory_change_personnel.vue | 32 ++++++++++++++++++++++++++++----
1 files changed, 28 insertions(+), 4 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..da37784 100644
--- a/wx/pages/factory_change_personnel/factory_change_personnel.vue
+++ b/wx/pages/factory_change_personnel/factory_change_personnel.vue
@@ -21,7 +21,7 @@
</view>
</scroll-view>
</u-form-item>
- <u-form-item
+ <!-- <u-form-item
label="韬唤璇佸彿锛�"
prop="idcardNo"
borderBottom
@@ -44,7 +44,7 @@
required
>
<u--input v-model="model.oldWorkTypeName" disabled disabledColor="#ffffff" placeholder="璇烽�夋嫨" border="none"></u--input>
- </u-form-item>
+ </u-form-item> -->
<u-form-item
label="鏇存崲鍚庢淳閬e崟浣嶏細"
prop="duName"
@@ -64,6 +64,14 @@
>
<u--input v-model="model.workTypeName" disabled disabledColor="#ffffff" placeholder="璇烽�夋嫨" border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
+ </u-form-item>
+ <u-form-item
+ label="澶囨敞锛�"
+ prop="remark"
+ borderBottom
+ required
+ >
+ <u--input v-model="model.remark" maxlength="18" border="none" placeholder="璇疯緭鍏�"></u--input>
</u-form-item>
</u--form>
</view>
@@ -93,6 +101,7 @@
model: {
memberName: '',
memberId: '',
+ remark:'',
idcardNo: '',
oldDuName: '',
oldDuId: '',
@@ -161,6 +170,7 @@
this.model.memberId = item.id
this.model.idcardNo = item.idcardNo
this.model.oldDuName = item.duName
+ this.model.remark = item.remark
this.model.oldDuId = item.duId
this.model.oldWorkTypeName = item.workTypeName
this.model.oldWorktypeId = item.worktypeId
@@ -168,13 +178,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' })
+ }
}
})
},
@@ -217,6 +235,7 @@
this.model.duName = e.value[0].label
this.duSolutionId = e.value[0].duSolutionId
this.model.worktypeId = ''
+ this.model.remark=''
this.model.workTypeName = ''
this.getGZ()
this.show = false
@@ -227,6 +246,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 });
@@ -250,7 +273,8 @@
box-sizing: border-box;
.box_list {
width: 100%;
- height: calc(100vh - 158rpx - env(safe-area-inset-bottom));
+ height: auto;
+ // height: calc(100vh - 158rpx - env(safe-area-inset-bottom));
background: #FFFFFF;
border-radius: 16rpx;
padding: 32rpx 30rpx;
--
Gitblit v1.9.3