|
@@ -1,201 +1,201 @@
|
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">报表下载</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" width="100" prop="name" label="就诊号">
|
|
69
|
+ <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
|
|
70
|
+ </el-table-column>
|
|
71
|
+ <el-table-column align="center" width="90" 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
|
+
|
|
78
|
+ <el-table-column align="center" width="90" prop="name" label="应收金额">
|
|
79
|
+ <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
|
80
|
+ </el-table-column>
|
|
81
|
+ <el-table-column align="center" width="90" prop="name" label="实收金额">
|
|
82
|
+ <template slot-scope="scope">{{scope.row.reality_price}}</template>
|
|
83
|
+ </el-table-column>
|
|
84
|
+ <el-table-column align="center" width="90" prop="name" label="科室">
|
|
85
|
+ <template slot-scope="scope">{{scope.row.department_name}}</template>
|
|
86
|
+ </el-table-column>
|
|
87
|
+ <el-table-column align="center" width="100" prop="name" label="收费日期">
|
|
88
|
+ <template slot-scope="scope">
|
|
89
|
+ {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
|
|
90
|
+ </template>
|
|
91
|
+ </el-table-column>
|
|
92
|
+ <el-table-column align="center" width="90" prop="name" label="收费员">
|
|
93
|
+ <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
|
|
94
|
+ </el-table-column>
|
|
95
|
+ <el-table-column align="center" width="80" prop="name" label="状态">
|
|
96
|
+ <template slot-scope="scope">
|
|
97
|
+ <div v-if="scope.row.order_status == 1">待结算</div>
|
|
98
|
+ <div v-if="scope.row.order_status == 2">已结算</div>
|
|
99
|
+ <div v-if="scope.row.order_status == 3">已退费</div>
|
|
100
|
+ </template>
|
|
101
|
+ </el-table-column>
|
|
102
|
+ <el-table-column align="center" prop="name" label="操作">
|
|
103
|
+ <template slot-scope="scope">
|
|
104
|
+ <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
|
105
|
+ <el-button size="mini" type="primary" @click="toPrint(scope.row)"
|
|
106
|
+ v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10138) || (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) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
|
|
107
|
+ 结算单
|
|
108
|
+ </el-button>
|
|
109
|
+ <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
|
|
110
|
+ v-if="scope.row.order_status == 2&& scope.row.result.id == 0">
|
|
111
|
+ 上传结算清单
|
|
112
|
+ </el-button>
|
|
113
|
+ <el-button size="mini" type="primary"
|
|
114
|
+ v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
|
|
115
|
+ @click="settlementPrint(scope.row)">结算单
|
|
116
|
+ </el-button>
|
|
117
|
+ <el-button size="mini" type="primary" @click="toRefund(scope.row)">
|
|
118
|
+ 退费
|
|
119
|
+ </el-button>
|
|
120
|
+ <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
|
|
121
|
+ </template>
|
|
122
|
+ </el-table-column>
|
|
123
|
+ </el-table>
|
|
124
|
+ <el-pagination
|
|
125
|
+ @size-change="handleSizeChange"
|
|
126
|
+ @current-change="handleCurrentChange"
|
|
127
|
+ :page-sizes="[10, 50, 100]"
|
|
128
|
+ :page-size="10"
|
|
129
|
+ background
|
|
130
|
+ style="margin-top:20px;float: right"
|
|
131
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
132
|
+ :total="total"
|
|
133
|
+
|
|
134
|
+ >
|
|
135
|
+ </el-pagination>
|
55
|
136
|
</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" width="100" prop="name" label="就诊号">
|
69
|
|
- <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
|
70
|
|
- </el-table-column>
|
71
|
|
- <el-table-column align="center" width="90" 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
|
|
-
|
78
|
|
- <el-table-column align="center" width="90" prop="name" label="应收金额">
|
79
|
|
- <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
80
|
|
- </el-table-column>
|
81
|
|
- <el-table-column align="center" width="90" prop="name" label="实收金额">
|
82
|
|
- <template slot-scope="scope">{{scope.row.reality_price}}</template>
|
83
|
|
- </el-table-column>
|
84
|
|
- <el-table-column align="center" width="90" prop="name" label="科室">
|
85
|
|
- <template slot-scope="scope">{{scope.row.department_name}}</template>
|
86
|
|
- </el-table-column>
|
87
|
|
- <el-table-column align="center" width="100" prop="name" label="收费日期">
|
88
|
|
- <template slot-scope="scope">
|
89
|
|
- {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
|
90
|
|
- </template>
|
91
|
|
- </el-table-column>
|
92
|
|
- <el-table-column align="center" width="90" prop="name" label="收费员">
|
93
|
|
- <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
|
94
|
|
- </el-table-column>
|
95
|
|
- <el-table-column align="center" width="80" prop="name" label="状态">
|
96
|
|
- <template slot-scope="scope">
|
97
|
|
- <div v-if="scope.row.order_status == 1">待结算</div>
|
98
|
|
- <div v-if="scope.row.order_status == 2">已结算</div>
|
99
|
|
- <div v-if="scope.row.order_status == 3">已退费</div>
|
100
|
|
- </template>
|
101
|
|
- </el-table-column>
|
102
|
|
- <el-table-column align="center" prop="name" label="操作">
|
103
|
|
- <template slot-scope="scope">
|
104
|
|
- <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
105
|
|
- <el-button size="mini" type="primary" @click="toPrint(scope.row)"
|
106
|
|
- v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10138) || (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) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
|
107
|
|
- 结算单
|
108
|
|
- </el-button>
|
109
|
|
- <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
|
110
|
|
- v-if="scope.row.order_status == 2&& scope.row.result.id == 0">
|
111
|
|
- 上传结算清单
|
112
|
|
- </el-button>
|
113
|
|
- <el-button size="mini" type="primary"
|
114
|
|
- v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
|
115
|
|
- @click="settlementPrint(scope.row)">结算单
|
116
|
|
- </el-button>
|
117
|
|
- <el-button size="mini" type="primary" @click="toRefund(scope.row)">
|
118
|
|
- 退费
|
119
|
|
- </el-button>
|
120
|
|
- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
|
121
|
|
- </template>
|
122
|
|
- </el-table-column>
|
123
|
|
- </el-table>
|
124
|
|
- <el-pagination
|
125
|
|
- @size-change="handleSizeChange"
|
126
|
|
- @current-change="handleCurrentChange"
|
127
|
|
- :page-sizes="[10, 50, 100]"
|
128
|
|
- :page-size="10"
|
129
|
|
- background
|
130
|
|
- style="margin-top:20px;float: right"
|
131
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
132
|
|
- :total="total"
|
133
|
|
-
|
134
|
|
- >
|
135
|
|
- </el-pagination>
|
136
|
|
- </div>
|
137
|
137
|
|
138
|
|
- <el-dialog
|
139
|
|
- class="centerDialog"
|
140
|
|
- width="1200px"
|
141
|
|
- title="打印"
|
142
|
|
- :visible.sync="statementVisible">
|
143
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
144
|
|
- <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
145
|
|
- </el-dialog>
|
146
|
|
- <el-dialog
|
147
|
|
- class="centerDialog"
|
148
|
|
- width="900px"
|
149
|
|
- title="打印"
|
150
|
|
- :visible.sync="listVisible">
|
151
|
|
- <listPrint></listPrint>
|
152
|
|
- </el-dialog>
|
153
|
|
- <el-dialog
|
154
|
|
- class="centerDialog"
|
155
|
|
- width="900px"
|
156
|
|
- title="打印"
|
157
|
|
- :visible.sync="allListVisible">
|
158
|
|
- <allListPrint :paramsObj='paramsObj'></allListPrint>
|
159
|
|
- </el-dialog>
|
160
|
|
-
|
161
|
|
- <el-dialog
|
162
|
|
- class="centerDialog"
|
163
|
|
- width="1200px"
|
164
|
|
- title="打印"
|
165
|
|
- :visible.sync="statementVisible9504">
|
166
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
167
|
|
- <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
168
|
|
- <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
169
|
|
- </el-dialog>
|
170
|
|
-
|
171
|
|
- <el-dialog
|
172
|
|
- class="centerDialog"
|
173
|
|
- width="1200px"
|
174
|
|
- title="打印"
|
175
|
|
- :visible.sync="invoiceVisible">
|
176
|
|
- <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
|
177
|
|
- </el-dialog>
|
178
|
|
- <el-dialog
|
179
|
|
- class="centerDialog"
|
180
|
|
- width="1200px"
|
181
|
|
- title="打印"
|
182
|
|
- :visible.sync="settlementVisible">
|
183
|
|
- <settlement-print ref="print" :paramsObj='settlementObj'></settlement-print>
|
184
|
|
- </el-dialog>
|
185
|
|
-
|
186
|
|
- </div>
|
|
138
|
+ <el-dialog
|
|
139
|
+ class="centerDialog"
|
|
140
|
+ width="1200px"
|
|
141
|
+ title="打印"
|
|
142
|
+ :visible.sync="statementVisible">
|
|
143
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
144
|
+ <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
|
145
|
+ </el-dialog>
|
|
146
|
+ <el-dialog
|
|
147
|
+ class="centerDialog"
|
|
148
|
+ width="900px"
|
|
149
|
+ title="打印"
|
|
150
|
+ :visible.sync="listVisible">
|
|
151
|
+ <listPrint></listPrint>
|
|
152
|
+ </el-dialog>
|
|
153
|
+ <el-dialog
|
|
154
|
+ class="centerDialog"
|
|
155
|
+ width="900px"
|
|
156
|
+ title="打印"
|
|
157
|
+ :visible.sync="allListVisible">
|
|
158
|
+ <allListPrint :paramsObj='paramsObj'></allListPrint>
|
|
159
|
+ </el-dialog>
|
|
160
|
+
|
|
161
|
+ <el-dialog
|
|
162
|
+ class="centerDialog"
|
|
163
|
+ width="1200px"
|
|
164
|
+ title="打印"
|
|
165
|
+ :visible.sync="statementVisible9504">
|
|
166
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
167
|
+ <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
|
168
|
+ <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
|
169
|
+ </el-dialog>
|
|
170
|
+
|
|
171
|
+ <el-dialog
|
|
172
|
+ class="centerDialog"
|
|
173
|
+ width="1200px"
|
|
174
|
+ title="打印"
|
|
175
|
+ :visible.sync="invoiceVisible">
|
|
176
|
+ <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
|
|
177
|
+ </el-dialog>
|
|
178
|
+ <el-dialog
|
|
179
|
+ class="centerDialog"
|
|
180
|
+ width="1200px"
|
|
181
|
+ title="打印"
|
|
182
|
+ :visible.sync="settlementVisible">
|
|
183
|
+ <settlement-print ref="print" :paramsObj='settlementObj'></settlement-print>
|
|
184
|
+ </el-dialog>
|
|
185
|
+
|
|
186
|
+ </div>
|
187
|
187
|
</template>
|
188
|
188
|
|
189
|
189
|
|
190
|
190
|
<script>
|
191
|
191
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
192
|
|
- import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
|
193
|
|
- import {uParseTime} from '@/utils/tools'
|
|
192
|
+ import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
|
|
193
|
+ import { uParseTime } from '@/utils/tools'
|
194
|
194
|
import NewStatementPrint from './newStatementPrint'
|
195
|
195
|
import listPrint from './listPrint'
|
196
|
196
|
import allListPrint from './allListPrint'
|
197
|
197
|
import NewStatementPrintTwo from './newStatementPrintTwo'
|
198
|
|
- import {fetchAllAdminUsers} from '@/api/doctor'
|
|
198
|
+ import { fetchAllAdminUsers } from '@/api/doctor'
|
199
|
199
|
import axios from 'axios'
|
200
|
200
|
import invoicePrint from './invoicePrint'
|
201
|
201
|
import settlementPrint from './settlementPrint'
|
|
@@ -217,8 +217,8 @@
|
217
|
217
|
statementVisible9504: false,
|
218
|
218
|
orderObj9504: {},
|
219
|
219
|
crumbs: [
|
220
|
|
- {path: false, name: '门诊收费'},
|
221
|
|
- {path: false, name: '项目消费明细汇总'}
|
|
220
|
+ { path: false, name: '门诊收费' },
|
|
221
|
+ { path: false, name: '项目消费明细汇总' }
|
222
|
222
|
],
|
223
|
223
|
tableData: [],
|
224
|
224
|
limit: 10,
|
|
@@ -242,15 +242,15 @@
|
242
|
242
|
},
|
243
|
243
|
methods: {
|
244
|
244
|
uploadInfo(row) {
|
245
|
|
- var that = this;
|
|
245
|
+ var that = this
|
246
|
246
|
axios.get('http://127.0.0.1:9532/api/settlelist/get', {
|
247
|
247
|
params: {
|
248
|
248
|
order_id: row.id,
|
249
|
249
|
admin_user_id: this.$store.getters.xt_user.user.id
|
250
|
250
|
}
|
251
|
|
- }).then(function (response) {
|
|
251
|
+ }).then(function(response) {
|
252
|
252
|
if (response.data.state == 0) {
|
253
|
|
- that.$message.error(response.data.msg);
|
|
253
|
+ that.$message.error(response.data.msg)
|
254
|
254
|
return false
|
255
|
255
|
} else {
|
256
|
256
|
|
|
@@ -265,13 +265,12 @@
|
265
|
265
|
})
|
266
|
266
|
|
267
|
267
|
} else {
|
268
|
|
- that.$message.success("上传成功");
|
|
268
|
+ that.$message.success('上传成功')
|
269
|
269
|
row.result.id = response.data.data.result.id
|
270
|
270
|
}
|
271
|
271
|
|
272
|
|
-
|
273
|
272
|
}
|
274
|
|
- }).catch(function (error) {
|
|
273
|
+ }).catch(function(error) {
|
275
|
274
|
})
|
276
|
275
|
},
|
277
|
276
|
|
|
@@ -291,8 +290,11 @@
|
291
|
290
|
}
|
292
|
291
|
|
293
|
292
|
}, toRefund(row) {
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
294
|
296
|
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 || this.$store.getters.xt_user.org_id == 9990) {
|
295
|
|
- var that = this;
|
|
297
|
+ var that = this
|
296
|
298
|
this.$confirm('是否退费', '退费', {
|
297
|
299
|
confirmButtonText: '确 定',
|
298
|
300
|
cancelButtonText: '取 消',
|
|
@@ -302,14 +304,14 @@
|
302
|
304
|
'order_id': row.id,
|
303
|
305
|
'patient_id': row.patient_id,
|
304
|
306
|
'record_time': that.getTimes(row.settle_accounts_date),
|
305
|
|
- 'admin_user_id': that.$store.getters.xt_user.user.id,
|
306
|
|
- };
|
|
307
|
+ 'admin_user_id': that.$store.getters.xt_user.user.id
|
|
308
|
+ }
|
307
|
309
|
axios.get('http://127.0.0.1:9532/api/refund/post', {
|
308
|
310
|
params: params
|
309
|
311
|
})
|
310
|
|
- .then(function (response) {
|
|
312
|
+ .then(function(response) {
|
311
|
313
|
if (response.data.state == 0) {
|
312
|
|
- that.$message.error(response.data.msg);
|
|
314
|
+ that.$message.error(response.data.msg)
|
313
|
315
|
return false
|
314
|
316
|
} else {
|
315
|
317
|
if (response.data.data.failed_code == -10) {
|
|
@@ -322,17 +324,59 @@
|
322
|
324
|
}).catch(() => {
|
323
|
325
|
})
|
324
|
326
|
} else {
|
325
|
|
- that.$message({message: '退费成功', type: 'success', duration: 5000});
|
|
327
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
326
|
328
|
that.getHisOrderList()
|
327
|
329
|
|
328
|
330
|
}
|
329
|
331
|
}
|
330
|
332
|
})
|
331
|
|
- .catch(function (error) {
|
|
333
|
+ .catch(function(error) {
|
332
|
334
|
})
|
333
|
335
|
}).catch(() => {
|
334
|
336
|
})
|
335
|
337
|
|
|
338
|
+ } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
|
|
339
|
+
|
|
340
|
+ this.$confirm('是否退费', '退费', {
|
|
341
|
+ confirmButtonText: '确 定',
|
|
342
|
+ cancelButtonText: '取 消',
|
|
343
|
+ type: 'warning'
|
|
344
|
+ }).then(() => {
|
|
345
|
+ let params = {
|
|
346
|
+ 'order_id': row.id,
|
|
347
|
+ 'patient_id': row.patient_id,
|
|
348
|
+ 'record_time': that.getTimes(row.settle_accounts_date),
|
|
349
|
+ 'admin_user_id': that.$store.getters.xt_user.user.id
|
|
350
|
+ }
|
|
351
|
+ axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
|
|
352
|
+ params: params
|
|
353
|
+ })
|
|
354
|
+ .then(function(response) {
|
|
355
|
+ if (response.data.state == 0) {
|
|
356
|
+ that.$message.error(response.data.msg)
|
|
357
|
+ return false
|
|
358
|
+ } else {
|
|
359
|
+ if (response.data.data.failed_code == -10) {
|
|
360
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
361
|
+ confirmButtonText: '确 定',
|
|
362
|
+ type: 'warning'
|
|
363
|
+ }).then(() => {
|
|
364
|
+
|
|
365
|
+ }).catch(() => {
|
|
366
|
+ })
|
|
367
|
+
|
|
368
|
+ } else {
|
|
369
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
370
|
+ that.getHisOrderList()
|
|
371
|
+ }
|
|
372
|
+ }
|
|
373
|
+ })
|
|
374
|
+ .catch(function(error) {
|
|
375
|
+ })
|
|
376
|
+
|
|
377
|
+ }).catch(() => {
|
|
378
|
+ })
|
|
379
|
+
|
336
|
380
|
} else {
|
337
|
381
|
this.$confirm('是否退费', '退费', {
|
338
|
382
|
confirmButtonText: '确 定',
|
|
@@ -344,13 +388,13 @@
|
344
|
388
|
'patient_id': this.patientInfo.id,
|
345
|
389
|
'record_time': this.record_date
|
346
|
390
|
|
347
|
|
- };
|
|
391
|
+ }
|
348
|
392
|
Refund(params).then(response => {
|
349
|
393
|
if (response.data.state == 0) {
|
350
|
|
- this.$message.error(response.data.msg);
|
|
394
|
+ this.$message.error(response.data.msg)
|
351
|
395
|
return false
|
352
|
396
|
} else {
|
353
|
|
- this.$message({message: '退费成功', type: 'success'});
|
|
397
|
+ this.$message({ message: '退费成功', type: 'success' })
|
354
|
398
|
this.getHisOrderList()
|
355
|
399
|
}
|
356
|
400
|
})
|
|
@@ -360,65 +404,64 @@
|
360
|
404
|
},
|
361
|
405
|
toPrint(row) {
|
362
|
406
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
|
363
|
|
- this.statementVisible9504 = true;
|
|
407
|
+ this.statementVisible9504 = true
|
364
|
408
|
let obj = {
|
365
|
409
|
order_id: row.id,
|
366
|
410
|
patient_id: row.patient_id,
|
367
|
411
|
record_time: this.getTimes(row.settle_accounts_date),
|
368
|
412
|
admin_user_id: this.$store.getters.xt_user.user.id
|
369
|
|
- };
|
|
413
|
+ }
|
370
|
414
|
this.orderObj9504 = obj
|
371
|
415
|
} else {
|
372
|
|
- this.statementVisible = true;
|
|
416
|
+ this.statementVisible = true
|
373
|
417
|
let obj = {
|
374
|
418
|
order_id: row.id,
|
375
|
|
- settle_type:row.settle_type,
|
376
|
|
- start_time:row.settle_start_time,
|
377
|
|
- end_time:row.settle_end_time,
|
378
|
|
- };
|
|
419
|
+ settle_type: row.settle_type,
|
|
420
|
+ start_time: row.settle_start_time,
|
|
421
|
+ end_time: row.settle_end_time
|
|
422
|
+ }
|
379
|
423
|
this.orderObj = obj
|
380
|
424
|
}
|
381
|
425
|
|
382
|
426
|
},
|
383
|
427
|
settlementPrint(row) {
|
384
|
|
- this.settlementVisible = true;
|
|
428
|
+ this.settlementVisible = true
|
385
|
429
|
let obj = {
|
386
|
430
|
order_id: row.id
|
387
|
|
- };
|
|
431
|
+ }
|
388
|
432
|
this.settlementObj = obj
|
389
|
433
|
},
|
390
|
434
|
export_detail() {
|
391
|
435
|
let params = {
|
392
|
436
|
start_time: this.start_time,
|
393
|
437
|
end_time: this.end_time,
|
394
|
|
- p_type: 2,
|
395
|
|
- };
|
|
438
|
+ p_type: 2
|
|
439
|
+ }
|
396
|
440
|
getExportConsumeDetailList(params).then(response => {
|
397
|
441
|
if (response.data.state == 0) {
|
398
|
|
- this.$message.error(response.data.msg);
|
|
442
|
+ this.$message.error(response.data.msg)
|
399
|
443
|
return false
|
400
|
444
|
} else {
|
401
|
445
|
|
402
|
|
- let list = [];
|
|
446
|
+ let list = []
|
403
|
447
|
for (let i = 0; i < response.data.data.order.length; i++) {
|
404
|
|
- let order = response.data.data.order[i];
|
405
|
|
- let number = '';
|
406
|
|
- let name = '';
|
407
|
|
- let department = '';
|
408
|
|
- let doctor_name = '';
|
409
|
|
- let balance_accounts = '';
|
410
|
|
- let order_status = '';
|
411
|
|
- let charge_name = '';
|
412
|
|
-
|
413
|
|
- let insutypeName = "";
|
414
|
|
-
|
415
|
|
- let time = "";
|
|
448
|
+ let order = response.data.data.order[i]
|
|
449
|
+ let number = ''
|
|
450
|
+ let name = ''
|
|
451
|
+ let department = ''
|
|
452
|
+ let doctor_name = ''
|
|
453
|
+ let balance_accounts = ''
|
|
454
|
+ let order_status = ''
|
|
455
|
+ let charge_name = ''
|
|
456
|
+
|
|
457
|
+ let insutypeName = ''
|
|
458
|
+
|
|
459
|
+ let time = ''
|
416
|
460
|
if (order.his_patient != null && order.his_patient.number.length > 0) {
|
417
|
461
|
number = order.his_patient.number
|
418
|
462
|
|
419
|
463
|
}
|
420
|
464
|
|
421
|
|
-
|
422
|
465
|
if (order.his_patient != null) {
|
423
|
466
|
if (order.his_patient.balance_accounts_type == 1) {
|
424
|
467
|
balance_accounts = '自费'
|
|
@@ -448,14 +491,12 @@
|
448
|
491
|
}
|
449
|
492
|
if (order.insutype == '390') {
|
450
|
493
|
|
451
|
|
- insutypeName = "城乡居民基本医疗保险"
|
|
494
|
+ insutypeName = '城乡居民基本医疗保险'
|
452
|
495
|
} else if (order.insutype == '310') {
|
453
|
|
- insutypeName = "职工基本医疗保险"
|
454
|
|
-
|
|
496
|
+ insutypeName = '职工基本医疗保险'
|
455
|
497
|
|
456
|
498
|
}
|
457
|
499
|
|
458
|
|
-
|
459
|
500
|
if (order.order_status == 1) {
|
460
|
501
|
order_status = '待结算'
|
461
|
502
|
}
|
|
@@ -474,36 +515,38 @@
|
474
|
515
|
time = this.getTimes(order.settle_accounts_date)
|
475
|
516
|
}
|
476
|
517
|
|
477
|
|
- var hifmi_pay = 0.00;
|
|
518
|
+ var hifmi_pay = 0.00
|
478
|
519
|
|
479
|
|
- if(order.setl_detail.length > 0){
|
480
|
|
- var jsonObj = JSON.parse(order.setl_detail);
|
|
520
|
+ if (order.setl_detail.length > 0) {
|
|
521
|
+ var jsonObj = JSON.parse(order.setl_detail)
|
481
|
522
|
for (let i = 0; i < jsonObj.length; i++) {
|
482
|
523
|
if (order.insutype == '310') {
|
483
|
524
|
if (jsonObj[i].fund_pay_type == '310300') {
|
484
|
525
|
hifmi_pay = jsonObj[i].fund_payamt
|
485
|
526
|
}
|
486
|
527
|
|
487
|
|
- } else if (order.insutype == '390')
|
|
528
|
+ } else if (order.insutype == '390') {
|
488
|
529
|
if (order.fund_pay_type == '390200') {
|
489
|
530
|
hifmi_pay = jsonObj[i].fund_payamt
|
490
|
531
|
}
|
|
532
|
+ }
|
491
|
533
|
}
|
492
|
534
|
}
|
493
|
|
- var hifmi_pay = 0.00;
|
|
535
|
+ var hifmi_pay = 0.00
|
494
|
536
|
|
495
|
|
- if(order.setl_detail.length > 0){
|
496
|
|
- var jsonObj = JSON.parse(order.setl_detail);
|
|
537
|
+ if (order.setl_detail.length > 0) {
|
|
538
|
+ var jsonObj = JSON.parse(order.setl_detail)
|
497
|
539
|
for (let i = 0; i < jsonObj.length; i++) {
|
498
|
540
|
if (order.insutype == '310') {
|
499
|
541
|
if (jsonObj[i].fund_pay_type == '310300') {
|
500
|
542
|
hifmi_pay = jsonObj[i].fund_payamt
|
501
|
543
|
}
|
502
|
544
|
}
|
503
|
|
- if (order.insutype == '390')
|
|
545
|
+ if (order.insutype == '390') {
|
504
|
546
|
if (jsonObj[i].fund_pay_type == '390200') {
|
505
|
547
|
hifmi_pay = jsonObj[i].fund_payamt
|
506
|
548
|
}
|
|
549
|
+ }
|
507
|
550
|
}
|
508
|
551
|
}
|
509
|
552
|
|
|
@@ -535,14 +578,14 @@
|
535
|
578
|
'收费时间': order.setl_time,
|
536
|
579
|
'收费状态': order_status,
|
537
|
580
|
'退费日期': ''
|
538
|
|
- };
|
|
581
|
+ }
|
539
|
582
|
|
540
|
583
|
list.push(obj)
|
541
|
584
|
}
|
542
|
585
|
import('@/vendor/Export2Excel').then(excel => {
|
543
|
|
- const tHeader = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
|
544
|
|
- const filterVal = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
|
545
|
|
- const data = this.formatJson(filterVal, list);
|
|
586
|
+ const tHeader = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
|
587
|
+ const filterVal = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
|
|
588
|
+ const data = this.formatJson(filterVal, list)
|
546
|
589
|
excel.export_json_to_excel({
|
547
|
590
|
header: tHeader,
|
548
|
591
|
data,
|
|
@@ -557,30 +600,30 @@
|
557
|
600
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
558
|
601
|
},
|
559
|
602
|
changeDoctor() {
|
560
|
|
- this.page = 1;
|
561
|
|
- this.keywords = '';
|
|
603
|
+ this.page = 1
|
|
604
|
+ this.keywords = ''
|
562
|
605
|
this.getHisOrderList()
|
563
|
606
|
},
|
564
|
607
|
handleSizeChange(limit) {
|
565
|
|
- this.limit = limit;
|
|
608
|
+ this.limit = limit
|
566
|
609
|
this.getHisOrderList()
|
567
|
610
|
|
568
|
611
|
}, handleCurrentChange(page) {
|
569
|
|
- this.page = page;
|
|
612
|
+ this.page = page
|
570
|
613
|
this.getHisOrderList()
|
571
|
614
|
|
572
|
615
|
},
|
573
|
616
|
handleStartTimeChange() {
|
574
|
|
- this.page = 1;
|
575
|
|
- this.keywords = '';
|
|
617
|
+ this.page = 1
|
|
618
|
+ this.keywords = ''
|
576
|
619
|
this.getHisOrderList()
|
577
|
620
|
}, handleEndTimeChange() {
|
578
|
|
- this.page = 1;
|
579
|
|
- this.keywords = '';
|
|
621
|
+ this.page = 1
|
|
622
|
+ this.keywords = ''
|
580
|
623
|
this.getHisOrderList()
|
581
|
624
|
},
|
582
|
625
|
searchAction() {
|
583
|
|
- this.page = 1;
|
|
626
|
+ this.page = 1
|
584
|
627
|
this.getHisOrderList()
|
585
|
628
|
|
586
|
629
|
},
|
|
@@ -602,14 +645,14 @@
|
602
|
645
|
start_time: this.start_time,
|
603
|
646
|
end_time: this.end_time,
|
604
|
647
|
type: this.admin_user_id,
|
605
|
|
- p_type: 2,
|
606
|
|
- };
|
|
648
|
+ p_type: 2
|
|
649
|
+ }
|
607
|
650
|
getHisOrderList(params).then(response => {
|
608
|
651
|
if (response.data.state == 0) {
|
609
|
|
- this.$message.error(response.data.msg);
|
|
652
|
+ this.$message.error(response.data.msg)
|
610
|
653
|
return false
|
611
|
654
|
} else {
|
612
|
|
- this.tableData = response.data.data.order;
|
|
655
|
+ this.tableData = response.data.data.order
|
613
|
656
|
this.total = response.data.data.total
|
614
|
657
|
}
|
615
|
658
|
})
|
|
@@ -617,7 +660,7 @@
|
617
|
660
|
}, getDoctorList() {
|
618
|
661
|
getDoctorList().then(response => {
|
619
|
662
|
if (response.data.state == 0) {
|
620
|
|
- this.$message.error(response.data.msg);
|
|
663
|
+ this.$message.error(response.data.msg)
|
621
|
664
|
return false
|
622
|
665
|
} else {
|
623
|
666
|
this.doctors = response.data.data.doctors
|
|
@@ -632,7 +675,7 @@
|
632
|
675
|
}
|
633
|
676
|
},
|
634
|
677
|
invoicePrint(obj) {
|
635
|
|
- console.log(obj);
|
|
678
|
+ console.log(obj)
|
636
|
679
|
let paramsObj = {
|
637
|
680
|
order_id: obj.id,
|
638
|
681
|
patient_id: obj.patient_id,
|
|
@@ -640,18 +683,16 @@
|
640
|
683
|
age: obj.age,
|
641
|
684
|
gend: obj.gend,
|
642
|
685
|
setl_time: obj.setl_time
|
643
|
|
- };
|
644
|
|
- this.invoiceParams = paramsObj;
|
|
686
|
+ }
|
|
687
|
+ this.invoiceParams = paramsObj
|
645
|
688
|
this.invoiceVisible = true
|
646
|
689
|
}
|
647
|
690
|
}, created() {
|
648
|
691
|
|
649
|
|
-
|
650
|
|
- this.fetchAllAdminUsers();
|
651
|
|
- this.getDoctorList();
|
|
692
|
+ this.fetchAllAdminUsers()
|
|
693
|
+ this.getDoctorList()
|
652
|
694
|
this.getHisOrderList()
|
653
|
695
|
|
654
|
|
-
|
655
|
696
|
}
|
656
|
697
|
}
|
657
|
698
|
</script>
|