|
@@ -11,10 +11,20 @@
|
11
|
11
|
<!-- <div class="backColor"></div> -->
|
12
|
12
|
<div class="mainCenter" v-loading="loading">
|
13
|
13
|
<div class="centerLeft">
|
|
14
|
+ <div v-if="prescriptions[0].id >0 && (org_id == 10278 || org_id == 10138 || org_id == 0) ">
|
|
15
|
+ <el-button style="width: 100px" size="small" @click="callElePre(1)" type="primary">处方预核验</el-button>
|
|
16
|
+ <el-button style="width: 100px" size="small" @click="callElePre(2)" type="primary">处方签名</el-button>
|
|
17
|
+ <el-button style="width: 100px" size="small" @click="callElePre(3)" type="primary">处方上传</el-button>
|
|
18
|
+ <el-button style="width: 100px" size="small" @click="callElePre(4)" type="primary">处方撤销</el-button>
|
|
19
|
+ <el-button style="width: 100px" size="small" @click="callElePre(5)" type="primary">处方信息查询</el-button>
|
|
20
|
+ <el-button style="width: 100px" size="small" @click="callElePre(6)" type="primary">处方结果查询</el-button>
|
|
21
|
+ </div>
|
14
|
22
|
<el-tabs v-model="dayorMonth" @tab-click="changeDayOrMonth">
|
15
|
23
|
<el-tab-pane label="日结" name="day"></el-tab-pane>
|
16
|
24
|
<el-tab-pane label="月结" name="month"></el-tab-pane>
|
17
|
25
|
</el-tabs>
|
|
26
|
+
|
|
27
|
+
|
18
|
28
|
<el-form :model="form" ref="form" label-width="80px"
|
19
|
29
|
style="display: flex;flex-wrap: wrap;justify-content: space-between;">
|
20
|
30
|
<el-form-item label="姓名:" prop="name" label-position="right">
|
|
@@ -4393,6 +4403,237 @@ export default {
|
4393
|
4403
|
},
|
4394
|
4404
|
clearSelection() {
|
4395
|
4405
|
this.$refs.tabProjectTeam.clearSelection()
|
|
4406
|
+ },callElePre(type){
|
|
4407
|
+ switch (type){
|
|
4408
|
+ case 1:
|
|
4409
|
+ var that = this
|
|
4410
|
+ let params = {
|
|
4411
|
+ 'admin_user_id':3626,
|
|
4412
|
+ 'patient_id': this.patientInfo.id,
|
|
4413
|
+ 'his_patient_id': this.hisPatientInfo.id,
|
|
4414
|
+ 'record_time':this.record_date
|
|
4415
|
+ }
|
|
4416
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG001', {
|
|
4417
|
+ params: params
|
|
4418
|
+ }).then(function(response) {
|
|
4419
|
+ if (response.data.state == 0) {
|
|
4420
|
+ that.$message.error(response.data.msg)
|
|
4421
|
+ that.fapiaoCodeDialogVisible = false
|
|
4422
|
+ return false
|
|
4423
|
+ } else {
|
|
4424
|
+ that.fapiaoCodeDialogVisible = false
|
|
4425
|
+ if (response.data.data.failed_code == -10) {
|
|
4426
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4427
|
+ confirmButtonText: '确 定',
|
|
4428
|
+ type: 'warning'
|
|
4429
|
+ }).then(() => {
|
|
4430
|
+
|
|
4431
|
+ }).catch(() => {
|
|
4432
|
+
|
|
4433
|
+ })
|
|
4434
|
+
|
|
4435
|
+ } else {
|
|
4436
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4437
|
+ that.order.is_upload_diagnose = 1
|
|
4438
|
+ }
|
|
4439
|
+
|
|
4440
|
+ }
|
|
4441
|
+ })
|
|
4442
|
+ .catch(function(error) {
|
|
4443
|
+
|
|
4444
|
+ })
|
|
4445
|
+
|
|
4446
|
+ break
|
|
4447
|
+ case 2:
|
|
4448
|
+ var that = this
|
|
4449
|
+ let params2 = {
|
|
4450
|
+ 'order_id': this.order.id,
|
|
4451
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
4452
|
+ 'fapiao_code':this.fapiao_code,
|
|
4453
|
+ }
|
|
4454
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG002', {
|
|
4455
|
+ params: params2
|
|
4456
|
+ }).then(function(response) {
|
|
4457
|
+ if (response.data.state == 0) {
|
|
4458
|
+ that.$message.error(response.data.msg)
|
|
4459
|
+ that.fapiaoCodeDialogVisible = false
|
|
4460
|
+ return false
|
|
4461
|
+ } else {
|
|
4462
|
+ that.fapiaoCodeDialogVisible = false
|
|
4463
|
+ if (response.data.data.failed_code == -10) {
|
|
4464
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4465
|
+ confirmButtonText: '确 定',
|
|
4466
|
+ type: 'warning'
|
|
4467
|
+ }).then(() => {
|
|
4468
|
+
|
|
4469
|
+ }).catch(() => {
|
|
4470
|
+
|
|
4471
|
+ })
|
|
4472
|
+
|
|
4473
|
+ } else {
|
|
4474
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4475
|
+ that.order.is_upload_diagnose = 1
|
|
4476
|
+ }
|
|
4477
|
+
|
|
4478
|
+ }
|
|
4479
|
+ })
|
|
4480
|
+ .catch(function(error) {
|
|
4481
|
+
|
|
4482
|
+ })
|
|
4483
|
+ break
|
|
4484
|
+ case 3:
|
|
4485
|
+ var that = this
|
|
4486
|
+ let params3 = {
|
|
4487
|
+ 'order_id': this.order.id,
|
|
4488
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
4489
|
+ 'fapiao_code':this.fapiao_code,
|
|
4490
|
+ }
|
|
4491
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG003', {
|
|
4492
|
+ params: params3
|
|
4493
|
+ }).then(function(response) {
|
|
4494
|
+ if (response.data.state == 0) {
|
|
4495
|
+ that.$message.error(response.data.msg)
|
|
4496
|
+ that.fapiaoCodeDialogVisible = false
|
|
4497
|
+ return false
|
|
4498
|
+ } else {
|
|
4499
|
+ that.fapiaoCodeDialogVisible = false
|
|
4500
|
+ if (response.data.data.failed_code == -10) {
|
|
4501
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4502
|
+ confirmButtonText: '确 定',
|
|
4503
|
+ type: 'warning'
|
|
4504
|
+ }).then(() => {
|
|
4505
|
+
|
|
4506
|
+ }).catch(() => {
|
|
4507
|
+
|
|
4508
|
+ })
|
|
4509
|
+
|
|
4510
|
+ } else {
|
|
4511
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4512
|
+ that.order.is_upload_diagnose = 1
|
|
4513
|
+ }
|
|
4514
|
+
|
|
4515
|
+ }
|
|
4516
|
+ })
|
|
4517
|
+ .catch(function(error) {
|
|
4518
|
+
|
|
4519
|
+ })
|
|
4520
|
+ break
|
|
4521
|
+ case 4:
|
|
4522
|
+ var that = this
|
|
4523
|
+ let params4 = {
|
|
4524
|
+ 'order_id': this.order.id,
|
|
4525
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
4526
|
+ 'fapiao_code':this.fapiao_code,
|
|
4527
|
+ }
|
|
4528
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG004', {
|
|
4529
|
+ params: params4
|
|
4530
|
+ }).then(function(response) {
|
|
4531
|
+ if (response.data.state == 0) {
|
|
4532
|
+ that.$message.error(response.data.msg)
|
|
4533
|
+ that.fapiaoCodeDialogVisible = false
|
|
4534
|
+ return false
|
|
4535
|
+ } else {
|
|
4536
|
+ that.fapiaoCodeDialogVisible = false
|
|
4537
|
+ if (response.data.data.failed_code == -10) {
|
|
4538
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4539
|
+ confirmButtonText: '确 定',
|
|
4540
|
+ type: 'warning'
|
|
4541
|
+ }).then(() => {
|
|
4542
|
+
|
|
4543
|
+ }).catch(() => {
|
|
4544
|
+
|
|
4545
|
+ })
|
|
4546
|
+
|
|
4547
|
+ } else {
|
|
4548
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4549
|
+ that.order.is_upload_diagnose = 1
|
|
4550
|
+ }
|
|
4551
|
+
|
|
4552
|
+ }
|
|
4553
|
+ })
|
|
4554
|
+ .catch(function(error) {
|
|
4555
|
+
|
|
4556
|
+ })
|
|
4557
|
+ break
|
|
4558
|
+ case 5:
|
|
4559
|
+ var that = this
|
|
4560
|
+ let params5 = {
|
|
4561
|
+ 'order_id': this.order.id,
|
|
4562
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
4563
|
+ 'fapiao_code':this.fapiao_code,
|
|
4564
|
+ }
|
|
4565
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG005', {
|
|
4566
|
+ params: params5
|
|
4567
|
+ }).then(function(response) {
|
|
4568
|
+ if (response.data.state == 0) {
|
|
4569
|
+ that.$message.error(response.data.msg)
|
|
4570
|
+ that.fapiaoCodeDialogVisible = false
|
|
4571
|
+ return false
|
|
4572
|
+ } else {
|
|
4573
|
+ that.fapiaoCodeDialogVisible = false
|
|
4574
|
+ if (response.data.data.failed_code == -10) {
|
|
4575
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4576
|
+ confirmButtonText: '确 定',
|
|
4577
|
+ type: 'warning'
|
|
4578
|
+ }).then(() => {
|
|
4579
|
+
|
|
4580
|
+ }).catch(() => {
|
|
4581
|
+
|
|
4582
|
+ })
|
|
4583
|
+
|
|
4584
|
+ } else {
|
|
4585
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4586
|
+ that.order.is_upload_diagnose = 1
|
|
4587
|
+ }
|
|
4588
|
+
|
|
4589
|
+ }
|
|
4590
|
+ })
|
|
4591
|
+ .catch(function(error) {
|
|
4592
|
+
|
|
4593
|
+ })
|
|
4594
|
+ break
|
|
4595
|
+ case 6:
|
|
4596
|
+ var that = this
|
|
4597
|
+ let params6 = {
|
|
4598
|
+ 'order_id': this.order.id,
|
|
4599
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
4600
|
+ 'fapiao_code':this.fapiao_code,
|
|
4601
|
+ }
|
|
4602
|
+ axios.get('http://127.0.0.1:9532/api/CFYLJG006', {
|
|
4603
|
+ params: params6
|
|
4604
|
+ }).then(function(response) {
|
|
4605
|
+ if (response.data.state == 0) {
|
|
4606
|
+ that.$message.error(response.data.msg)
|
|
4607
|
+ that.fapiaoCodeDialogVisible = false
|
|
4608
|
+ return false
|
|
4609
|
+ } else {
|
|
4610
|
+ that.fapiaoCodeDialogVisible = false
|
|
4611
|
+ if (response.data.data.failed_code == -10) {
|
|
4612
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4613
|
+ confirmButtonText: '确 定',
|
|
4614
|
+ type: 'warning'
|
|
4615
|
+ }).then(() => {
|
|
4616
|
+
|
|
4617
|
+ }).catch(() => {
|
|
4618
|
+
|
|
4619
|
+ })
|
|
4620
|
+
|
|
4621
|
+ } else {
|
|
4622
|
+ that.$message({ message: '上传成功', type: 'success', duration: 5000 })
|
|
4623
|
+ that.order.is_upload_diagnose = 1
|
|
4624
|
+ }
|
|
4625
|
+
|
|
4626
|
+ }
|
|
4627
|
+ })
|
|
4628
|
+ .catch(function(error) {
|
|
4629
|
+
|
|
4630
|
+ })
|
|
4631
|
+ break
|
|
4632
|
+
|
|
4633
|
+ }
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
|
4396
|
4637
|
}
|
4397
|
4638
|
}, mounted() {
|
4398
|
4639
|
this.request_record_date = this.record_date
|