|
@@ -227,7 +227,7 @@
|
227
|
227
|
size="mini"
|
228
|
228
|
type="primary"
|
229
|
229
|
@click="confirmUploadInfo(scope.row)"
|
230
|
|
- v-if="$store.getters.xt_user.org_id == 10265"
|
|
230
|
+ v-if="$store.getters.xt_user.org_id == 10265 || $store.getters.xt_user.org_id == 10210"
|
231
|
231
|
>
|
232
|
232
|
确认结算清单
|
233
|
233
|
</el-button>
|
|
@@ -510,40 +510,73 @@ export default {
|
510
|
510
|
this.selecting_schs = val
|
511
|
511
|
},
|
512
|
512
|
confirmUploadInfo(row){
|
513
|
|
- var that = this;
|
514
|
|
- axios
|
515
|
|
- .get("http://127.0.0.1:9532/api/4102", {
|
516
|
|
- params: {
|
517
|
|
- order_id: row.id,
|
518
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
519
|
|
- stas_type: 1
|
520
|
|
- },
|
521
|
|
- })
|
522
|
|
- .then(function (response) {
|
523
|
|
- if (response.data.state == 0) {
|
524
|
|
- that.$message.error(response.data.msg);
|
525
|
|
- return false;
|
526
|
|
- } else {
|
527
|
|
- if (response.data.data.failed_code == -10) {
|
528
|
|
- that
|
529
|
|
- .$confirm(response.data.data.msg, "医保错误信息", {
|
530
|
|
- confirmButtonText: "确 定",
|
531
|
|
- type: "warning",
|
532
|
|
- })
|
533
|
|
- .then(() => {
|
534
|
|
- })
|
535
|
|
- .catch(() => {
|
536
|
|
- });
|
|
513
|
+ if(this.$store.getters.xt_user.org_id == 10265) {
|
|
514
|
+ var that = this;
|
|
515
|
+ axios
|
|
516
|
+ .get("http://127.0.0.1:9532/api/4102", {
|
|
517
|
+ params: {
|
|
518
|
+ order_id: row.id,
|
|
519
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
520
|
+ stas_type: 1
|
|
521
|
+ },
|
|
522
|
+ })
|
|
523
|
+ .then(function(response) {
|
|
524
|
+ if (response.data.state == 0) {
|
|
525
|
+ that.$message.error(response.data.msg);
|
|
526
|
+ return false;
|
537
|
527
|
} else {
|
538
|
|
- that.$message.success("确认成功");
|
539
|
|
- row.result.id = response.data.data.result.id;
|
|
528
|
+ if (response.data.data.failed_code == -10) {
|
|
529
|
+ that
|
|
530
|
+ .$confirm(response.data.data.msg, "医保错误信息", {
|
|
531
|
+ confirmButtonText: "确 定",
|
|
532
|
+ type: "warning",
|
|
533
|
+ })
|
|
534
|
+ .then(() => {
|
|
535
|
+ })
|
|
536
|
+ .catch(() => {
|
|
537
|
+ });
|
|
538
|
+ } else {
|
|
539
|
+ that.$message.success("确认成功");
|
|
540
|
+ row.result.id = response.data.data.result.id;
|
|
541
|
+ }
|
540
|
542
|
}
|
541
|
|
- }
|
542
|
|
- })
|
543
|
|
- .catch(function (error) {
|
544
|
|
- });
|
545
|
|
-
|
546
|
|
-
|
|
543
|
+ })
|
|
544
|
+ .catch(function(error) {
|
|
545
|
+ });
|
|
546
|
+ }else{
|
|
547
|
+ var that = this;
|
|
548
|
+ axios
|
|
549
|
+ .get("http://127.0.0.1:9532/api/comfirm/upload", {
|
|
550
|
+ params: {
|
|
551
|
+ order_id: row.id,
|
|
552
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
553
|
+ stas_type: 1
|
|
554
|
+ },
|
|
555
|
+ })
|
|
556
|
+ .then(function(response) {
|
|
557
|
+ if (response.data.state == 0) {
|
|
558
|
+ that.$message.error(response.data.msg);
|
|
559
|
+ return false;
|
|
560
|
+ } else {
|
|
561
|
+ if (response.data.data.failed_code == -10) {
|
|
562
|
+ that
|
|
563
|
+ .$confirm(response.data.data.msg, "医保错误信息", {
|
|
564
|
+ confirmButtonText: "确 定",
|
|
565
|
+ type: "warning",
|
|
566
|
+ })
|
|
567
|
+ .then(() => {
|
|
568
|
+ })
|
|
569
|
+ .catch(() => {
|
|
570
|
+ });
|
|
571
|
+ } else {
|
|
572
|
+ that.$message.success("确认成功");
|
|
573
|
+ row.result.id = response.data.data.result.id;
|
|
574
|
+ }
|
|
575
|
+ }
|
|
576
|
+ })
|
|
577
|
+ .catch(function(error) {
|
|
578
|
+ });
|
|
579
|
+ }
|
547
|
580
|
},
|
548
|
581
|
cancelUploadTwo(row){
|
549
|
582
|
if(this.$store.getters.xt_user.org_id == 10265){
|