|
@@ -288,12 +288,13 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
payerTypeChange (v) {
|
|
payerTypeChange (v) {
|
|
this.$refs.ruleForm.clearValidate()
|
|
this.$refs.ruleForm.clearValidate()
|
|
- // 回显客户
|
|
|
|
- if (this.form.dealerSn && this.form.payerType == 'DEALER') {
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.$refs.settleClientName.getDetail(this.form.dealerSn)
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // 重置数据
|
|
|
|
+ this.form.dealerSn = ''
|
|
|
|
+ this.form.dealerCode = ''
|
|
|
|
+ this.form.licenseName = ''
|
|
|
|
+ this.form.payerAccountType = 'PUBLIC'
|
|
|
|
+ this.form.payerAccountInfo = ''
|
|
|
|
+ this.form.payerName = ''
|
|
},
|
|
},
|
|
accountTypeChange (v) {
|
|
accountTypeChange (v) {
|
|
this.$refs.ruleForm.clearValidate()
|
|
this.$refs.ruleForm.clearValidate()
|
|
@@ -323,6 +324,11 @@ export default {
|
|
this.confirmLoading = false
|
|
this.confirmLoading = false
|
|
this.form.payerAccountInfo = res.data || ''
|
|
this.form.payerAccountInfo = res.data || ''
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ this.form.dealerSn = ''
|
|
|
|
+ this.form.dealerCode = ''
|
|
|
|
+ this.form.licenseName = ''
|
|
|
|
+ this.form.payerAccountInfo = ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
updateUseAmount (v) {
|
|
updateUseAmount (v) {
|
|
@@ -356,14 +362,15 @@ export default {
|
|
form.bookSn = this.bookSn
|
|
form.bookSn = this.bookSn
|
|
form.bookNo = this.bookNo
|
|
form.bookNo = this.bookNo
|
|
delete form.dealerCode
|
|
delete form.dealerCode
|
|
|
|
+ if (form.payerType == 'DEPT') {
|
|
|
|
+ delete form.payerAccountType
|
|
|
|
+ }
|
|
console.log(form)
|
|
console.log(form)
|
|
if ((form.useCreditFlag && form.detailItemUseList.length == 0) || this.validItem(form.detailItemUseList)) {
|
|
if ((form.useCreditFlag && form.detailItemUseList.length == 0) || this.validItem(form.detailItemUseList)) {
|
|
this.$message.info('使用授信项目不能为空')
|
|
this.$message.info('使用授信项目不能为空')
|
|
- return
|
|
|
|
}
|
|
}
|
|
if ((form.payCreditFlag && form.detailItemPayList.length == 0) || this.validItem(form.detailItemPayList)) {
|
|
if ((form.payCreditFlag && form.detailItemPayList.length == 0) || this.validItem(form.detailItemPayList)) {
|
|
this.$message.info('授信还款项目不能为空')
|
|
this.$message.info('授信还款项目不能为空')
|
|
- return
|
|
|
|
}
|
|
}
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
financeBookDetailSave(form).then(res => {
|
|
financeBookDetailSave(form).then(res => {
|
|
@@ -409,34 +416,34 @@ export default {
|
|
pageInit () {
|
|
pageInit () {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.title = '新增收款明细'
|
|
this.title = '新增收款明细'
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
|
if (this.$refs.settleClientName) {
|
|
if (this.$refs.settleClientName) {
|
|
this.$refs.settleClientName.resetForm()
|
|
this.$refs.settleClientName.resetForm()
|
|
}
|
|
}
|
|
- this.bankNameList = []
|
|
|
|
- this.form = {
|
|
|
|
- payerType: 'DEALER',
|
|
|
|
- payerAccountType: 'PUBLIC',
|
|
|
|
- dealerSn: undefined,
|
|
|
|
- payerName: '',
|
|
|
|
- payerAccountInfo: '',
|
|
|
|
- licenseName: '',
|
|
|
|
- receiptDate: moment(),
|
|
|
|
- dealerCode: '',
|
|
|
|
- orderAmount: '',
|
|
|
|
- receiptAmount: '',
|
|
|
|
- useCreditFlag: false,
|
|
|
|
- detailItemUseList: [],
|
|
|
|
- payCreditFlag: false,
|
|
|
|
- detailItemPayList: [],
|
|
|
|
- balanceAmount: '',
|
|
|
|
- nextMonthAmount: '',
|
|
|
|
- bankAccount: undefined,
|
|
|
|
- bankName: undefined,
|
|
|
|
- fullPaymentFlag: undefined,
|
|
|
|
- remarks: ''
|
|
|
|
- }
|
|
|
|
})
|
|
})
|
|
|
|
+ this.bankNameList = []
|
|
|
|
+ this.form = {
|
|
|
|
+ payerType: 'DEALER',
|
|
|
|
+ payerAccountType: 'PUBLIC',
|
|
|
|
+ dealerSn: undefined,
|
|
|
|
+ payerName: '',
|
|
|
|
+ payerAccountInfo: '',
|
|
|
|
+ licenseName: '',
|
|
|
|
+ receiptDate: moment(),
|
|
|
|
+ dealerCode: '',
|
|
|
|
+ orderAmount: '',
|
|
|
|
+ receiptAmount: '',
|
|
|
|
+ useCreditFlag: false,
|
|
|
|
+ detailItemUseList: [],
|
|
|
|
+ payCreditFlag: false,
|
|
|
|
+ detailItemPayList: [],
|
|
|
|
+ balanceAmount: '',
|
|
|
|
+ nextMonthAmount: '',
|
|
|
|
+ bankAccount: undefined,
|
|
|
|
+ bankName: undefined,
|
|
|
|
+ fullPaymentFlag: undefined,
|
|
|
|
+ remarks: ''
|
|
|
|
+ }
|
|
|
|
+ this.$refs.ruleForm.resetFields()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|