|
|
@@ -147,12 +147,12 @@
|
|
|
<el-table-column label="开户行全称" prop="bankName2" min-width="180" align="center" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="开户名称" prop="accountName" min-width="180">
|
|
|
<template #default="scope">
|
|
|
- <el-input v-model="scope.row.accountName" placeholder="开户名称"></el-input>
|
|
|
+ <el-input v-model="scope.row.accountName" placeholder="开户名称" @input="bankItemInput($event, scope)"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="银行账号" prop="accountCode" min-width="180">
|
|
|
<template #default="scope">
|
|
|
- <el-input v-model="scope.row.accountCode" placeholder="银行账号"></el-input>
|
|
|
+ <el-input v-model="scope.row.accountCode" placeholder="银行账号" @input="bankItemInput($event, scope)"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="账户属性" prop="accountNature" min-width="180">
|
|
|
@@ -195,6 +195,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { province } from "@/utils/district";
|
|
|
+ import { trimStr } from "./main";
|
|
|
import bankDialog from "./bank";
|
|
|
|
|
|
export default {
|
|
|
@@ -327,10 +328,14 @@
|
|
|
},
|
|
|
|
|
|
bank_add(selected) {
|
|
|
- const newBankList = selected.map(s => ({ ...s, bankId: s.id, supplierId: null, accountName: this.form.supplierName }));
|
|
|
+ const newBankList = selected.map(s => ({ ...s, bankId: s.id, supplierId: this.form.id || null, accountName: this.form.supplierName || null }));
|
|
|
this.form.bankList = this.form.bankList.concat(newBankList);
|
|
|
},
|
|
|
|
|
|
+ bankItemInput(e, { row, column }) {
|
|
|
+ row[column["property"]] = trimStr(e)
|
|
|
+ },
|
|
|
+
|
|
|
submit() {
|
|
|
this.$refs.dialogForm.validate(valid => {
|
|
|
if (valid) {
|