Browse Source

修改入账管理

master
yunuo970428 3 years ago
parent
commit
c181fa1ad7
  1. 15
      anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue

15
anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue

@ -615,6 +615,21 @@ export default {
} else {
this.formobj.deductionPolicyThreeTwo = 1
}
if (this.formobj.vehicleList.length > 0) {
for (var i = 0; i < this.formobj.vehicleList.length; i++) {
if (this.formobj.vehicleList[i].vinNo !== '') {
if (this.formobj.vehicleList[i].vinNo.length < 17) {
const message = '车架号:' + this.formobj.vehicleList[i].vinNo + ' 不足17位'
this.$message({ showClose: true, type: 'error', message: message })
return
} else if (this.formobj.vehicleList[i].vinNo.length > 17) {
const message = '车架号:' + this.formobj.vehicleList[i].vinNo + ' 已超过17位'
this.$message({ showClose: true, type: 'error', message: message })
return
}
}
}
}
req.submitVehicleApply(this.formobj).then(res => {
if (res.success) {
this.$message({

Loading…
Cancel
Save