|
@@ -1,167 +1,176 @@
|
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" @click="searchAction">
|
12
|
|
- 搜索
|
13
|
|
- </el-button>
|
14
|
|
- <el-select size="small" v-model="admin_user_id" placeholder="请选择" style="width:150px;margin-left:10px;" @change="changeDoctor">
|
15
|
|
- <el-option
|
16
|
|
- label="全部"
|
17
|
|
- value="0">
|
18
|
|
- </el-option>
|
19
|
|
- <el-option
|
20
|
|
- v-for="item,index in doctors"
|
21
|
|
- :key="index"
|
22
|
|
- :label="item.user_name"
|
23
|
|
- :value="item.admin_user_id">
|
24
|
|
- </el-option>
|
25
|
|
- </el-select>
|
26
|
|
- <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
|
27
|
|
- @change="handleStartTimeChange" :editable="false" :clearable="false"
|
28
|
|
- style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
|
29
|
|
- format="yyyy-MM-dd"
|
30
|
|
- value-format="yyyy-MM-dd"
|
31
|
|
- align="right"></el-date-picker>
|
32
|
|
-
|
33
|
|
- <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
|
34
|
|
- @change="handleEndTimeChange" :editable="false" :clearable="false"
|
35
|
|
- style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
36
|
|
- format="yyyy-MM-dd"
|
37
|
|
- value-format="yyyy-MM-dd"
|
38
|
|
- align="right"></el-date-picker>
|
39
|
|
- <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
|
40
|
|
- <!--<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>
|
41
|
5
|
</div>
|
42
|
|
- <div>
|
43
|
|
- <!-- <el-popover
|
44
|
|
- placement="bottom"
|
45
|
|
- width="210"
|
46
|
|
- trigger="click">
|
47
|
|
- <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
|
48
|
|
- <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
|
49
|
|
- <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
|
50
|
|
-
|
51
|
|
- </el-popover> -->
|
52
|
|
- <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" 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" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
|
|
107
|
+ 退费
|
|
108
|
+ </el-button>
|
|
109
|
+ </template>
|
|
110
|
+ </el-table-column>
|
|
111
|
+ </el-table>
|
|
112
|
+ <el-pagination
|
|
113
|
+ @size-change="handleSizeChange"
|
|
114
|
+ @current-change="handleCurrentChange"
|
|
115
|
+ :page-sizes="[10, 50, 100]"
|
|
116
|
+ :page-size="10"
|
|
117
|
+ background
|
|
118
|
+ style="margin-top:20px;float: right"
|
|
119
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
120
|
+ :total="total"
|
|
121
|
+
|
|
122
|
+ >
|
|
123
|
+ </el-pagination>
|
53
|
124
|
</div>
|
54
|
|
- </div>
|
55
|
|
- <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
56
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
57
|
|
- <el-table-column
|
58
|
|
- prop="date"
|
59
|
|
- label="序号"
|
60
|
|
- width="60"
|
61
|
|
- align="center"
|
62
|
|
- type="index"
|
63
|
|
- >
|
64
|
|
- </el-table-column>
|
65
|
|
- <el-table-column align="center" prop="name" label="就诊号">
|
66
|
|
- <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
|
67
|
|
- </el-table-column>
|
68
|
|
- <el-table-column align="center" prop="name" label="患者名字">
|
69
|
|
- <template slot-scope="scope">{{ scope.row.patient.name }}</template>
|
70
|
|
- </el-table-column>
|
71
|
|
- <!--<el-table-column align="center" prop="name" label="患者类型">-->
|
72
|
|
- <!--<template slot-scope="scope"></template>-->
|
73
|
|
- <!--</el-table-column>-->
|
74
|
|
- <el-table-column align="center" prop="name" label="应收金额">
|
75
|
|
- <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
76
|
|
- </el-table-column>
|
77
|
|
- <el-table-column align="center" prop="name" label="实收金额">
|
78
|
|
- <template slot-scope="scope">{{scope.row.reality_price}}</template>
|
79
|
|
- </el-table-column>
|
80
|
|
- <el-table-column align="center" prop="name" label="科室">
|
81
|
|
- <template slot-scope="scope">{{scope.row.department_name}}</template>
|
82
|
|
- </el-table-column>
|
83
|
|
- <el-table-column align="center" prop="name" label="收费日期">
|
84
|
|
- <template slot-scope="scope"> {{getTimes(scope.row.settle_accounts_date)}}</template>
|
85
|
|
- </el-table-column>
|
86
|
|
- <el-table-column align="center" prop="name" label="收费员">
|
87
|
|
- <template slot-scope="scope">{{ scope.row.doctor_name }}</template>
|
88
|
|
- </el-table-column>
|
89
|
|
- <el-table-column align="center" prop="name" label="状态">
|
90
|
|
- <template slot-scope="scope">
|
91
|
|
- <div v-if="scope.row.order_status == 1">待结算</div>
|
92
|
|
- <div v-if="scope.row.order_status == 2">已结算</div>
|
93
|
|
- <div v-if="scope.row.order_status == 3">已退费</div>
|
94
|
|
- </template>
|
95
|
|
- </el-table-column>
|
96
|
|
- <el-table-column align="center" prop="name" label="操作">
|
97
|
|
- <template slot-scope="scope">
|
98
|
|
- <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
99
|
|
- <el-button size="mini" type="primary" @click="toPrint(scope.row)" 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) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4)">结算单</el-button>
|
100
|
|
- </template>
|
101
|
|
- </el-table-column>
|
102
|
|
- </el-table>
|
103
|
|
- <el-pagination
|
104
|
|
- @size-change="handleSizeChange"
|
105
|
|
- @current-change="handleCurrentChange"
|
106
|
|
- :page-sizes="[10, 50, 100]"
|
107
|
|
- :page-size="10"
|
108
|
|
- background
|
109
|
|
- style="margin-top:20px;float: right"
|
110
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
111
|
|
- :total="total"
|
112
|
|
-
|
113
|
|
- >
|
114
|
|
- </el-pagination>
|
115
|
|
- </div>
|
116
|
125
|
|
117
|
|
- <el-dialog
|
118
|
|
- class="centerDialog"
|
119
|
|
- width="1200px"
|
120
|
|
- title="打印"
|
121
|
|
- :visible.sync="statementVisible">
|
122
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
123
|
|
- <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
124
|
|
- </el-dialog>
|
125
|
|
- <el-dialog
|
126
|
|
- class="centerDialog"
|
127
|
|
- width="900px"
|
128
|
|
- title="打印"
|
129
|
|
- :visible.sync="listVisible">
|
130
|
|
- <listPrint></listPrint>
|
131
|
|
- </el-dialog>
|
132
|
|
- <el-dialog
|
133
|
|
- class="centerDialog"
|
134
|
|
- width="900px"
|
135
|
|
- title="打印"
|
136
|
|
- :visible.sync="allListVisible">
|
137
|
|
- <allListPrint :paramsObj='paramsObj'></allListPrint>
|
138
|
|
- </el-dialog>
|
139
|
|
-
|
140
|
|
- <el-dialog
|
141
|
|
- class="centerDialog"
|
142
|
|
- width="1200px"
|
143
|
|
- title="打印"
|
144
|
|
- :visible.sync="statementVisible9504">
|
145
|
|
- <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
146
|
|
- <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
147
|
|
- <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
148
|
|
- </el-dialog>
|
149
|
|
-
|
150
|
|
-
|
151
|
|
- </div>
|
|
126
|
+ <el-dialog
|
|
127
|
+ class="centerDialog"
|
|
128
|
+ width="1200px"
|
|
129
|
+ title="打印"
|
|
130
|
+ :visible.sync="statementVisible">
|
|
131
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
132
|
+ <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
|
|
133
|
+ </el-dialog>
|
|
134
|
+ <el-dialog
|
|
135
|
+ class="centerDialog"
|
|
136
|
+ width="900px"
|
|
137
|
+ title="打印"
|
|
138
|
+ :visible.sync="listVisible">
|
|
139
|
+ <listPrint></listPrint>
|
|
140
|
+ </el-dialog>
|
|
141
|
+ <el-dialog
|
|
142
|
+ class="centerDialog"
|
|
143
|
+ width="900px"
|
|
144
|
+ title="打印"
|
|
145
|
+ :visible.sync="allListVisible">
|
|
146
|
+ <allListPrint :paramsObj='paramsObj'></allListPrint>
|
|
147
|
+ </el-dialog>
|
|
148
|
+
|
|
149
|
+ <el-dialog
|
|
150
|
+ class="centerDialog"
|
|
151
|
+ width="1200px"
|
|
152
|
+ title="打印"
|
|
153
|
+ :visible.sync="statementVisible9504">
|
|
154
|
+ <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
|
|
155
|
+ <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
|
|
156
|
+ <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
|
|
157
|
+ </el-dialog>
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+ </div>
|
152
|
161
|
</template>
|
153
|
162
|
|
154
|
163
|
|
155
|
164
|
<script>
|
156
|
165
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
157
|
|
- import { getHisOrderList,getDoctorList,getExportConsumeDetailList } from '@/api/his/his'
|
|
166
|
+ import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund} from '@/api/his/his'
|
158
|
167
|
import { uParseTime } from '@/utils/tools'
|
159
|
|
- import statementPrint from './statementPrint'
|
160
|
168
|
import NewStatementPrint from './newStatementPrint'
|
161
|
169
|
import listPrint from './listPrint'
|
162
|
170
|
import allListPrint from './allListPrint'
|
163
|
171
|
import NewStatementPrintTwo from './newStatementPrintTwo'
|
164
|
|
-
|
|
172
|
+ import { fetchAllAdminUsers } from '@/api/doctor'
|
|
173
|
+ import axios from 'axios'
|
165
|
174
|
|
166
|
175
|
export default {
|
167
|
176
|
components: {
|
|
@@ -175,38 +184,115 @@
|
175
|
184
|
return {
|
176
|
185
|
orderObj: {},
|
177
|
186
|
statementVisible: false,
|
178
|
|
- statementVisible9504:false,
|
179
|
|
- orderObj9504:{},
|
|
187
|
+ statementVisible9504: false,
|
|
188
|
+ orderObj9504: {},
|
180
|
189
|
crumbs: [
|
181
|
190
|
{ path: false, name: '门诊收费' },
|
182
|
191
|
{ path: false, name: '项目消费明细汇总' }
|
183
|
192
|
],
|
184
|
193
|
tableData: [],
|
185
|
|
- limit:10,
|
186
|
|
- page:1,
|
187
|
|
- keywords:"",
|
188
|
|
- start_time:"",
|
189
|
|
- end_time:"",
|
190
|
|
- total:"",
|
191
|
|
- doctors:[],
|
192
|
|
- admin_user_id:"",
|
193
|
|
- listVisible:false,
|
194
|
|
- allListVisible:false
|
|
194
|
+ limit: 10,
|
|
195
|
+ page: 1,
|
|
196
|
+ keywords: '',
|
|
197
|
+ start_time: '',
|
|
198
|
+ end_time: '',
|
|
199
|
+ total: '',
|
|
200
|
+ doctors: [],
|
|
201
|
+ admin_user_id: '',
|
|
202
|
+ listVisible: false,
|
|
203
|
+ allListVisible: false,
|
|
204
|
+ adminUserOptions:[],
|
195
|
205
|
|
196
|
206
|
}
|
197
|
207
|
},
|
198
|
208
|
methods: {
|
199
|
|
- toPrint(row){
|
200
|
|
- if(this.$store.getters.xt_user.org_id == 9504 ||this.$store.getters.xt_user.org_id == 10028){
|
|
209
|
+ fetchAllAdminUsers() {
|
|
210
|
+ fetchAllAdminUsers().then(response => {
|
|
211
|
+ if (response.data.state == 1) {
|
|
212
|
+ this.adminUserOptions = response.data.data.users
|
|
213
|
+
|
|
214
|
+ }
|
|
215
|
+ })
|
|
216
|
+ },
|
|
217
|
+ getName(admin_user_id) {
|
|
218
|
+ for (let i = 0; i < this.adminUserOptions.length; i++) {
|
|
219
|
+ if (this.adminUserOptions[i].id == admin_user_id) {
|
|
220
|
+ return this.adminUserOptions[i].name
|
|
221
|
+ }
|
|
222
|
+ }
|
|
223
|
+
|
|
224
|
+ },toRefund(row){
|
|
225
|
+ 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) {
|
|
226
|
+ var that = this
|
|
227
|
+ this.$confirm('是否退费', '退费', {
|
|
228
|
+ confirmButtonText: '确 定',
|
|
229
|
+ cancelButtonText: '取 消',
|
|
230
|
+ type: 'warning'
|
|
231
|
+ }).then(() => {
|
|
232
|
+ let params = {
|
|
233
|
+ 'order_id': row.id,
|
|
234
|
+ 'patient_id': row.patient_id,
|
|
235
|
+ 'record_time': that.getTimes(row.settle_accounts_date),
|
|
236
|
+ 'admin_user_id': that.$store.getters.xt_user.user.id,
|
|
237
|
+ }
|
|
238
|
+ axios.get('http://127.0.0.1:9532/api/refund/post', {
|
|
239
|
+ params: params
|
|
240
|
+ })
|
|
241
|
+ .then(function(response) {
|
|
242
|
+ if (response.data.state == 0) {
|
|
243
|
+ that.$message.error(response.data.msg)
|
|
244
|
+ return false
|
|
245
|
+ } else {
|
|
246
|
+ if (response.data.data.failed_code == -10) {
|
|
247
|
+ that.$message.error(response.data.data.msg)
|
|
248
|
+ } else {
|
|
249
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
250
|
+ that.getHisOrderList()
|
|
251
|
+
|
|
252
|
+ }
|
|
253
|
+ }
|
|
254
|
+ })
|
|
255
|
+ .catch(function(error) {
|
|
256
|
+ })
|
|
257
|
+ }).catch(() => {
|
|
258
|
+ })
|
|
259
|
+
|
|
260
|
+ } else {
|
|
261
|
+ this.$confirm('是否退费', '退费', {
|
|
262
|
+ confirmButtonText: '确 定',
|
|
263
|
+ cancelButtonText: '取 消',
|
|
264
|
+ type: 'warning'
|
|
265
|
+ }).then(() => {
|
|
266
|
+ let params = {
|
|
267
|
+ 'order_id': this.order.id,
|
|
268
|
+ 'patient_id': this.patientInfo.id,
|
|
269
|
+ 'record_time': this.record_date
|
|
270
|
+
|
|
271
|
+ }
|
|
272
|
+ Refund(params).then(response => {
|
|
273
|
+ if (response.data.state == 0) {
|
|
274
|
+ this.$message.error(response.data.msg)
|
|
275
|
+ return false
|
|
276
|
+ } else {
|
|
277
|
+ this.$message({ message: '退费成功', type: 'success' })
|
|
278
|
+ this.getHisOrderList()
|
|
279
|
+ }
|
|
280
|
+ })
|
|
281
|
+ }).catch(() => {
|
|
282
|
+ })
|
|
283
|
+ }
|
|
284
|
+ },
|
|
285
|
+ toPrint(row) {
|
|
286
|
+ if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
|
201
|
287
|
this.statementVisible9504 = true
|
202
|
288
|
let obj = {
|
203
|
289
|
order_id: row.id,
|
204
|
290
|
patient_id: row.patient_id,
|
205
|
291
|
record_time: this.getTimes(row.settle_accounts_date),
|
206
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
|
292
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
207
|
293
|
}
|
208
|
294
|
this.orderObj9504 = obj
|
209
|
|
- }else {
|
|
295
|
+ } else {
|
210
|
296
|
this.statementVisible = true
|
211
|
297
|
let obj = {
|
212
|
298
|
order_id: row.id
|
|
@@ -215,10 +301,10 @@
|
215
|
301
|
}
|
216
|
302
|
|
217
|
303
|
},
|
218
|
|
- export_detail(){
|
219
|
|
- let params= {
|
220
|
|
- start_time:this.start_time,
|
221
|
|
- end_time: this.end_time,
|
|
304
|
+ export_detail() {
|
|
305
|
+ let params = {
|
|
306
|
+ start_time: this.start_time,
|
|
307
|
+ end_time: this.end_time
|
222
|
308
|
}
|
223
|
309
|
getExportConsumeDetailList(params).then(response => {
|
224
|
310
|
if (response.data.state == 0) {
|
|
@@ -227,144 +313,139 @@
|
227
|
313
|
} else {
|
228
|
314
|
|
229
|
315
|
let list = []
|
230
|
|
- for (let i =0; i < response.data.data.order.length; i++){
|
231
|
|
- let order = response.data.data.order[i]
|
232
|
|
- let number = ""
|
233
|
|
- let name = ""
|
234
|
|
- let department = ""
|
235
|
|
- let doctor_name = ""
|
236
|
|
- let balance_accounts = ""
|
|
316
|
+ for (let i = 0; i < response.data.data.order.length; i++) {
|
|
317
|
+ let order = response.data.data.order[i]
|
|
318
|
+ let number = ''
|
|
319
|
+ let name = ''
|
|
320
|
+ let department = ''
|
|
321
|
+ let doctor_name = ''
|
|
322
|
+ let balance_accounts = ''
|
237
|
323
|
|
238
|
|
- let order_status = ""
|
|
324
|
+ let order_status = ''
|
239
|
325
|
|
240
|
|
-
|
241
|
|
-
|
242
|
|
- if(order.his_patient != null && order.his_patient.number.length > 0){
|
|
326
|
+ if (order.his_patient != null && order.his_patient.number.length > 0) {
|
243
|
327
|
number = order.his_patient.number
|
244
|
328
|
|
245
|
329
|
}
|
246
|
330
|
|
247
|
|
- if(order.his_patient != null ){
|
248
|
|
- if(order.his_patient.balance_accounts_type == 1){
|
249
|
|
- balance_accounts = "自费"
|
|
331
|
+ if (order.his_patient != null) {
|
|
332
|
+ if (order.his_patient.balance_accounts_type == 1) {
|
|
333
|
+ balance_accounts = '自费'
|
250
|
334
|
}
|
251
|
335
|
|
252
|
|
- if(order.his_patient.balance_accounts_type == 2){
|
253
|
|
- balance_accounts = "医保"
|
|
336
|
+ if (order.his_patient.balance_accounts_type == 2) {
|
|
337
|
+ balance_accounts = '医保'
|
254
|
338
|
}
|
255
|
339
|
}
|
256
|
340
|
|
257
|
|
- if(order.patient != null && order.patient.name.length > 0){
|
|
341
|
+ if (order.patient != null && order.patient.name.length > 0) {
|
258
|
342
|
name = order.patient.name
|
259
|
343
|
|
260
|
344
|
}
|
261
|
345
|
|
262
|
|
- if(order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0){
|
|
346
|
+ if (order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0) {
|
263
|
347
|
department = order.p_info.department.name
|
264
|
348
|
|
265
|
349
|
}
|
266
|
350
|
|
267
|
|
- if(order.p_info != null && order.p_info.doctor.length > 0){
|
|
351
|
+ if (order.p_info != null && order.p_info.doctor.length > 0) {
|
268
|
352
|
doctor_name = order.p_info.doctor
|
269
|
353
|
}
|
270
|
354
|
|
271
|
|
- if(order.order_status == 1){
|
272
|
|
- order_status = "待结算"
|
|
355
|
+ if (order.order_status == 1) {
|
|
356
|
+ order_status = '待结算'
|
273
|
357
|
}
|
274
|
358
|
|
275
|
|
- if(order.order_status == 2){
|
276
|
|
- order_status = "已结算"
|
|
359
|
+ if (order.order_status == 2) {
|
|
360
|
+ order_status = '已结算'
|
277
|
361
|
}
|
278
|
362
|
|
279
|
|
- if(order.order_status == 3){
|
280
|
|
- order_status = "已退费"
|
|
363
|
+ if (order.order_status == 3) {
|
|
364
|
+ order_status = '已退费'
|
281
|
365
|
}
|
282
|
366
|
|
283
|
|
-
|
284
|
367
|
let obj = {
|
285
|
|
- "就诊号":number,
|
286
|
|
- "患者姓名":name,
|
287
|
|
- "应收金额":order.medfee_sumamt,
|
288
|
|
- "实收金额":order.medfee_sumamt,
|
289
|
|
- "科室":department,
|
290
|
|
- "医生姓名":doctor_name,
|
291
|
|
- "收费类别":balance_accounts,
|
292
|
|
- "收费者姓名":doctor_name,
|
293
|
|
- "总金额":order.medfee_sumamt,
|
294
|
|
- "现金支付":"",
|
295
|
|
- "账户支付":"",
|
296
|
|
- "支付宝支付":"",
|
297
|
|
- "微信支付":"",
|
298
|
|
- "其他支付":"",
|
299
|
|
- "收费日期":"",
|
300
|
|
- "收费状态":order_status,
|
301
|
|
- "退费日期":"",
|
|
368
|
+ '就诊号': number,
|
|
369
|
+ '患者姓名': name,
|
|
370
|
+ '应收金额': order.medfee_sumamt,
|
|
371
|
+ '实收金额': order.medfee_sumamt,
|
|
372
|
+ '科室': department,
|
|
373
|
+ '医生姓名': doctor_name,
|
|
374
|
+ '收费类别': balance_accounts,
|
|
375
|
+ '收费者姓名': doctor_name,
|
|
376
|
+ '总金额': order.medfee_sumamt,
|
|
377
|
+ '现金支付': '',
|
|
378
|
+ '账户支付': '',
|
|
379
|
+ '支付宝支付': '',
|
|
380
|
+ '微信支付': '',
|
|
381
|
+ '其他支付': '',
|
|
382
|
+ '收费日期': '',
|
|
383
|
+ '收费状态': order_status,
|
|
384
|
+ '退费日期': ''
|
302
|
385
|
}
|
303
|
386
|
list.push(obj)
|
304
|
387
|
}
|
305
|
388
|
import('@/vendor/Export2Excel').then(excel => {
|
306
|
|
- const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
|
307
|
|
- const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
|
|
389
|
+ const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
|
390
|
+ const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
308
|
391
|
const data = this.formatJson(filterVal, list)
|
309
|
392
|
excel.export_json_to_excel({
|
310
|
393
|
header: tHeader,
|
311
|
394
|
data,
|
312
|
|
- filename: "消费明细"
|
|
395
|
+ filename: '消费明细'
|
313
|
396
|
})
|
314
|
397
|
})
|
315
|
398
|
|
316
|
399
|
}
|
317
|
400
|
})
|
318
|
401
|
|
319
|
|
- }, formatJson(filterVal, jsonData) {
|
|
402
|
+ }, formatJson(filterVal, jsonData) {
|
320
|
403
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
321
|
404
|
},
|
322
|
|
- changeDoctor(){
|
|
405
|
+ changeDoctor() {
|
323
|
406
|
this.page = 1
|
324
|
|
- this.keywords=""
|
|
407
|
+ this.keywords = ''
|
325
|
408
|
this.getHisOrderList()
|
326
|
409
|
},
|
327
|
|
- handleSizeChange(limit){
|
328
|
|
- this.limit = limit;
|
|
410
|
+ handleSizeChange(limit) {
|
|
411
|
+ this.limit = limit
|
329
|
412
|
this.getHisOrderList()
|
330
|
413
|
|
331
|
|
- },handleCurrentChange(page){
|
332
|
|
- this.page = page;
|
|
414
|
+ }, handleCurrentChange(page) {
|
|
415
|
+ this.page = page
|
333
|
416
|
this.getHisOrderList()
|
334
|
417
|
|
335
|
|
-
|
336
|
418
|
},
|
337
|
|
- handleStartTimeChange(){
|
|
419
|
+ handleStartTimeChange() {
|
338
|
420
|
this.page = 1
|
339
|
|
- this.keywords=""
|
|
421
|
+ this.keywords = ''
|
340
|
422
|
this.getHisOrderList()
|
341
|
|
- },handleEndTimeChange(){
|
|
423
|
+ }, handleEndTimeChange() {
|
342
|
424
|
this.page = 1
|
343
|
|
- this.keywords=""
|
|
425
|
+ this.keywords = ''
|
344
|
426
|
this.getHisOrderList()
|
345
|
427
|
},
|
346
|
|
- searchAction(){
|
|
428
|
+ searchAction() {
|
347
|
429
|
this.page = 1
|
348
|
430
|
this.getHisOrderList()
|
349
|
431
|
|
350
|
|
-
|
351
|
432
|
},
|
352
|
433
|
getTimes(time) {
|
353
|
|
- return uParseTime(time, "{y}-{m}-{d}");
|
|
434
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
354
|
435
|
},
|
355
|
436
|
toDetail(row) {
|
356
|
|
- this.$router.push('/outpatientCharges/summaryDetail?patient_id='+row.patient.id+"&number="+row.number+"&id="+row.id)
|
|
437
|
+ this.$router.push('/outpatientCharges/summaryDetail?patient_id=' + row.patient.id + '&number=' + row.number + '&id=' + row.id)
|
357
|
438
|
}, getTime(value, temp) {
|
358
|
439
|
if (value != undefined) {
|
359
|
440
|
return uParseTime(value, temp)
|
360
|
441
|
}
|
361
|
442
|
return ''
|
362
|
|
- },getHisOrderList(){
|
363
|
|
- let params= {
|
364
|
|
- page : this.page,
|
|
443
|
+ }, getHisOrderList() {
|
|
444
|
+ let params = {
|
|
445
|
+ page: this.page,
|
365
|
446
|
limit: this.limit,
|
366
|
|
- keywords:this.keywords,
|
367
|
|
- start_time:this.start_time,
|
|
447
|
+ keywords: this.keywords,
|
|
448
|
+ start_time: this.start_time,
|
368
|
449
|
end_time: this.end_time,
|
369
|
450
|
type: this.admin_user_id
|
370
|
451
|
}
|
|
@@ -378,7 +459,7 @@
|
378
|
459
|
}
|
379
|
460
|
})
|
380
|
461
|
|
381
|
|
- },getDoctorList(){
|
|
462
|
+ }, getDoctorList() {
|
382
|
463
|
getDoctorList().then(response => {
|
383
|
464
|
if (response.data.state == 0) {
|
384
|
465
|
this.$message.error(response.data.msg)
|
|
@@ -388,16 +469,20 @@
|
388
|
469
|
}
|
389
|
470
|
})
|
390
|
471
|
},
|
391
|
|
- open(index){
|
392
|
|
- if(index == 1){
|
|
472
|
+ open(index) {
|
|
473
|
+ if (index == 1) {
|
393
|
474
|
this.listVisible = true
|
394
|
|
- }else if(index == 2){
|
|
475
|
+ } else if (index == 2) {
|
395
|
476
|
this.allListVisible = true
|
396
|
477
|
}
|
397
|
478
|
}
|
398
|
479
|
}, created() {
|
399
|
|
- this.getDoctorList()
|
400
|
|
- this.getHisOrderList()
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+ this.fetchAllAdminUsers()
|
|
483
|
+ this.getDoctorList()
|
|
484
|
+ this.getHisOrderList()
|
|
485
|
+
|
401
|
486
|
|
402
|
487
|
|
403
|
488
|
}
|