|
@@ -220,7 +220,7 @@
|
|
|
style="width: 100%"
|
|
|
class="flex position"
|
|
|
v-for="(item, index) in freightspace1"
|
|
|
- >
|
|
|
+ :key="index">
|
|
|
<div class="gathering">
|
|
|
<div class="driver">
|
|
|
收款人账户信息-{{ index + 1 }}
|
|
@@ -377,10 +377,12 @@
|
|
|
span="1"
|
|
|
prop="bankDepositBranch"
|
|
|
>
|
|
|
- <ws-select
|
|
|
+ <el-select
|
|
|
v-model="item.bankDepositBranch"
|
|
|
- placeholder=""
|
|
|
+ placeholder="请输入开户支行"
|
|
|
+ filterable
|
|
|
class="typeselect"
|
|
|
+ :allow-create = "allow"
|
|
|
@change="
|
|
|
(value) => {
|
|
|
selectbankDepositBranch(value, index)
|
|
@@ -393,7 +395,7 @@
|
|
|
:label="items"
|
|
|
:value="items"
|
|
|
/>
|
|
|
- </ws-select>
|
|
|
+ </el-select>
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
</div>
|
|
@@ -603,6 +605,7 @@ export default {
|
|
|
],
|
|
|
name: '',
|
|
|
age: '',
|
|
|
+ allow:true
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -863,67 +866,67 @@ export default {
|
|
|
// 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
|
|
|
- // }
|
|
|
- // }
|
|
|
+ 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
|