Commit 627b3bbc authored by youjie's avatar youjie

删除多余文件

parent 0bcad647
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// 邮轮列表配置
export const spotListConfig = {
// 表格基础配置
tableConfig: {
height: '100%',
border: true,
stripe: false,
size: 'mini',
multiple: false,//是否支持多选
'empty-text': '暂无数据'
},
// 分页配置
paginationConfig: {
background: true,
layout: 'total, sizes, prev, pager, next, jumper',
'pager-count': 7,
'hide-on-single-page': false,
'page-sizes': [10, 14, 20, 25, 50, 100],
'page-size': 14,
'current-page': 1,
small: false,
disabled: false,
'prev-text': '',
'next-text': '',
total: 0
},
// 分页默认配置
defaultPagination: {
currentPage: 1,
pageSize: 14,
total: 0,
pageSizes: [10, 14, 20, 25, 50, 100]
},
// 列配置工厂函数
createColumns: (options = {}) => [
{
type: 'selection',
minWidth: 55,
fixed: 'left',
slotName: 'FrID',
},
{
id: 'FrID',
label: '单号',
prop: 'FrID',
minWidth: 30,
// fixed: 'left',
slotName: 'FrID',
},
{
label: '公司',
prop: 'BranchName',
minWidth: 90,
slotName: 'BranchName',
},
{
label: '费用类型',
prop: 'CostTypeName',
minWidth: 80,
slotName: 'CostTypeName',
},
{
label: '币种',
prop: 'CurrencyName',
minWidth: 30,
slotName: 'CurrencyName',
},
{
label: '汇率',
prop: 'Rate',
minWidth: 30,
slotName: 'Rate',
},
{
label: '金额',
prop: 'Money',
minWidth: 80,
slotName: 'Money',
},
{
label: '冲抵金额',
prop: 'MatchMoney',
minWidth: 80,
slotName: 'MatchMoney',
},
{
label: '状态',
prop: 'StatusStr',
minWidth: 30,
slotName: 'StatusStr',
},
{
label: '付款对象',
prop: 'ClientTypeName',
minWidth: 80,
slotName: 'ClientTypeName',
},
{
label: '备注',
prop: 'Remark',
minWidth: 80,
slotName: 'Remark',
}
],
// 操作列配置
actionColumn: {
label: '操作',
width: 240,
minWidth: 150,
fixed: 'right'
},
// 高级查询配置
advancedSearchConfig: {
title: '高级查询',
buttonText: '高级查询',
width: 600,
fields: [
{
key: 'FrID',
label: '编号',
type: 'input',
placeholder: '单据编号',
span: 8,
options: [] // 动态填充
},
{
key: 'CostTypeID',
label: '费用类型',
type: 'select',
span: 8,
options: [] // 动态填充
},
{
key: 'Datelist',
label: '交易时间',
type: 'date',
dateType: 'daterange',
placeholder: '选择交易时间',
span: 8,
}
]
},
// 工具操作配置
toolActions: [
{
command: 'refresh',
label: '刷新',
icon: 'el-icon-refresh',
type: 'default'
},
{
command: 'clearFilters',
label: '清除筛选',
icon: 'el-icon-delete',
type: 'warning'
}
],
// 抽屉配置
drawerConfig: {
title: '冲抵信息',
size: '90%',
direction: 'rtl'
},
// API 配置
apiConfig: {
list: 'Financial_get_GetAdvanceFinancePageList',//列表
costType: 'Financial_get_GetAdvanceCostTypeList',
},
// 默认查询参数
defaultQueryParams: {
pageIndex: 1,
pageSize: 16,
FrID: 0,
CostTypeID:'',
sTradeDate:'',
eTradeDate:'',
IsAdvanceFinance:1,
Datelist: [],
},
// 分页配置工具方法
createPaginationConfig: (options = {}) => ({
...spotListConfig.paginationConfig,
...options
}),
// 验证分页参数
validatePaginationParams: (pageIndex, pageSize, total) => {
const validPageSizes = [10, 14, 20, 25, 50, 100]
const normalizedPageSize = validPageSizes.includes(pageSize) ? pageSize : 14
const maxPage = total > 0 ? Math.ceil(total / normalizedPageSize) : 1
const normalizedPageIndex = Math.max(1, Math.min(pageIndex, maxPage))
return {
pageIndex: normalizedPageIndex,
pageSize: normalizedPageSize,
isValid: pageIndex === normalizedPageIndex && pageSize === normalizedPageSize
}
}
}
// 导出默认配置
export default spotListConfig
// 导出分页配置工具方法
export const createPaginationConfig = spotListConfig.createPaginationConfig
export const validatePaginationParams = spotListConfig.validatePaginationParams
This diff is collapsed.
This diff is collapsed.
// 邮轮列表配置
export const scenicSpotListConfig = {
// 表格基础配置
tableConfig: {
height: '100%',
border: true,
stripe: true,
size: 'mini',
'empty-text': '暂无邮轮数据'
},
// 分页配置
paginationConfig: {
background: true,
layout: 'total, sizes, prev, pager, next, jumper',
'pager-count': 7,
'hide-on-single-page': false,
'page-sizes': [10, 14, 20, 25, 50, 100],
'page-size': 14,
'current-page': 1,
small: false,
disabled: false,
'prev-text': '',
'next-text': '',
total: 0
},
// 分页默认配置
defaultPagination: {
currentPage: 1,
pageSize: 14,
total: 0,
pageSizes: [10, 14, 20, 25, 50, 100]
},
// 列配置工厂函数
createColumns: (options = {}) => [
{
id: 'scenic-name-column',
label: '邮轮名称',
prop: 'Name',
minWidth: 150,
// fixed: 'left',
type: 'link',
slotName: 'scenicName',
filter: {
type: 'input',
key: 'NameFilter',
placeholder: '输入邮轮名称'
}
},
{
id: 'city-column',
label: '城市',
prop: 'CityName',
minWidth: 100,
slotName: 'cityName',
filter: {
type: 'select',
key: 'CityFilter',
placeholder: '选择城市',
searchable: true,
multiple: true,
options: options.cityList || []
}
},
{
id: 'ticket-type-column',
label: '邮轮类型',
prop: 'TicketTypeName',
minWidth: 120,
slotName: 'ticketType',
filter: {
type: 'select',
key: 'TicketTypeFilter',
placeholder: '选择邮轮类型',
multiple: true,
options: options.ticketTypeList || []
}
},
{
label: '邮轮名称英文',
prop: 'RealName',
minWidth: 150,
slotName: 'realName',
emptyText: '-',
filter: {
type: 'input',
key: 'EnNameFilter',
placeholder: '输入邮轮英文名称'
}
},
{
label: '营业时间',
prop: 'OpeningHours',
minWidth: 150,
slotName: 'businessHours',
emptyText: '-'
},
{
label: '最后更新时间',
prop: 'UpdateDate',
minWidth: 150,
slotName: 'updateDate',
emptyText: '-'
},
{
label: '状态',
prop: 'Status',
minWidth: 80,
slotName: 'status',
filter: {
type: 'select',
key: 'StatusFilter',
placeholder: '选择状态',
options: [
{ label: '正常', value: '0' },
{ label: '删除', value: '1' }
]
}
}
],
// 操作列配置
actionColumn: {
label: '操作',
width: 120,
fixed: 'right'
},
// 高级查询配置
advancedSearchConfig: {
title: '高级查询',
buttonText: '高级查询',
width: 600,
fields: [
{
key: 'QCountry',
label: '国家',
type: 'select',
placeholder: '选择国家',
span: 8,
options: [] // 动态填充
},
{
key: 'QProvince',
label: '省份',
type: 'select',
placeholder: '选择省份',
span: 8,
options: [] // 动态填充
}
]
},
// 工具操作配置
toolActions: [
// {
// command: 'add',
// label: '添加邮轮',
// type: 'primary',
// icon: 'el-icon-plus',
// permission: 'scenic.add'
// },
{
command: 'export',
label: '导出数据',
icon: 'el-icon-download',
permission: 'scenic.export'
},
{
command: 'importData',
label: '导入数据',
icon: 'el-icon-upload2',
permission: 'scenic.import'
},
{
command: 'refresh',
label: '刷新',
icon: 'el-icon-refresh',
type: 'default'
},
{
command: 'clearFilters',
label: '清除筛选',
icon: 'el-icon-delete',
type: 'warning'
}
],
// 抽屉配置
drawerConfig: {
title: '邮轮信息',
size: '90%',
direction: 'rtl'
},
// API 配置
apiConfig: {
list: 'ticketcoupons_post_GetPageList',
delete: 'ticketcoupons_post_Remove',
export: 'dmcstatistics_post_GetTicketCouponsExport',
import: 'ticketcoupons_post_ImportData',
countryList: 'dict_post_Destination_GetCountry',
provinceList: 'dict_post_Destination_GetChildList',
employeeList: 'admin_get_EmployeeGetList',
ticketTypeList: 'ticketcoupons_get_GetBYTicketTypeEnumList',
batchDelete: 'ticketcoupons_post_BatchRemove',
uploadTemplate: 'file_post_UploadTemplate',
cityList:'dict_post_Destination_GetCityList'
},
// 默认查询参数
defaultQueryParams: {
pageIndex: 1,
pageSize: 14,
Name: "",
QCountry: "",
QProvince: "",
QCity: "",
QDistrict: "",
Status: "0",
TicketType: "-1",
UpdateBy: 0,
SelectType: 1
},
// 分页配置工具方法
createPaginationConfig: (options = {}) => ({
...scenicSpotListConfig.paginationConfig,
...options
}),
// 验证分页参数
validatePaginationParams: (pageIndex, pageSize, total) => {
const validPageSizes = [10, 14, 20, 25, 50, 100]
const normalizedPageSize = validPageSizes.includes(pageSize) ? pageSize : 14
const maxPage = total > 0 ? Math.ceil(total / normalizedPageSize) : 1
const normalizedPageIndex = Math.max(1, Math.min(pageIndex, maxPage))
return {
pageIndex: normalizedPageIndex,
pageSize: normalizedPageSize,
isValid: pageIndex === normalizedPageIndex && pageSize === normalizedPageSize
}
}
}
// 导出默认配置
export default scenicSpotListConfig
// 导出分页配置工具方法
export const createPaginationConfig = scenicSpotListConfig.createPaginationConfig
export const validatePaginationParams = scenicSpotListConfig.validatePaginationParams
......@@ -1905,14 +1905,6 @@ export default {
title: '邮轮订单'
},
},
{
path: '/cruiseshipVisaOrderList',
name: 'cruiseshipVisaOrderList',
component: resolve => require(['@/components/cruiseshipVisa/list/cruiseshipVisaOrderList'], resolve),
meta: {
title: '签证订单'
},
},
{
path: '/cruiseShipOrderListOP',
name: 'cruiseShipOrderListOP',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment