diff --git a/src/views/finance/feeSettlement/api.js b/src/views/finance/feeSettlement/api.js index def61a98..1b95e589 100644 --- a/src/views/finance/feeSettlement/api.js +++ b/src/views/finance/feeSettlement/api.js @@ -59,4 +59,28 @@ export function InvoiceSettlementGet(params) { method: 'get', params }) +} + +export function ClientCommonGetStlMode(params) { + return request({ + url: '/mainApi/ClientCommon/GetStlMode', + method: 'get', + params + }) +} + +export function GetClientBankList(parameter) { + return request({ + url: '/mainApi/ClientBank/GetClientBankList', + method: 'post', + data: parameter, + }) +} + +export function PaymentSettlementDelete(parameter) { + return request({ + url: '/feeApi/PaymentSettlement/Delete', + method: 'post', + data: parameter, + }) } \ No newline at end of file diff --git a/src/views/finance/feeSettlement/columns.tsx b/src/views/finance/feeSettlement/columns.tsx index 1712e045..88f46d4d 100644 --- a/src/views/finance/feeSettlement/columns.tsx +++ b/src/views/finance/feeSettlement/columns.tsx @@ -1,7 +1,7 @@ import { def } from '@vue/shared' import { BasicColumn, FormSchema } from '/@/components/Table' -import { GetClientListByCode,GetFeeCurrencySelectList } from '/@/api/common' -import { GetOrgList } from './api' +import { GetClientListByCode, GetFeeCurrencySelectList } from '/@/api/common' +import { GetOrgList, ClientCommonGetStlMode, GetClientBankList } from './api' import { Tag } from 'ant-design-vue' export const columns: BasicColumn[] = [ { @@ -196,6 +196,14 @@ export const columns: BasicColumn[] = [ ] export const searchFormSchema: FormSchema[] = [ + { + field: 'billType', + label: '', + colProps: { span: 4 }, + component: 'Input', + show: false, + defaultValue: 1 + }, { field: 'settlementNO', label: '结算单号', @@ -244,6 +252,19 @@ export const searchFormSchema: FormSchema[] = [ ] export const detailForm: FormSchema[] = [ + { + field: 'id', + label: '', + colProps: { span: 4 }, + show: false + }, + { + field: 'customerId', + label: '', + colProps: { span: 4 }, + show: false, + component: 'Input' + }, { field: 'customerName', label: '结算单位', @@ -255,27 +276,55 @@ export const detailForm: FormSchema[] = [ field: 'settlementDate', label: '结算日期', colProps: { span: 4 }, - component: 'DatePicker' + component: 'DatePicker', + componentProps: { + showTime: true, + allowClear: true, + valueFormat: 'YYYY-MM-DD HH:00', + format: 'YYYY-MM-DD HH:00', + }, }, { - field: 'createUserName', + field: 'createByName', label: '结算人', colProps: { span: 4 }, dynamicDisabled: true, component: 'Input' }, { - field: 'currency', + field: 'currencyAmount', label: '币别/金额', colProps: { span: 4 }, dynamicDisabled: true, component: 'Input' }, { - field: 'settlementType', + field: 'settlementTypeId', + label: '', + colProps: { span: 4 }, + show: false + }, + { + field: 'settlementTypeName', label: '结算方式', colProps: { span: 4 }, - component: 'Input' + component: 'ApiSelect', + componentProps: ({ formModel }) => { + return { + api: ClientCommonGetStlMode, + resultField: 'data', + labelField: 'stlName', + valueField: 'stlName', + onChange: (e, obj) => { + if (obj) { + formModel.settlementTypeId = obj.id + } + if (!obj && !e) { + formModel.settlementTypeId = '' + } + }, + } + }, }, { field: 'exchangeRate', @@ -291,10 +340,54 @@ export const detailForm: FormSchema[] = [ } }, { - field: 'customerBank', + field: 'customerBankId', + label: '', + colProps: { span: 4 }, + show: false + }, + { + field: 'customerBankName', label: '银行账号', colProps: { span: 4 }, - component: 'Input' + component: 'ApiSelect', + componentProps: ({ formModel }) => { + return { + api: () => { + return new Promise((resolve) => { + 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) => { + resolve(res) + }) + }) + }, + immediate: false, + labelField: 'account', + valueField: 'account', + resultField: 'data', + onChange: (e, obj) => { + if (obj) { + formModel.customerBankId = obj.id + } + if (!obj && !e) { + formModel.customerBankId = '' + } + }, + } + }, }, { field: 'relativeNO', @@ -304,34 +397,78 @@ export const detailForm: FormSchema[] = [ }, { field: 'saleDeptId', + label: '', + colProps: { span: 4 }, + show: false + }, + { + field: 'saleDeptName', label: '所属分部', colProps: { span: 4 }, component: 'ApiSelect', - componentProps: () => { + componentProps: ({ formModel }) => { return { api: GetOrgList, resultField: 'data', + labelField: 'label', + valueField: 'label', + onChange: (e, obj) => { + if (obj) { + formModel.saleDeptId = obj.id + } + if (!obj && !e) { + formModel.saleDeptId = '' + } + }, } }, }, { - field: 'settlementNO', + field: 'category', + label: '', + colProps: { span: 4 }, + show: false + }, + { + field: 'categoryText', label: '业务类别', colProps: { span: 4 }, - component: 'Input' + component: 'Select', + componentProps: ({ formModel }) => { + return { + options: [ + { + label: '货运收入', + value: '1' + }, + { + label: '利息收入', + value: '2' + }, + ], + onChange: (e, obj) => { + if (obj) { + formModel.category = obj.value + } + if (!obj && !e) { + formModel.category = '' + } + }, + } + }, }, +] + +export const markForm: FormSchema[] = [ { - field: 'line2', + field: 'line3', component: 'Divider', colProps: { span: 24 } }, -] - -export const markForm: FormSchema[] = [ { - field: 'customerName', + field: 'voucherRemark', label: '凭证备注', colProps: { span: 8 }, component: 'InputTextArea' @@ -354,7 +491,7 @@ export const markForm: FormSchema[] = [ export const invoiceColum: BasicColumn[] = [ { title: '发票业务编号', - dataIndex: 'applicationNO', + dataIndex: 'billNO', width: 100, }, { @@ -369,12 +506,12 @@ export const invoiceColum: BasicColumn[] = [ }, { title: '开票单位', - dataIndex: 'applicationNO', + dataIndex: 'customerName', width: 100, }, { title: '币别', - dataIndex: 'applicationNO', + dataIndex: 'originalCurrency', width: 100, }, { @@ -384,27 +521,29 @@ export const invoiceColum: BasicColumn[] = [ }, { title: '开票金额', - dataIndex: 'applicationNO', + dataIndex: 'invoiceAmount', width: 100, }, { - title: '申请金额', - dataIndex: 'applicationNO', + title: 'RMB申请金额', + dataIndex: 'rmbApplyAmount', + width: 100, + }, + { + title: 'USD申请金额', + dataIndex: 'usdApplyAmount', width: 100, }, { title: '发票抬头', - dataIndex: 'applicationNO', + dataIndex: 'invoiceHeader', width: 100, }, { title: '开票日期', - dataIndex: 'applicationNO', + dataIndex: 'invoiceDate', width: 100, }, - - - ] export const invoiceDetailColum: BasicColumn[] = [ @@ -507,7 +646,7 @@ export const invoiceTableColums: BasicColumn[] = [ { title: '发票锁定', dataIndex: 'isLocked', - width: 100, + width: 80, }, { title: '发票业务编号', @@ -522,17 +661,17 @@ export const invoiceTableColums: BasicColumn[] = [ { title: '币别', dataIndex: 'currency', - width: 100, + width: 60, }, { title: '开票金额', dataIndex: 'invoiceAmount', - width: 100, + width: 80, }, { title: '申请金额', dataIndex: 'applyAmount', - width: 100, + width: 80, }, { title: '未结金额', @@ -650,12 +789,10 @@ export const invoiceSearchFormSchema: FormSchema[] = [ colProps: { span: 6 }, componentProps: () => { return { - api: GetClientListByCode, - labelField: 'pinYinCode', - valueField: 'shortName', - showName: 'shortName', + api: GetOrgList, resultField: 'data', - immediate: false + labelField: 'label', + valueField: 'label', } } }, @@ -687,4 +824,59 @@ export const invoiceTableDetailColums: BasicColumn[] = [ dataIndex: 'feeName', width: 100, }, + { + title: '收付', + dataIndex: 'feeType', + width: 100, + }, + { + title: '结算名称', + dataIndex: 'feeName', + width: 100, + }, + { + title: '原始币别', + dataIndex: 'originalCurrency', + width: 100, + }, + { + title: '原始汇率', + dataIndex: 'originalRate', + width: 100, + }, + { + title: '折算汇率', + dataIndex: 'exchangeRate', + width: 100, + }, + { + title: '发票折算汇率', + dataIndex: 'feeName', + width: 100, + }, + { + title: '原始金额', + dataIndex: 'originalAmount', + width: 100, + }, + { + title: '揽货人', + dataIndex: 'saleName', + width: 100, + }, + { + title: '录入方式', + dataIndex: 'feeName', + width: 100, + }, + { + title: '会计期间', + dataIndex: 'accountDate', + width: 100, + }, + { + title: '更改单', + dataIndex: 'feeName', + width: 100, + }, ] \ No newline at end of file diff --git a/src/views/finance/feeSettlement/detail/index.vue b/src/views/finance/feeSettlement/detail/index.vue index 77b300ef..e2894446 100644 --- a/src/views/finance/feeSettlement/detail/index.vue +++ b/src/views/finance/feeSettlement/detail/index.vue @@ -50,7 +50,7 @@
- 结算单号: + 结算单号:{{ form.settlementNO }}
@@ -62,7 +62,7 @@