|
@@ -1,184 +1,188 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="main-contain outpatientChargesManagement">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
2
|
+ <div class="main-contain outpatientChargesManagement">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
5
|
+ </div>
|
|
6
|
+ <div class="app-container">
|
|
7
|
+ <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
|
8
|
+ <div>
|
|
9
|
+ <el-input size="small" style="width:150px;" v-model="keywords"
|
|
10
|
+ class="filter-item"/>
|
|
11
|
+ <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
|
|
12
|
+ @click="searchAction">
|
|
13
|
+ 搜索
|
|
14
|
+ </el-button>
|
|
15
|
+ <el-select size="small" v-model="admin_user_id" placeholder="请选择"
|
|
16
|
+ style="width:150px;margin-left:10px;" @change="changeDoctor">
|
|
17
|
+ <el-option
|
|
18
|
+ label="全部"
|
|
19
|
+ value="0">
|
|
20
|
+ </el-option>
|
|
21
|
+ <el-option
|
|
22
|
+ v-for="item,index in doctors"
|
|
23
|
+ :key="index"
|
|
24
|
+ :label="item.user_name"
|
|
25
|
+ :value="item.admin_user_id">
|
|
26
|
+ </el-option>
|
|
27
|
+ </el-select>
|
|
28
|
+ <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
|
|
29
|
+ @change="handleStartTimeChange" :editable="false" :clearable="false"
|
|
30
|
+ style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
|
|
31
|
+ format="yyyy-MM-dd"
|
|
32
|
+ value-format="yyyy-MM-dd"
|
|
33
|
+ align="right"></el-date-picker>
|
|
34
|
+
|
|
35
|
+ <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
|
|
36
|
+ @change="handleEndTimeChange" :editable="false" :clearable="false"
|
|
37
|
+ style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
|
38
|
+ format="yyyy-MM-dd"
|
|
39
|
+ value-format="yyyy-MM-dd"
|
|
40
|
+ align="right"></el-date-picker>
|
|
41
|
+ <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
|
|
42
|
+ <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
|
5
|
43
|
</div>
|
6
|
|
- <div class="app-container">
|
7
|
|
- <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
8
|
|
- <div>
|
9
|
|
- <el-input size="small" style="width:150px;" v-model="keywords"
|
10
|
|
- class="filter-item"/>
|
11
|
|
- <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
|
12
|
|
- @click="searchAction">
|
13
|
|
- 搜索
|
14
|
|
- </el-button>
|
15
|
|
- <el-select size="small" v-model="admin_user_id" placeholder="请选择"
|
16
|
|
- style="width:150px;margin-left:10px;" @change="changeDoctor">
|
17
|
|
- <el-option
|
18
|
|
- label="全部"
|
19
|
|
- value="0">
|
20
|
|
- </el-option>
|
21
|
|
- <el-option
|
22
|
|
- v-for="item,index in doctors"
|
23
|
|
- :key="index"
|
24
|
|
- :label="item.user_name"
|
25
|
|
- :value="item.admin_user_id">
|
26
|
|
- </el-option>
|
27
|
|
- </el-select>
|
28
|
|
- <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
|
29
|
|
- @change="handleStartTimeChange" :editable="false" :clearable="false"
|
30
|
|
- style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
|
31
|
|
- format="yyyy-MM-dd"
|
32
|
|
- value-format="yyyy-MM-dd"
|
33
|
|
- align="right"></el-date-picker>
|
34
|
|
-
|
35
|
|
- <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
|
36
|
|
- @change="handleEndTimeChange" :editable="false" :clearable="false"
|
37
|
|
- style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
38
|
|
- format="yyyy-MM-dd"
|
39
|
|
- value-format="yyyy-MM-dd"
|
40
|
|
- align="right"></el-date-picker>
|
41
|
|
- <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
|
42
|
|
- <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
|
43
|
|
- </div>
|
44
|
|
- <div>
|
45
|
|
- <!-- <el-popover
|
46
|
|
- placement="bottom"
|
47
|
|
- width="210"
|
48
|
|
- trigger="click">
|
49
|
|
- <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
|
50
|
|
- <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
|
51
|
|
- <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
|
52
|
|
-
|
53
|
|
- </el-popover> -->
|
54
|
|
- <el-button size="small" type="primary" @click="export_detail" v-loading="loading">报表下载</el-button>
|
55
|
|
- </div>
|
56
|
|
- </div>
|
57
|
|
- <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
58
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
59
|
|
- highlight-current-row>
|
60
|
|
- <el-table-column
|
61
|
|
- prop="date"
|
62
|
|
- label="序号"
|
63
|
|
- width="60"
|
64
|
|
- align="center"
|
65
|
|
- type="index"
|
66
|
|
- >
|
67
|
|
- </el-table-column>
|
68
|
|
- <el-table-column align="center" prop="name" label="就诊号">
|
69
|
|
- <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
|
70
|
|
- </el-table-column>
|
71
|
|
- <el-table-column align="center" prop="name" label="患者名字">
|
72
|
|
- <template slot-scope="scope">{{ scope.row.patient.name }}</template>
|
73
|
|
- </el-table-column>
|
74
|
|
- <!--<el-table-column align="center" prop="name" label="患者类型">-->
|
75
|
|
- <!--<template slot-scope="scope"></template>-->
|
76
|
|
- <!--</el-table-column>-->
|
77
|
|
- <el-table-column align="center" prop="name" label="应收金额">
|
78
|
|
- <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
79
|
|
- </el-table-column>
|
80
|
|
- <el-table-column align="center" prop="name" label="实收金额">
|
81
|
|
- <template slot-scope="scope">{{scope.row.reality_price}}</template>
|
82
|
|
- </el-table-column>
|
83
|
|
- <el-table-column align="center" prop="name" label="科室">
|
84
|
|
- <template slot-scope="scope">{{scope.row.department_name}}</template>
|
85
|
|
- </el-table-column>
|
86
|
|
- <el-table-column align="center" prop="name" label="收费日期">
|
87
|
|
- <template slot-scope="scope"> {{scope.row.setl_time}}</template>
|
88
|
|
- </el-table-column>
|
89
|
|
- <el-table-column align="center" prop="name" label="收费员">
|
90
|
|
- <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
|
91
|
|
- </el-table-column>
|
92
|
|
- <el-table-column align="center" prop="name" label="状态">
|
93
|
|
- <template slot-scope="scope">
|
94
|
|
- <div v-if="scope.row.order_status == 1">待结算</div>
|
95
|
|
- <div v-if="scope.row.order_status == 2">已结算</div>
|
96
|
|
- <div v-if="scope.row.order_status == 3">已退费</div>
|
97
|
|
- </template>
|
98
|
|
- </el-table-column>
|
99
|
|
- <el-table-column align="center" prop="name" label="操作">
|
100
|
|
- <template slot-scope="scope">
|
101
|
|
- <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
102
|
|
- <el-button size="mini" type="primary" @click="toPrint(scope.row)"
|
103
|
|
- v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) || ($store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || ($store.getters.xt_user.org_id == 9990) ">
|
104
|
|
- 结算单
|
105
|
|
- </el-button>
|
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 || $store.getters.xt_user.org_id== 9990)">
|
107
|
|
- 退费
|
108
|
|
- </el-button>
|
109
|
|
- <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
|
110
|
|
- </template>
|
111
|
|
- </el-table-column>
|
112
|
|
- </el-table>
|
113
|
|
- <el-pagination
|
114
|
|
- @size-change="handleSizeChange"
|
115
|
|
- @current-change="handleCurrentChange"
|
116
|
|
- :page-sizes="[10, 50, 100]"
|
117
|
|
- :page-size="10"
|
118
|
|
- background
|
119
|
|
- style="margin-top:20px;float: right"
|
120
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
121
|
|
- :total="total"
|
122
|
|
-
|
123
|
|
- >
|
124
|
|
- </el-pagination>
|
|
44
|
+ <div>
|
|
45
|
+ <!-- <el-popover
|
|
46
|
+ placement="bottom"
|
|
47
|
+ width="210"
|
|
48
|
+ trigger="click">
|
|
49
|
+ <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
|
|
50
|
+ <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
|
|
51
|
+ <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
|
|
52
|
+
|
|
53
|
+ </el-popover> -->
|
|
54
|
+ <el-button size="small" type="primary" @click="export_detail" v-loading="loading">报表下载</el-button>
|
125
|
55
|
</div>
|
126
|
|
-
|
127
|
|
- <el-dialog
|
128
|
|
- class="centerDialog"
|
129
|
|
- width="1200px"
|
130
|
|
- title="打印"
|
131
|
|
- :visible.sync="statementVisible">
|
132
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
133
|
|
- <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
134
|
|
- </el-dialog>
|
135
|
|
- <el-dialog
|
136
|
|
- class="centerDialog"
|
137
|
|
- width="900px"
|
138
|
|
- title="打印"
|
139
|
|
- :visible.sync="listVisible">
|
140
|
|
- <listPrint></listPrint>
|
141
|
|
- </el-dialog>
|
142
|
|
- <el-dialog
|
143
|
|
- class="centerDialog"
|
144
|
|
- width="900px"
|
145
|
|
- title="打印"
|
146
|
|
- :visible.sync="allListVisible">
|
147
|
|
- <allListPrint :paramsObj='paramsObj'></allListPrint>
|
148
|
|
- </el-dialog>
|
149
|
|
-
|
150
|
|
- <el-dialog
|
151
|
|
- class="centerDialog"
|
152
|
|
- width="1200px"
|
153
|
|
- title="打印"
|
154
|
|
- :visible.sync="statementVisible9504">
|
155
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
156
|
|
- <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
157
|
|
- <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
158
|
|
- </el-dialog>
|
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
|
|
-
|
168
|
|
-
|
|
56
|
+ </div>
|
|
57
|
+ <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
|
58
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
59
|
+ highlight-current-row>
|
|
60
|
+ <el-table-column
|
|
61
|
+ prop="date"
|
|
62
|
+ label="序号"
|
|
63
|
+ width="60"
|
|
64
|
+ align="center"
|
|
65
|
+ type="index"
|
|
66
|
+ >
|
|
67
|
+ </el-table-column>
|
|
68
|
+ <el-table-column align="center" prop="name" label="就诊号">
|
|
69
|
+ <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
|
|
70
|
+ </el-table-column>
|
|
71
|
+ <el-table-column align="center" prop="name" label="患者名字">
|
|
72
|
+ <template slot-scope="scope">{{ scope.row.patient.name }}</template>
|
|
73
|
+ </el-table-column>
|
|
74
|
+ <!--<el-table-column align="center" prop="name" label="患者类型">-->
|
|
75
|
+ <!--<template slot-scope="scope"></template>-->
|
|
76
|
+ <!--</el-table-column>-->
|
|
77
|
+ <el-table-column align="center" prop="name" label="应收金额">
|
|
78
|
+ <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
|
79
|
+ </el-table-column>
|
|
80
|
+ <el-table-column align="center" prop="name" label="实收金额">
|
|
81
|
+ <template slot-scope="scope">{{scope.row.reality_price}}</template>
|
|
82
|
+ </el-table-column>
|
|
83
|
+ <el-table-column align="center" prop="name" label="科室">
|
|
84
|
+ <template slot-scope="scope">{{scope.row.department_name}}</template>
|
|
85
|
+ </el-table-column>
|
|
86
|
+ <el-table-column align="center" prop="name" label="收费日期">
|
|
87
|
+ <template slot-scope="scope"> {{scope.row.setl_time}}</template>
|
|
88
|
+ </el-table-column>
|
|
89
|
+ <el-table-column align="center" prop="name" label="收费员">
|
|
90
|
+ <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
|
|
91
|
+ </el-table-column>
|
|
92
|
+ <el-table-column align="center" prop="name" label="状态">
|
|
93
|
+ <template slot-scope="scope">
|
|
94
|
+ <div v-if="scope.row.order_status == 1">待结算</div>
|
|
95
|
+ <div v-if="scope.row.order_status == 2">已结算</div>
|
|
96
|
+ <div v-if="scope.row.order_status == 3">已退费</div>
|
|
97
|
+ </template>
|
|
98
|
+ </el-table-column>
|
|
99
|
+ <el-table-column align="center" prop="name" label="操作">
|
|
100
|
+ <template slot-scope="scope">
|
|
101
|
+ <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
|
102
|
+ <el-button size="mini" type="primary" @click="toPrint(scope.row)"
|
|
103
|
+ v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) || ($store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || ($store.getters.xt_user.org_id == 9990) ">
|
|
104
|
+ 结算单
|
|
105
|
+ </el-button>
|
|
106
|
+ <el-button size="mini" type="primary" @click="toRefund(scope.row)"
|
|
107
|
+ v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id== 9990)">
|
|
108
|
+ 退费
|
|
109
|
+ </el-button>
|
|
110
|
+ <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
|
|
111
|
+ v-if="scope.row.order_status == 2">
|
|
112
|
+ 上传结算清单
|
|
113
|
+ </el-button>
|
|
114
|
+ </template>
|
|
115
|
+ </el-table-column>
|
|
116
|
+ </el-table>
|
|
117
|
+ <el-pagination
|
|
118
|
+ @size-change="handleSizeChange"
|
|
119
|
+ @current-change="handleCurrentChange"
|
|
120
|
+ :page-sizes="[10, 50, 100]"
|
|
121
|
+ :page-size="10"
|
|
122
|
+ background
|
|
123
|
+ style="margin-top:20px;float: right"
|
|
124
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
125
|
+ :total="total"
|
|
126
|
+
|
|
127
|
+ >
|
|
128
|
+ </el-pagination>
|
169
|
129
|
</div>
|
|
130
|
+
|
|
131
|
+ <el-dialog
|
|
132
|
+ class="centerDialog"
|
|
133
|
+ width="1200px"
|
|
134
|
+ title="打印"
|
|
135
|
+ :visible.sync="statementVisible">
|
|
136
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
137
|
+ <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
|
138
|
+ </el-dialog>
|
|
139
|
+ <el-dialog
|
|
140
|
+ class="centerDialog"
|
|
141
|
+ width="900px"
|
|
142
|
+ title="打印"
|
|
143
|
+ :visible.sync="listVisible">
|
|
144
|
+ <listPrint></listPrint>
|
|
145
|
+ </el-dialog>
|
|
146
|
+ <el-dialog
|
|
147
|
+ class="centerDialog"
|
|
148
|
+ width="900px"
|
|
149
|
+ title="打印"
|
|
150
|
+ :visible.sync="allListVisible">
|
|
151
|
+ <allListPrint :paramsObj='paramsObj'></allListPrint>
|
|
152
|
+ </el-dialog>
|
|
153
|
+
|
|
154
|
+ <el-dialog
|
|
155
|
+ class="centerDialog"
|
|
156
|
+ width="1200px"
|
|
157
|
+ title="打印"
|
|
158
|
+ :visible.sync="statementVisible9504">
|
|
159
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
160
|
+ <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
|
161
|
+ <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
|
162
|
+ </el-dialog>
|
|
163
|
+
|
|
164
|
+ <!-- <el-dialog
|
|
165
|
+ class="centerDialog"
|
|
166
|
+ width="1200px"
|
|
167
|
+ title="打印"
|
|
168
|
+ :visible.sync="invoiceVisible">
|
|
169
|
+ <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
|
|
170
|
+ </el-dialog> -->
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+ </div>
|
170
|
174
|
</template>
|
171
|
175
|
|
172
|
176
|
|
173
|
177
|
<script>
|
174
|
178
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
175
|
|
- import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
|
176
|
|
- import { uParseTime } from '@/utils/tools'
|
|
179
|
+ import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
|
|
180
|
+ import {uParseTime} from '@/utils/tools'
|
177
|
181
|
import NewStatementPrint from './newStatementPrint'
|
178
|
182
|
import listPrint from './listPrint'
|
179
|
183
|
import allListPrint from './allListPrint'
|
180
|
184
|
import NewStatementPrintTwo from './newStatementPrintTwo'
|
181
|
|
- import { fetchAllAdminUsers } from '@/api/doctor'
|
|
185
|
+ import {fetchAllAdminUsers} from '@/api/doctor'
|
182
|
186
|
import axios from 'axios'
|
183
|
187
|
// import invoicePrint from './invoicePrint'
|
184
|
188
|
|
|
@@ -193,14 +197,14 @@
|
193
|
197
|
},
|
194
|
198
|
data() {
|
195
|
199
|
return {
|
196
|
|
- loading:false,
|
|
200
|
+ loading: false,
|
197
|
201
|
orderObj: {},
|
198
|
202
|
statementVisible: false,
|
199
|
203
|
statementVisible9504: false,
|
200
|
204
|
orderObj9504: {},
|
201
|
205
|
crumbs: [
|
202
|
|
- { path: false, name: '门诊收费' },
|
203
|
|
- { path: false, name: '项目消费明细汇总' }
|
|
206
|
+ {path: false, name: '门诊收费'},
|
|
207
|
+ {path: false, name: '项目消费明细汇总'}
|
204
|
208
|
],
|
205
|
209
|
tableData: [],
|
206
|
210
|
limit: 10,
|
|
@@ -213,14 +217,32 @@
|
213
|
217
|
admin_user_id: '',
|
214
|
218
|
listVisible: false,
|
215
|
219
|
allListVisible: false,
|
216
|
|
- adminUserOptions:[],
|
217
|
|
- invoiceVisible:false,
|
218
|
|
- paramsObj:{},
|
219
|
|
- invoiceParams:{}
|
|
220
|
+ adminUserOptions: [],
|
|
221
|
+ invoiceVisible: false,
|
|
222
|
+ paramsObj: {},
|
|
223
|
+ invoiceParams: {}
|
220
|
224
|
|
221
|
225
|
}
|
222
|
226
|
},
|
223
|
227
|
methods: {
|
|
228
|
+ uploadInfo(row) {
|
|
229
|
+ var that = this
|
|
230
|
+ axios.get('http://127.0.0.1:9532/api/settlelist/get', {
|
|
231
|
+ params: {
|
|
232
|
+ order_id: row.id,
|
|
233
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
|
234
|
+ }
|
|
235
|
+ }).then(function (response) {
|
|
236
|
+ if (response.data.state == 0) {
|
|
237
|
+ that.$message.error(response.data.msg)
|
|
238
|
+ return false
|
|
239
|
+ } else {
|
|
240
|
+ that.$message.success("上传成功")
|
|
241
|
+ row.result.id = response.data.data.result.id
|
|
242
|
+ }
|
|
243
|
+ }).catch(function (error) {
|
|
244
|
+ })
|
|
245
|
+ },
|
224
|
246
|
fetchAllAdminUsers() {
|
225
|
247
|
fetchAllAdminUsers().then(response => {
|
226
|
248
|
if (response.data.state == 1) {
|
|
@@ -237,7 +259,7 @@
|
237
|
259
|
}
|
238
|
260
|
}
|
239
|
261
|
|
240
|
|
- },toRefund(row){
|
|
262
|
+ }, toRefund(row) {
|
241
|
263
|
if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
|
242
|
264
|
var that = this
|
243
|
265
|
this.$confirm('是否退费', '退费', {
|
|
@@ -254,7 +276,7 @@
|
254
|
276
|
axios.get('http://127.0.0.1:9532/api/refund/post', {
|
255
|
277
|
params: params
|
256
|
278
|
})
|
257
|
|
- .then(function(response) {
|
|
279
|
+ .then(function (response) {
|
258
|
280
|
if (response.data.state == 0) {
|
259
|
281
|
that.$message.error(response.data.msg)
|
260
|
282
|
return false
|
|
@@ -262,13 +284,13 @@
|
262
|
284
|
if (response.data.data.failed_code == -10) {
|
263
|
285
|
that.$message.error(response.data.data.msg)
|
264
|
286
|
} else {
|
265
|
|
- that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
287
|
+ that.$message({message: '退费成功', type: 'success', duration: 5000})
|
266
|
288
|
that.getHisOrderList()
|
267
|
289
|
|
268
|
290
|
}
|
269
|
291
|
}
|
270
|
292
|
})
|
271
|
|
- .catch(function(error) {
|
|
293
|
+ .catch(function (error) {
|
272
|
294
|
})
|
273
|
295
|
}).catch(() => {
|
274
|
296
|
})
|
|
@@ -290,7 +312,7 @@
|
290
|
312
|
this.$message.error(response.data.msg)
|
291
|
313
|
return false
|
292
|
314
|
} else {
|
293
|
|
- this.$message({ message: '退费成功', type: 'success' })
|
|
315
|
+ this.$message({message: '退费成功', type: 'success'})
|
294
|
316
|
this.getHisOrderList()
|
295
|
317
|
}
|
296
|
318
|
})
|
|
@@ -338,7 +360,7 @@
|
338
|
360
|
let department = ''
|
339
|
361
|
let doctor_name = ''
|
340
|
362
|
let charge_name = ''
|
341
|
|
- let time =''
|
|
363
|
+ let time = ''
|
342
|
364
|
let balance_accounts = ''
|
343
|
365
|
|
344
|
366
|
let order_status = ''
|
|
@@ -373,11 +395,10 @@
|
373
|
395
|
}
|
374
|
396
|
|
375
|
397
|
if (order.creator != null) {
|
376
|
|
- charge_name = this.getName(order.creator)
|
|
398
|
+ charge_name = this.getName(order.creator)
|
377
|
399
|
}
|
378
|
400
|
|
379
|
401
|
|
380
|
|
-
|
381
|
402
|
if (order.order_status == 1) {
|
382
|
403
|
order_status = '待结算'
|
383
|
404
|
}
|
|
@@ -397,13 +418,13 @@
|
397
|
418
|
'应收金额': order.medfee_sumamt,
|
398
|
419
|
'实收金额': order.psn_cash_pay,
|
399
|
420
|
'医保统筹金额': order.fund_pay_sumamt,
|
400
|
|
- '大额基金金额':order.hifob_pay,
|
401
|
|
- '大病基金金额':order.hifmi_pay,
|
402
|
|
- '补充保险基金金额':order.hifes_pay,
|
403
|
|
- '医疗救助基金金额':order.maf_pay,
|
404
|
|
- '公务员基金':order.cvlserv_pay,
|
405
|
|
- '个人支付基金':order.psn_cash_pay,
|
406
|
|
- '个人账户支付金额':order.acct_pay,
|
|
421
|
+ '大额基金金额': order.hifob_pay,
|
|
422
|
+ '大病基金金额': order.hifmi_pay,
|
|
423
|
+ '补充保险基金金额': order.hifes_pay,
|
|
424
|
+ '医疗救助基金金额': order.maf_pay,
|
|
425
|
+ '公务员基金': order.cvlserv_pay,
|
|
426
|
+ '个人支付基金': order.psn_cash_pay,
|
|
427
|
+ '个人账户支付金额': order.acct_pay,
|
407
|
428
|
'科室': department,
|
408
|
429
|
'医生姓名': doctor_name,
|
409
|
430
|
'收费类别': balance_accounts,
|
|
@@ -421,8 +442,8 @@
|
421
|
442
|
list.push(obj)
|
422
|
443
|
}
|
423
|
444
|
import('@/vendor/Export2Excel').then(excel => {
|
424
|
|
- const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额','医保统筹金额','大额基金金额','大病基金金额','补充保险基金金额','医疗救助基金金额','公务员基金','个人支付基金','个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
425
|
|
- const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额','医保统筹金额','大额基金金额','大病基金金额','补充保险基金金额','医疗救助基金金额','公务员基金','个人支付基金','个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
|
445
|
+ const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
|
446
|
+ const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
426
|
447
|
const data = this.formatJson(filterVal, list)
|
427
|
448
|
excel.export_json_to_excel({
|
428
|
449
|
header: tHeader,
|
|
@@ -511,15 +532,15 @@
|
511
|
532
|
this.allListVisible = true
|
512
|
533
|
}
|
513
|
534
|
},
|
514
|
|
- invoicePrint(obj){
|
|
535
|
+ invoicePrint(obj) {
|
515
|
536
|
console.log(obj)
|
516
|
537
|
let paramsObj = {
|
517
|
538
|
order_id: obj.order_info.order_id,
|
518
|
539
|
patient_id: obj.patient_id,
|
519
|
|
- name:obj.patient.name,
|
520
|
|
- age:obj.age,
|
521
|
|
- gend:obj.gend,
|
522
|
|
- setl_time:obj.setl_time
|
|
540
|
+ name: obj.patient.name,
|
|
541
|
+ age: obj.age,
|
|
542
|
+ gend: obj.gend,
|
|
543
|
+ setl_time: obj.setl_time
|
523
|
544
|
}
|
524
|
545
|
this.invoiceParams = paramsObj
|
525
|
546
|
this.invoiceVisible = true
|
|
@@ -532,7 +553,6 @@
|
532
|
553
|
this.getHisOrderList()
|
533
|
554
|
|
534
|
555
|
|
535
|
|
-
|
536
|
556
|
}
|
537
|
557
|
}
|
538
|
558
|
</script>
|