From c787a9305254593b28b2e8a6a01472825898b54c Mon Sep 17 00:00:00 2001 From: sunzehua Date: Sat, 26 Oct 2024 09:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bookingcabin/CabinManagement/index.vue | 8 +- src/views/operation/bill/api.js | 35 ++ src/views/operation/bill/columns.tsx | 381 +++++++++++++ src/views/operation/bill/index.vue | 527 ++++++++++++++++++ 4 files changed, 947 insertions(+), 4 deletions(-) create mode 100644 src/views/operation/bill/api.js create mode 100644 src/views/operation/bill/columns.tsx create mode 100644 src/views/operation/bill/index.vue diff --git a/src/views/bookingcabin/CabinManagement/index.vue b/src/views/bookingcabin/CabinManagement/index.vue index 7b317a43..2224731d 100644 --- a/src/views/bookingcabin/CabinManagement/index.vue +++ b/src/views/bookingcabin/CabinManagement/index.vue @@ -224,11 +224,11 @@ } if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length == 1) { arr[i].op = arr[i].bookingSlotSaleInfoList[0].op - arr[i].customername = arr[i].bookingSlotSaleInfoList[0].customername - arr[i].custservice = arr[i].bookingSlotSaleInfoList[0].custservice - arr[i].salE_TIME = arr[i].bookingSlotSaleInfoList[0].salE_TIME + arr[i].customerName = arr[i].bookingSlotSaleInfoList[0].customerName + arr[i].custService = arr[i].bookingSlotSaleInfoList[0].custService + arr[i].saleTime = arr[i].bookingSlotSaleInfoList[0].saleTime arr[i].sellingPrice = arr[i].bookingSlotSaleInfoList[0].sellingPrice - arr[i].goodsname = arr[i].bookingSlotSaleInfoList[0].goodsname + arr[i].goodsName = arr[i].bookingSlotSaleInfoList[0].goodsName arr[i].shipper = arr[i].bookingSlotSaleInfoList[0].shipper arr[i].sale = arr[i].bookingSlotSaleInfoList[0].sale arr[i].business = arr[i].bookingSlotSaleInfoList[0].business diff --git a/src/views/operation/bill/api.js b/src/views/operation/bill/api.js new file mode 100644 index 00000000..6c16b86a --- /dev/null +++ b/src/views/operation/bill/api.js @@ -0,0 +1,35 @@ +import { request } from '/@/utils/request' + +// 获取列表 (Auth) +export function GetList(parameter) { + return request({ + url: '/feeApi/InvoiceApplicationAudit/GetList', + method: 'post', + data: parameter, + }) +} + +export function InvoiceApplicationGet(parameter) { + return request({ + url: '/feeApi/InvoiceApplication/Get', + method: 'get', + params: parameter, + }) +} +export function Audit(parameter) { + return request({ + url: '/feeApi/InvoiceApplicationAudit/Audit', + method: 'post', + data: parameter, + }) +} + +export function GetOpFileList(parameter) { + return request({ + url: '/mainApi/OpFile/GetOpFileList', + method: 'get', + params:parameter + }) +} + + diff --git a/src/views/operation/bill/columns.tsx b/src/views/operation/bill/columns.tsx new file mode 100644 index 00000000..f9877dca --- /dev/null +++ b/src/views/operation/bill/columns.tsx @@ -0,0 +1,381 @@ +import { ref } from 'vue' +import { BasicColumn, FormSchema } from '/@/components/Table' +import { getOptions } from '/@/hooks/dict' +export const billTypeData = [ + { value: '', label: '全部' }, + { value: 1, label: '待审核' }, + { value: 2, label: '已审核' }, +] +export const searchFormSchema: FormSchema[] = [ + { + field: 'applicationNO', + label: '申请单号', + component: 'Input', + colProps: { span: 4 }, + }, + { + field: 'applicationNO', + label: '开票金额', + component: 'Input', + colProps: { span: 4 }, + }, + { + field: 'applyDate', + label: '申请日期', + component: 'RangePicker', + required: false, + dynamicDisabled: false, + colProps: { span: 4 }, + componentProps: { + allowClear: true, + }, + }, + { + field: 'createByName', + label: '申请人', + component: 'Input', + colProps: { span: 4 }, + }, + { + field: 'status', + label: '审核状态', + component: 'Select', + colProps: { span: 4 }, + componentProps: { + options: billTypeData, + }, + }, + +] + +//列表 +export const columns: BasicColumn[] = [ + { + title: '委托单位', + dataIndex: 'applicationNO', + width: 120, + align: 'left', + }, + { + title: '主提单号', + dataIndex: 'statusText', + width: 70, + align: 'left', + }, + { + title: '提单签发状态', + dataIndex: 'customerName', + width: 100, + align: 'left', + }, + { + title: '签单方式', + dataIndex: 'invoiceHeader', + width: 100, + align: 'left', + }, + { + title: '最近操作人', + dataIndex: 'currency', + width: 100, + align: 'left', + }, + { + title: '操作时间', + dataIndex: 'categoryText', + width: 100, + align: 'left', + }, + { + title: '销售', + dataIndex: 'originalAmount', + width: 100, + align: 'left', + }, + { + title: '结算方式', + dataIndex: 'createByName', + width: 100, + align: 'left', + }, + { + title: '开船日期', + dataIndex: 'applyDate', + width: 100, + align: 'left', + }, + { + title: '结算日期', + dataIndex: 'categoryText', + width: 100, + align: 'left', + }, + { + title: '特殊放单', + dataIndex: 'createTime', + width: 100, + align: 'left', + }, + { + title: '协议天数', + dataIndex: 'taxRate', + width: 100, + align: 'left', + }, + { + title: '实际天数', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: 'USD未收', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: 'RMB未收', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '未收合计', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '业务类型', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '起运港', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '卸货港', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '客服', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '船证', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '是否改签', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '特殊放单审批意见', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '经理复核', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '后边是否有货', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '是否超期欠费', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '船证备注', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '签入日期', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '签出日期', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '总应收', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '单证', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, + { + title: '签单地点', + dataIndex: 'invoiceNO', + width: 100, + align: 'left', + }, +] + + +//列表 +export const detailColumns: BasicColumn[] = [ + { + title: '货物或业务应税劳动名称', + dataIndex: 'name', + width: 120, + align: 'left', + }, + { + title: '规格型号', + dataIndex: 'specification', + width: 70, + align: 'left', + }, + { + title: '单位', + dataIndex: 'unit', + width: 100, + align: 'left', + }, + { + title: '数量', + dataIndex: 'quantity', + width: 100, + align: 'left', + }, + { + title: '含税单价', + dataIndex: 'taxUnitPrice', + width: 100, + align: 'left', + }, + { + title: '单价', + dataIndex: 'unitPrice', + width: 100, + align: 'left', + }, + { + title: '金额', + dataIndex: 'amount', + width: 100, + align: 'left', + }, + { + title: '税率', + dataIndex: 'taxRate', + width: 100, + align: 'left', + }, + { + title: '税额', + dataIndex: 'taxAmount', + width: 100, + align: 'left', + } +] + +export const feeColumns: BasicColumn[] = [ + { + title: '委托编号', + dataIndex: 'customerNo', + width: 100, + }, + { + title: '主提单号', + dataIndex: 'mblno', + width: 100, + }, + { + title: '委托单位', + dataIndex: 'customerName', + width: 100, + }, + { + title: '开船日期', + dataIndex: 'etd', + width: 150, + }, + { + title: '业务来源', + dataIndex: 'sourceName', + width: 80, + }, + { + title: '费用名称', + dataIndex: 'feeName', + width: 80, + }, + { + title: '收付', + dataIndex: 'feeType', + width: 50, + }, + { + title: '申请金额', + dataIndex: 'applyAmount', + width: 80, + }, + { + title: '原始币别', + dataIndex: 'originalCurrency', + width: 80, + }, + { + title: '原始汇率', + dataIndex: 'originalRate', + width: 80, + }, + { + title: '折算汇率', + dataIndex: 'exchangeRate', + width: 80, + }, + +] + +export const feeColumnsSum: BasicColumn[] = [ + { + title: '收付', + dataIndex: 'feeType', + width: 100, + }, + { + title: '币别', + dataIndex: 'currency', + width: 100, + }, + { + title: '金额', + dataIndex: 'amount', + width: 100, + }, +] \ No newline at end of file diff --git a/src/views/operation/bill/index.vue b/src/views/operation/bill/index.vue new file mode 100644 index 00000000..c15d5d51 --- /dev/null +++ b/src/views/operation/bill/index.vue @@ -0,0 +1,527 @@ + + + +