|
@@ -829,14 +829,14 @@ export default {
|
|
|
EventBus.$emit('error', '司机手机号输入有误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.numberCard) {
|
|
|
- EventBus.$emit('error', '司机身份证不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.deptBudgetList.numberCard.length != 18) {
|
|
|
- EventBus.$emit('error', '司机身份证号输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.deptBudgetList.numberCard) {
|
|
|
+ // EventBus.$emit('error', '司机身份证不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.deptBudgetList.numberCard.length != 18) {
|
|
|
+ // EventBus.$emit('error', '司机身份证号输入错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
if (this.freightspace[i].carNumber == '') {
|
|
|
EventBus.$emit('error', '车牌号不能为空')
|
|
@@ -846,106 +846,106 @@ export default {
|
|
|
EventBus.$emit('error', '车牌号输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (this.freightspace[i].carLoad == '') {
|
|
|
- EventBus.$emit('error', '载重不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.freightspace[i].carLength > 50) {
|
|
|
- EventBus.$emit('error', '载重量输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.freightspace[i].yearManufacture == '') {
|
|
|
- EventBus.$emit('error', '出厂年份不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.freightspace[i].yearManufacture.length != 4) {
|
|
|
- EventBus.$emit('error', '出厂年份输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- for (var i = 0; i < this.freightspace1.length; i++) {
|
|
|
- if (this.freightspace1[i].bankCard == '') {
|
|
|
- EventBus.$emit('error', '银行卡账号不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.freightspace1[i].bankDeposit == '') {
|
|
|
- EventBus.$emit('error', '开户行不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.freightspace1[i].bankDepositBranch == '') {
|
|
|
- EventBus.$emit('error', '开户支行不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
- this.freightspace1[i].payeeName == ''
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '收款人姓名不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
- this.freightspace1[i].payeeNumberCard == ''
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '收款人身份证号码不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- (this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
- this.freightspace1[i].payeeName.length < 2) ||
|
|
|
- (this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
- this.freightspace1[i].payeeName.length > 10)
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '收款人姓名输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
- console.log(this.freightspace1[i].payeeNumberCard != 18)
|
|
|
- if (
|
|
|
- this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
- this.freightspace1[i].payeeNumberCard.length != 18
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '收款人身份证号输入错误')
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
- this.freightspace1[i].compName == ''
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '企业名称不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- (this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
- this.freightspace1[i].compName.length < 2) ||
|
|
|
- (this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
- this.freightspace1[i].compName.length > 30)
|
|
|
- ) {
|
|
|
- EventBus.$emit('error', '企业名称输入有误')
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (!this.addressUrls.travel) {
|
|
|
- EventBus.$emit('error', '行驶证不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.addressUrls.drive) {
|
|
|
- EventBus.$emit('error', '驾驶证不能为空')
|
|
|
- return
|
|
|
+ // if (this.freightspace[i].carLoad == '') {
|
|
|
+ // EventBus.$emit('error', '载重不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.freightspace[i].carLength > 50) {
|
|
|
+ // EventBus.$emit('error', '载重量输入错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.freightspace[i].yearManufacture == '') {
|
|
|
+ // EventBus.$emit('error', '出厂年份不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.freightspace[i].yearManufacture.length != 4) {
|
|
|
+ // EventBus.$emit('error', '出厂年份输入错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
}
|
|
|
+ // for (var i = 0; i < this.freightspace1.length; i++) {
|
|
|
+ // if (this.freightspace1[i].bankCard == '') {
|
|
|
+ // EventBus.$emit('error', '银行卡账号不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.freightspace1[i].bankDeposit == '') {
|
|
|
+ // EventBus.$emit('error', '开户行不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.freightspace1[i].bankDepositBranch == '') {
|
|
|
+ // EventBus.$emit('error', '开户支行不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
+ // this.freightspace1[i].payeeName == ''
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '收款人姓名不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
+ // this.freightspace1[i].payeeNumberCard == ''
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '收款人身份证号码不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // (this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
+ // this.freightspace1[i].payeeName.length < 2) ||
|
|
|
+ // (this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
+ // this.freightspace1[i].payeeName.length > 10)
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '收款人姓名输入错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // console.log(this.freightspace1[i].payeeNumberCard != 18)
|
|
|
+ // if (
|
|
|
+ // this.freightspace1[i].accountTypeFlag == 1 &&
|
|
|
+ // this.freightspace1[i].payeeNumberCard.length != 18
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '收款人身份证号输入错误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
+ // this.freightspace1[i].compName == ''
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '企业名称不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // (this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
+ // this.freightspace1[i].compName.length < 2) ||
|
|
|
+ // (this.freightspace1[i].accountTypeFlag == 2 &&
|
|
|
+ // this.freightspace1[i].compName.length > 30)
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit('error', '企业名称输入有误')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (!this.addressUrls.travel) {
|
|
|
+ // EventBus.$emit('error', '行驶证不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.addressUrls.drive) {
|
|
|
+ // EventBus.$emit('error', '驾驶证不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (!this.addressUrls.way) {
|
|
|
this.addressUrls.way='$'
|
|
|
}
|
|
|
if (!this.addressUrls.qualification) {
|
|
|
this.addressUrls.qualification='$'
|
|
|
}
|
|
|
- if (!this.addressUrls.identityjust) {
|
|
|
- EventBus.$emit('error', '身份证正面不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.addressUrls.identityagainst) {
|
|
|
- EventBus.$emit('error', '身份证反面不能为空')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.addressUrls.identityjust) {
|
|
|
+ // EventBus.$emit('error', '身份证正面不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.addressUrls.identityagainst) {
|
|
|
+ // EventBus.$emit('error', '身份证反面不能为空')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
var arr = []
|
|
|
var arr1=[]
|
|
|
for (let key in this.addressUrls) {
|