Forráskód Böngészése

中审项目报销 选择报销人userid错误

huangguoce 4 hete
szülő
commit
bb6485f33b
1 módosított fájl, 16 hozzáadás és 1 törlés
  1. 16 1
      src/views/zs/reimbursement/info/ReimbursementForm.vue

+ 16 - 1
src/views/zs/reimbursement/info/ReimbursementForm.vue

@@ -526,7 +526,7 @@
               <vxe-table-column field="userName" title="报销人" :edit-render="{}" show-overflow="title"
                 :rules="[{ required: true, message: '请选择报销人', trigger: 'blur' }]">
                 <template #edit="scope">
-                  <el-input v-model="scope.row.userName" @focus="userPullListForm4(scope.$rowIndex)"></el-input>
+                  <el-input v-model="scope.row.userName" @focus="userPullListForm8(scope.$rowIndex)"></el-input>
                   <!--              <UserSelectV2 :limit='1' :userName="scope.row.userName" @getValue='(value, label) => {scope.row.userName = label}'></UserSelectV2>-->
                 </template>
               </vxe-table-column>
@@ -777,6 +777,7 @@
       <UserPullForm ref="userPullForm3" @getProgramForUser="getProgramForUser3"></UserPullForm>
       <UserPullForm ref="userPullForm4" @getProgramForUser="getProgramForUser4"></UserPullForm>
       <UserPullForm ref="userPullForm5" @getProgramForUser="getProgramForUser5"></UserPullForm>
+      <UserPullForm ref="userPullForm8" @getProgramForUser="getProgramForUser8"></UserPullForm>
 
     </el-form>
     <!-- 附件 -->
@@ -2007,6 +2008,10 @@ export default {
       this.indexRow = rowIndex
       this.$refs.userPullForm4.init()
     },
+    userPullListForm8(rowIndex) {
+      this.indexRow = rowIndex
+      this.$refs.userPullForm8.init()
+    },
     userPullListForm5(rowIndex) {
       this.indexRow = rowIndex
       this.$refs.userPullForm5.init()
@@ -2051,6 +2056,16 @@ export default {
       this.indexRow = ''
       this.$forceUpdate()
     },
+    getProgramForUser8(rows) {
+      console.log(13123123);
+
+      this.inputForm.detailInfoProject[this.indexRow].userId = rows[0].id
+      this.inputForm.detailInfoProject[this.indexRow].userName = rows[0].name
+      this.inputForm.detailInfoProject[this.indexRow].deptId = rows[0].parentId
+      this.inputForm.detailInfoProject[this.indexRow].deptName = rows[0].officeName
+      this.indexRow = ''
+      this.$forceUpdate()
+    },
     getWorkClientChoose2(list) {
       this.inputForm.detailInfoReports[this.indexRow].reportNumber = list.reportNo
       this.indexRow = ''