see999 3 lat temu
rodzic
commit
2963bd6bae
1 zmienionych plików z 28 dodań i 1 usunięć
  1. 28 1
      src/xt_pages/outpatientCharges/summary.vue

+ 28 - 1
src/xt_pages/outpatientCharges/summary.vue Wyświetl plik

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