|
|
@ -30,8 +30,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="20"> |
|
|
|
<el-form-item prop="solidDate"> |
|
|
|
<el-date-picker v-model="temp.solidDate" type="date" format="yyyy-MM-dd" class="addinputw" |
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期时间"/> |
|
|
|
<el-date-picker v-model="temp.solidDate" type="date" format="yyyy-MM-dd" class="addinputw" value-format="yyyy-MM-dd" placeholder="选择日期时间"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -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') { |
|
|
|