|
@@ -0,0 +1,168 @@
|
|
1
|
+<template>
|
|
2
|
+ <!-- <div class="main-contain outpatientChargesManagement">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
5
|
+ </div> -->
|
|
6
|
+ <div>
|
|
7
|
+ <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
|
8
|
+ <div>
|
|
9
|
+
|
|
10
|
+ <el-date-picker
|
|
11
|
+ v-model="year"
|
|
12
|
+ type="year"
|
|
13
|
+ placeholder="选择年">
|
|
14
|
+ </el-date-picker>
|
|
15
|
+ <el-date-picker
|
|
16
|
+ v-model="month"
|
|
17
|
+ type="month"
|
|
18
|
+ placeholder="选择月">
|
|
19
|
+ </el-date-picker>
|
|
20
|
+ </div>
|
|
21
|
+ <div>
|
|
22
|
+ <el-button size="small" type="primary" @click="getYidiClear()">提取异地清分</el-button>
|
|
23
|
+ <el-button size="small" type="primary" @click="comfirmClear()">异地清分确认</el-button>
|
|
24
|
+ </div>
|
|
25
|
+ </div>
|
|
26
|
+ <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
27
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
28
|
+ show-summary
|
|
29
|
+ max-height="600"
|
|
30
|
+ highlight-current-row>
|
|
31
|
+ <el-table-column align="center" prop="name" label="清分机构">
|
|
32
|
+ <template slot-scope="scope">{{scope.row.org_name}}</template>
|
|
33
|
+ </el-table-column>
|
|
34
|
+ <el-table-column align="center" prop="name" label="清分时间">
|
|
35
|
+ <template slot-scope="scope">{{getTime(scope.row.ctime) ? getTime(scope.row.ctime): ''}}</template>
|
|
36
|
+ </el-table-column>
|
|
37
|
+ <el-table-column align="center" prop="name" label="清分流水号">
|
|
38
|
+ <template slot-scope="scope">{{scope.row.msg_id}}</template>
|
|
39
|
+ </el-table-column>
|
|
40
|
+ </el-table>
|
|
41
|
+
|
|
42
|
+ <el-dialog title="异地清分明细" :visible.sync="dialogTableVisible">
|
|
43
|
+ <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
44
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
45
|
+ show-summary
|
|
46
|
+ max-height="600"
|
|
47
|
+ highlight-current-row>
|
|
48
|
+ <el-table-column align="center" prop="name" label="身份证号码">
|
|
49
|
+ <template slot-scope="scope">{{scope.row.certno}}</template>
|
|
50
|
+ </el-table-column>
|
|
51
|
+ <el-table-column align="center" prop="name" label="就诊登记号">
|
|
52
|
+ <template slot-scope="scope">{{scope.row.mdtrt_id}}</template>
|
|
53
|
+ </el-table-column>
|
|
54
|
+ <el-table-column align="center" prop="name" label="就诊结算时间">
|
|
55
|
+ <template slot-scope="scope">{{scope.row.mdtrt_setl_time}}</template>
|
|
56
|
+ </el-table-column>
|
|
57
|
+ <el-table-column align="center" prop="name" label="就诊流水号">
|
|
58
|
+ <template slot-scope="scope">{{scope.row.setl_sn}}</template>
|
|
59
|
+ </el-table-column>
|
|
60
|
+ <el-table-column align="center" prop="name" label="全额垫付标志">
|
|
61
|
+ <template slot-scope="scope" v-if="scope.row.fulamt_advpay_flag == 0">{{医院报销}}</template>
|
|
62
|
+ <template slot-scope="scope" v-if="scope.row.fulamt_advpay_flag == 1">{{零星报销}}</template>
|
|
63
|
+ </el-table-column>
|
|
64
|
+ <el-table-column align="center" prop="name" label="总费用">
|
|
65
|
+ <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
|
|
66
|
+ </el-table-column>
|
|
67
|
+ <el-table-column align="center" prop="name" label="经办机构支付总额">
|
|
68
|
+ <template slot-scope="scope">{{scope.row.optins_pay_sumamt}}</template>
|
|
69
|
+ </el-table-column>
|
|
70
|
+ </el-table>
|
|
71
|
+ </el-dialog>
|
|
72
|
+ </div>
|
|
73
|
+
|
|
74
|
+ <!-- </div> -->
|
|
75
|
+</template>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+<script>
|
|
79
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
80
|
+import { getYidiClearRecord } from '@/api/his/his'
|
|
81
|
+import { uParseTime } from '@/utils/tools'
|
|
82
|
+import axios from 'axios'
|
|
83
|
+const moment = require('moment')
|
|
84
|
+export default {
|
|
85
|
+ components: {
|
|
86
|
+ BreadCrumb
|
|
87
|
+
|
|
88
|
+ },
|
|
89
|
+ data() {
|
|
90
|
+ return {
|
|
91
|
+ dialogTableVisible:false,
|
|
92
|
+ year:'',
|
|
93
|
+ month:'',
|
|
94
|
+ tableData:[],
|
|
95
|
+ }
|
|
96
|
+ },
|
|
97
|
+ methods: {
|
|
98
|
+ getYidiClear(){
|
|
99
|
+ var that = this;
|
|
100
|
+ let params = {
|
|
101
|
+ 'year':year,
|
|
102
|
+ 'month':month,
|
|
103
|
+ 'admin_user_id':this.$store.getters.xt_user.user.id,
|
|
104
|
+ };
|
|
105
|
+ axios.get('http://127.0.0.1:9532/api/allopatry/get',{params:params}).then(function(response) {
|
|
106
|
+ if (response.data.state == 0) {
|
|
107
|
+ that.$message.error(response.data.data.msg);
|
|
108
|
+ return false
|
|
109
|
+ } else {
|
|
110
|
+ this.dialogTableVisible = true
|
|
111
|
+ this.tableData = []
|
|
112
|
+ for(let i = 0; i < response.data.data.list.length; i++){
|
|
113
|
+ let obj = {
|
|
114
|
+ certno: response.data.data.list[i].certno,
|
|
115
|
+ mdtrt_id:response.data.data.list[i].mdtrt_id,
|
|
116
|
+ mdtrt_setl_time:response.data.data.list[i].mdtrt_setl_time,
|
|
117
|
+ setl_sn:response.data.data.list[i].setl_sn,
|
|
118
|
+ fulamt_advpay_flag:response.data.data.list[i].fulamt_advpay_flag,
|
|
119
|
+ medfee_sumamt:response.data.data.list[i].medfee_sumamt,
|
|
120
|
+ optins_pay_sumamt:response.data.data.list[i].optins_pay_sumamt,
|
|
121
|
+ }
|
|
122
|
+ this.tableData.push(obj)
|
|
123
|
+ }
|
|
124
|
+ }
|
|
125
|
+ }).catch(function(error) {
|
|
126
|
+ })
|
|
127
|
+ },comfirmClear(){
|
|
128
|
+ var that = this;
|
|
129
|
+ let params = {
|
|
130
|
+ 'year':year,
|
|
131
|
+ 'month':month,
|
|
132
|
+ 'admin_user_id':this.$store.getters.xt_user.user.id,
|
|
133
|
+ };
|
|
134
|
+ axios.post('http://127.0.0.1:9532/api/comfirmallopatry/post',{params:params}).then(function(response) {
|
|
135
|
+ if (response.data.state == 0) {
|
|
136
|
+ that.$message.error(response.data.data.msg);
|
|
137
|
+ return false
|
|
138
|
+ } else {
|
|
139
|
+ that.$message.success("异地清分确认成功");
|
|
140
|
+ }
|
|
141
|
+ }).catch(function(error) {
|
|
142
|
+ })
|
|
143
|
+
|
|
144
|
+ },
|
|
145
|
+ getTime(value, temp) {
|
|
146
|
+ if (value != undefined) {
|
|
147
|
+ return uParseTime(value, temp)
|
|
148
|
+ }
|
|
149
|
+ return ''
|
|
150
|
+ },
|
|
151
|
+ getYidiClearRecord() {
|
|
152
|
+ getYidiClearRecord({}).then(response => {
|
|
153
|
+ if (response.data.state == 1) {
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+ } else {
|
|
158
|
+ this.$message.error(response.data.msg)
|
|
159
|
+ }
|
|
160
|
+ })
|
|
161
|
+ },
|
|
162
|
+ },
|
|
163
|
+ created() {
|
|
164
|
+ this.getYidiClearRecord()
|
|
165
|
+
|
|
166
|
+ }
|
|
167
|
+}
|
|
168
|
+</script>
|