|
@@ -783,6 +783,7 @@
|
|
|
if (!this.carNoVerify(this.form.vehicleNumber)) {
|
|
if (!this.carNoVerify(this.form.vehicleNumber)) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ let tyreNoList = []
|
|
|
for (let item of this.form.tireInsuranceFilesList) {
|
|
for (let item of this.form.tireInsuranceFilesList) {
|
|
|
if (!item.tyreNo) {
|
|
if (!item.tyreNo) {
|
|
|
return uni.showToast({
|
|
return uni.showToast({
|
|
@@ -796,6 +797,12 @@
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ if (tyreNoList.indexOf(item.tyreNo) !== -1) {
|
|
|
|
|
+ return uni.showToast({
|
|
|
|
|
+ title: `轮胎${item.affiliatedWithGroup }的胎号重复,请检查轮胎${item.affiliatedWithGroup }的胎号是否正确`,
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
if (item.fileUrl == null) {
|
|
if (item.fileUrl == null) {
|
|
|
return uni.showToast({
|
|
return uni.showToast({
|
|
|
title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
|
|
title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
|
|
@@ -803,6 +810,7 @@
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ tyreNoList.push(item.tyreNo);
|
|
|
}
|
|
}
|
|
|
let obj = {
|
|
let obj = {
|
|
|
...this.form,
|
|
...this.form,
|