[update] 标准化发起流程修改

This commit is contained in:
lideqin
2023-12-15 10:43:26 +08:00
parent 27d6824de8
commit 2f6519eef8
2 changed files with 12 additions and 4 deletions
@@ -961,7 +961,17 @@ export default {
if (formInline.enStandardCode) {
formInline.enStandardCode_dictText = this.$refs.enStandardCodeRef.dictOptions.find(item => item.value === formInline.enStandardCode).text
}
// 主起草单位的回显需要在登录信息中有当前登录人部门的翻译 ??
// 处理标准体系
if (formInline.enStandardSystem && formInline.enStandardSystem.length > 0) {
formInline.enStandardSystem = formInline.enStandardSystem.map(item => item.value).join(',')
} else {
formInline.enStandardSystem = ''
}
// 主起草单位如果没有翻译字段,说明就是当前登录人没有重新选
const currentUser = Vue.ls.get(USER_INFO)
if (!formInline.mainDraftingUnit_dictText) {
formInline.mainDraftingUnit_dictText = currentUser.departIds_dicText
}
this.$emit('ok', formInline)
this.close()
this.confirmLoading = false
@@ -309,9 +309,7 @@ export default {
// 校验表格是否每行都有数据,每行的联络人是否都有
let data = {}
if (this.dataSource && this.dataSource.length > 0) {
data.dataSource = this.dataSource.map(item => {
return { ...item, enStandardSystem: item.enStandardSystem ? item.enStandardSystem.join(',') : ''}
})
data.dataSource = this.dataSource
let hasErr = false
for (const item of this.dataSource) {
if (!item.contactUser) {