[update] 标准化发起流程修改
This commit is contained in:
+5
-2
@@ -392,6 +392,7 @@ export default {
|
||||
param.dataList = data.dataSource
|
||||
param.flowUser = personnelObj
|
||||
let func
|
||||
this.loading = true
|
||||
if (this.$route.query.taskId) {
|
||||
// 有taskId说明是驳回的提交
|
||||
func = standardizationInitAgree
|
||||
@@ -445,13 +446,14 @@ export default {
|
||||
if (this.loading) return
|
||||
// 流程审批信息校验
|
||||
this.approvalInfoForm.validateFields((approvalErr, approvalValues) => {
|
||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
||||
const data = this.$refs.baseInfoRef.getDataValidate()
|
||||
if (!approvalErr && data) {
|
||||
// 只有表格
|
||||
const param = {}
|
||||
param.common = approvalValues
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
param.dataList = data.dataSource
|
||||
this.loading = true
|
||||
standardizationInitAgree(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
@@ -473,13 +475,14 @@ export default {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
||||
const data = this.$refs.baseInfoRef.getDataValidate()
|
||||
if (!err && data) {
|
||||
// 只有表格
|
||||
const param = {}
|
||||
param.common = values
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
param.dataList = data.dataSource
|
||||
this.loading = true
|
||||
standardizationInitAgree(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
Reference in New Issue
Block a user