fix 未符合项人员保存草稿
This commit is contained in:
@@ -422,6 +422,7 @@ export default {
|
|||||||
this.businessInfo = draftResult.businessInfo
|
this.businessInfo = draftResult.businessInfo
|
||||||
this.dataSource = draftResult.dataSource || []
|
this.dataSource = draftResult.dataSource || []
|
||||||
this.approvalInfo = draftResult.approvalInfo
|
this.approvalInfo = draftResult.approvalInfo
|
||||||
|
this.draftInitPersonInfo(draftResult.userInfo || {})
|
||||||
} else {
|
} else {
|
||||||
this.processInfo = result.basicProcessInfoDTO || {}
|
this.processInfo = result.basicProcessInfoDTO || {}
|
||||||
this.dataSource = result.businessInfoDTO.processProjectNotMetLinks || []
|
this.dataSource = result.businessInfoDTO.processProjectNotMetLinks || []
|
||||||
@@ -521,13 +522,14 @@ export default {
|
|||||||
const processInfo = Object.assign(this.processInfo, this.processInfoForm.getFieldsValue())
|
const processInfo = Object.assign(this.processInfo, this.processInfoForm.getFieldsValue())
|
||||||
const businessInfo = Object.assign(this.businessInfo, this.businessInfoForm.getFieldsValue())
|
const businessInfo = Object.assign(this.businessInfo, this.businessInfoForm.getFieldsValue())
|
||||||
const approvalInfo = Object.assign(this.approvalInfo, this.approvalInfoForm.getFieldsValue())
|
const approvalInfo = Object.assign(this.approvalInfo, this.approvalInfoForm.getFieldsValue())
|
||||||
const checkValueArr = Object.values({ ...processInfo, ...businessInfo, ...approvalInfo })
|
const userInfo = this.$refs.personnelInfo.getDataObj()
|
||||||
|
const checkValueArr = Object.values({ ...processInfo, ...businessInfo, ...approvalInfo, ...userInfo })
|
||||||
if (!checkValueArr.some(tt => !tt) && this.dataSource.length === 0) {
|
if (!checkValueArr.some(tt => !tt) && this.dataSource.length === 0) {
|
||||||
// 提示至少填写一项
|
// 提示至少填写一项
|
||||||
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
|
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const formData = { processInfo, businessInfo, approvalInfo, dataSource: this.dataSource }
|
const formData = { processInfo, businessInfo, approvalInfo, dataSource: this.dataSource, userInfo }
|
||||||
this.loading = true
|
this.loading = true
|
||||||
saveNoMatchTrackingProcess({ infoJsonStr: JSON.stringify(formData) }).then(res => {
|
saveNoMatchTrackingProcess({ infoJsonStr: JSON.stringify(formData) }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user