diff --git a/src/components/CostEntry/components/feeTable.vue b/src/components/CostEntry/components/feeTable.vue index 78033d8b..49507536 100644 --- a/src/components/CostEntry/components/feeTable.vue +++ b/src/components/CostEntry/components/feeTable.vue @@ -96,13 +96,14 @@ row.amount = Number(e * row.originalRate).toFixed(6) } // 根据业务编号及类型获取关联费用记录 (Auth) - const getFees = async (id, businessType, customerId) => { + const getFees = async (id, businessType, customerId, queryCondition) => { const postData = { items: [{ id, businessType, customerId - }] + }], + queryCondition } loading.value = true await GetFees(postData).then(res => { @@ -173,7 +174,7 @@ }) } const page = ref() - const init = async (ids, source, businessType, customerId) => { + const init = async (ids, source, businessType, customerId, queryCondition) => { page.value = source if (ids.length) { if (ids[0] == undefined) { @@ -191,9 +192,10 @@ await getFeeListByTem(ids[0]) return feeData.value } + // 费用申请 if (source == 'apply') { nowFeeColumns.value = feeApplyColumns - await getFees(ids[0].slice(0, -1), businessType, customerId) + await getFees(ids[0].slice(0, -1), businessType, customerId, queryCondition) return feeData.value } } diff --git a/src/views/fee/exchangeRate/columns.tsx b/src/views/fee/exchangeRate/columns.tsx index 7c329ec7..5c7763e8 100644 --- a/src/views/fee/exchangeRate/columns.tsx +++ b/src/views/fee/exchangeRate/columns.tsx @@ -89,6 +89,12 @@ export const formSchema: FormSchema[] = [ defaultValue: '', show: false, }, + { + label: '', + field: 'currencyId', + component: 'Input', + show: false, + }, { field: 'currencyCode', label: '币别', @@ -101,8 +107,15 @@ export const formSchema: FormSchema[] = [ labelField: 'name', valueField: 'codeName', resultField: 'data', - onChange: (v) => { - formModel.currencyCode = v + onChange: (v, obj) => { + if (v && obj) { + formModel.currencyId = obj.id + formModel.currencyCode = v + } + if (!v && !obj) { + formModel.currencyId = null + formModel.currencyCode = null + } }, } }, diff --git a/src/views/finance/paymentSettlement/api.ts b/src/views/finance/paymentSettlement/api.ts index 7dc77524..9cc5a7bb 100644 --- a/src/views/finance/paymentSettlement/api.ts +++ b/src/views/finance/paymentSettlement/api.ts @@ -14,7 +14,8 @@ enum Api { DeleteDetail = '/feeApi/PaymentSettlement/DeleteDetail', GetApplicationList = '/feeApi/PaymentSettlement/GetApplicationList', GetApplicationDetailsById = '/feeApi/PaymentSettlement/GetApplicationDetailsById', - GetExchanges = '/feeApi/PaymentSettlement/GetExchanges' + GetExchanges = '/feeApi/PaymentSettlement/GetExchanges', + GetApplicationDetailsByDetail = '/feeApi/PaymentSettlement/GetApplicationDetailsByDetail' } // 列表 (Auth) export function GetList(data: PageRequest) { @@ -75,6 +76,7 @@ export function GetApplicationDetailsById(params) { }) } + // 根据申请单获取费用币别 export function GetExchanges(data: PageRequest) { return request({ @@ -83,3 +85,12 @@ export function GetExchanges(data: PageRequest) { data }) } + +// 根据结算明细查询费用明细 +export function GetApplicationDetailsByDetail(data: PageRequest) { + return request({ + url: Api.GetApplicationDetailsByDetail, + method: 'post', + data + }) +} diff --git a/src/views/finance/paymentSettlement/detail/columns.tsx b/src/views/finance/paymentSettlement/detail/columns.tsx index d09d3e21..0886b932 100644 --- a/src/views/finance/paymentSettlement/detail/columns.tsx +++ b/src/views/finance/paymentSettlement/detail/columns.tsx @@ -632,21 +632,30 @@ export const formSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [ { label: '费用对象', - field: 'customerId', + field: 'customerName', component: 'ApiSelect', dynamicDisabled: false, colProps: { span: 4 }, - componentProps: () => { + componentProps: ({ formModel }) => { return { api: GetClientListByCode, labelField: 'pinYinCode', showName: 'shortName', - valueField: 'id', + valueField: 'shortName', resultField: 'data', - immediate: false + immediate: false, + onChange: (v, obj) => { + if (v && obj) formModel.customerId = obj.id + } } } }, + { + label: '', + field: 'customerId', + component: 'Input', + show: false + }, { label: '编号检索', field: 'mblno:hblno:debitNo:hblno:bookingNO:customerNo', diff --git a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue index a2b02b09..7bc2b331 100644 --- a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue +++ b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue @@ -5,7 +5,7 @@ -->