Commit b064ffc2 authored by 邓春圆's avatar 邓春圆

佣金请款单,输入银行账号后,账号名称下拉框也会被同步输入 bug修复

parent f5f3e688
...@@ -98,11 +98,12 @@ ...@@ -98,11 +98,12 @@
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('客户的账户名称')" > <el-descriptions-item :label="$t('客户的账户名称')" >
<el-form-item label-width="0" prop="customerBankAccountName"> <el-form-item v-if="(form.customerId && bankAccountList.length) || !form.customerId" label-width="0" prop="customerBankAccountName">
<el-select v-model="form.customerBankAccount" > <el-select v-model="form.customerBankAccount" >
<el-option @click.native="getBankInfo(item)" v-for="(item) in bankAccountList" :value="item.bankAccount" :label="item.bankAccount + (item.bankName)" ></el-option> <el-option @click.native="getBankInfo(item)" v-for="(item) in bankAccountList" :value="item.bankAccount" :label="item.bankAccount + (item.bankName)" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<span v-else >{{$t('客户档案没有银行账户。')}}</span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('账户名称')" > <el-descriptions-item :label="$t('账户名称')" >
<el-form-item label-width="0" :rules="{message:$t('账户名称不能为空'),required:true,}" prop="customerBankAccountName"> <el-form-item label-width="0" :rules="{message:$t('账户名称不能为空'),required:true,}" prop="customerBankAccountName">
...@@ -871,6 +872,15 @@ export default { ...@@ -871,6 +872,15 @@ export default {
watch:{ watch:{
'form.customerId'(val){ 'form.customerId'(val){
this.selectChange(val) this.selectChange(val)
if(!val){
// 清空银行卡信息
this.form.customerAccountType = ''; //账户类型
this.form.customerBank = ''; //客户银行
this.form.customerBankAccount = ''; // 客户银行账号
this.form.customerBankAccountName = ''; //客户银行账户名
this.form.customerBankAddress = ''; // 银行地址
this.form.customerBankAddress = ''; // 银行代码
}
} }
} }
...@@ -878,6 +888,9 @@ export default { ...@@ -878,6 +888,9 @@ export default {
</script> </script>
<style scoped> <style scoped>
.el-form-item{
margin-bottom: 0;
}
.card { .card {
margin-top: 20px; margin-top: 20px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment