MrShi
2025-07-02 39ae52b3f65e2bba3b6570adb51e791cb3befff7
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="更换后派遣单位:"
               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;