|
|
|
@ -3,14 +3,13 @@
|
|
|
|
|
* @Author: lijj
|
|
|
|
|
* @Date: 2024-04-25 15:48:33
|
|
|
|
|
*/
|
|
|
|
|
import { ref, h, ComponentOptions, resolveComponent } from 'vue'
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
import { GetClientListByCode, getOrgList, GetClientBank, GetFeeCurrencySelectList } from '/@/api/common'
|
|
|
|
|
import { GetOrgList, ClientCommonGetStlMode, GetClientBankList,GetOrgBankList } from '../../feeSettlement/api'
|
|
|
|
|
import { GetClientListByCode, getOrgList, GetSysBankList, GetClientBank } from '/@/api/common'
|
|
|
|
|
import { GetOrgList, ClientCommonGetStlMode, GetClientBankList } from '../../feeSettlement/api'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 业务表格列
|
|
|
|
@ -483,38 +482,13 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'customerBankName',
|
|
|
|
|
label: '客户银行',
|
|
|
|
|
// show: ({ values }) => {
|
|
|
|
|
// return values.mode=='free';
|
|
|
|
|
// },
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
console.log(formModel)
|
|
|
|
|
const queryStr = [
|
|
|
|
|
{
|
|
|
|
|
FieldName: 'ClientId',
|
|
|
|
|
FieldValue: formModel.customerId,
|
|
|
|
|
ConditionalType: '0',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
const data = {
|
|
|
|
|
pageCondition: {
|
|
|
|
|
pageIndex: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
sortConditions: [],
|
|
|
|
|
},
|
|
|
|
|
queryCondition: JSON.stringify(queryStr),
|
|
|
|
|
}
|
|
|
|
|
GetClientBankList(data).then((res) => {
|
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
|
item.showName = item.bankName + ' ' + item.bankAccountNo
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
api: GetClientBank,
|
|
|
|
|
params: {
|
|
|
|
|
id: formModel.customerId
|
|
|
|
|
},
|
|
|
|
|
immediate: false,
|
|
|
|
|
labelField: 'showName',
|
|
|
|
@ -544,38 +518,75 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
component: 'Input'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'orgBankName',
|
|
|
|
|
label: '收款账号',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
field: 'orgBankName',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
defaultValue: null,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetOrgBankList().then((res) => {
|
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
|
item.showName = item.bankName + ' ' + item.bankAccountNo
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
api: GetSysBankList,
|
|
|
|
|
params: {
|
|
|
|
|
orgId: formModel.saleOrgId
|
|
|
|
|
},
|
|
|
|
|
immediate: false,
|
|
|
|
|
labelField: 'showName',
|
|
|
|
|
valueField: 'showName',
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
showName: 'bankName',
|
|
|
|
|
valueField: 'bankName',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (obj) {
|
|
|
|
|
console.log(formModel)
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.orgBankId = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!obj && !e) {
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.orgBankId = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'orgBankId',
|
|
|
|
|
label: '',
|
|
|
|
|
show: false,
|
|
|
|
|
component: 'Input'
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'orgBankName',
|
|
|
|
|
// label: '收款账号',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// api: () => {
|
|
|
|
|
// return new Promise((resolve) => {
|
|
|
|
|
// GetOrgBankList().then((res) => {
|
|
|
|
|
// res.data.forEach(item=>{
|
|
|
|
|
// item.showName = item.bankName + ' ' + item.bankAccountNo
|
|
|
|
|
// })
|
|
|
|
|
// resolve(res)
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
// },
|
|
|
|
|
// immediate: false,
|
|
|
|
|
// labelField: 'showName',
|
|
|
|
|
// valueField: 'showName',
|
|
|
|
|
// resultField: 'data',
|
|
|
|
|
// onChange: (e, obj) => {
|
|
|
|
|
// if (obj) {
|
|
|
|
|
// formModel.orgBankId = obj.id
|
|
|
|
|
// }
|
|
|
|
|
// if (!obj && !e) {
|
|
|
|
|
// formModel.orgBankId = ''
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'customerBankName',
|
|
|
|
|
// label: '客户银行',
|
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
@ -649,24 +660,21 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
return {
|
|
|
|
|
api: getOrgList,
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
valueField: 'label',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
formModel.saleOrgName = obj.label
|
|
|
|
|
formModel.saleOrgId = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.saleOrgName = null
|
|
|
|
|
formModel.saleOrgId = null
|
|
|
|
|
formModel.saleOrgId = obj.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'saleDeptId',
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
label: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|