|
@@ -1,167 +1,162 @@
|
1
|
1
|
<template>
|
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>-->
|
|
2
|
+ <div class="main-contain outpatientChargesManagement">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
43
|
5
|
</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>
|
|
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">报表下载</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)">
|
|
104
|
+ 结算单
|
|
105
|
+ </el-button>
|
|
106
|
+ <el-button size="mini" type="primary" v-if="scope.row.order_status == 2" @click="settlementPrint(scope.row)">结算单</el-button>
|
|
107
|
+ <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
|
|
108
|
+ 退费
|
|
109
|
+ </el-button>
|
|
110
|
+ <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
|
|
111
|
+ </template>
|
|
112
|
+ </el-table-column>
|
|
113
|
+ </el-table>
|
|
114
|
+ <el-pagination
|
|
115
|
+ @size-change="handleSizeChange"
|
|
116
|
+ @current-change="handleCurrentChange"
|
|
117
|
+ :page-sizes="[10, 50, 100]"
|
|
118
|
+ :page-size="10"
|
|
119
|
+ background
|
|
120
|
+ style="margin-top:20px;float: right"
|
|
121
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
122
|
+ :total="total"
|
|
123
|
+
|
|
124
|
+ >
|
|
125
|
+ </el-pagination>
|
55
|
126
|
</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)"
|
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 && scope.row.result.id == 0">
|
112
|
|
- 上传结算清单
|
113
|
|
- </el-button>
|
114
|
|
- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
|
115
|
|
-
|
116
|
|
- </template>
|
117
|
|
- </el-table-column>
|
118
|
|
- </el-table>
|
119
|
|
- <el-pagination
|
120
|
|
- @size-change="handleSizeChange"
|
121
|
|
- @current-change="handleCurrentChange"
|
122
|
|
- :page-sizes="[10, 50, 100]"
|
123
|
|
- :page-size="10"
|
124
|
|
- background
|
125
|
|
- style="margin-top:20px;float: right"
|
126
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
127
|
|
- :total="total"
|
128
|
|
-
|
129
|
|
- >
|
130
|
|
- </el-pagination>
|
131
|
|
- </div>
|
132
|
127
|
|
133
|
|
- <el-dialog
|
134
|
|
- class="centerDialog"
|
135
|
|
- width="1200px"
|
136
|
|
- title="打印"
|
137
|
|
- :visible.sync="statementVisible">
|
138
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
139
|
|
- <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
140
|
|
- </el-dialog>
|
141
|
|
- <el-dialog
|
142
|
|
- class="centerDialog"
|
143
|
|
- width="900px"
|
144
|
|
- title="打印"
|
145
|
|
- :visible.sync="listVisible">
|
146
|
|
- <listPrint></listPrint>
|
147
|
|
- </el-dialog>
|
148
|
|
- <el-dialog
|
149
|
|
- class="centerDialog"
|
150
|
|
- width="900px"
|
151
|
|
- title="打印"
|
152
|
|
- :visible.sync="allListVisible">
|
153
|
|
- <allListPrint :paramsObj='paramsObj'></allListPrint>
|
154
|
|
- </el-dialog>
|
155
|
|
-
|
156
|
|
- <el-dialog
|
157
|
|
- class="centerDialog"
|
158
|
|
- width="1200px"
|
159
|
|
- title="打印"
|
160
|
|
- :visible.sync="statementVisible9504">
|
161
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
162
|
|
- <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
163
|
|
- <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
164
|
|
- </el-dialog>
|
|
128
|
+ <el-dialog
|
|
129
|
+ class="centerDialog"
|
|
130
|
+ width="1200px"
|
|
131
|
+ title="打印"
|
|
132
|
+ :visible.sync="statementVisible">
|
|
133
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
134
|
+ <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
|
135
|
+ </el-dialog>
|
|
136
|
+ <el-dialog
|
|
137
|
+ class="centerDialog"
|
|
138
|
+ width="900px"
|
|
139
|
+ title="打印"
|
|
140
|
+ :visible.sync="listVisible">
|
|
141
|
+ <listPrint></listPrint>
|
|
142
|
+ </el-dialog>
|
|
143
|
+ <el-dialog
|
|
144
|
+ class="centerDialog"
|
|
145
|
+ width="900px"
|
|
146
|
+ title="打印"
|
|
147
|
+ :visible.sync="allListVisible">
|
|
148
|
+ <allListPrint :paramsObj='paramsObj'></allListPrint>
|
|
149
|
+ </el-dialog>
|
|
150
|
+
|
|
151
|
+ <el-dialog
|
|
152
|
+ class="centerDialog"
|
|
153
|
+ width="1200px"
|
|
154
|
+ title="打印"
|
|
155
|
+ :visible.sync="statementVisible9504">
|
|
156
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
157
|
+ <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
|
158
|
+ <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
|
159
|
+ </el-dialog>
|
165
|
160
|
|
166
|
161
|
<el-dialog
|
167
|
162
|
class="centerDialog"
|
|
@@ -170,16 +165,15 @@
|
170
|
165
|
:visible.sync="invoiceVisible">
|
171
|
166
|
<invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
|
172
|
167
|
</el-dialog>
|
173
|
|
- <!-- <el-dialog
|
|
168
|
+ <el-dialog
|
174
|
169
|
class="centerDialog"
|
175
|
170
|
width="1200px"
|
176
|
171
|
title="打印"
|
177
|
172
|
:visible.sync="settlementVisible">
|
178
|
|
- <settlement-print ref="print" :paramsObj='orderObj'></settlement-print>
|
179
|
|
- </el-dialog> -->
|
180
|
|
-
|
|
173
|
+ <settlement-print ref="print" :paramsObj='settlementObj'></settlement-print>
|
|
174
|
+ </el-dialog>
|
181
|
175
|
|
182
|
|
- </div>
|
|
176
|
+ </div>
|
183
|
177
|
</template>
|
184
|
178
|
|
185
|
179
|
|
|
@@ -194,7 +188,7 @@
|
194
|
188
|
import { fetchAllAdminUsers } from '@/api/doctor'
|
195
|
189
|
import axios from 'axios'
|
196
|
190
|
import invoicePrint from './invoicePrint'
|
197
|
|
- // import settlementPrint from './settlementPrint'
|
|
191
|
+ import settlementPrint from './settlementPrint'
|
198
|
192
|
|
199
|
193
|
export default {
|
200
|
194
|
components: {
|
|
@@ -204,7 +198,7 @@
|
204
|
198
|
listPrint,
|
205
|
199
|
allListPrint,
|
206
|
200
|
invoicePrint,
|
207
|
|
- // settlementPrint
|
|
201
|
+ settlementPrint
|
208
|
202
|
},
|
209
|
203
|
data() {
|
210
|
204
|
return {
|
|
@@ -231,37 +225,12 @@
|
231
|
225
|
invoiceVisible:false,
|
232
|
226
|
paramsObj:{},
|
233
|
227
|
invoiceParams:{},
|
234
|
|
- settlementVisible:false
|
|
228
|
+ settlementVisible:false,
|
|
229
|
+ settlementObj:{}
|
235
|
230
|
|
236
|
231
|
}
|
237
|
232
|
},
|
238
|
233
|
methods: {
|
239
|
|
- uploadInfo(row) {
|
240
|
|
- var that = this
|
241
|
|
- axios.get('http://127.0.0.1:9532/api/settlelist/get', {
|
242
|
|
- params: {
|
243
|
|
- order_id: row.id,
|
244
|
|
- admin_user_id: this.$store.getters.xt_user.user.id
|
245
|
|
- }
|
246
|
|
- }).then(function (response) {
|
247
|
|
- if (response.data.state == 0) {
|
248
|
|
- that.$message.error(response.data.msg)
|
249
|
|
- return false
|
250
|
|
- } else {
|
251
|
|
-
|
252
|
|
- if (response.data.data.failed_code == -10) {
|
253
|
|
- that.$message.error(response.data.data.msg)
|
254
|
|
-
|
255
|
|
- } else {
|
256
|
|
- that.$message.success("上传成功")
|
257
|
|
- row.result.id = response.data.data.result.id
|
258
|
|
- }
|
259
|
|
-
|
260
|
|
-
|
261
|
|
- }
|
262
|
|
- }).catch(function (error) {
|
263
|
|
- })
|
264
|
|
- },
|
265
|
234
|
fetchAllAdminUsers() {
|
266
|
235
|
fetchAllAdminUsers().then(response => {
|
267
|
236
|
if (response.data.state == 1) {
|
|
@@ -277,8 +246,8 @@
|
277
|
246
|
}
|
278
|
247
|
}
|
279
|
248
|
|
280
|
|
- }, toRefund(row) {
|
281
|
|
- 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) {
|
|
249
|
+ },toRefund(row){
|
|
250
|
+ 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 == 10106) {
|
282
|
251
|
var that = this
|
283
|
252
|
this.$confirm('是否退费', '退费', {
|
284
|
253
|
confirmButtonText: '确 定',
|
|
@@ -294,7 +263,7 @@
|
294
|
263
|
axios.get('http://127.0.0.1:9532/api/refund/post', {
|
295
|
264
|
params: params
|
296
|
265
|
})
|
297
|
|
- .then(function (response) {
|
|
266
|
+ .then(function(response) {
|
298
|
267
|
if (response.data.state == 0) {
|
299
|
268
|
that.$message.error(response.data.msg)
|
300
|
269
|
return false
|
|
@@ -302,13 +271,13 @@
|
302
|
271
|
if (response.data.data.failed_code == -10) {
|
303
|
272
|
that.$message.error(response.data.data.msg)
|
304
|
273
|
} else {
|
305
|
|
- that.$message({message: '退费成功', type: 'success', duration: 5000})
|
|
274
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
306
|
275
|
that.getHisOrderList()
|
307
|
276
|
|
308
|
277
|
}
|
309
|
278
|
}
|
310
|
279
|
})
|
311
|
|
- .catch(function (error) {
|
|
280
|
+ .catch(function(error) {
|
312
|
281
|
})
|
313
|
282
|
}).catch(() => {
|
314
|
283
|
})
|
|
@@ -330,7 +299,7 @@
|
330
|
299
|
this.$message.error(response.data.msg)
|
331
|
300
|
return false
|
332
|
301
|
} else {
|
333
|
|
- this.$message({message: '退费成功', type: 'success'})
|
|
302
|
+ this.$message({ message: '退费成功', type: 'success' })
|
334
|
303
|
this.getHisOrderList()
|
335
|
304
|
}
|
336
|
305
|
})
|
|
@@ -357,8 +326,12 @@
|
357
|
326
|
}
|
358
|
327
|
|
359
|
328
|
},
|
360
|
|
- settlementPrint(){
|
|
329
|
+ settlementPrint(row){
|
361
|
330
|
this.settlementVisible = true
|
|
331
|
+ let obj = {
|
|
332
|
+ order_id: row.id
|
|
333
|
+ }
|
|
334
|
+ this.settlementObj = obj
|
362
|
335
|
},
|
363
|
336
|
export_detail() {
|
364
|
337
|
let params = {
|
|
@@ -411,11 +384,6 @@
|
411
|
384
|
doctor_name = order.p_info.doctor
|
412
|
385
|
}
|
413
|
386
|
|
414
|
|
- if (order.creator != null) {
|
415
|
|
- charge_name = this.getName(order.creator)
|
416
|
|
- }
|
417
|
|
-
|
418
|
|
-
|
419
|
387
|
if (order.order_status == 1) {
|
420
|
388
|
order_status = '待结算'
|
421
|
389
|
}
|
|
@@ -428,39 +396,30 @@
|
428
|
396
|
order_status = '已退费'
|
429
|
397
|
}
|
430
|
398
|
|
431
|
|
-
|
432
|
399
|
let obj = {
|
433
|
400
|
'就诊号': number,
|
434
|
401
|
'患者姓名': name,
|
435
|
402
|
'应收金额': order.medfee_sumamt,
|
436
|
|
- '实收金额': order.psn_cash_pay,
|
437
|
|
- '医保统筹金额': order.fund_pay_sumamt,
|
438
|
|
- '大额基金金额': order.hifob_pay,
|
439
|
|
- '大病基金金额': order.hifmi_pay,
|
440
|
|
- '补充保险基金金额': order.hifes_pay,
|
441
|
|
- '医疗救助基金金额': order.maf_pay,
|
442
|
|
- '公务员基金': order.cvlserv_pay,
|
443
|
|
- '个人支付基金': order.psn_cash_pay,
|
444
|
|
- '个人账户支付金额': order.acct_pay,
|
|
403
|
+ '实收金额': order.medfee_sumamt,
|
445
|
404
|
'科室': department,
|
446
|
405
|
'医生姓名': doctor_name,
|
447
|
406
|
'收费类别': balance_accounts,
|
448
|
|
- '收费者姓名': charge_name,
|
|
407
|
+ '收费者姓名': doctor_name,
|
449
|
408
|
'总金额': order.medfee_sumamt,
|
450
|
409
|
'现金支付': '',
|
451
|
410
|
'账户支付': '',
|
452
|
411
|
'支付宝支付': '',
|
453
|
412
|
'微信支付': '',
|
454
|
413
|
'其他支付': '',
|
455
|
|
- '收费时间': order.setl_time,
|
|
414
|
+ '收费日期': '',
|
456
|
415
|
'收费状态': order_status,
|
457
|
416
|
'退费日期': ''
|
458
|
417
|
}
|
459
|
418
|
list.push(obj)
|
460
|
419
|
}
|
461
|
420
|
import('@/vendor/Export2Excel').then(excel => {
|
462
|
|
- const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
463
|
|
- const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
|
421
|
+ const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
|
422
|
+ const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
464
|
423
|
const data = this.formatJson(filterVal, list)
|
465
|
424
|
excel.export_json_to_excel({
|
466
|
425
|
header: tHeader,
|
|
@@ -552,7 +511,7 @@
|
552
|
511
|
invoicePrint(obj){
|
553
|
512
|
console.log(obj)
|
554
|
513
|
let paramsObj = {
|
555
|
|
- order_id: obj.id,
|
|
514
|
+ order_id: obj.order_info.order_id,
|
556
|
515
|
patient_id: obj.patient_id,
|
557
|
516
|
name:obj.patient.name,
|
558
|
517
|
age:obj.age,
|