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') {