Browse Source

增加校区

seimin 2 years ago
parent
commit
7f420f6572
2 changed files with 34 additions and 26 deletions
  1. 11 6
      src/views/newIncident.vue
  2. 23 20
      src/views/wxChartDetail.vue

+ 11 - 6
src/views/newIncident.vue

@@ -1154,10 +1154,12 @@ export default {
1154 1154
 
1155 1155
         if (inspecInfo.place) {
1156 1156
           if (inspecInfo.place.id) {
1157
-            that.model.placeValue[0] = inspecInfo.place.area.id;
1158
-            that.model.placeValue[1] = inspecInfo.place.id;
1159
-            that.selectedPlaceTxt =
1160
-              inspecInfo.place.area.area + " " + inspecInfo.place.place;
1157
+            if (inspecInfo.branch) {
1158
+              that.model.placeValue[0] = inspecInfo.branch.id;
1159
+            }
1160
+            that.model.placeValue[1] = inspecInfo.place.area.id;
1161
+            that.model.placeValue[2] = inspecInfo.place.id;
1162
+            that.selectedPlaceTxt = inspecInfo.branch.hosName + " " + inspecInfo.place.area.area + " " + inspecInfo.place.place;
1161 1163
           }
1162 1164
         }
1163 1165
       } else {
@@ -1167,10 +1169,13 @@ export default {
1167 1169
         that.model.houseNumber = that.loginUser.houseNumber;
1168 1170
         if (that.loginUser.place && that.loginUser.place.length) {
1169 1171
           if (that.loginUser.place.id) {
1172
+            if (that.loginUser.branch) {
1173
+              that.model.placeValue[0] = that.loginUser.branch.id;
1174
+            }
1170 1175
             if (that.loginUser.place.area) {
1171
-              that.model.placeValue[0] = that.loginUser.place.area.id;
1176
+              that.model.placeValue[1] = that.loginUser.place.area.id;
1172 1177
             }
1173
-            that.model.placeValue[1] = that.loginUser.place.id;
1178
+            that.model.placeValue[2] = that.loginUser.place.id;
1174 1179
           }
1175 1180
         }
1176 1181
         // if (localStorage.getItem("model")) {

+ 23 - 20
src/views/wxChartDetail.vue

@@ -8,20 +8,22 @@
8 8
           <div class="info">
9 9
             <p>
10 10
               <span>报修人:</span>
11
-              <span>{{ model.requester.name }}</span>
12
-              <!-- yizhuanhuan: model.incidentState.name == '已受理', -->
13
-              <span
14
-                :class="{
15
-                  btn: true,
16
-                  fr: true,
17
-                  weizhuanhuan: model.incidentState.value == 0,
18
-                  bushouli: model.incidentState.value == 1,
19
-                  chulizhong: model.incidentState.value == 2,
20
-                  daipingjia: model.incidentState.value == 3,
21
-                  yijiejue: model.incidentState.value == 4
22
-                }"
23
-                >{{ model.incidentState.name }}</span
24
-              >
11
+              <span style="display:flex;align-items:center;">
12
+                <span>{{ model.requester.name }}</span>
13
+                <!-- yizhuanhuan: model.incidentState.name == '已受理', -->
14
+                <span
15
+                  :class="{
16
+                    btn: true,
17
+                    fr: true,
18
+                    weizhuanhuan: model.incidentState.value == 0,
19
+                    bushouli: model.incidentState.value == 1,
20
+                    chulizhong: model.incidentState.value == 2,
21
+                    daipingjia: model.incidentState.value == 3,
22
+                    yijiejue: model.incidentState.value == 4
23
+                  }"
24
+                  >{{ model.incidentState.name }}</span
25
+                >
26
+              </span>
25 27
             </p>
26 28
             <p class="relative">
27 29
               <span>报修电话:</span>
@@ -38,11 +40,9 @@
38 40
             </p>
39 41
             <p>
40 42
               <span>报修地址:</span>
41
-              <span
42
-                >{{ model.area ? model.area.area : "" }}
43
-                {{ model.place ? model.place.place : "" }}
44
-                {{ model.houseNumber || "" }}</span
45
-              >
43
+              <span>
44
+                {{ model.branch ? model.branch.hosName : "" }} {{ model.place ? model.place.area.area : "" }} {{ model.place ? model.place.place : "" }} {{ model.houseNumber || "" }}
45
+              </span>
46 46
             </p>
47 47
             <p class="desc">
48 48
               <span>报修描述:</span>
@@ -350,6 +350,8 @@ i.iconfont.blue {
350 350
           padding: 0.1rem 0.24rem;
351 351
           overflow: hidden;
352 352
           border-bottom: 0.01rem solid #e6e6e6;
353
+          display: flex;
354
+          justify-content: space-between;
353 355
           &.lastP {
354 356
             border-bottom: none;
355 357
             display: inline-block;
@@ -359,7 +361,7 @@ i.iconfont.blue {
359 361
           }
360 362
           &.relative {
361 363
             position: relative;
362
-            padding-right: 1rem;
364
+            // padding-right: 1rem;
363 365
           }
364 366
           .overflowEllipsis2 {
365 367
             margin-left: 1.96rem;
@@ -368,6 +370,7 @@ i.iconfont.blue {
368 370
             display: inline-block;
369 371
             width: 1.7rem;
370 372
             color: #333;
373
+            flex-shrink: 0;
371 374
           }
372 375
 
373 376
           span:nth-child(2) {