Procházet zdrojové kódy

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

csx před 5 roky
rodič
revize
8d9b3d2609

+ 20 - 30
src/store/modules/data.js Zobrazit soubor

@@ -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
 }

Diff nebyl zobrazen, protože je příliš veliký
+ 2696 - 2655
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Zobrazit soubor

@@ -120,6 +120,16 @@
120 120
           >批量打印</el-button
121 121
         >
122 122
       </template>
123
+      <template v-if="this.template_id == 9">
124
+        <el-button
125
+          size="small"
126
+          icon="el-icon-printer"
127
+          :disabled="selecting_schs.length == 0"
128
+          @click="batchPrintAction"
129
+          type="primary"
130
+          >批量打印</el-button
131
+        >
132
+      </template>
123 133
     </div>
124 134
     <div class="app-container">
125 135
       <!-- <div class="filter-container">
@@ -579,6 +589,8 @@ export default {
579 589
         this.$router.push({ path: "/dialysis/print/batch/seven" });
580 590
       } else if (this.template_id == 8) {
581 591
         this.$router.push({ path: "/dialysis/print/batch/eight" });
592
+      } else if (this.template_id == 9) {
593
+        this.$router.push({ path: "/dialysis/print/batch/nine" });
582 594
       }
583 595
     },
584 596
     batchPrintActionOne: function() {

+ 42 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

@@ -12,7 +12,12 @@
12 12
           >打印</el-button
13 13
         >
14 14
       </template>
15
-      <template v-if=" org_template_info.template_id == 2 || org_template_info.template_id == 0  " >
15
+      <template
16
+        v-if="
17
+          org_template_info.template_id == 2 ||
18
+            org_template_info.template_id == 0
19
+        "
20
+      >
16 21
         <div>
17 22
           <el-button
18 23
             :loading="loading"
@@ -88,7 +93,12 @@
88 93
           >
89 94
         </div>
90 95
       </template>
91
-      <template v-if="org_template_info.template_id == 6 || org_template_info.template_id == 10">
96
+      <template
97
+        v-if="
98
+          org_template_info.template_id == 6 ||
99
+            org_template_info.template_id == 10
100
+        "
101
+      >
92 102
         <el-button
93 103
           :loading="loading"
94 104
           size="small"
@@ -119,6 +129,16 @@
119 129
           >打印</el-button
120 130
         >
121 131
       </template>
132
+      <template v-if="org_template_info.template_id == 9">
133
+        <el-button
134
+          :loading="loading"
135
+          size="small"
136
+          icon="el-icon-printer"
137
+          @click="printThisPage"
138
+          type="primary"
139
+          >打印</el-button
140
+        >
141
+      </template>
122 142
     </div>
123 143
     <div class="app-container ">
124 144
       <!--<div class="order-print-btn"-->
@@ -186,8 +206,12 @@
186 206
         v-bind:childResponse="childResponse"
187 207
         v-if="org_template_info.template_id == 10"
188 208
       ></DialysisPrintOrderTen>
209
+      <DialysisPrintOrder
189 210
 
190
-
211
+      <!--<DialysisPrintOrderNine-->
212
+        <!--v-bind:childResponse="childResponse"-->
213
+        <!--v-if="org_template_info.template_id == 9"-->
214
+      <!--&gt;</DialysisPrintOrderNine>-->
191 215
     </div>
192 216
   </div>
193 217
 </template>
@@ -207,7 +231,7 @@ import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
207 231
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
208 232
 import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
209 233
 import print from "print-js";
210
-import DialysisPrintOrderTen from './template/DialysisPrintOrderTen'
234
+import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
211 235
 
212 236
 export default {
213 237
   name: "dialysisPrintOrder",
@@ -356,6 +380,9 @@ export default {
356 380
       //   '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
357 381
       //
358 382
 
383
+      const style5 =
384
+        '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title {  margin: auto;  font-weight: 600;  text-align: center;  font-size: 22px;  padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 40px;  font-size: 14px;}.dialysis-print-order .print-table-no {  width: 100%;  text-align: center;  border-collapse: collapse;  font-size: 14px;}.dialysis-print-order .under-line {  border-bottom: 1px solid #999;  width: 95%;  text-align: center;  margin-left: 2px;}.dialysis-print-order .title-box {  text-align: center;  font-size: 16px;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  display: inline-block;  line-height: 1;  position: relative;  vertical-align: middle;}.dialysis-print-order .radio-fang {  display: inline-block;  position: relative;  border: 1px solid #000;  box-sizing: border-box;  width: 14px;  height: 14px;  background-color: #fff;  z-index: 1;  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after {  content: "√";  font-size: 15px;}.dialysis-print-order .print-table-no tr td {  padding: 8px 5px;  line-height: 25px;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
385
+
359 386
       if (this.org_template_info.template_id == 1) {
360 387
         printJS({
361 388
           printable: "dialysis-print-box",
@@ -394,7 +421,10 @@ export default {
394 421
           style: style2,
395 422
           scanStyles: false
396 423
         });
397
-      } else if (this.org_template_info.template_id == 6 || this.org_template_info.template_id == 10) {
424
+      } else if (
425
+        this.org_template_info.template_id == 6 ||
426
+        this.org_template_info.template_id == 10
427
+      ) {
398 428
         printJS({
399 429
           printable: "dialysis-print-box-1",
400 430
           type: "html",
@@ -415,6 +445,13 @@ export default {
415 445
           style: style,
416 446
           scanStyles: false
417 447
         });
448
+      } else if (this.org_template_info.template_id == 9) {
449
+        printJS({
450
+          printable: "dialysis-print-box",
451
+          type: "html",
452
+          style: style5,
453
+          scanStyles: false
454
+        });
418 455
       }
419 456
     },
420 457
     printThisOnePage() {

Diff nebyl zobrazen, protože je příliš veliký
+ 3066 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue


+ 78 - 14
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue Zobrazit soubor

@@ -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>