From 2424dc900111b4b81e95ad5a4c78c6e108d78277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Wed, 19 Jun 2024 15:44:18 +0800 Subject: [PATCH] 06/19 --- src/store/modules/configOptions.ts | 19 +- src/store/modules/options.ts | 12 +- .../CustomerReconciliation/columns.tsx | 6 +- .../detail/info/index.vue | 1 + .../CustomerReconciliation/index.vue | 137 ++++++++- .../seaexport/detail/modules/cargoInfo.vue | 291 +++++++++--------- .../detail/modules/operationArea.vue | 41 +-- .../detail/modules/operationAreaColumns.tsx | 2 +- src/views/system/org/columns.tsx | 51 ++- 9 files changed, 351 insertions(+), 209 deletions(-) diff --git a/src/store/modules/configOptions.ts b/src/store/modules/configOptions.ts index b2541082..e3b3ebc9 100644 --- a/src/store/modules/configOptions.ts +++ b/src/store/modules/configOptions.ts @@ -1,25 +1,32 @@ import { GetClientSourceSelectList, GetClientStlModeSelectList, - GetVesselSelectList + GetVesselSelectList, } from '/@/views/operation/seaexport/api/BookingLedger' +import { GetFeeCurrencySelectList } from '/@/api/common/index' export default { // 业务来源 GetClientSourceSelectList: () => { - return GetClientSourceSelectList().then(res => { + return GetClientSourceSelectList().then((res) => { return res.data }) }, // 结算方式 GetClientStlModeSelectList: () => { - return GetClientStlModeSelectList().then(res => { + return GetClientStlModeSelectList().then((res) => { return res.data }) }, // 船名 GetVesselSelectList: () => { - return GetVesselSelectList().then(res => { + return GetVesselSelectList().then((res) => { return res.data }) - } -} \ No newline at end of file + }, + // 币别 + GetFeeCurrencySelectList: () => { + return GetFeeCurrencySelectList().then((res) => { + return res.data + }) + }, +} diff --git a/src/store/modules/options.ts b/src/store/modules/options.ts index 0a6a9d66..8b4ab7a8 100644 --- a/src/store/modules/options.ts +++ b/src/store/modules/options.ts @@ -16,6 +16,8 @@ export const useOptionsStore = defineStore({ GetClientStlModeSelectList: [], // 船名 GetVesselSelectList: [], + // 币别 + GetFeeCurrencySelectList: [], }), getters: { // 通过code获取下拉字典(code)就是接口尾部单词 @@ -25,11 +27,11 @@ export const useOptionsStore = defineStore({ return store.$state[code] } else { // 没有值调用接口存数据 - store.setOptionsByCode(code).then(res => { + store.setOptionsByCode(code).then((res) => { return res }) } - } + }, }, actions: { /** @@ -38,12 +40,12 @@ export const useOptionsStore = defineStore({ */ setOptionsByCode(code) { const options = Config[code]() - return options.then(res => { + return options.then((res) => { this[code] = res return res }) - } - } + }, + }, }) // Need to be used outside the setup diff --git a/src/views/operation/CustomerReconciliation/columns.tsx b/src/views/operation/CustomerReconciliation/columns.tsx index 2a0be899..5f7d3eb1 100644 --- a/src/views/operation/CustomerReconciliation/columns.tsx +++ b/src/views/operation/CustomerReconciliation/columns.tsx @@ -1,6 +1,7 @@ import { BasicColumn, FormSchema } from '/@/components/Table' export const searchFormSchema: FormSchema[] = [ { field: 'billNo', label: '对账编号', component: 'Input', colProps: { span: 4 } }, + { field: 'customerName', label: '对账客户名称', component: 'Input', colProps: { span: 4 } }, // { // field: 'mblno', // label: '对账客户', @@ -74,7 +75,7 @@ export const searchFormSchema: FormSchema[] = [ // colProps: { span: 2 }, // }, ] -const billTypeData = [ +export const billTypeData = [ { code: 0, value: '全部' }, { code: 1, value: '应收' }, { code: 2, value: '应付' }, @@ -108,4 +109,7 @@ export const columns: BasicColumn[] = [ { title: '未付RMB', dataIndex: 'balrmbcr', align: 'left' }, { title: '应付USD', dataIndex: 'usdcr', align: 'left' }, { title: '未付USD', dataIndex: 'balusdcr', align: 'left' }, + { title: '对账时间', dataIndex: 'createTime', align: 'left' }, + { title: '对账人', dataIndex: 'createByName', align: 'left' }, + { title: '备注', dataIndex: 'note', align: 'left' }, ] diff --git a/src/views/operation/CustomerReconciliation/detail/info/index.vue b/src/views/operation/CustomerReconciliation/detail/info/index.vue index 92c724b3..0de1a685 100644 --- a/src/views/operation/CustomerReconciliation/detail/info/index.vue +++ b/src/views/operation/CustomerReconciliation/detail/info/index.vue @@ -9,6 +9,7 @@ @cancel="closeModal" :defaultFullscreen="true" :canFullscreen="false" + :showFooter="false" >
diff --git a/src/views/operation/CustomerReconciliation/index.vue b/src/views/operation/CustomerReconciliation/index.vue index 752f786a..4a2c1b4e 100644 --- a/src/views/operation/CustomerReconciliation/index.vue +++ b/src/views/operation/CustomerReconciliation/index.vue @@ -17,18 +17,38 @@ + + + + +
+