fix 项目合规流程保存

This commit is contained in:
赵霄
2024-01-03 15:27:51 +08:00
parent ce5d1ceab7
commit fb09203086
@@ -902,7 +902,7 @@ export default {
this.currentStep = draftResult.currentStep
// 项目信息
this.projectDataSource = draftResult.projectList || []
this.projectId = this.projectDataSource[0].id
this.projectId = this.projectDataSource.length > 0 ? this.projectDataSource[0].id : null
// 标准信息
this.standardDataSource = draftResult.standardList
}
@@ -1282,12 +1282,17 @@ export default {
formData.approvalInfo = Object.assign(this.approvalInfo, this.approvalInfoForm.getFieldsValue())
// 抄送人员
formData.carbonCopyPersonnels = Object.assign(this.dispatchInfo, this.dispatchInfoForm.getFieldsValue())
const checkParams = Object.values({ ...formData.approvalInfo, ...processInfo, ...formData.carbonCopyPersonnels })
if (!checkParams.some(tt => !!tt)) {
// 提示至少填写一项
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
return
}
const params = {
infoJsonStr: JSON.stringify(formData),
basicProcessInfoDTO: processInfo,
draftId: this.$route.query.draftId
}
console.log(params)
this.loading = true
saveProjectComplianceEvaluation(params).then(res => {
if (res.success) {