see999 před 3 roky
rodič
revize
018b1dfb91

+ 27 - 12
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Zobrazit soubor

@@ -14,7 +14,9 @@
14 14
 
15 15
         <div class='dialysisPage' style="padding-top:40px;">
16 16
             <!--<printOne :info="info"></printOne>-->
17
-            <print-one :info="info"></print-one>
17
+
18
+            <print-one v-if="org_id != 0"  :info="info"></print-one>
19
+            <print-two v-else  :info="info"></print-two>
18 20
         </div>
19 21
     </div>
20 22
 </template>
@@ -30,11 +32,13 @@
30 32
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
31 33
   import print from "print-js";
32 34
   import printOne from "./newTreatTemplate/printOne"
35
+  import printTwo from "./newTreatTemplate/printTwo"
33 36
   export default {
34 37
     name: "newStatementPrintTwo",
35 38
     components: {
36 39
       BreadCrumb,
37
-      printOne
40
+      printOne,
41
+      printTwo
38 42
     },
39 43
     props:{
40 44
       paramsObj:Object
@@ -56,22 +60,32 @@
56 60
         prescription_id:0,
57 61
         ids:'',
58 62
         info:null,
63
+        org_id:''
59 64
       };
60 65
     },
61 66
     methods:{
62 67
       printThisPage() {
63 68
         var ptime = Math.round(new Date().getTime() / 1000);
64 69
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
65
-
66
-        const style =
67
-        '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
68
-        printJS({
69
-            printable: "prescription-print",
70
-            type: "html",
71
-            style: style,
72
-            scanStyles: false
73
-        });
74
-
70
+        if(this.org_id == 10138){
71
+          const style =
72
+          '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
73
+          printJS({
74
+              printable: "prescription-print",
75
+              type: "html",
76
+              style: style,
77
+              scanStyles: false
78
+          });
79
+        }else{
80
+          const style =
81
+          '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
82
+          printJS({
83
+              printable: "prescription-print",
84
+              type: "html",
85
+              style: style,
86
+              scanStyles: false
87
+          });
88
+        }
75 89
         // if (this.org_template_info.template_id == 1) {
76 90
         //   printJS({
77 91
         //     printable: "dialysis-print-box",
@@ -169,6 +183,7 @@
169 183
     },
170 184
 
171 185
     created() {
186
+      this.org_id = this.$store.getters.xt_user.org_id
172 187
       this.getInfo(this.paramsObj)
173 188
     },
174 189
     watch:{

src/xt_pages/outpatientCharges/treatTemplate/printTwo.vue → src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Zobrazit soubor

@@ -8,7 +8,7 @@
8 8
                 <div>透析号:<span style="display:inline-block;width:200px;"></span></div>
9 9
             </div>
10 10
             <div style="display:flex;">
11
-                <div>姓名:<span style="display:inline-block;width:50px;">{{patient.name}}</span></div>
11
+                <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient_name}}</span></div>
12 12
                 <div>性别:<span style="display:inline-block;width:30px;">{{patient.gender == 1 ? '男' : '女'}}</span></div>
13 13
                 <div>年龄:<span style="display:inline-block;width:50px;">{{patient.age}}岁</span></div>
14 14
                 <div>费别:<span style="display:inline-block;width:80px;"></span></div>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -57,7 +57,7 @@
57 57
             <div class="mainRight">
58 58
 
59 59
                 <div class="mainCell fixedCell" style="margin-bottom:10px;">
60
-                    <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138">
60
+                    <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 0">
61 61
                         <el-button v-loading="loadingone" size="small"
62 62
                                    @click="sz_open(1)"
63 63
                                    type="primary">挂号

+ 9 - 26
src/xt_pages/outpatientCharges/treatPrint.vue Zobrazit soubor

@@ -12,11 +12,7 @@
12 12
       >
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15
-        <div class='dialysisPage'>
16
-            <printOne v-if="org_id != 10138" v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
17
-            <printTwo v-else v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printTwo>
18
-
19
-        </div>
15
+      <printOne v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
20 16
     </div>
21 17
   </div>
22 18
 </template>
@@ -35,13 +31,11 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
35 31
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
36 32
 import print from "print-js";
37 33
 import printOne from "./treatTemplate/printOne"
38
-import printTwo from "./treatTemplate/printTwo"
39 34
 export default {
40 35
   name: "dialysisPrintOrder",
41 36
   components: {
42 37
     BreadCrumb,
43 38
     printOne,
44
-    printTwo
45 39
   },
46 40
   props:{
47 41
     paramsObj:Object
@@ -86,25 +80,14 @@ export default {
86 80
       var ptime = Math.round(new Date().getTime() / 1000);
87 81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
88 82
 
89
-      if(this.org_id == 10138){
90
-        const style =
91
-        '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
92
-        printJS({
93
-            printable: "prescription-print",
94
-            type: "html",
95
-            style: style,
96
-            scanStyles: false
97
-        });
98
-      }else{
99
-        const style =
100
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
101
-        printJS({
102
-            printable: "prescription-print",
103
-            type: "html",
104
-            style: style,
105
-            scanStyles: false
106
-        });
107
-      }
83
+      const style =
84
+      '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
85
+      printJS({
86
+          printable: "prescription-print",
87
+          type: "html",
88
+          style: style,
89
+          scanStyles: false
90
+      });
108 91
       
109 92
 
110 93
       // if (this.org_template_info.template_id == 1) {

+ 2 - 2
src/xt_pages/user/inspection.vue Zobrazit soubor

@@ -302,11 +302,11 @@ export default {
302 302
   methods: {
303 303
     changeInput(item){
304 304
       
305
-      if(item.item_name == '血清铁蛋白' || item.item_name == '总铁结合力'){
305
+      if(item.item_name == '血清铁' || item.item_name == '总铁结合力'){
306 306
         let index1 = ''
307 307
         let index2 = ''
308 308
         this.form.formItem.map((it,index) => {
309
-          if(this.form.formItem[index].item_name == '血清铁蛋白'){
309
+          if(this.form.formItem[index].item_name == '血清铁'){
310 310
             index1 = index
311 311
           }
312 312
           if(this.form.formItem[index].item_name == '总铁结合力'){