Commit 5664e00b authored by 李晓兵's avatar 李晓兵

'修改银行卡添加'

parent 2ec56535
...@@ -106,6 +106,7 @@ export default { ...@@ -106,6 +106,7 @@ export default {
}, },
clearAccount: function () { clearAccount: function () {
this.username = '' this.username = ''
this.password = ''
}, },
clearPassword: function () { clearPassword: function () {
this.password = '' this.password = ''
......
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
<input <input
slot="content" slot="content"
v-model="bank.bank_account_num" v-model="bank.bank_account_num"
readonly
placeholder="识别银行卡自动填充" placeholder="识别银行卡自动填充"
> >
</item> </item>
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
</item> </item>
<item> <item>
<div slot="name">银行名称</div> <div slot="name">银行名称</div>
<input slot="content" v-model="bank.bank_full_name" readonly placeholder="识别银行卡自动填充" > <input slot="content" v-model="bank.bank_full_name" placeholder="识别银行卡自动填充" >
</item> </item>
<item> <item>
<div slot="name">支行名称</div> <div slot="name">支行名称</div>
...@@ -948,7 +948,7 @@ export default { ...@@ -948,7 +948,7 @@ export default {
content: '您确认添加吗?', content: '您确认添加吗?',
onConfirm: data => { onConfirm: data => {
console.log(data) console.log(data)
if (data) { if (data === 1) {
let bpName = this.from ? this.$route.params.user_bp_name : window.localStorage.getItem('bp_name') let bpName = this.from ? this.$route.params.user_bp_name : window.localStorage.getItem('bp_name')
if ( if (
this.bank.bank_account_num === '' || this.bank.bank_account_num === '' ||
...@@ -968,7 +968,7 @@ export default { ...@@ -968,7 +968,7 @@ export default {
let url = process.env.basePath + 'bp_bank_save' let url = process.env.basePath + 'bp_bank_save'
let param = { let param = {
master: { master: {
bp_id: window.localStorage.getItem('user_id'), bp_id: this.from ? this.$route.params.bp_id : window.localStorage.getItem('user_id'),
bank_lists: this.bankList, bank_lists: this.bankList,
}, },
} }
......
...@@ -683,7 +683,7 @@ export default { ...@@ -683,7 +683,7 @@ export default {
content: '您确认添加吗?', content: '您确认添加吗?',
onConfirm: data => { onConfirm: data => {
console.log(data) console.log(data)
if (data) { if (data === 1) {
for (var key in this.bank_lists) { for (var key in this.bank_lists) {
if (!this.bank_lists[key]) { if (!this.bank_lists[key]) {
this.bank_card_flag = false this.bank_card_flag = false
......
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