[update] 修改企标制修订流程
This commit is contained in:
@@ -377,6 +377,7 @@ export default {
|
||||
func = enStandardEditGetDataDraft
|
||||
params = param
|
||||
}
|
||||
this.loading = true
|
||||
func(params).then(res => {
|
||||
if (res.success) {
|
||||
this.model = res.result
|
||||
@@ -393,6 +394,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
switchChange (value) {
|
||||
@@ -492,6 +495,7 @@ export default {
|
||||
this.approvalInfoForm.validateFields(async (approvalErr, approvalValues) => {
|
||||
const data = await this.$refs.baseInfoRef.getDataValidate()
|
||||
if (!err && !approvalErr && data) {
|
||||
this.loading = true
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = { ...values, ...approvalValues }
|
||||
param.flowUser = personnelObj
|
||||
@@ -558,14 +562,9 @@ export default {
|
||||
const data = await this.$refs.baseInfoRef.getDataValidate()
|
||||
if (!approvalErr && data) {
|
||||
const param = {} // 需要传给后端的数据
|
||||
param.common = approvalValues
|
||||
if (data.dataSource && data.dataSource.length > 0) {
|
||||
param.dataList = data.dataSource.map(item => {
|
||||
return { ...item, ...data.formInline }
|
||||
})
|
||||
} else {
|
||||
param.dataList = [data.formInline]
|
||||
}
|
||||
param.common = Object.assign({}, approvalValues)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
param.data = data
|
||||
enStandardEditAgree(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
Reference in New Issue
Block a user