Bläddra i källkod

Merge branch 'info-edit' into dev

huoyi 1 månad sedan
förälder
incheckning
4d63a40c27
1 ändrade filer med 7 tillägg och 3 borttagningar
  1. 7 3
      src/pages/seizedReported/index.vue

+ 7 - 3
src/pages/seizedReported/index.vue

@@ -469,7 +469,7 @@ export default {
469 469
       await this.loadDepartmentUsers();
470 470
     }
471 471
     
472
-    if (this.type == 'add') {
472
+    if (this.type == 'add' && !this.isKezhang) {
473 473
       this.invokerGetLocationsbyTime()
474 474
     }
475 475
 
@@ -859,8 +859,10 @@ export default {
859 859
 
860 860
         if (response && response.code === 200) {
861 861
           this.departmentUserOptions = (response.rows || []).map(user => ({
862
+            ...user,
862 863
             value: user.userId,
863
-            text: user.nickName || user.userName
864
+            text: user.nickName || user.userName,
865
+      
864 866
           }));
865 867
         }
866 868
       } catch (error) {
@@ -1074,6 +1076,8 @@ export default {
1074 1076
       this.formData.inspectUserId = arr[arr.length - 1]?.value || '';
1075 1077
       this.formData.inspectUserName = arr.map(item => item.text).join('/');
1076 1078
       
1079
+      this.formData.reportTeam = this.departmentUserOptions.find(item => item.userId === this.formData.inspectUserId)?.deptId;
1080
+      this.formData.reportTeamText = this.teams.find(item => item.value === this.formData.reportTeam)?.text;
1077 1081
       // 切换查获人员后,重新初始化岗位和选项数据
1078 1082
       if (this.formData.inspectUserId) {
1079 1083
         await this.initPositionAndOptions();
@@ -1171,7 +1175,7 @@ export default {
1171 1175
 
1172 1176
 
1173 1177
 
1174
-      this.formData.inspectUserName = this.userInfo.nickName
1178
+      
1175 1179
       const payload = {
1176 1180
         ...this.formData,
1177 1181
         itemSeizureItemsList: [item],