[update] 修改bug81086
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = {
|
||||
pleaseSelectApprover: '请选择审批人',
|
||||
pleaseSelectDrafter: '请选择主起草人',
|
||||
pleaseSelectSameApprover: '请选择相同的审批人',
|
||||
standizationEnterDataNotUpdate: '标准化填写的数据不可更改'
|
||||
standizationEnterDataNotUpdate: '标准化填写的基本信息数据不可更改'
|
||||
},
|
||||
// 企标制修订流程
|
||||
enStandardRevision: {
|
||||
|
||||
+7
-1
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user