|
|
@@ -122,12 +122,22 @@
|
|
122
|
122
|
<span v-if="(stepActive == 0 || step == 1) && value == 'sbbf'"
|
|
123
|
123
|
>流程(设施报废审批)</span
|
|
124
|
124
|
>
|
|
125
|
|
- <span v-if="(stepActive == 0 || step == 1) && value == 'sbly'"
|
|
126
|
|
- >流程(设施领用审批)</span
|
|
|
125
|
+ <span
|
|
|
126
|
+ v-if="
|
|
|
127
|
+ (stepActive == 0 || step == 1) &&
|
|
|
128
|
+ (value == 'sbly' || this.$route.query.sbType == 'sbgh')
|
|
|
129
|
+ "
|
|
|
130
|
+ >流程(设备领用审批)</span
|
|
127
|
131
|
>
|
|
128
|
132
|
|
|
129
|
|
- <span v-if="(stepActive == 1 || step == 2) && value == 'sbly'"
|
|
130
|
|
- >流程(设施归还审批)</span
|
|
|
133
|
+ <span
|
|
|
134
|
+ id="sbTitle"
|
|
|
135
|
+ v-if="
|
|
|
136
|
+ (stepActive == 1 || step == 2) &&
|
|
|
137
|
+ (this.$route.query.workName == '设备资产转移申请' ||
|
|
|
138
|
+ this.$route.query.workName == '设备领用归还')
|
|
|
139
|
+ "
|
|
|
140
|
+ >流程(设备资产转移审批)</span
|
|
131
|
141
|
>
|
|
132
|
142
|
</div>
|
|
133
|
143
|
<div class="tf_title_right" v-if="value == 'sbwx'">
|
|
|
@@ -494,12 +504,22 @@ export default {
|
|
494
|
504
|
}
|
|
495
|
505
|
} else {
|
|
496
|
506
|
this.button = "暂存"
|
|
|
507
|
+ if(this.step==2&&this.$route.query.sbType=='sbly'){
|
|
|
508
|
+ this.button = "保存并提交"
|
|
|
509
|
+ }
|
|
497
|
510
|
}
|
|
498
|
511
|
}
|
|
499
|
512
|
},
|
|
500
|
513
|
//点击每步时
|
|
501
|
514
|
stepClick(index) {
|
|
502
|
515
|
//this.step = index + 1
|
|
|
516
|
+ console.log(index, "index..")
|
|
|
517
|
+ if(index==0&&this.$route.query.ongoingStep!=2&&(this.$route.query.sbType=="sbgh"||this.$route.query.sbType=="sbly")){
|
|
|
518
|
+ document.getElementById("sbTitle").innerHTML="";
|
|
|
519
|
+ }else if(index==1&&this.$route.query.ongoingStep!=2&&(this.$route.query.sbType=="sbgh"||this.$route.query.sbType=="sbly")){
|
|
|
520
|
+ document.getElementById("sbTitle").innerHTML="流程(设备资产转移审批)";
|
|
|
521
|
+ }
|
|
|
522
|
+
|
|
503
|
523
|
console.log(index, this.stepActive, "?????")
|
|
504
|
524
|
console.log(this.step, this.stepActive + 1)
|
|
505
|
525
|
|
|
|
@@ -546,7 +566,7 @@ export default {
|
|
546
|
566
|
console.log(this.tableData)
|
|
547
|
567
|
if (
|
|
548
|
568
|
this.$route.query.workName == "设备资产转移申请" ||
|
|
549
|
|
- this.$route.query.workName == "设备领用申请"
|
|
|
569
|
+ this.$route.query.workName == "设备领用归还"
|
|
550
|
570
|
) {
|
|
551
|
571
|
this.tableDataAudit = JSON.parse(
|
|
552
|
572
|
JSON.stringify(this.totalData[1].audit)
|
|
|
@@ -564,11 +584,22 @@ export default {
|
|
564
|
584
|
}
|
|
565
|
585
|
this.button = "保存并提交"
|
|
566
|
586
|
|
|
567
|
|
- if (this.$route.query.sbType == "sbly") {
|
|
|
587
|
+ if (
|
|
|
588
|
+ this.$route.query.sbType == "sbly" &&
|
|
|
589
|
+ this.$route.query.type == 3
|
|
|
590
|
+ ) {
|
|
568
|
591
|
this.isShow = false
|
|
569
|
592
|
this.disabled = true
|
|
570
|
593
|
}
|
|
571
|
594
|
}
|
|
|
595
|
+
|
|
|
596
|
+ if (
|
|
|
597
|
+ this.$route.query.workName == "设备领用归还" &&
|
|
|
598
|
+ this.$route.query.sbType == "sbly" &&
|
|
|
599
|
+ this.$route.query.type == 2
|
|
|
600
|
+ ) {
|
|
|
601
|
+ this.button = "保存并提交"
|
|
|
602
|
+ }
|
|
572
|
603
|
if (this.$route.query.type == 3) {
|
|
573
|
604
|
this.disabled = true
|
|
574
|
605
|
this.isShow = false
|
|
|
@@ -579,6 +610,15 @@ export default {
|
|
579
|
610
|
this.isAudit = this.totalData[2].step.isAudit
|
|
580
|
611
|
this.tableDataAudit = []
|
|
581
|
612
|
this.button = "暂存"
|
|
|
613
|
+ if (
|
|
|
614
|
+ this.$route.query.workName == "设备领用归还" &&
|
|
|
615
|
+ this.$route.query.sbType == "sbgh" &&
|
|
|
616
|
+ this.$route.query.type == 3
|
|
|
617
|
+ ) {
|
|
|
618
|
+ console.log("aaaa")
|
|
|
619
|
+ this.isShow = false
|
|
|
620
|
+ this.disabled = true
|
|
|
621
|
+ }
|
|
582
|
622
|
} else if (this.step == 4) {
|
|
583
|
623
|
console.log(this.totalData)
|
|
584
|
624
|
this.tableData = this.totalData[3].list
|
|
|
@@ -739,8 +779,16 @@ export default {
|
|
739
|
779
|
index++
|
|
740
|
780
|
) {
|
|
741
|
781
|
const element = this.totalData[this.stepActive].list[index]
|
|
742
|
|
- // if (element.subData == 1 && this.step == 1) {
|
|
743
|
|
- if (element.subData == 1 && ( (this.step == 1||this.step==2) && (this.$route.query.sbType=="sbly"||this.$route.query.sbType=="sbgh") )) {
|
|
|
782
|
+ // if (element.subData == 1 && this.step == 1) {
|
|
|
783
|
+ if (
|
|
|
784
|
+ element.subData == 1 &&
|
|
|
785
|
+ ((this.step == 1 &&
|
|
|
786
|
+ (this.value == "sbbf" ||
|
|
|
787
|
+ this.value == "sbwx" ||
|
|
|
788
|
+ this.value == "sbly")) ||
|
|
|
789
|
+ (this.$route.query.sbType == "sbly" && this.step == 2) ||
|
|
|
790
|
+ (this.$route.query.sbType == "sbgh" && this.step == 2))
|
|
|
791
|
+ ) {
|
|
744
|
792
|
this.$message("只有选择是才能发起申请")
|
|
745
|
793
|
|
|
746
|
794
|
status = 1
|
|
|
@@ -806,9 +854,7 @@ export default {
|
|
806
|
854
|
// this.getUpdateList()
|
|
807
|
855
|
} else if (this.button == "保存" || this.button == "完成") {
|
|
808
|
856
|
console.log("保存。。")
|
|
809
|
|
- // if (this.stepActive + 1 == this.step) {
|
|
810
|
|
- // this.stepActive = this.stepActive + 1
|
|
811
|
|
- // }
|
|
|
857
|
+
|
|
812
|
858
|
if (this.button == "保存") {
|
|
813
|
859
|
if (this.value == "sbtz" || this.value == "sbdwgl") {
|
|
814
|
860
|
this.yjbgAddList()
|
|
|
@@ -819,8 +865,9 @@ export default {
|
|
819
|
865
|
// this.auditState = 3
|
|
820
|
866
|
// this.getUpdateList()
|
|
821
|
867
|
} else {
|
|
|
868
|
+
|
|
822
|
869
|
this.auditState = 4
|
|
823
|
|
- if (this.workName == "设备资产转移申请") {
|
|
|
870
|
+ if (this.$route.query.workName == "设备领用归还") {
|
|
824
|
871
|
this.value = "sbgh"
|
|
825
|
872
|
}
|
|
826
|
873
|
|
|
|
@@ -839,13 +886,16 @@ export default {
|
|
839
|
886
|
console.log(res.data, "查看数据")
|
|
840
|
887
|
console.log(this.stepActive)
|
|
841
|
888
|
if (res.code == 200) {
|
|
842
|
|
- this.totalData = res.data.process;
|
|
843
|
|
- if(this.$route.query.sbType=="sbly"&&this.$route.query.type==2){
|
|
844
|
|
- let subData2=this.totalData[1].list[0].subData;
|
|
845
|
|
- if(subData2==null){
|
|
846
|
|
- this.disabled=false;
|
|
847
|
|
- this.isShow=true
|
|
848
|
|
- }
|
|
|
889
|
+ this.totalData = res.data.process
|
|
|
890
|
+ if (
|
|
|
891
|
+ this.$route.query.sbType == "sbly" &&
|
|
|
892
|
+ this.$route.query.type == 2
|
|
|
893
|
+ ) {
|
|
|
894
|
+ let subData2 = this.totalData[1].list[0].subData
|
|
|
895
|
+ if (subData2 == null) {
|
|
|
896
|
+ this.disabled = false
|
|
|
897
|
+ this.isShow = true
|
|
|
898
|
+ }
|
|
849
|
899
|
}
|
|
850
|
900
|
let ongoingStep = this.stepActive
|
|
851
|
901
|
if (this.value == "sbtz" || this.value == "sbdwgl") {
|
|
|
@@ -891,7 +941,6 @@ export default {
|
|
891
|
941
|
this.detailProcessList()
|
|
892
|
942
|
this.tableShow()
|
|
893
|
943
|
}
|
|
894
|
|
-
|
|
895
|
944
|
}
|
|
896
|
945
|
})
|
|
897
|
946
|
},
|
|
|
@@ -908,6 +957,7 @@ export default {
|
|
908
|
957
|
// type = "sswxys"
|
|
909
|
958
|
// }
|
|
910
|
959
|
type = this.value
|
|
|
960
|
+ console.log(type,"type..")
|
|
911
|
961
|
let ongoingStepNum = null
|
|
912
|
962
|
if (this.stepActive < 4 && this.button !== "暂存") {
|
|
913
|
963
|
ongoingStepNum = this.stepActive + 1
|
|
|
@@ -1026,7 +1076,7 @@ export default {
|
|
1026
|
1076
|
} else if (this.workName == "设备定位管理") {
|
|
1027
|
1077
|
this.value = "sbdwgl"
|
|
1028
|
1078
|
} else if (
|
|
1029
|
|
- this.workName == "设备领用申请" ||
|
|
|
1079
|
+ this.workName == "设备领用归还" ||
|
|
1030
|
1080
|
this.workName == "设备资产转移申请"
|
|
1031
|
1081
|
) {
|
|
1032
|
1082
|
this.value = "sbly"
|
|
|
@@ -1051,7 +1101,7 @@ export default {
|
|
1051
|
1101
|
// if (this.stepActive == 2 && this.$route.query.sbType == "sbgh") {
|
|
1052
|
1102
|
// this.button = "暂存"
|
|
1053
|
1103
|
// }
|
|
1054
|
|
-
|
|
|
1104
|
+
|
|
1055
|
1105
|
if (this.$route.query.type == 1) {
|
|
1056
|
1106
|
this.isShow = true
|
|
1057
|
1107
|
this.disabled = false
|
|
|
@@ -1060,8 +1110,14 @@ export default {
|
|
1060
|
1110
|
this.processList()
|
|
1061
|
1111
|
} else if (this.$route.query.type == 2) {
|
|
1062
|
1112
|
// this.value=this.$route.query.sbType
|
|
1063
|
|
- if(this.$route.query.sbType=="sbgh" ||this.$route.query.sbType=="sbbf"||this.$route.query.sbType=="sbwx"){
|
|
1064
|
|
- this.button="暂存"
|
|
|
1113
|
+ if (
|
|
|
1114
|
+ this.$route.query.sbType == "sbgh" ||
|
|
|
1115
|
+ this.$route.query.sbType == "sbbf" ||
|
|
|
1116
|
+ this.$route.query.sbType == "sbwx" ||
|
|
|
1117
|
+ this.$route.query.sbType == "sbdwgl" ||
|
|
|
1118
|
+ this.$route.query.sbType == "sbtz"
|
|
|
1119
|
+ ) {
|
|
|
1120
|
+ this.button = "暂存"
|
|
1065
|
1121
|
}
|
|
1066
|
1122
|
this.stepActive = parseInt(this.$route.query.ongoingStep)
|
|
1067
|
1123
|
this.processId = this.$route.query.processId
|