|
@@ -38,7 +38,8 @@
|
|
|
<a-row v-if="form.payerType=='DEALER'" >
|
|
|
<a-col :span="12">
|
|
|
<a-form-model-item style="margin-bottom:5px;" label="付款方" prop="dealerSn">
|
|
|
- <dealerSubareaScopeList ref="settleClientName" @change="custChange" :disabled="true" />
|
|
|
+ <!-- <dealerSubareaScopeList ref="settleClientName" @change="custChange" :disabled="true" /> -->
|
|
|
+ {{form.payerName}}
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
@@ -205,6 +206,7 @@ import { VSelect, Upload } from '@/components'
|
|
|
import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
import fcDetailSxItem from './fcDetailSxItem.vue'
|
|
|
import { financeBookDetailSave, financeBookDetailQueryBySn, lastPayerAccountInfo } from '@/api/financeBook.js'
|
|
|
+import { dealerDetailBySn } from '@/api/dealer'
|
|
|
export default {
|
|
|
name: 'FcDetailModal',
|
|
|
mixins: [commonMixin],
|
|
@@ -327,6 +329,14 @@ export default {
|
|
|
this.form.payerAccountInfo = res.data || ''
|
|
|
})
|
|
|
},
|
|
|
+ // 查询经销商信息
|
|
|
+ getDealerDetail (sn) {
|
|
|
+ dealerDetailBySn({ sn: sn }).then(res => {
|
|
|
+ const val = { key: sn }
|
|
|
+ val.row = res.data
|
|
|
+ this.custChange(val)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 客户
|
|
|
custChange (v) {
|
|
|
console.log(v)
|
|
@@ -404,7 +414,8 @@ export default {
|
|
|
this.form = Object.assign(this.form, { payerTypeDictValue: data.payerTypeDictValue, payerType: data.payerType, dealerSn: data.dealerSn, payerName: data.payerName })
|
|
|
this.$nextTick(() => {
|
|
|
if(this.form.dealerSn){
|
|
|
- this.$refs.settleClientName.getDetail(this.form.dealerSn)
|
|
|
+ // this.$refs.settleClientName.getDetail(this.form.dealerSn)
|
|
|
+ this.getDealerDetail(this.form.dealerSn)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -440,9 +451,9 @@ export default {
|
|
|
pageInit () {
|
|
|
this.$nextTick(() => {
|
|
|
this.title = '新增收款明细'
|
|
|
- if (this.$refs.settleClientName) {
|
|
|
- this.$refs.settleClientName.resetForm()
|
|
|
- }
|
|
|
+ // if (this.$refs.settleClientName) {
|
|
|
+ // this.$refs.settleClientName.resetForm()
|
|
|
+ // }
|
|
|
})
|
|
|
this.bankNameList = []
|
|
|
this.form = {
|