update 企标稽查计划
This commit is contained in:
+16
-6
@@ -247,6 +247,7 @@ export default {
|
||||
loadPage (params) {
|
||||
this.currentNode = this.$route.query.nodeId
|
||||
this.projectId = this.$route.query.projectId
|
||||
this.initPersonInfoData(this.currentNode === EsInspectionPlan.initiate.value)
|
||||
switch (this.currentNode) {
|
||||
case EsInspectionPlan.initiate.value:
|
||||
this.btn = EsInspectionPlan.initiate.btn
|
||||
@@ -264,6 +265,7 @@ export default {
|
||||
this.btn = EsInspectionPlan.liaisonLeaderApproval.btn
|
||||
break
|
||||
}
|
||||
this.loading = true
|
||||
getInspectPlanDetail(params).then(res => {
|
||||
if (res.success) {
|
||||
const data = res.result || {}
|
||||
@@ -274,6 +276,8 @@ export default {
|
||||
prcMes: data.processAll.prcMes
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
switchChange (value) {
|
||||
@@ -361,6 +365,10 @@ export default {
|
||||
continueTurnTo () {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
// const params = {
|
||||
// taskId: this.$route.query.taskId,
|
||||
// userId: this.$route.query.taskId,
|
||||
// }
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
return transferInspectPlan(res)
|
||||
@@ -402,12 +410,14 @@ export default {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
let fn
|
||||
if (this.currentNode === EsInspectionPlan.initiate.value) {
|
||||
fn = startInspectPlan
|
||||
} else if (this.currentNode === EsInspectionPlan.fillInComments.value) {
|
||||
fn = approvalInspectPlan
|
||||
} else if (this.currentNode === EsInspectionPlan.liaisonCollect.value) {
|
||||
fn = approvalInspectPlan
|
||||
switch (this.currentNode) {
|
||||
case EsInspectionPlan.initiate.value:
|
||||
fn = startInspectPlan
|
||||
break
|
||||
case EsInspectionPlan.fillInComments.value:
|
||||
case EsInspectionPlan.liaisonCollect.value:
|
||||
fn = approvalInspectPlan
|
||||
break
|
||||
}
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
|
||||
Reference in New Issue
Block a user