fix 标准入库/变更、标准征求意见、法规采购强制撤回参数处理
This commit is contained in:
@@ -1140,6 +1140,10 @@ export default {
|
|||||||
let func
|
let func
|
||||||
if (!this.currentNode || (this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0 && !this.$route.query.processInstanceId)) {
|
if (!this.currentNode || (this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0 && !this.$route.query.processInstanceId)) {
|
||||||
func = initiateConsultationProcess
|
func = initiateConsultationProcess
|
||||||
|
const saveForm = this.dealFormData(true)
|
||||||
|
if (saveForm) {
|
||||||
|
formData.infoJsonStr = JSON.stringify(saveForm)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
func = submitConsultationProcess
|
func = submitConsultationProcess
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -871,10 +871,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
/**
|
dealSaveJsonData () {
|
||||||
* 保存
|
|
||||||
*/
|
|
||||||
handleSave () {
|
|
||||||
const formInline = Object.assign({ ...this.defaultValue }, { ...this.formInline })
|
const formInline = Object.assign({ ...this.defaultValue }, { ...this.formInline })
|
||||||
Object.keys(formInline).forEach(res => {
|
Object.keys(formInline).forEach(res => {
|
||||||
if (formInline[res] instanceof Array) {
|
if (formInline[res] instanceof Array) {
|
||||||
@@ -902,11 +899,23 @@ export default {
|
|||||||
if (!Object.values(params).some(tt => !!tt || tt === 0)) {
|
if (!Object.values(params).some(tt => !!tt || tt === 0)) {
|
||||||
// 提示至少填写一项
|
// 提示至少填写一项
|
||||||
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
|
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return formData
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
handleSave () {
|
||||||
|
const saveForm = this.dealSaveJsonData()
|
||||||
|
if (!saveForm) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
formData.infoJsonStr = JSON.stringify(formData)
|
const formData = {
|
||||||
formData.businessId = this.businessId
|
infoJsonStr: JSON.stringify(saveForm),
|
||||||
formData.draftId = this.$route.query.draftId
|
businessId: this.businessId,
|
||||||
|
draftId: this.$route.query.draftId
|
||||||
|
}
|
||||||
// saveSource:从待办进入保存--1;发起/草稿页面--2
|
// saveSource:从待办进入保存--1;发起/草稿页面--2
|
||||||
if (this.$route.query.processInstanceId) {
|
if (this.$route.query.processInstanceId) {
|
||||||
formData.saveSource = 1
|
formData.saveSource = 1
|
||||||
@@ -936,6 +945,10 @@ export default {
|
|||||||
let submitFunc
|
let submitFunc
|
||||||
if (this.currentNode === FGEntryChangeProcessNode.initiate.value && !this.$route.query.processInstanceId) {
|
if (this.currentNode === FGEntryChangeProcessNode.initiate.value && !this.$route.query.processInstanceId) {
|
||||||
submitFunc = initiateStandardECProcess
|
submitFunc = initiateStandardECProcess
|
||||||
|
const saveForm = this.dealSaveJsonData()
|
||||||
|
if (saveForm) {
|
||||||
|
formData.infoJsonStr = JSON.stringify(saveForm)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
submitFunc = agreeStandardECProcess
|
submitFunc = agreeStandardECProcess
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -496,6 +496,10 @@ export default {
|
|||||||
let submitFunc
|
let submitFunc
|
||||||
if (this.currentNode === ProcurementProcessNodes.initiate.value && !this.$route.query.processInstanceId) {
|
if (this.currentNode === ProcurementProcessNodes.initiate.value && !this.$route.query.processInstanceId) {
|
||||||
submitFunc = initProcurementProcess
|
submitFunc = initProcurementProcess
|
||||||
|
const saveForm = this.dealFormData(true)
|
||||||
|
if (saveForm) {
|
||||||
|
formData.infoJsonStr = JSON.stringify(saveForm)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
submitFunc = agreeProcurementProcess
|
submitFunc = agreeProcurementProcess
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user