按钮loading-手机端-企标复审流程
This commit is contained in:
@@ -562,6 +562,7 @@ export default {
|
|||||||
//流程保存
|
//流程保存
|
||||||
handleSave(){
|
handleSave(){
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('id', this.bpnId || '')
|
_formData.append('id', this.bpnId || '')
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
@@ -572,11 +573,11 @@ export default {
|
|||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(() => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
processEditFile(id) {
|
processEditFile(id) {
|
||||||
@@ -615,13 +616,16 @@ export default {
|
|||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.submitLoading = false
|
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
this.$router.go(-2)
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
} else {
|
} else {
|
||||||
|
this.submitLoading = false
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.submitLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async routerBussProStand(){
|
async routerBussProStand(){
|
||||||
@@ -651,10 +655,11 @@ export default {
|
|||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿')
|
this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//流程提交
|
//流程提交
|
||||||
@@ -674,8 +679,10 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.isSubmit = false
|
|
||||||
this.processCreateFsBuss(json)
|
this.processCreateFsBuss(json)
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user