From 313f9e06c49c867822f54d84eeb45f2941385529 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: Thu, 6 Jun 2024 17:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=B4=A6=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/buttonGroup.scss | 2 +- .../operation/CustomerReconciliation/api.js | 101 +++++++++-- .../CustomerReconciliation/columns.tsx | 47 +++-- .../CustomerReconciliation/detail/index.vue | 163 ++++++++++++++---- .../detail/info/index.vue | 145 +++++++++------- .../detail/info/infoColumns.tsx | 32 ++-- .../CustomerReconciliation/index.vue | 26 ++- 7 files changed, 373 insertions(+), 143 deletions(-) diff --git a/src/styles/buttonGroup.scss b/src/styles/buttonGroup.scss index da0ac3a3..94febfd9 100644 --- a/src/styles/buttonGroup.scss +++ b/src/styles/buttonGroup.scss @@ -1,6 +1,6 @@ .nav { display: inline-block; - margin-right: 8px; + margin: 0 8px 0 0; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0); padding: 0 10px; diff --git a/src/views/operation/CustomerReconciliation/api.js b/src/views/operation/CustomerReconciliation/api.js index f09fc0b1..c1f21be3 100644 --- a/src/views/operation/CustomerReconciliation/api.js +++ b/src/views/operation/CustomerReconciliation/api.js @@ -1,18 +1,99 @@ import { request } from '/@/utils/request' +// 客户对账列表 (Auth) +export function GetCheckBillList(parameter) { + return request({ + url: '/checkApi/CheckBill/GetCheckBillList', + method: 'post', + data: parameter, + }) +} +// 客户对账详情 (Auth) +export function GetCheckBillInfo(parameter) { + return request({ + url: '/checkApi/CheckBill/GetCheckBillInfo', + method: 'get', + params: parameter, + }) +} +// 客户对账明细列表 (Auth) +export function GetCheckBillBusinessList(parameter) { + return request({ + url: '/checkApi/CheckBill/GetCheckBillBusinessList', + method: 'post', + data: parameter, + }) +} +// 客户对账明细对应费用列表 (Auth) +export function GetCheckBillFeeRecordsList(parameter) { + return request({ + url: '/checkApi/CheckBill/GetCheckBillFeeRecordsList', + method: 'post', + data: parameter, + }) +} +// 对账明细批量删除 (Auth) +export function BatchDelCheckBillDetail(parameter) { + return request({ + url: '/checkApi/CheckBill/BatchDelCheckBillDetail', + method: 'post', + data: parameter, + }) +} +// 对账明细费用批量删除 (Auth) +export function BatchDelCheckBillFeeRecords(parameter) { + return request({ + url: '/checkApi/CheckBill/BatchDelCheckBillFeeRecords', + method: 'post', + data: parameter, + }) +} +// 对账明细添加 (Auth) +export function AddCheckBillDetail(parameter) { + return request({ + url: '/checkApi/CheckBill/AddCheckBillDetail', + method: 'post', + data: parameter, + }) +} +// 对账明细费用添加 (Auth) +export function AddCheckBillFeeRecords(parameter) { + return request({ + url: '/checkApi/CheckBill/AddCheckBillFeeRecords', + method: 'post', + data: parameter, + }) +} // 客户对账明细查询列表 (Auth) -export function GetCheckBillDetailList(parameter) { +export function GetBusinessQueryList(parameter) { + return request({ + url: '/checkApi/CheckBill/GetBusinessQueryList', + method: 'post', + data: parameter, + }) +} +// 客户对账明细查询费用明细 (Auth) +export function GetFeeRecordQueryList(parameter) { + return request({ + url: '/checkApi/CheckBill/GetFeeRecordQueryList', + method: 'post', + data: parameter, + }) +} + +// 锁定 (Auth) +export function CheckBillLocking(parameter) { + return request({ + url: '/checkApi/CheckBill/CheckBillLocking', + method: 'post', + data: parameter, + }) +} +// 解除锁定 (Auth) +export function CheckBillUnLocking(parameter) { return request({ - url: '/checkApi/CheckBill/GetCheckBillDetailList', + url: '/checkApi/CheckBill/CheckBillUnLocking', method: 'post', data: parameter, }) } -// // 详情 (Auth) -// export function BookingOrderGet(parameter) { -// return request({ -// url: '/opApi/SeaExport/GetSeaExportInfo', -// method: 'get', -// params: parameter, -// }) -// } diff --git a/src/views/operation/CustomerReconciliation/columns.tsx b/src/views/operation/CustomerReconciliation/columns.tsx index 7307c952..5f9e02ec 100644 --- a/src/views/operation/CustomerReconciliation/columns.tsx +++ b/src/views/operation/CustomerReconciliation/columns.tsx @@ -74,21 +74,38 @@ export const searchFormSchema: FormSchema[] = [ // colProps: { span: 2 }, // }, ] +const billTypeData = [ + { code: 0, value: '全部' }, + { code: 1, value: '应收' }, + { code: 2, value: '应付' }, +] //列表 export const columns: BasicColumn[] = [ - { title: '对账编号', dataIndex: 'testInput', align: 'left' }, - { title: '客户名称', dataIndex: 'testTextarea1', align: 'left' }, - { title: '对账日期', dataIndex: 'testTextarea2', align: 'left' }, - { title: '对账人', dataIndex: 'testTextarea3', align: 'left' }, - { title: '状态', dataIndex: 'testTextarea4', align: 'left' }, - { title: '已开发票', dataIndex: 'testTextarea5', align: 'left' }, - { title: '应收RMB', dataIndex: 'testTextarea6', align: 'left' }, - { title: '未收RMB', dataIndex: 'testTextarea7', align: 'left' }, - { title: '应收USD', dataIndex: 'testTextarea8', align: 'left' }, - { title: 'USD未收', dataIndex: 'testTextarea9', align: 'left' }, - { title: '应付RBM', dataIndex: 'testTextarea10', align: 'left' }, - { title: '未付RMB', dataIndex: 'testTextarea11', align: 'left' }, - { title: '应付USD', dataIndex: 'testTextarea12', align: 'left' }, - { title: '未付USD', dataIndex: 'testTextarea13', align: 'left' }, - { title: '说明', dataIndex: 'testTextarea14', align: 'left' }, + { title: '对账编号', dataIndex: 'billNo', align: 'left' }, + { title: '对账单名称', dataIndex: 'billName', align: 'left' }, + { + title: '收付类型', + dataIndex: 'billType', + align: 'left', + customRender: ({ text }) => { + let RData = '-' + billTypeData.forEach((e) => { + if (e.code == text) { + RData = e.value + } + }) + return RData + }, + }, + { title: '对账客户名称', dataIndex: 'customerName', align: 'left' }, + { title: '账单状态', dataIndex: 'isLocking', align: 'left' }, + { title: '是否不含税', dataIndex: 'isNoTax', align: 'left' }, + { title: '应收RMB', dataIndex: 'rmbdr', align: 'left' }, + { title: '未收RMB', dataIndex: 'balrmbdr', align: 'left' }, + { title: '应收USD', dataIndex: 'usddr', align: 'left' }, + { title: '未收USD', dataIndex: 'balusddr', align: 'left' }, + { title: '应付RBM', dataIndex: 'rmbcr', align: 'left' }, + { title: '未付RMB', dataIndex: 'balrmbcr', align: 'left' }, + { title: '应付USD', dataIndex: 'usdcr', align: 'left' }, + { title: '未付USD', dataIndex: 'balusdcr', align: 'left' }, ] diff --git a/src/views/operation/CustomerReconciliation/detail/index.vue b/src/views/operation/CustomerReconciliation/detail/index.vue index 0b475bb7..69a4ee47 100644 --- a/src/views/operation/CustomerReconciliation/detail/index.vue +++ b/src/views/operation/CustomerReconciliation/detail/index.vue @@ -6,8 +6,14 @@ - - + + @@ -29,10 +35,18 @@ - + + + +