From 70b75696622ed518b8a02de7795c98756eb25a01 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Sun, 29 Sep 2024 11:15:41 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E5=88=B6=E4=BF=AE?= =?UTF-8?q?=E8=AE=A2=E6=B5=81=E7=A8=8B=E5=8F=91=E8=B5=B7=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=BF=85=E9=A1=BB=E5=9C=A8=E7=BA=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/workCenter/zh.js | 3 ++- .../modules/MainDrafterSentBaseInfo.vue | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js index 0b1d3ee0..fe016405 100644 --- a/src/common/lang/workCenter/zh.js +++ b/src/common/lang/workCenter/zh.js @@ -168,7 +168,8 @@ module.exports = { haveNoOpinion: '有无意见', have: '有', noHave: '无', - batchSetHandleAdvice: '批量设置处理意见' + batchSetHandleAdvice: '批量设置处理意见', + pleaseEditStandardText: '请编辑标准文本' }, // 企标更改流程 enStandardChange: { diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/MainDrafterSentBaseInfo.vue b/src/views/workCenter/enterpriseStandardRevision/modules/MainDrafterSentBaseInfo.vue index e802e9f1..b145e8db 100644 --- a/src/views/workCenter/enterpriseStandardRevision/modules/MainDrafterSentBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardRevision/modules/MainDrafterSentBaseInfo.vue @@ -162,13 +162,17 @@ export default { async getDataValidate () { const formData = await this.$refs.baseInfoForm.getDataValidate() console.log(formData) - if (formData) { + if (formData && this.onEditFile) { // 有数据可以抛出 const data = {} data.otherDraftUserVOS = this.dataSource || [] data.formInline = formData.formInline data.onEditFile = this.onEditFile return data + } else if (!this.onEditFile) { + // 提示请编辑标准文本 + this.$message.warning(this.$t('workCenter.enStandardRevision.pleaseEditStandardText')) + return false } else { return false }