From 5c3775bab3dfd8070ac1af23c94728a5588ab3c7 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 15 Aug 2024 18:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../csotSettlement/component/exportDialog.vue | 26 ++++++++++++------- .../csotSettlement/component/monthRecord.vue | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/views/cost/csotSettlement/component/exportDialog.vue b/src/views/cost/csotSettlement/component/exportDialog.vue index a41f3e1..4222226 100644 --- a/src/views/cost/csotSettlement/component/exportDialog.vue +++ b/src/views/cost/csotSettlement/component/exportDialog.vue @@ -8,19 +8,18 @@ :before-close="handleCloseDialog" width="30%" > - - + + - - - - + + --> + + @@ -52,7 +51,12 @@ export default { return { exportParams: { dateMonth: '', - costBear: ['01', '03'], + costBearingParty: ['01', '03'], + }, + rules: { + costBearingParty: [ + { required: true, message: '请选择费用承担方' }, + ], }, } }, @@ -63,7 +67,11 @@ export default { }, /** 确定 */ handleSubmit() { - this.$emit('handleSubmit', this.exportParams) + this.refs.formRef.validate((valid) => { + if (valid) { + this.$emit('handleSubmit', this.exportParams) + } + }) }, }, watch: { diff --git a/src/views/cost/csotSettlement/component/monthRecord.vue b/src/views/cost/csotSettlement/component/monthRecord.vue index 20a3042..c4e2583 100644 --- a/src/views/cost/csotSettlement/component/monthRecord.vue +++ b/src/views/cost/csotSettlement/component/monthRecord.vue @@ -277,7 +277,7 @@ export default { return } else if (!row && this.selectList.length > 0) { this.selectList.map((e) => { - exportList[0].codeNum += e.codeNum + ',' + exportList[0].codeNum += e.codeNum + ',' }) exportList[0].codeNum = exportList[0].codeNum.slice(0, -1) } else {