Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 years ago
parent
commit
34f14ac4fd

+ 1 - 60
src/store/modules/xt_user.js View File

@@ -199,65 +199,7 @@ const xt_user = {
199 199
         })
200 200
 
201 201
         // console.log('登录信息缓存:', cacheInfo)
202
-        if (cacheInfo != null && cacheInfo.length > 0) {
203
-          var infoJSON = JSON.parse(cacheInfo)
204
-          // console.log('用户信息缓存:', infoJSON)
205
-          commit('SET_CURRENT_INFO', {
206
-            user: infoJSON.user,
207
-            cur_org_id: infoJSON.current_org_id,
208
-            cur_app_id: infoJSON.current_app_id,
209
-            org: infoJSON.org,
210
-            subscibe: infoJSON.subscibe,
211
-            template_info: infoJSON.template_info,
212
-            scrm_role_exist: infoJSON.scrm_role_exist,
213
-            cdm_role_exist: infoJSON.cdm_role_exist,
214
-            mall_role_exist: infoJSON.mall_role_exist
215
-          })
216
-
217
-          
218
-          // let urlfors = infoJSON.urlfors
219
-          // if(infoJSON.cdm_role_exist == true){
220
-          //   console.log("有")
221
-          //   urlfors.push("/slow")
222
-          //   this.commit('SET_URLFORS', {
223
-          //     urlfors: urlfors
224
-          //   })
225
-          // }else{
226
-          //   this.commit('SET_URLFORS', {
227
-          //     urlfors: infoJSON.urlfors
228
-          //   })
229
-          // }
230
-
231
-          // if(infoJSON.scrm_role_exist == true){
232
-          //   urlfors.push("/scrm")
233
-          //   this.commit('SET_URLFORS', {
234
-          //     urlfors: urlfors
235
-          //   })
236
-          // }else{
237
-          //   this.commit('SET_URLFORS', {
238
-          //     urlfors: infoJSON.urlfors
239
-          //   })
240
-          // }
241
-
242
-          // if(infoJSON.mall_role_exist == true){
243
-          //   console.log("有")
244
-          //   urlfors.push("/shop")
245
-          //   this.commit('SET_URLFORS', {
246
-          //     urlfors: urlfors
247
-          //   })
248
-          // }else{
249
-          //   this.commit('SET_URLFORS', {
250
-          //     urlfors: infoJSON.urlfors
251
-          //   })
252
-          // }
253
-          // console.log(222222222222,infoJSON)
254
-          
255
-          commit('SET_URLFORS', {
256
-            urlfors: infoJSON.urlfors
257
-          })
258 202
 
259
-          resolve(infoJSON.user.user_id)
260
-        } else {
261 203
           verifyToken(token).then(response => {
262 204
             if (response.data.state === 1) {
263 205
               // alert('验证通过')
@@ -310,7 +252,7 @@ const xt_user = {
310 252
                   urlfors: data.urlfors
311 253
                 })
312 254
               }
313
-              
255
+
314 256
 
315 257
               // this.commit('SET_URLFORS', {
316 258
               //   urlfors: data.urlfors
@@ -331,7 +273,6 @@ const xt_user = {
331 273
               })
332 274
             }
333 275
           })
334
-        }
335 276
       })
336 277
     },
337 278
     ModifyAdminUserInfo({

+ 43 - 42
src/views/layout/components/Navbar.vue View File

@@ -177,48 +177,49 @@ export default {
177 177
             this.org_id = data.org.id;
178 178
             this.org_name = data.org.org_name;
179 179
 
180
-            this.$store.dispatch("ModifyAdminUserOrgInfo", {
181
-              user: data.user,
182
-              cur_org_id: data.current_org_id,
183
-              cur_app_id: data.current_app_id,
184
-              org: data.org,
185
-              subscibe: data.subscibe,
186
-              template_info: data.template_info,
187
-              scrm_role_exist: data.scrm_role_exist,
188
-              cdm_role_exist: data.cdm_role_exist,
189
-              mall_role_exist: data.mall_role_exist
190
-            });
191
-
192
-            this.$store.dispatch("ModifyUrlInfo", {
193
-              urlfors: data.urlfors
194
-            });
195
-
196
-            this.$store.dispatch("ModifyFiled", {
197
-              fileds: data.fileds
198
-            });
199
-
200
-            setFiledConfigList(JSON.stringify(data.fileds));
201
-            cacheAdminUserInfo(JSON.stringify(data));
202
-
203
-            this.$store
204
-              .dispatch(
205
-                "xt_GenerateRoutes",
206
-                this.$store.getters.current_role_urls
207
-              )
208
-              .then(() => {
209
-                this.$store.dispatch("VerifyConfigList").then(() => {
210
-                  // alert('token 验证成功')
211
-                  // console.log(this.$store.getters.xt_permission.addRouters)
212
-                  this.$router.addRoutes(
213
-                    this.$store.getters.xt_permission.addRouters
214
-                  ); // 动态添加可访问路由表
215
-                  //        next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
216
-                  // this.$router.replace({ path: '/' })
217
-                  window.location.reload();
218
-                  // this.$router.go(0)
219
-                  // this.reload()
220
-                });
221
-              });
180
+            // this.$store.dispatch("ModifyAdminUserOrgInfo", {
181
+            //   user: data.user,
182
+            //   cur_org_id: data.current_org_id,
183
+            //   cur_app_id: data.current_app_id,
184
+            //   org: data.org,
185
+            //   subscibe: data.subscibe,
186
+            //   template_info: data.template_info,
187
+            //   scrm_role_exist: data.scrm_role_exist,
188
+            //   cdm_role_exist: data.cdm_role_exist,
189
+            //   mall_role_exist: data.mall_role_exist
190
+            // });
191
+            //
192
+            // this.$store.dispatch("ModifyUrlInfo", {
193
+            //   urlfors: data.urlfors
194
+            // });
195
+            //
196
+            // this.$store.dispatch("ModifyFiled", {
197
+            //   fileds: data.fileds
198
+            // });
199
+
200
+            // setFiledConfigList(JSON.stringify(data.fileds));
201
+            // cacheAdminUserInfo(JSON.stringify(data));
202
+
203
+            window.location.reload();
204
+
205
+            // this.$store
206
+            //   .dispatch(
207
+            //     "xt_GenerateRoutes",
208
+            //     this.$store.getters.current_role_urls
209
+            //   )
210
+            //   .then(() => {
211
+            //     this.$store.dispatch("VerifyConfigList").then(() => {
212
+            //       // alert('token 验证成功')
213
+            //       // console.log(this.$store.getters.xt_permission.addRouters)
214
+            //       this.$router.addRoutes(
215
+            //         this.$store.getters.xt_permission.addRouters
216
+            //       ); // 动态添加可访问路由表
217
+            //       //        next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
218
+            //       // this.$router.replace({ path: '/' })
219
+            //       // this.$router.go(0)
220
+            //       // this.reload()
221
+            //     });
222
+            //   });
222 223
           } else {
223 224
             this.$message.success(response.data.msg);
224 225
           }

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

@@ -1217,7 +1217,7 @@
1217 1217
                               ? true
1218 1218
                               : false
1219 1219
                           "
1220
-                          showValue="减弱"
1220
+                          text="减弱"
1221 1221
                         ></check-box>
1222 1222
                         <check-box
1223 1223
                           :checked="
@@ -1227,7 +1227,7 @@
1227 1227
                               ? true
1228 1228
                               : false
1229 1229
                           "
1230
-                          showValue="无"
1230
+                          text="无"
1231 1231
                         ></check-box>
1232 1232
                       </div>
1233 1233
                     </div>

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue View File

@@ -519,11 +519,11 @@
519 519
                         class="under_line"
520 520
                         style="width:60px;text-align: left"
521 521
                         v-if="
522
-                          record.prescription &&
523
-                            record.prescription.ultrafiltration
522
+                          record.assessment_after_dislysis &&
523
+                            record.assessment_after_dislysis.actual_ultrafiltration
524 524
                         "
525 525
                       >
526
-                        {{ getFloat(record.prescription.ultrafiltration) }}
526
+                        {{ getFloat(record.assessment_after_dislysis.actual_ultrafiltration) }}
527 527
                       </div>
528 528
                       <div class="under_line" style="width:60px;" v-else>
529 529
                         {{ "/" }}

+ 14 - 21
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -580,18 +580,17 @@
580 580
                     style="width: 100px;text-align: center"
581 581
                   >
582 582
                     {{
583
-                    predialysis.weight_after_last_transparency
583
+                    last_afterdialysis.weight_after
584 584
                     ? parseFloat(
585
-                    predialysis.weight_after_last_transparency -
586
-                    predialysis.additional_weight
585
+                    last_afterdialysis.weight_after
587 586
                     ).toFixed(1)
588 587
                     : '未称重'
589 588
                     }}
590 589
                   </div>
591 590
                   kg
592 591
                 </div>
593
-                <div class="inline_block" style="flex:1;">
594 592
                   透前体重:
593
+                  <div class="inline_block" style="flex:1;">
595 594
                   <div
596 595
                     class="under_line"
597 596
                     style="width: 70px;text-align: center"
@@ -1897,24 +1896,11 @@
1897 1896
                 </div>
1898 1897
                 <div class="inline_block" style="flex:1;">
1899 1898
                   治疗医生:
1900
-                  <div
1901
-                    class="under_line"
1902
-                    style="width: 120px;"
1903
-                  >
1899
+                  <div class="under_line" style="width: 80px">
1904 1900
                     <img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">
1905
-                    <span
1906
-                        v-if="setAdminUserES(prescription.prescription_doctor) == ''"
1907
-                      >{{
1908
-                          getAdminUser(prescription.prescription_doctor)
1909
-                        }}</span
1910
-                      >
1911
-                    <img
1912
-                      style="height:20px;"
1913
-                      :src="setAdminUserES(prescription.prescription_doctor)"
1914
-                      alt=""
1915
-                      srcset=""
1916
-                      v-else
1917
-                    />
1901
+                    <!--<img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">-->
1902
+                    <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.prescription_doctor)}}</span>
1903
+                    <img style="height:20px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else>
1918 1904
                   </div>
1919 1905
                 </div>
1920 1906
                 <div class="inline_block" style="flex:1;">
@@ -2017,6 +2003,10 @@
2017 2003
           },
2018 2004
           gender: 0
2019 2005
         },
2006
+        last_afterdialysis:{
2007
+          weight_after:'',
2008
+
2009
+        },
2020 2010
         predialysis: {
2021 2011
           score: '',
2022 2012
           internal_fistula: '',
@@ -2236,6 +2226,9 @@
2236 2226
             this.predialysis.blood_access_part_opera_id
2237 2227
           )
2238 2228
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
2229
+
2230
+          this.last_afterdialysis = response.data.data.assessmentAfterDislysis
2231
+
2239 2232
           this.operators = response.data.data.operators
2240 2233
           this.dialysisOrder =
2241 2234
             response.data.data.dialysisOrder === null