[update] 修改bug81086

This commit is contained in:
lideqin
2024-01-22 09:59:25 +08:00
parent 4d469e8d80
commit b85d42701e
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ module.exports = {
pleaseSelectApprover: '请选择审批人',
pleaseSelectDrafter: '请选择主起草人',
pleaseSelectSameApprover: '请选择相同的审批人',
standizationEnterDataNotUpdate: '标准化填写的数据不可更改'
standizationEnterDataNotUpdate: '标准化填写的基本信息数据不可更改'
},
// 企标制修订流程
enStandardRevision: {
@@ -1118,10 +1118,16 @@ export default {
// 如果是主起草人填写信息节点,需要判断之前有的字段没有改过
if (this.currentNode === 6) {
let hasErr = false
// 不能修改最初数据的字段名
const fieldNameArr = ['applicationType', 'projectType', 'newEnStandardName', 'enStandardCode',
'enNameCode', 'standardCategoryCode', 'decadeCode', 'originEnStandardNo', 'originEnStandardName',
'newEnStandardName', 'enStandardEnglishName', 'enStandardSystem', 'standardType',
'enStandardClassification', 'compilationDescription', 'draftPlannedCompleteDate',
'solicitationDraftPlanCompleteDate', 'planApprovalDate']
// 从表格最初的数据中找出这条数据
const dItem = this.initDataSource.find(item => item.id === this.model.id)
for (const item in dItem) {
if (dItem[item] && dItem[item] !== formInline[item]) {
if (dItem[item] && dItem[item] !== formInline[item] && fieldNameArr.includes(item)) {
// 说明之前有的数据,改过
console.log('改了', item, '。原来的:', dItem[item], '现在的:', formInline[item])
this.$message.warning(this.$t('workCenter.revisionPlanActivelyReport.standizationEnterDataNotUpdate'))