[update] 修改企标制修订第三个节点编制说明字段改成意见汇总,以及上传文件后的校验没消失的问题

This commit is contained in:
lideqin
2024-03-04 11:54:02 +08:00
parent 4503ccdbc5
commit 3e2cde088b
4 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -157,7 +157,8 @@ module.exports = {
implementationDate: '实施日期',
esPlan: '企标计划',
deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期早',
noStandardTextLook: '暂无标准文本可查看'
noStandardTextLook: '暂无标准文本可查看',
summaryOfOpinions: '意见汇总'
},
// 企标更改流程
enStandardChange: {
+1
View File
@@ -666,6 +666,7 @@ export default {
data.map(item => {
attNameList.push(item.fileName)
})
this.$refs.ruleForm.clearValidate(this.uploadName)
}
console.log(data)
/** 赋值给当前对应的表单文件 */
@@ -79,19 +79,19 @@
</a-button>
</a-form-model-item>
</div>
<!-- 编制说明 -->
<!-- 意见汇总 -->
<div class="box-title-text form-flex-item">
<div class="title-text">
<span class="required">*</span>
<span class="title-text-text" :title="$t('workCenter.enStandardRevision.compilationIllustration')">
{{ $t('workCenter.enStandardRevision.compilationIllustration') }}
<span class="title-text-text" :title="$t('workCenter.enStandardRevision.summaryOfOpinions')">
{{ $t('workCenter.enStandardRevision.summaryOfOpinions') }}
</span>
</div>
<a-form-model-item class="item-model" prop="compIllustration">
<a-button type="primary" class="button-text" style="width: 200px" @click="clickButtonToUpload('compIllustration')">
<a-form-model-item class="item-model" prop="commentsSummary">
<a-button type="primary" class="button-text" style="width: 200px" @click="clickButtonToUpload('commentsSummary')">
{{
(formInline.compIllustration === 'null' || formInline.compIllustration === ''
|| formInline.compIllustration === null || formInline.compIllustration === undefined)
(formInline.commentsSummary === 'null' || formInline.commentsSummary === ''
|| formInline.commentsSummary === null || formInline.commentsSummary === undefined)
? $t('uploadFile.clickUpload')
: $t('uploadFile.viewUploadedFiles')
}}
@@ -270,11 +270,11 @@ export default {
trigger: 'change'
}
],
// 编制说明
compIllustration: [
// 意见汇总
commentsSummary: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.compilationIllustration') + this.$t('cannotEmpty'),
message: this.$t('workCenter.enStandardRevision.summaryOfOpinions') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
@@ -474,6 +474,7 @@ export default {
data.map(item => {
attIdList.push(item.id)
})
this.$refs.ruleForm.clearValidate(this.uploadName)
}
/** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',')
@@ -368,6 +368,7 @@ export default {
data.map(item => {
attIdList.push(item.id)
})
this.$refs.ruleForm.clearValidate(this.uploadName)
}
/** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',')