|
@@ -149,10 +149,10 @@
|
149
|
149
|
<el-table-column align="center" prop="name" label="操作">
|
150
|
150
|
<template slot-scope="scope">
|
151
|
151
|
<el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
|
152
|
|
- @click="blue(scope.row)">
|
|
152
|
+ @click="blue()">
|
153
|
153
|
开票
|
154
|
154
|
</el-button>
|
155
|
|
- <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 1" size="mini" type="primary"
|
|
155
|
+ <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0" size="mini" type="primary"
|
156
|
156
|
@click="hongchong(scope.row)">
|
157
|
157
|
红冲
|
158
|
158
|
</el-button>
|
|
@@ -197,7 +197,7 @@ import { fetchAllAdminUsers } from '@/api/doctor'
|
197
|
197
|
import axios from 'axios'
|
198
|
198
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
199
|
199
|
import {
|
200
|
|
- getOrderFapiaoList
|
|
200
|
+ getOrderFapiaoList, OpenBlueFapiao, OpenRedFapiao
|
201
|
201
|
} from '../../api/fapiao'
|
202
|
202
|
|
203
|
203
|
import { getDialysisRecordInitData } from '@/api/dialysis_record'
|
|
@@ -280,6 +280,46 @@ export default {
|
280
|
280
|
},
|
281
|
281
|
|
282
|
282
|
methods: {
|
|
283
|
+ hongchong(row){
|
|
284
|
+ var id = row.result.id
|
|
285
|
+ let params = {
|
|
286
|
+ "id":id,
|
|
287
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
288
|
+ }
|
|
289
|
+ OpenRedFapiao(params).then((response) => {
|
|
290
|
+ if (response.data.state == 0) {
|
|
291
|
+ this.$message.error(response.data.msg)
|
|
292
|
+ return false
|
|
293
|
+ } else {
|
|
294
|
+ this.$message.success(response.data.msg)
|
|
295
|
+ this.getHisOrderList()
|
|
296
|
+ }
|
|
297
|
+ })
|
|
298
|
+ },
|
|
299
|
+ blue(){
|
|
300
|
+ console.log(this.selecting_schs)
|
|
301
|
+ var order_ids = ""
|
|
302
|
+ for(let i = 0; i < this.selecting_schs.length;i++){
|
|
303
|
+ if(order_ids.length == 0){
|
|
304
|
+ order_ids = this.selecting_schs[i].id
|
|
305
|
+ }else{
|
|
306
|
+ order_ids =order_ids + ","+this.selecting_schs[i].id
|
|
307
|
+ }
|
|
308
|
+ }
|
|
309
|
+ let params = {
|
|
310
|
+ "order_ids":order_ids,
|
|
311
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
312
|
+ }
|
|
313
|
+ OpenBlueFapiao(params).then((response) => {
|
|
314
|
+ if (response.data.state == 0) {
|
|
315
|
+ this.$message.error(response.data.msg)
|
|
316
|
+ return false
|
|
317
|
+ } else {
|
|
318
|
+ this.$message.success(response.data.msg)
|
|
319
|
+ this.getHisOrderList()
|
|
320
|
+ }
|
|
321
|
+ })
|
|
322
|
+ },
|
283
|
323
|
getData(patient_id){
|
284
|
324
|
this.patient_id = patient_id
|
285
|
325
|
this.getHisOrderList()
|
|
@@ -294,11 +334,7 @@ export default {
|
294
|
334
|
|
295
|
335
|
|
296
|
336
|
},
|
297
|
|
- blue(row){
|
298
|
|
-
|
299
|
|
- }, yulan(row){
|
300
|
|
-
|
301
|
|
- },hongchong(row){
|
|
337
|
+ yulan(row){
|
302
|
338
|
|
303
|
339
|
},
|
304
|
340
|
getAllstaff(){
|