|
@@ -6,6 +6,10 @@
|
6
|
6
|
<div class="app-container">
|
7
|
7
|
<div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
8
|
8
|
<div>
|
|
9
|
+ <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
|
|
10
|
+ <!--@click="Action">-->
|
|
11
|
+ <!--导出-->
|
|
12
|
+ <!--</el-button>-->
|
9
|
13
|
<el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
|
10
|
14
|
@keyup.enter.native='searchAction'
|
11
|
15
|
class="filter-item"/>
|
|
@@ -203,7 +207,7 @@
|
203
|
207
|
|
204
|
208
|
<script>
|
205
|
209
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
206
|
|
- import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
|
|
210
|
+ import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund,getAllOrders } from '@/api/his/his'
|
207
|
211
|
import { uParseTime } from '@/utils/tools'
|
208
|
212
|
// import NewStatementPrint from './newStatementPrint'
|
209
|
213
|
import NewStatementPrint from './statementPrint.vue'
|
|
@@ -632,6 +636,78 @@
|
632
|
636
|
this.page = 1
|
633
|
637
|
this.keywords = ''
|
634
|
638
|
this.getHisOrderList()
|
|
639
|
+ },Action(){
|
|
640
|
+ getAllOrders().then(response => {
|
|
641
|
+ if (response.data.state == 0) {
|
|
642
|
+ this.$message.error(response.data.msg)
|
|
643
|
+ return false
|
|
644
|
+ } else {
|
|
645
|
+
|
|
646
|
+ let list = []
|
|
647
|
+ for (let i = 0; i < response.data.data.order.length; i++) {
|
|
648
|
+ let order = response.data.data.order[i]
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+ if (order.patient != null && order.patient.name.length > 0) {
|
|
652
|
+ name = order.patient.name
|
|
653
|
+
|
|
654
|
+ }
|
|
655
|
+
|
|
656
|
+ let time = order.setl_time
|
|
657
|
+ let name = order.his_patient.name
|
|
658
|
+ var hifmi_pay = 0.00
|
|
659
|
+ for (let b = 0; b < order.order_info.length; b++) {
|
|
660
|
+ let item_name = ""
|
|
661
|
+ let item_code = ""
|
|
662
|
+ let price = ""
|
|
663
|
+ let unit = ""
|
|
664
|
+ let spec = ""
|
|
665
|
+ let selfpay_prop = ""
|
|
666
|
+ if(order.order_info[b].advice.id == 0 && order.order_info[b].project.id > 0){
|
|
667
|
+ item_name = order.order_info[b].project.project.project_name
|
|
668
|
+ item_code = order.order_info[b].project.project.medical_code
|
|
669
|
+ price = order.order_info[b].pric
|
|
670
|
+ unit = order.order_info[b].project.project.unit
|
|
671
|
+ }else if(order.order_info[b].advice.id > 0 && order.order_info[b].project.id == 0){
|
|
672
|
+ item_name = order.order_info[b].advice.advice_name
|
|
673
|
+ item_code = order.order_info[b].advice.drug.medical_insurance_number
|
|
674
|
+ price = order.order_info[b].pric
|
|
675
|
+ unit = order.order_info[b].advice.prescribing_number_unit
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+ }
|
|
679
|
+ selfpay_prop = order.order_info[b].selfpay_prop
|
|
680
|
+
|
|
681
|
+ let obj = {
|
|
682
|
+ '项目名称': item_name,
|
|
683
|
+ '项目编码': "",
|
|
684
|
+ '医保编码': item_code,
|
|
685
|
+ '零售价': price,
|
|
686
|
+ '单位': unit,
|
|
687
|
+ '规格': "",
|
|
688
|
+ '收费时间': time,
|
|
689
|
+ '报销比例': selfpay_prop,
|
|
690
|
+ '患者名称': name,
|
|
691
|
+ }
|
|
692
|
+
|
|
693
|
+ list.push(obj)
|
|
694
|
+ }
|
|
695
|
+ }
|
|
696
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
697
|
+ const tHeader = ['项目名称', '项目编码', '医保编码', '零售价', '单位', '规格', '收费时间', '报销比例', '患者名称']
|
|
698
|
+ const filterVal = ['项目名称', '项目编码', '医保编码', '零售价', '单位', '规格', '收费时间', '报销比例', '患者名称']
|
|
699
|
+ const data = this.formatJson(filterVal, list)
|
|
700
|
+ excel.export_json_to_excel({
|
|
701
|
+ header: tHeader,
|
|
702
|
+ data,
|
|
703
|
+ filename: '消费明细'
|
|
704
|
+ })
|
|
705
|
+ })
|
|
706
|
+
|
|
707
|
+ }
|
|
708
|
+ })
|
|
709
|
+
|
|
710
|
+
|
635
|
711
|
},
|
636
|
712
|
searchAction() {
|
637
|
713
|
this.page = 1
|