fix 80651

This commit is contained in:
赵霄
2024-01-15 14:07:19 +08:00
parent 9d32e62eb0
commit ed9370d320
3 changed files with 34 additions and 13 deletions
@@ -242,9 +242,18 @@ export default {
} }
queryNoMatchTrackingProcess(params).then(res => { queryNoMatchTrackingProcess(params).then(res => {
if (res.success) { if (res.success) {
const { result = {} } = res if (res.result.infoJsonStr) {
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {}) const result = JSON.parse(res.result.infoJsonStr)
this.dataSource = result.businessInfoDTO.processProjectNotMetLinks || [] this.processInfo = Object.assign({}, result.processInfo || {})
this.dataSource = result.dataSource
this.approvalInfo = Object.assign({}, result.approvalInfo || {})
} else {
const { result = {} } = res
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {})
this.dataSource = result.businessInfoDTO.processProjectNotMetLinks || []
}
console.log(result)
} }
}).finally(() => { }).finally(() => {
this.loading = false this.loading = false
@@ -368,7 +377,7 @@ export default {
next({ path: '/noMobile' }) next({ path: '/noMobile' })
} }
next() next()
}, }
} }
</script> </script>
@@ -414,15 +414,24 @@ export default {
this.loading = true this.loading = true
queryProjectComplianceEvaluation(params).then(res => { queryProjectComplianceEvaluation(params).then(res => {
if (res.success) { if (res.success) {
const { result = {} } = res if (res.result.infoJsonStr) {
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {}) const result = JSON.parse(res.result.infoJsonStr)
this.approvalInfo = Object.assign({}, result.basicTaskInfoDTO || {}) this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {})
// 处理车型项目信息 this.approvalInfo = Object.assign({}, result.approvalInfo || {})
this.projectInfo = Object.assign({}, result.businessInfoDTO.processProjectAssess || {}) this.projectInfo = result.projectList[0] || {}
// 处理标准信息 this.standardList = result.standardList || []
this.standardList = result.businessInfoDTO.processProjectAssessLinkList || [] this.dataSource = result.dispatchList || []
this.dataSource = result.businessInfoDTO.processProjectAssessTermList || [] } else {
this.businessId = result.businessId const { result = {} } = res
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {})
this.approvalInfo = Object.assign({}, result.basicTaskInfoDTO || {})
// 处理车型项目信息
this.projectInfo = Object.assign({}, result.businessInfoDTO.processProjectAssess || {})
// 处理标准信息
this.standardList = result.businessInfoDTO.processProjectAssessLinkList || []
this.dataSource = result.businessInfoDTO.processProjectAssessTermList || []
}
this.businessId = res.result.businessId
} else { } else {
this.$message(res.message) this.$message(res.message)
} }
@@ -108,12 +108,14 @@
:rules="rules.userType" /> :rules="rules.userType" />
<!--模块负责人--> <!--模块负责人-->
<select-user-field v-model="dispatchInfo.moduleOwnerId" <select-user-field v-model="dispatchInfo.moduleOwnerId"
:checked-names="dispatchInfo.moduleOwnerId_dictText"
type="checkbox" type="checkbox"
:label="$t('standardConsultation.moduleOwner')" :label="$t('standardConsultation.moduleOwner')"
v-if="isDepartLeaderDistribute && dispatchInfo.userType === SenderType.moduleOwner.value" v-if="isDepartLeaderDistribute && dispatchInfo.userType === SenderType.moduleOwner.value"
:rules="rules.moduleOwnerId" /> :rules="rules.moduleOwnerId" />
<!--设计工程师--> <!--设计工程师-->
<select-user-field v-model="dispatchInfo.designEngineerId" <select-user-field v-model="dispatchInfo.designEngineerId"
:checked-names="dispatchInfo.designEngineerId_dictText"
type="checkbox" type="checkbox"
:label="$t('standardConsultation.designEngineer')" :label="$t('standardConsultation.designEngineer')"
v-if="(isDepartLeaderDistribute && dispatchInfo.userType === SenderType.designEngineer.value) || isModuleOwnerDistribute" v-if="(isDepartLeaderDistribute && dispatchInfo.userType === SenderType.designEngineer.value) || isModuleOwnerDistribute"
@@ -586,6 +588,7 @@ export default {
if (!formData) { if (!formData) {
return return
} }
formData.infoJsonStr = JSON.stringify(formData)
this.loading = true this.loading = true
saveConsultationProcess(formData).then(res => { saveConsultationProcess(formData).then(res => {
this.$message(res.message) this.$message(res.message)