Bladeren bron

处理bug

csx 3 jaren geleden
bovenliggende
commit
450b5837d8

+ 218 - 198
src/xt_pages/outpatientCharges/summary.vue Bestand weergeven

1
 <template>
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
         </div>
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
         </div>
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
     </div>
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
 </template>
174
 </template>
171
 
175
 
172
 
176
 
173
 <script>
177
 <script>
174
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
   import NewStatementPrint from './newStatementPrint'
181
   import NewStatementPrint from './newStatementPrint'
178
   import listPrint from './listPrint'
182
   import listPrint from './listPrint'
179
   import allListPrint from './allListPrint'
183
   import allListPrint from './allListPrint'
180
   import NewStatementPrintTwo from './newStatementPrintTwo'
184
   import NewStatementPrintTwo from './newStatementPrintTwo'
181
-  import { fetchAllAdminUsers } from '@/api/doctor'
185
+  import {fetchAllAdminUsers} from '@/api/doctor'
182
   import axios from 'axios'
186
   import axios from 'axios'
183
   // import invoicePrint from './invoicePrint'
187
   // import invoicePrint from './invoicePrint'
184
 
188
 
193
     },
197
     },
194
     data() {
198
     data() {
195
       return {
199
       return {
196
-        loading:false,
200
+        loading: false,
197
         orderObj: {},
201
         orderObj: {},
198
         statementVisible: false,
202
         statementVisible: false,
199
         statementVisible9504: false,
203
         statementVisible9504: false,
200
         orderObj9504: {},
204
         orderObj9504: {},
201
         crumbs: [
205
         crumbs: [
202
-          { path: false, name: '门诊收费' },
203
-          { path: false, name: '项目消费明细汇总' }
206
+          {path: false, name: '门诊收费'},
207
+          {path: false, name: '项目消费明细汇总'}
204
         ],
208
         ],
205
         tableData: [],
209
         tableData: [],
206
         limit: 10,
210
         limit: 10,
213
         admin_user_id: '',
217
         admin_user_id: '',
214
         listVisible: false,
218
         listVisible: false,
215
         allListVisible: false,
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
     methods: {
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
       fetchAllAdminUsers() {
246
       fetchAllAdminUsers() {
225
         fetchAllAdminUsers().then(response => {
247
         fetchAllAdminUsers().then(response => {
226
           if (response.data.state == 1) {
248
           if (response.data.state == 1) {
237
           }
259
           }
238
         }
260
         }
239
 
261
 
240
-      },toRefund(row){
262
+      }, toRefund(row) {
241
         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) {
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
           var that = this
264
           var that = this
243
           this.$confirm('是否退费', '退费', {
265
           this.$confirm('是否退费', '退费', {
254
             axios.get('http://127.0.0.1:9532/api/refund/post', {
276
             axios.get('http://127.0.0.1:9532/api/refund/post', {
255
               params: params
277
               params: params
256
             })
278
             })
257
-              .then(function(response) {
279
+              .then(function (response) {
258
                 if (response.data.state == 0) {
280
                 if (response.data.state == 0) {
259
                   that.$message.error(response.data.msg)
281
                   that.$message.error(response.data.msg)
260
                   return false
282
                   return false
262
                   if (response.data.data.failed_code == -10) {
284
                   if (response.data.data.failed_code == -10) {
263
                     that.$message.error(response.data.data.msg)
285
                     that.$message.error(response.data.data.msg)
264
                   } else {
286
                   } else {
265
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
287
+                    that.$message({message: '退费成功', type: 'success', duration: 5000})
266
                     that.getHisOrderList()
288
                     that.getHisOrderList()
267
 
289
 
268
                   }
290
                   }
269
                 }
291
                 }
270
               })
292
               })
271
-              .catch(function(error) {
293
+              .catch(function (error) {
272
               })
294
               })
273
           }).catch(() => {
295
           }).catch(() => {
274
           })
296
           })
290
                 this.$message.error(response.data.msg)
312
                 this.$message.error(response.data.msg)
291
                 return false
313
                 return false
292
               } else {
314
               } else {
293
-                this.$message({ message: '退费成功', type: 'success' })
315
+                this.$message({message: '退费成功', type: 'success'})
294
                 this.getHisOrderList()
316
                 this.getHisOrderList()
295
               }
317
               }
296
             })
318
             })
338
               let department = ''
360
               let department = ''
339
               let doctor_name = ''
361
               let doctor_name = ''
340
               let charge_name = ''
362
               let charge_name = ''
341
-              let time =''
363
+              let time = ''
342
               let balance_accounts = ''
364
               let balance_accounts = ''
343
 
365
 
344
               let order_status = ''
366
               let order_status = ''
373
               }
395
               }
374
 
396
 
375
               if (order.creator != null) {
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
               if (order.order_status == 1) {
402
               if (order.order_status == 1) {
382
                 order_status = '待结算'
403
                 order_status = '待结算'
383
               }
404
               }
397
                 '应收金额': order.medfee_sumamt,
418
                 '应收金额': order.medfee_sumamt,
398
                 '实收金额': order.psn_cash_pay,
419
                 '实收金额': order.psn_cash_pay,
399
                 '医保统筹金额': order.fund_pay_sumamt,
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
                 '科室': department,
428
                 '科室': department,
408
                 '医生姓名': doctor_name,
429
                 '医生姓名': doctor_name,
409
                 '收费类别': balance_accounts,
430
                 '收费类别': balance_accounts,
421
               list.push(obj)
442
               list.push(obj)
422
             }
443
             }
423
             import('@/vendor/Export2Excel').then(excel => {
444
             import('@/vendor/Export2Excel').then(excel => {
424
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额','医保统筹金额','大额基金金额','大病基金金额','补充保险基金金额','医疗救助基金金额','公务员基金','个人支付基金','个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
425
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额','医保统筹金额','大额基金金额','大病基金金额','补充保险基金金额','医疗救助基金金额','公务员基金','个人支付基金','个人账户支付金额',  '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
445
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
446
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期']
426
               const data = this.formatJson(filterVal, list)
447
               const data = this.formatJson(filterVal, list)
427
               excel.export_json_to_excel({
448
               excel.export_json_to_excel({
428
                 header: tHeader,
449
                 header: tHeader,
511
           this.allListVisible = true
532
           this.allListVisible = true
512
         }
533
         }
513
       },
534
       },
514
-      invoicePrint(obj){
535
+      invoicePrint(obj) {
515
         console.log(obj)
536
         console.log(obj)
516
         let paramsObj = {
537
         let paramsObj = {
517
           order_id: obj.order_info.order_id,
538
           order_id: obj.order_info.order_id,
518
           patient_id: obj.patient_id,
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
         this.invoiceParams = paramsObj
545
         this.invoiceParams = paramsObj
525
         this.invoiceVisible = true
546
         this.invoiceVisible = true
532
       this.getHisOrderList()
553
       this.getHisOrderList()
533
 
554
 
534
 
555
 
535
-
536
     }
556
     }
537
   }
557
   }
538
 </script>
558
 </script>

+ 49 - 50
src/xt_pages/outpatientRegistration/index.vue Bestand weergeven

1060
                 if (response.data.state == 1) {
1060
                 if (response.data.state == 1) {
1061
                   var patient = response.data.data.patient
1061
                   var patient = response.data.data.patient
1062
                   this.getTodaySchedulePatient()
1062
                   this.getTodaySchedulePatient()
1063
-                  that.$message({ message: '挂号成功', type: 'success' })
1064
-                  that.form.settlementValue = ''
1065
-                  that.form.medicalInsuranceCard = ''
1066
-                  that.form.name = ''
1067
-                  that.form.sex = ''
1068
-                  that.form.certificates = ''
1069
-                  that.form.medicalCare = ''
1070
-                  that.form.birthday = ''
1071
-                  that.form.age = ''
1072
-                  that.form.idCard = ''
1073
-                  that.form.register = ''
1074
-                  that.form.doctor = ''
1075
-                  that.form.department = ''
1076
-                  that.form.costChecked = false
1077
-                  that.form.registrationFee = ''
1078
-                  that.form.medicalExpenses = ''
1079
-                  that.form.cost = ''
1080
-                  that.form.total = ''
1081
-                  that.form.phone = ''
1082
-                  that.form.social_type = ''
1083
-                  that.loadingone = false
1084
-
1085
-                  that.form.p_type = 14
1086
-                  that.form.sick_type = that.sick[0].id
1087
-                  that.form.diagnosis = that.diagnoses[0].id
1063
+                  this.$message({ message: '挂号成功', type: 'success' })
1064
+                  this.form.settlementValue = ''
1065
+                  this.form.medicalInsuranceCard = ''
1066
+                  this.form.name = ''
1067
+                  this.form.sex = ''
1068
+                  this.form.certificates = ''
1069
+                  this.form.medicalCare = ''
1070
+                  this.form.birthday = ''
1071
+                  this.form.age = ''
1072
+                  this.form.idCard = ''
1073
+                  this.form.register = ''
1074
+                  this.form.doctor = ''
1075
+                  this.form.department = ''
1076
+                  this.form.costChecked = false
1077
+                  this.form.registrationFee = ''
1078
+                  this.form.medicalExpenses = ''
1079
+                  this.form.cost = ''
1080
+                  this.form.total = ''
1081
+                  this.form.phone = ''
1082
+                  this.form.social_type = ''
1083
+                  this.loadingone = false
1084
+
1085
+                  this.form.p_type = 14
1086
+                  this.form.sick_type = this.sick[0].id
1087
+                  this.form.diagnosis = this.diagnoses[0].id
1088
 
1088
 
1089
                 } else {
1089
                 } else {
1090
                   this.$message.error('今日患者已挂号!')
1090
                   this.$message.error('今日患者已挂号!')
1314
                 if (response.data.state == 1) {
1314
                 if (response.data.state == 1) {
1315
                   var patient = response.data.data.patient
1315
                   var patient = response.data.data.patient
1316
                   this.getTodaySchedulePatient()
1316
                   this.getTodaySchedulePatient()
1317
-                  that.$message({ message: '挂号成功', type: 'success' })
1318
-                  that.form.settlementValue = ''
1319
-                  that.form.medicalInsuranceCard = ''
1320
-                  that.form.name = ''
1321
-                  that.form.sex = ''
1322
-                  that.form.certificates = ''
1323
-                  that.form.medicalCare = ''
1324
-                  that.form.birthday = ''
1325
-                  that.form.age = ''
1326
-                  that.form.idCard = ''
1327
-                  that.form.register = ''
1328
-                  that.form.doctor = ''
1329
-                  that.form.department = ''
1330
-                  that.form.costChecked = false
1331
-                  that.form.registrationFee = ''
1332
-                  that.form.medicalExpenses = ''
1333
-                  that.form.cost = ''
1334
-                  that.form.total = ''
1335
-                  that.form.phone = ''
1336
-                  that.form.social_type = ''
1337
-                  that.loadingone = false
1338
-
1339
-                  that.form.p_type = 14
1340
-                  that.form.sick_type = that.sick[0].id
1341
-                  that.form.diagnosis = that.diagnoses[0].id
1317
+                  this.$message({ message: '挂号成功', type: 'success' })
1318
+                  this.form.settlementValue = ''
1319
+                  this.form.medicalInsuranceCard = ''
1320
+                  this.form.name = ''
1321
+                  this.form.sex = ''
1322
+                  this.form.certificates = ''
1323
+                  this.form.medicalCare = ''
1324
+                  this.form.birthday = ''
1325
+                  this.form.age = ''
1326
+                  this.form.idCard = ''
1327
+                  this.form.register = ''
1328
+                  this.form.doctor = ''
1329
+                  this.form.department = ''
1330
+                  this.form.costChecked = false
1331
+                  this.form.registrationFee = ''
1332
+                  this.form.medicalExpenses = ''
1333
+                  this.form.cost = ''
1334
+                  this.form.total = ''
1335
+                  this.form.phone = ''
1336
+                  this.form.social_type = ''
1337
+                  this.loadingone = false
1338
+                  this.form.p_type = 14
1339
+                  this.form.sick_type = this.sick[0].id
1340
+                  this.form.diagnosis = this.diagnoses[0].id
1342
                 } else {
1341
                 } else {
1343
                   this.$message.error('今日患者已挂号!')
1342
                   this.$message.error('今日患者已挂号!')
1344
                 }
1343
                 }

+ 1 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue Bestand weergeven

758
           let params = {
758
           let params = {
759
             'id':row.id,
759
             'id':row.id,
760
             'patient_id': row.patient_id,
760
             'patient_id': row.patient_id,
761
-            'record_time': row.record_date,
761
+            'record_time': this.getTime(row.record_date, '{y}-{m}-{d}'),
762
             'admin_user_id': this.$store.getters.xt_user.user.id
762
             'admin_user_id': this.$store.getters.xt_user.user.id
763
           }
763
           }
764
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
764
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {