|
@@ -146,7 +146,7 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-model-item style="margin-bottom:5px;" label="户名">
|
|
|
|
|
|
+ <a-form-model-item style="margin-bottom:5px;" label="户名" prop="bankAccount">
|
|
<a-select placeholder="请选择户名" v-model="form.bankAccount" style="width: 100%" @change="handleChange">
|
|
<a-select placeholder="请选择户名" v-model="form.bankAccount" style="width: 100%" @change="handleChange">
|
|
<a-select-option v-for="item in bankList" :value="item.bankAccount">
|
|
<a-select-option v-for="item in bankList" :value="item.bankAccount">
|
|
{{ item.bankAccount }}
|
|
{{ item.bankAccount }}
|
|
@@ -155,7 +155,7 @@
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-model-item style="margin-bottom:5px;" label="汇入银行">
|
|
|
|
|
|
+ <a-form-model-item style="margin-bottom:5px;" label="汇入银行" prop="bankName">
|
|
<a-select placeholder="请选择汇入银行" v-model="form.bankName" style="width: 100%">
|
|
<a-select placeholder="请选择汇入银行" v-model="form.bankName" style="width: 100%">
|
|
<a-select-option v-for="item in bankNameList" :value="item">
|
|
<a-select-option v-for="item in bankNameList" :value="item">
|
|
{{ item }}
|
|
{{ item }}
|
|
@@ -254,8 +254,8 @@ export default {
|
|
detailItemPayList: [],
|
|
detailItemPayList: [],
|
|
balanceAmount: '',
|
|
balanceAmount: '',
|
|
nextMonthAmount: '',
|
|
nextMonthAmount: '',
|
|
- bankAccount: undefined,
|
|
|
|
- bankName: undefined,
|
|
|
|
|
|
+ bankAccount: '东莞箭冠',
|
|
|
|
+ bankName: '东莞银行',
|
|
fullPaymentFlag: '1',
|
|
fullPaymentFlag: '1',
|
|
explainInfo: ''
|
|
explainInfo: ''
|
|
},
|
|
},
|
|
@@ -264,7 +264,9 @@ export default {
|
|
payerType: [ { required: true, message: '请选择付款方类型', trigger: ['change', 'blur'] } ],
|
|
payerType: [ { required: true, message: '请选择付款方类型', trigger: ['change', 'blur'] } ],
|
|
dealerSn: [ { required: true, message: '请选择付款方', trigger: ['change', 'blur'] } ],
|
|
dealerSn: [ { required: true, message: '请选择付款方', trigger: ['change', 'blur'] } ],
|
|
payerName: [ { required: true, message: '请输入付款方名称', trigger: ['change', 'blur'] } ],
|
|
payerName: [ { required: true, message: '请输入付款方名称', trigger: ['change', 'blur'] } ],
|
|
- payerAccountType: [ { required: true, message: '请选择付款账户类型', trigger: ['change', 'blur'] } ]
|
|
|
|
|
|
+ payerAccountType: [ { required: true, message: '请选择付款账户类型', trigger: ['change', 'blur'] } ],
|
|
|
|
+ bankAccount:[{ required: true, message: '请选择户名', trigger: ['change', 'blur'] }],
|
|
|
|
+ bankName:[{ required: true, message: '请选择汇入银行', trigger: ['change', 'blur'] }]
|
|
},
|
|
},
|
|
useTotalAmount: '',
|
|
useTotalAmount: '',
|
|
payTotalAmount: '',
|
|
payTotalAmount: '',
|
|
@@ -286,7 +288,7 @@ export default {
|
|
bankName: ['九江银行']
|
|
bankName: ['九江银行']
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- bankNameList: []
|
|
|
|
|
|
+ bankNameList: ['东莞银行']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -297,6 +299,9 @@ export default {
|
|
this.form.dealerCode = ''
|
|
this.form.dealerCode = ''
|
|
this.form.licenseName = ''
|
|
this.form.licenseName = ''
|
|
this.form.payerAccountType = 'PUBLIC'
|
|
this.form.payerAccountType = 'PUBLIC'
|
|
|
|
+ this.form.bankAccount = '东莞箭冠'
|
|
|
|
+ this.form.bankName = '东莞银行'
|
|
|
|
+ this.bankNameList = ['东莞银行']
|
|
this.form.payerAccountInfo = ''
|
|
this.form.payerAccountInfo = ''
|
|
this.form.payerName = ''
|
|
this.form.payerName = ''
|
|
},
|
|
},
|
|
@@ -310,6 +315,15 @@ export default {
|
|
this.form.licenseName = ''
|
|
this.form.licenseName = ''
|
|
this.form.payerAccountInfo = ''
|
|
this.form.payerAccountInfo = ''
|
|
}
|
|
}
|
|
|
|
+ if(this.form.payerAccountType=='PUBLIC'){
|
|
|
|
+ this.form.bankAccount = '东莞箭冠'
|
|
|
|
+ this.form.bankName = '东莞银行'
|
|
|
|
+ this.bankNameList = ['东莞银行']
|
|
|
|
+ }else{
|
|
|
|
+ this.form.bankAccount = '张丽添'
|
|
|
|
+ this.form.bankName = '农业银行'
|
|
|
|
+ this.bankNameList = ['农业银行']
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleChange (v) {
|
|
handleChange (v) {
|
|
console.log(v)
|
|
console.log(v)
|
|
@@ -411,6 +425,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
setDetail (data) {
|
|
setDetail (data) {
|
|
|
|
+ this.handleChange(data.bankAccount)
|
|
this.form = Object.assign(this.form, { payerTypeDictValue: data.payerTypeDictValue, payerType: data.payerType, dealerSn: data.dealerSn, payerName: data.payerName })
|
|
this.form = Object.assign(this.form, { payerTypeDictValue: data.payerTypeDictValue, payerType: data.payerType, dealerSn: data.dealerSn, payerName: data.payerName })
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
if(this.form.dealerSn){
|
|
if(this.form.dealerSn){
|
|
@@ -428,6 +443,7 @@ export default {
|
|
financeBookDetailQueryBySn({ bookDetailSn: this.bookDetailSn }).then(res => {
|
|
financeBookDetailQueryBySn({ bookDetailSn: this.bookDetailSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
const data = res.data
|
|
const data = res.data
|
|
|
|
+ this.handleChange(data.bankAccount)
|
|
this.form = Object.assign(this.form, data)
|
|
this.form = Object.assign(this.form, data)
|
|
this.form.receiptDate = moment(this.form.receiptDate).format('YYYY-MM-DD')
|
|
this.form.receiptDate = moment(this.form.receiptDate).format('YYYY-MM-DD')
|
|
this.form.payCreditFlag = this.form.payCreditFlag == 1
|
|
this.form.payCreditFlag = this.form.payCreditFlag == 1
|
|
@@ -473,11 +489,12 @@ export default {
|
|
detailItemPayList: [],
|
|
detailItemPayList: [],
|
|
balanceAmount: '',
|
|
balanceAmount: '',
|
|
nextMonthAmount: '',
|
|
nextMonthAmount: '',
|
|
- bankAccount: undefined,
|
|
|
|
- bankName: undefined,
|
|
|
|
|
|
+ bankAccount: '东莞箭冠',
|
|
|
|
+ bankName: '东莞银行',
|
|
fullPaymentFlag: '1',
|
|
fullPaymentFlag: '1',
|
|
explainInfo: ''
|
|
explainInfo: ''
|
|
}
|
|
}
|
|
|
|
+ this.bankNameList = ['东莞银行']
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
}
|
|
}
|
|
},
|
|
},
|