Преглед на файлове

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

XMLWAN преди 5 години
родител
ревизия
76e87604ff

+ 20 - 30
src/store/modules/data.js Целия файл

@@ -9,41 +9,31 @@ const data = {
9 9
   mutations: {
10 10
     SET_CONFIGLIST: (state, configlist) => {
11 11
       state.configlist = configlist
12
-    },
12
+    }
13 13
 
14 14
   },
15 15
 
16 16
   actions: {
17 17
     VerifyConfigList({ commit, state }) {
18 18
       return new Promise((resolve, reject) => {
19
-        var configlist = getDataConfigList()
20
-
21
-        // console.log('configLIST数据:', configlist)
22
-        if (configlist != null && configlist.length > 0) {
23
-          var infoJSON = JSON.parse(configlist)
24
-          // console.log('configLISt数据:', infoJSON)
25
-          commit('SET_CONFIGLIST', infoJSON)
26
-          resolve()
27
-        } else {
28
-            getConfigList().then(response => {
29
-              if (!response.data) { // 由于mockjs 不支持自定义状态码只能这样hack
30
-                reject('error')
31
-              }
32
-              const list = response.data.data
33
-              // console.log('请求返回的数据:', list)
34
-              if (list) { // 验证返回的configlist是否是一个非空数组
35
-                // console.log('转换的configlist为:', list.configlist)
36
-                console.log('转换的configlist为:', list.configlist)
37
-                commit('SET_CONFIGLIST', list.configlist)
38
-                setDataConfigList(JSON.stringify(list.configlist))
39
-                resolve()
40
-              } else {
41
-                reject('getInfo: configlist must be a non-null array !')
42
-              }
43
-            }).catch(error => {
44
-              reject(error)
45
-            })
46
-        }
19
+        getConfigList().then(response => {
20
+          if (!response.data) { // 由于mockjs 不支持自定义状态码只能这样hack
21
+            reject('error')
22
+          }
23
+          const list = response.data.data
24
+          // console.log('请求返回的数据:', list)
25
+          if (list) { // 验证返回的configlist是否是一个非空数组
26
+            // console.log('转换的configlist为:', list.configlist)
27
+            console.log('转换的configlist为:', list.configlist)
28
+            commit('SET_CONFIGLIST', list.configlist)
29
+            setDataConfigList(JSON.stringify(list.configlist))
30
+            resolve()
31
+          } else {
32
+            reject('getInfo: configlist must be a non-null array !')
33
+          }
34
+        }).catch(error => {
35
+          reject(error)
36
+        })
47 37
       })
48 38
     },
49 39
     updateConfigList({ commit }, configArr) {
@@ -138,7 +128,7 @@ const data = {
138 128
         setDataConfigList(JSON.stringify(infoJSON))
139 129
         resolve()
140 130
       })
141
-    },
131
+    }
142 132
 
143 133
   }
144 134
 }

+ 5 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Целия файл

@@ -206,11 +206,12 @@
206 206
         v-bind:childResponse="childResponse"
207 207
         v-if="org_template_info.template_id == 10"
208 208
       ></DialysisPrintOrderTen>
209
+      <DialysisPrintOrder
209 210
 
210
-      <DialysisPrintOrderNine
211
-        v-bind:childResponse="childResponse"
212
-        v-if="org_template_info.template_id == 9"
213
-      ></DialysisPrintOrderNine>
211
+      <!--<DialysisPrintOrderNine-->
212
+        <!--v-bind:childResponse="childResponse"-->
213
+        <!--v-if="org_template_info.template_id == 9"-->
214
+      <!--&gt;</DialysisPrintOrderNine>-->
214 215
     </div>
215 216
   </div>
216 217
 </template>
@@ -231,7 +232,6 @@ import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
231 232
 import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
232 233
 import print from "print-js";
233 234
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
234
-import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
235 235
 
236 236
 export default {
237 237
   name: "dialysisPrintOrder",

+ 78 - 14
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue Целия файл

@@ -602,25 +602,87 @@
602 602
               <div class="row" style="padding: 2px 0;line-height:19px;">
603 603
                 <div class="inline_block">
604 604
                   内瘘震颤和血管杂音:
605
-                  <check-box text="存在" :checked="afterdialysis.tremor_noise==1?true:false"></check-box>
606
-                  <check-box text="减弱" :checked="afterdialysis.tremor_noise==2?true:false"></check-box>
607
-                  <check-box text="不存在" :checked="afterdialysis.tremor_noise==3?true:false"></check-box>
605
+                  <check-box
606
+                    text="正常"
607
+                    :checked="
608
+                        afterdialysis.internal_fistula.indexOf('正常') > -1
609
+                          ? true
610
+                          : false
611
+                      "
612
+                  ></check-box>
613
+                  <check-box
614
+                    text="减弱"
615
+                    :checked="
616
+                        afterdialysis.internal_fistula.indexOf('减弱') > -1
617
+                          ? true
618
+                          : false
619
+                      "
620
+                  ></check-box>
621
+                  <check-box
622
+                    text="不存在"
623
+                    :checked="
624
+                        afterdialysis.internal_fistula.indexOf('不存在') > -1
625
+                          ? true
626
+                          : false
627
+                      "
628
+                  ></check-box>
608 629
                 </div>
609 630
                 <div class="inline_block">
610 631
                   &emsp;失衡综合症:
611
-                  <check-box text="无" :checked="afterdialysis.disequilibrium_syndrome==1?true:false"></check-box>
612
-                  <check-box text="有" :checked="afterdialysis.disequilibrium_syndrome==2?true:false"></check-box>
632
+                  <check-box
633
+                    text="无"
634
+                    :checked="
635
+                       afterdialysis.complication.indexOf('无') > -1
636
+                          ? true
637
+                          : false
638
+                      "
639
+                  ></check-box>
640
+                  <check-box
641
+                    text="有"
642
+                    :checked="
643
+                        afterdialysis.complication.indexOf('头晕') > -1 ||
644
+                          afterdialysis.complication.indexOf('头痛') > -1||
645
+                            afterdialysis.complication.indexOf('呕吐') > -1||
646
+                              afterdialysis.complication.indexOf('低血压') > -1
647
+                          ? true
648
+                          : false
649
+                      "
650
+                  ></check-box>
613 651
                 </div>
614 652
                 <div class="inline_block">
615 653
616
-                  <check-box text="头晕"
617
-                             :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头晕')>-1?true:false"></check-box>
618
-                  <check-box text="头痛"
619
-                             :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头痛')>-1?true:false"></check-box>
620
-                  <check-box text="呕吐"
621
-                             :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('呕吐')>-1?true:false"></check-box>
622
-                  <check-box text="低血压"
623
-                             :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('低血压')>-1?true:false"></check-box>
654
+                  <check-box
655
+                    :isChecked="
656
+                        afterdialysis.complication.indexOf('头晕') > -1
657
+                          ? true
658
+                          : false
659
+                      "
660
+                    text="头晕"
661
+                  ></check-box>
662
+                  <check-box
663
+                    :isChecked="
664
+                        afterdialysis.complication.indexOf('头痛') > -1
665
+                          ? true
666
+                          : false
667
+                      "
668
+                    text="头痛"
669
+                  ></check-box>
670
+                  <check-box
671
+                    :isChecked="
672
+                        afterdialysis.complication.indexOf('呕吐') > -1
673
+                          ? true
674
+                          : false
675
+                      "
676
+                    text="呕吐"
677
+                  ></check-box>
678
+                  <check-box
679
+                    :isChecked="
680
+                        afterdialysis.complication.indexOf('低血压') > -1
681
+                          ? true
682
+                          : false
683
+                      "
684
+                    text="低血压"
685
+                  ></check-box>
624 686
625 687
                 </div>
626 688
               </div>
@@ -643,7 +705,9 @@
643 705
                 </div>
644 706
                 <div class="inline_block">
645 707
                   透析器:
646
-                  <check-box text="0" :checked="afterdialysis.dialyzer == 1?true:false"></check-box>
708
+                  <check-box text="0" :checked=" afterdialysis.dialyzer.indexOf('透析器-0度') > -1
709
+                          ? true
710
+                          : false"></check-box>
647 711
                   <check-box text="+" :checked="afterdialysis.dialyzer == 2?true:false"></check-box>
648 712
                   <check-box text="++" :checked="afterdialysis.dialyzer == 3?true:false"></check-box>
649 713
                   <check-box text="+++" :checked="afterdialysis.dialyzer == 4?true:false"></check-box>

Файловите разлики са ограничени, защото са твърде много
+ 3053 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue