see999 4 anos atrás
pai
commit
2963bd6bae
1 arquivos alterados com 28 adições e 1 exclusões
  1. 28 1
      src/xt_pages/outpatientCharges/summary.vue

+ 28 - 1
src/xt_pages/outpatientCharges/summary.vue Ver arquivo

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)">
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
                         </el-button>
108
                         </el-button>
109
+                        <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109
                     </template>
110
                     </template>
110
                 </el-table-column>
111
                 </el-table-column>
111
             </el-table>
112
             </el-table>
156
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
         </el-dialog>
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
     </div>
169
     </div>
161
 </template>
170
 </template>
171
   import NewStatementPrintTwo from './newStatementPrintTwo'
180
   import NewStatementPrintTwo from './newStatementPrintTwo'
172
   import { fetchAllAdminUsers } from '@/api/doctor'
181
   import { fetchAllAdminUsers } from '@/api/doctor'
173
   import axios from 'axios'
182
   import axios from 'axios'
183
+  // import invoicePrint from './invoicePrint'
174
 
184
 
175
   export default {
185
   export default {
176
     components: {
186
     components: {
178
       NewStatementPrint,
188
       NewStatementPrint,
179
       BreadCrumb,
189
       BreadCrumb,
180
       listPrint,
190
       listPrint,
181
-      allListPrint
191
+      allListPrint,
192
+      // invoicePrint
182
     },
193
     },
183
     data() {
194
     data() {
184
       return {
195
       return {
202
         listVisible: false,
213
         listVisible: false,
203
         allListVisible: false,
214
         allListVisible: false,
204
         adminUserOptions:[],
215
         adminUserOptions:[],
216
+        invoiceVisible:false,
217
+        paramsObj:{},
218
+        invoiceParams:{}
205
 
219
 
206
       }
220
       }
207
     },
221
     },
475
         } else if (index == 2) {
489
         } else if (index == 2) {
476
           this.allListVisible = true
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
     }, created() {
506
     }, created() {
480
 
507