From f884f1d4c9bdd4fd2cd36a36647acac584eeed49 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 15 Apr 2025 16:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BD=A6=E8=BE=86=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6--=E4=B9=B0=E6=96=AD=EF=BC=8C=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=BF=85=E4=B8=8A=E4=BC=A0=E9=99=90=E5=88=B6=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=EF=BC=8C=E4=B9=B0=E6=96=AD=E6=97=A5=E6=9C=9F=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=BD=93=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../relation/cheliangtaizhangMai.vue | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue index 4ab20bfbec..7be9959d84 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue @@ -30,8 +30,7 @@ - + @@ -57,7 +56,7 @@ import { vehicleBuyBreak } from '@/api/cheliang/basevehicle' import Upload from '@/components/uploadFile/upload_maiduan.vue' export default { - name: 'cheliangtaizhangMai', + name: 'CheLiangTaiZhangMai', components: { Upload }, @@ -72,7 +71,7 @@ export default { dialogFormVisible: false, imgList: [], rules: { - solidDate: [{ required: true, message: '买断日期不能为空', trigger: 'blur' }], + solidDate: [{ required: true, message: '买断日期不能为空', trigger: 'blur' }] } } }, @@ -80,6 +79,13 @@ export default { showMai(sids, vinNos) { this.temp.vehicleSid = sids this.temp.vinNo = vinNos.toString() + var newDate = new Date() + var date = { + year: newDate.getFullYear(), + month: newDate.getMonth() + 1, + day: newDate.getDate() + } + this.temp.solidDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) }, getUrl() { if (this.imgList.length > 0) { @@ -108,14 +114,6 @@ export default { this.$message({ showClose: true, message: '买断日期不能为空!', type: 'error' }) return } - if (this.temp.commonAppendix.length < 1) { - this.$message({ - showClose: true, - message: '请上传买断证明!', - type: 'error' - }) - return - } this.dialogFormVisible = true vehicleBuyBreak(this.temp).then((response) => { if (response.code === '200') {