see999 3 年前
父节点
当前提交
018b1dfb91

+ 27 - 12
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

14
 
14
 
15
         <div class='dialysisPage' style="padding-top:40px;">
15
         <div class='dialysisPage' style="padding-top:40px;">
16
             <!--<printOne :info="info"></printOne>-->
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
         </div>
20
         </div>
19
     </div>
21
     </div>
20
 </template>
22
 </template>
30
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
32
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
31
   import print from "print-js";
33
   import print from "print-js";
32
   import printOne from "./newTreatTemplate/printOne"
34
   import printOne from "./newTreatTemplate/printOne"
35
+  import printTwo from "./newTreatTemplate/printTwo"
33
   export default {
36
   export default {
34
     name: "newStatementPrintTwo",
37
     name: "newStatementPrintTwo",
35
     components: {
38
     components: {
36
       BreadCrumb,
39
       BreadCrumb,
37
-      printOne
40
+      printOne,
41
+      printTwo
38
     },
42
     },
39
     props:{
43
     props:{
40
       paramsObj:Object
44
       paramsObj:Object
56
         prescription_id:0,
60
         prescription_id:0,
57
         ids:'',
61
         ids:'',
58
         info:null,
62
         info:null,
63
+        org_id:''
59
       };
64
       };
60
     },
65
     },
61
     methods:{
66
     methods:{
62
       printThisPage() {
67
       printThisPage() {
63
         var ptime = Math.round(new Date().getTime() / 1000);
68
         var ptime = Math.round(new Date().getTime() / 1000);
64
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
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
         // if (this.org_template_info.template_id == 1) {
89
         // if (this.org_template_info.template_id == 1) {
76
         //   printJS({
90
         //   printJS({
77
         //     printable: "dialysis-print-box",
91
         //     printable: "dialysis-print-box",
169
     },
183
     },
170
 
184
 
171
     created() {
185
     created() {
186
+      this.org_id = this.$store.getters.xt_user.org_id
172
       this.getInfo(this.paramsObj)
187
       this.getInfo(this.paramsObj)
173
     },
188
     },
174
     watch:{
189
     watch:{

src/xt_pages/outpatientCharges/treatTemplate/printTwo.vue → src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue 查看文件

8
                 <div>透析号:<span style="display:inline-block;width:200px;"></span></div>
8
                 <div>透析号:<span style="display:inline-block;width:200px;"></span></div>
9
             </div>
9
             </div>
10
             <div style="display:flex;">
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
                 <div>性别:<span style="display:inline-block;width:30px;">{{patient.gender == 1 ? '男' : '女'}}</span></div>
12
                 <div>性别:<span style="display:inline-block;width:30px;">{{patient.gender == 1 ? '男' : '女'}}</span></div>
13
                 <div>年龄:<span style="display:inline-block;width:50px;">{{patient.age}}岁</span></div>
13
                 <div>年龄:<span style="display:inline-block;width:50px;">{{patient.age}}岁</span></div>
14
                 <div>费别:<span style="display:inline-block;width:80px;"></span></div>
14
                 <div>费别:<span style="display:inline-block;width:80px;"></span></div>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

57
             <div class="mainRight">
57
             <div class="mainRight">
58
 
58
 
59
                 <div class="mainCell fixedCell" style="margin-bottom:10px;">
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
                         <el-button v-loading="loadingone" size="small"
61
                         <el-button v-loading="loadingone" size="small"
62
                                    @click="sz_open(1)"
62
                                    @click="sz_open(1)"
63
                                    type="primary">挂号
63
                                    type="primary">挂号

+ 9 - 26
src/xt_pages/outpatientCharges/treatPrint.vue 查看文件

12
       >
12
       >
13
     </template>
13
     </template>
14
     <div class="app-container" style="padding-top:40px;">
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
     </div>
16
     </div>
21
   </div>
17
   </div>
22
 </template>
18
 </template>
35
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
31
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
36
 import print from "print-js";
32
 import print from "print-js";
37
 import printOne from "./treatTemplate/printOne"
33
 import printOne from "./treatTemplate/printOne"
38
-import printTwo from "./treatTemplate/printTwo"
39
 export default {
34
 export default {
40
   name: "dialysisPrintOrder",
35
   name: "dialysisPrintOrder",
41
   components: {
36
   components: {
42
     BreadCrumb,
37
     BreadCrumb,
43
     printOne,
38
     printOne,
44
-    printTwo
45
   },
39
   },
46
   props:{
40
   props:{
47
     paramsObj:Object
41
     paramsObj:Object
86
       var ptime = Math.round(new Date().getTime() / 1000);
80
       var ptime = Math.round(new Date().getTime() / 1000);
87
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
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
       // if (this.org_template_info.template_id == 1) {
93
       // if (this.org_template_info.template_id == 1) {

+ 2 - 2
src/xt_pages/user/inspection.vue 查看文件

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