|
@@ -117,6 +117,15 @@
|
117
|
117
|
<el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
|
118
|
118
|
<span @click="putOnRecord(2,scope.row)">撤消</span>
|
119
|
119
|
</el-button>
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+ <el-button type="primary" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
|
|
123
|
+ <span @click="putOnRecord(3,scope.row)">查看备案信息</span>
|
|
124
|
+ </el-button>
|
|
125
|
+
|
|
126
|
+ <el-button type="primary" size="small" icon="el-icon-tickets" >
|
|
127
|
+ <span @click="putOnRecord(4,scope.row)">删除</span>
|
|
128
|
+ </el-button>
|
120
|
129
|
</template>
|
121
|
130
|
</el-table-column>
|
122
|
131
|
</el-table>
|
|
@@ -201,7 +210,7 @@
|
201
|
210
|
|
202
|
211
|
<script>
|
203
|
212
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
204
|
|
- import { getAllDoctorList, getInitData, getRecordList } from '@/api/his/his'
|
|
213
|
+ import { getAllDoctorList, getInitData, getRecordList,deleteNCDSRecord } from '@/api/his/his'
|
205
|
214
|
import { uParseTime } from '@/utils/tools'
|
206
|
215
|
import { fetchAllAdminUsers } from '@/api/doctor'
|
207
|
216
|
import axios from 'axios'
|
|
@@ -382,7 +391,7 @@
|
382
|
391
|
|
383
|
392
|
this.getGdybPatientInfo()
|
384
|
393
|
|
385
|
|
- } else {
|
|
394
|
+ } else if(type == 2) {
|
386
|
395
|
this.$confirm('是否撤销备案', '撤销备案', {
|
387
|
396
|
confirmButtonText: '确 定',
|
388
|
397
|
cancelButtonText: '取 消',
|
|
@@ -426,8 +435,65 @@
|
426
|
435
|
|
427
|
436
|
})
|
428
|
437
|
|
429
|
|
- }
|
|
438
|
+ }else if(type == 3){
|
|
439
|
+ let params = {
|
|
440
|
+ 'id': row.record.id,
|
|
441
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id
|
|
442
|
+ };
|
|
443
|
+ var that = this;
|
|
444
|
+ axios.get('http://127.0.0.1:9532/api/psn/info', {
|
|
445
|
+ params: params
|
|
446
|
+ })
|
|
447
|
+ .then(function(response) {
|
|
448
|
+ if (response.data.state == 0) {
|
|
449
|
+ that.$message.error(response.data.msg);
|
|
450
|
+ return false
|
|
451
|
+ } else {
|
|
452
|
+ if(response.data.data.failed_code == -10){
|
|
453
|
+ // that.$message.error(response.data.data.msg)
|
|
454
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
455
|
+ confirmButtonText: '确 定',
|
|
456
|
+ type: 'warning'
|
|
457
|
+ }).then(() => {
|
|
458
|
+
|
|
459
|
+ }).catch(() => {
|
|
460
|
+ })
|
|
461
|
+ }else{
|
|
462
|
+ that.$confirm(response.data.data.result, '医保信息', {
|
|
463
|
+ confirmButtonText: '确 定',
|
|
464
|
+ type: 'warning'
|
|
465
|
+ }).then(() => {
|
|
466
|
+
|
|
467
|
+ }).catch(() => {
|
|
468
|
+
|
|
469
|
+ })
|
|
470
|
+ }
|
|
471
|
+ }
|
|
472
|
+ })
|
|
473
|
+ .catch(function(error) {
|
|
474
|
+ })
|
|
475
|
+ }else if(type == 4){
|
|
476
|
+ this.$confirm("是否删除", '删除', {
|
|
477
|
+ confirmButtonText: '确 定',
|
|
478
|
+ type: 'warning'
|
|
479
|
+ }).then(() => {
|
|
480
|
+ let params = {
|
|
481
|
+ id: row.record.id,
|
|
482
|
+ }
|
|
483
|
+ deleteNCDSRecord(params).then(response => {
|
|
484
|
+ if (response.data.state == 0) {
|
|
485
|
+ this.$message.error(response.data.msg);
|
|
486
|
+ return false
|
|
487
|
+ } else {
|
|
488
|
+ this.getList()
|
|
489
|
+ }
|
|
490
|
+ })
|
430
|
491
|
|
|
492
|
+ }).catch(() => {
|
|
493
|
+ })
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+ }
|
431
|
497
|
},
|
432
|
498
|
changeDoctor(row, id) {
|
433
|
499
|
for (let i = 0; i < this.doctorList.length; i++) {
|