付费审核

zth
lijingjia 3 weeks ago
parent 69af72a99c
commit c44ffc1d70

@ -93,6 +93,8 @@ enum Api {
GetControllerClientList = '/mainApi/ClientCommon/GetControllerClientListByKey',
// 用户下拉
GetUserList = '/mainApi/Common/GetUserList',
// 收款银行相关下拉
GetSysBankList = '/mainApi/ClientCommon/GetSysBankList',
// 根据权限id获取表单设置
GetFormSetListByModule = '/mainApi/FormSet/GetFormSetListByModule',
@ -120,6 +122,14 @@ export function GetUserList(params) {
params,
})
}
// 银行下拉
export function GetSysBankList(params) {
return request<DataResult>({
url: Api.GetSysBankList,
method: 'get',
params
})
}
// 委托单位下拉数据
export function GetControllerClientList(params) {
return request<DataResult>({

@ -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,

Loading…
Cancel
Save