소스 검색

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

XMLWAN 4 년 전
부모
커밋
551743c714
2개의 변경된 파일47개의 추가작업 그리고 11개의 파일을 삭제
  1. 28 1
      src/xt_pages/outpatientCharges/summary.vue
  2. 19 10
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue

+ 28 - 1
src/xt_pages/outpatientCharges/summary.vue 파일 보기

@@ -106,6 +106,7 @@
106 106
                         <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
107 107
                             退费
108 108
                         </el-button>
109
+                        <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109 110
                     </template>
110 111
                 </el-table-column>
111 112
             </el-table>
@@ -156,6 +157,14 @@
156 157
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157 158
         </el-dialog>
158 159
 
160
+        <!-- <el-dialog
161
+                class="centerDialog"
162
+                width="1200px"
163
+                title="打印"
164
+                :visible.sync="invoiceVisible">
165
+            <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
166
+        </el-dialog> -->
167
+
159 168
 
160 169
     </div>
161 170
 </template>
@@ -171,6 +180,7 @@
171 180
   import NewStatementPrintTwo from './newStatementPrintTwo'
172 181
   import { fetchAllAdminUsers } from '@/api/doctor'
173 182
   import axios from 'axios'
183
+  // import invoicePrint from './invoicePrint'
174 184
 
175 185
   export default {
176 186
     components: {
@@ -178,7 +188,8 @@
178 188
       NewStatementPrint,
179 189
       BreadCrumb,
180 190
       listPrint,
181
-      allListPrint
191
+      allListPrint,
192
+      // invoicePrint
182 193
     },
183 194
     data() {
184 195
       return {
@@ -202,6 +213,9 @@
202 213
         listVisible: false,
203 214
         allListVisible: false,
204 215
         adminUserOptions:[],
216
+        invoiceVisible:false,
217
+        paramsObj:{},
218
+        invoiceParams:{}
205 219
 
206 220
       }
207 221
     },
@@ -475,6 +489,19 @@
475 489
         } else if (index == 2) {
476 490
           this.allListVisible = true
477 491
         }
492
+      },
493
+      invoicePrint(obj){
494
+        console.log(obj)
495
+        let paramsObj = {
496
+          order_id: obj.order_info.order_id,
497
+          patient_id: obj.patient_id,
498
+          name:obj.patient.name,
499
+          age:obj.age,
500
+          gend:obj.gend,
501
+          setl_time:obj.setl_time
502
+        }
503
+        this.invoiceParams = paramsObj
504
+        this.invoiceVisible = true
478 505
       }
479 506
     }, created() {
480 507
 

+ 19 - 10
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 파일 보기

@@ -66,7 +66,7 @@
66 66
         </div>
67 67
         <div class="otherInfo">
68 68
             <div class="otherName">药物过敏史:</div>
69
-            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
69
+            <div style="flex:1;">{{history.allergic_history?history.allergic_history:''}}</div>
70 70
         </div>
71 71
         <div class="otherInfo">
72 72
             <div class="otherName">个人史:</div>
@@ -88,8 +88,13 @@
88 88
             <div class="otherName">门诊医嘱:</div>
89 89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
90 90
         </div>
91
-        <div style="margin-top:20px;text-align:right;">
92
-            医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
91
+        <div style="display:flex;justify-content: space-between;">
92
+            <div style="margin-top:20px;">
93
+                打印日期:{{ printDate }}
94
+            </div>
95
+            <div style="margin-top:20px;text-align:right;">
96
+                医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
97
+            </div>
93 98
         </div>
94 99
     </div>
95 100
 </div>
@@ -110,7 +115,8 @@ export default {
110 115
             educationOptions:[],
111 116
             departmentList:[],
112 117
             orgname:'',
113
-            history:{}
118
+            history:{},
119
+            printDate:''
114 120
         }                   
115 121
     },
116 122
     methods:{
@@ -176,13 +182,16 @@ export default {
176 182
     }
177 183
     },
178 184
     created(){
179
-      this.educationOptions = getDataConfig("patient", "education_types");
180
-      console.log("22222",this.educationOptions)
181
-      this.getAllDoctorList()
182
-      this.getPatientCaseHistory()
185
+        this.educationOptions = getDataConfig("patient", "education_types");
186
+        this.getAllDoctorList()
187
+        this.getPatientCaseHistory()
183 188
 
184
-     var xtuser = this.$store.getters.xt_user
185
-     this.orgname = xtuser.org.org_name
189
+        var xtuser = this.$store.getters.xt_user
190
+        this.orgname = xtuser.org.org_name
191
+        var data = new Date();
192
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
193
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
194
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
186 195
     }
187 196
 }
188 197
 </script>