|
@@ -215,6 +215,39 @@ export default {
|
215
|
215
|
}
|
216
|
216
|
})
|
217
|
217
|
},
|
|
218
|
+ detailProcessList() {
|
|
219
|
+ var type = null;
|
|
220
|
+ if(this.stepActive == 0 || this.stepActive == 1 || this.stepActive == 2){
|
|
221
|
+ type = "xzjh"
|
|
222
|
+ }else if(this.stepActive == 3 || this.stepActive == 4){
|
|
223
|
+ type = "xzsq"
|
|
224
|
+ }
|
|
225
|
+ var userId = this.userInfo.uid
|
|
226
|
+ var depotId = this.userInfo.depotId
|
|
227
|
+ let process = []
|
|
228
|
+ getProcessList(type, userId, depotId).then((res) => {
|
|
229
|
+ if (res.code == 200) {
|
|
230
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
231
|
+ var ele = res.data[i]
|
|
232
|
+ if (ele.auditState != null) {
|
|
233
|
+ this.processActive = i
|
|
234
|
+ }
|
|
235
|
+ process.push(ele)
|
|
236
|
+ }
|
|
237
|
+ if (process[0].content == 0) {
|
|
238
|
+ process[0].content = this.userInfo.uid
|
|
239
|
+ }
|
|
240
|
+ // this.tableDataAudit = process
|
|
241
|
+
|
|
242
|
+ //申请人
|
|
243
|
+ this.applyPeople = process[0].content
|
|
244
|
+ //审批人
|
|
245
|
+ // this.toPeople=process[1].content;
|
|
246
|
+ //提交人
|
|
247
|
+ this.fromPeople = process[0].content
|
|
248
|
+ }
|
|
249
|
+ })
|
|
250
|
+ },
|
218
|
251
|
|
219
|
252
|
//初始化应该显示第几步的表格、
|
220
|
253
|
tableShow() {
|
|
@@ -490,14 +523,15 @@ export default {
|
490
|
523
|
if (ele.auditState == 0) {
|
491
|
524
|
this.processActive = i
|
492
|
525
|
}
|
493
|
|
- // this.process.push(ele)
|
494
|
|
- // if (this.process[0].content == 0) {
|
495
|
|
- // this.process[0].content = this.userInfo.uid
|
496
|
|
- // } else {
|
497
|
|
- // this.process[0].content = res.data.process[ongoingStep].audit[0].content
|
498
|
|
- // }
|
|
526
|
+ this.process.push(ele)
|
|
527
|
+ }
|
|
528
|
+ if (this.process[0].content == 0) {
|
|
529
|
+ this.process[0].content = this.userInfo.uid
|
|
530
|
+ } else {
|
|
531
|
+ this.process[0].content = res.data.process[ongoingStep].audit[0].content
|
499
|
532
|
}
|
500
|
|
- this.processList()
|
|
533
|
+ this.tableDataAudit = this.process
|
|
534
|
+ this.detailProcessList()
|
501
|
535
|
this.tableShow()
|
502
|
536
|
}
|
503
|
537
|
// this.totalData[0].list.splice(1, 0, {
|