Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 years ago
parent
commit
8d14f9c9db

+ 3 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -1887,6 +1887,7 @@
1887 1887
 
1888 1888
           if (index == 1) {
1889 1889
             let params = {
1890
+              p_type:1,
1890 1891
               patient_id: this.patientInfo.id,
1891 1892
               diagnose: this.diagnose,
1892 1893
               sick_type: this.state1,
@@ -1971,7 +1972,8 @@
1971 1972
                 department: this.departmentValue,
1972 1973
                 record_date: this.end_time,
1973 1974
                 his_patient_id: this.hisPatientInfo.id,
1974
-                reg_type: this.register_type
1975
+                reg_type: this.register_type,
1976
+                p_type: 1,
1975 1977
               };
1976 1978
 
1977 1979
               var month_prescriptions = this.deepClone(this.month_prescriptions);

+ 3 - 2
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -91,7 +91,8 @@
91 91
                         </el-button>
92 92
 
93 93
                       <el-button
94
-                        v-if="(this.hisPatientInfo.id > 0 && this.order.order_status == 1) || (this.hisPatientInfo.id > 0 && this.order.order_status == 2) "
94
+                        v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
95
+
95 96
                         size="small" @click="open(9)" type="primary"
96 97
                       >撤销明细
97 98
                       </el-button>
@@ -1031,7 +1032,7 @@
1031 1032
 
1032 1033
         let params = {
1033 1034
           'record_date': this.record_date
1034
-        };
1035
+         };
1035 1036
         GetHisHospitalChargePatientList(params).then(response => {
1036 1037
           if (response.data.state == 0) {
1037 1038
             this.$message.error(response.data.msg);

+ 2 - 2
src/xt_pages/hospitalStation/statementPrint.vue View File

@@ -13,8 +13,8 @@
13 13
       </template>
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne :info="info" v-if="org_id != 9990"></printOne>
17
-        <printTwo  :info="info" v-if="org_id == 9990"></printTwo>
16
+        <printOne :info="info"></printOne>
17
+        <!-- <printTwo  :info="info" v-if="org_id == 9990"></printTwo> -->
18 18
       </div>
19 19
   </div>
20 20
 </template>

+ 19 - 7
src/xt_pages/outpatientCharges/newStatementPrint.vue View File

@@ -71,14 +71,26 @@
71 71
         var ptime = Math.round(new Date().getTime() / 1000);
72 72
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
73 73
 
74
-        const style =
74
+        if(this.org_id != 9990){
75
+          const style =
75 76
           '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
76
-        printJS({
77
-          printable: "statement-print",
78
-          type: "html",
79
-          style: style,
80
-          scanStyles: false
81
-        });
77
+          printJS({
78
+            printable: "statement-print",
79
+            type: "html",
80
+            style: style,
81
+            scanStyles: false
82
+          });
83
+        }else {
84
+          const style =
85
+          '@media print {#statement-print{font-size:12px;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
86
+          printJS({
87
+            printable: "statement-print",
88
+            type: "html",
89
+            style: style,
90
+            scanStyles: false
91
+          });
92
+        }
93
+        
82 94
 
83 95
         // if (this.org_template_info.template_id == 1) {
84 96
         //   printJS({

+ 7 - 3
src/xt_pages/outpatientCharges/settlementPrint.vue View File

@@ -13,7 +13,7 @@
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16
-            <printOne v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
16
+            <printOne v-bind:childResponse="childResponse" :info="info" :p_admin="p_admin" :charge_admin="charge_admin" :paramsObj="paramsObj"></printOne>
17 17
         </div>
18 18
     </div>
19 19
   </div>
@@ -41,8 +41,10 @@ export default {
41 41
         { path: false, name: "打印单" }
42 42
       ],
43 43
       childResponse: {},
44
-      paramsObj:{}
45
-      
44
+      paramsObj:{},
45
+      info:null,
46
+      p_admin:{},
47
+      charge_admin:{},
46 48
 
47 49
     };
48 50
   },
@@ -180,6 +182,8 @@ export default {
180 182
 
181 183
               console.log(response.data.data.info)
182 184
               that.info = response.data.data.info
185
+              that.p_admin = response.data.data.printor_admin
186
+              that.charge_admin = response.data.data.charge_admin
183 187
               console.log(that.info)
184 188
 
185 189
               that.info['bed_cost_total'] = response.data.data.bedCostTotal

+ 3 - 4
src/xt_pages/outpatientCharges/statementTemplate/printTwo.vue View File

@@ -20,7 +20,7 @@
20 20
     </div>
21 21
     <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;padding-bottom:10px;">
22 22
       <div style="flex:1;">单据编码:{{info.number}}</div>
23
-      <div style="width:33%">就诊时间:{{getTime(info.date)}}</div>
23
+      <div style="width:33%">就诊时间:{{getTime(order_infos.date)}}</div>
24 24
       <div>金额单位:元</div>
25 25
     </div>
26 26
     <div style="display:flex">
@@ -29,7 +29,7 @@
29 29
     </div>
30 30
     <div style="display:flex">
31 31
       <div style="width:50%">社保卡号</div>
32
-      <div style="width:50%">诊断:{{info.diagnosis}}</div>
32
+      <div style="width:50%">诊断:慢性肾脏病5期</div>
33 33
     </div>
34 34
     <div style="display:flex">
35 35
       <div style="width:50%" v-if="info.psn_type == '11'">人员类别:在职</div>
@@ -171,9 +171,8 @@
171 171
   }
172 172
 
173 173
   .statementTitle {
174
-    font-size: 28px;
174
+    font-size: 22px;
175 175
     text-align: center;
176
-    font-weight: bold;
177 176
     margin-bottom: 10px;
178 177
   }
179 178
 

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1887,6 +1887,7 @@
1887 1887
 
1888 1888
           if (index == 1) {
1889 1889
             let params = {
1890
+              p_type:2,
1890 1891
               patient_id: this.patientInfo.id,
1891 1892
               diagnose: this.diagnose,
1892 1893
               sick_type: this.state1,
@@ -1971,7 +1972,8 @@
1971 1972
                 department: this.departmentValue,
1972 1973
                 record_date: this.end_time,
1973 1974
                 his_patient_id: this.hisPatientInfo.id,
1974
-                reg_type: this.register_type
1975
+                reg_type: this.register_type,
1976
+                p_type: 2,
1975 1977
               };
1976 1978
 
1977 1979
               var month_prescriptions = this.deepClone(this.month_prescriptions);