Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
You need to sign in or sign up before continuing.
Authored by
jinhui.wang
2022-06-28 13:11:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3129c52e0b61766d5b90b9d31e9ad30749d67b1a
3129c52e
1 parent
bdd78b87
ver:1.3.0,文本域输入限制高度限制,组件更新,样式修改,文本修正
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1470 additions
and
1171 deletions
src/assets/languages/tableHeaders.js
src/assets/styles/FedEx.scss
src/assets/styles/index.scss
src/layout/components/Navbar.vue
src/main.js
src/utils/FedEx.js
src/views/allocationConfig/cargoAllocation/index.vue
src/views/allocationConfig/flightAllocConfig/index.vue
src/views/allocationConfig/flightRandConfig/index.vue
src/views/basicInformation/caExportPreQualification/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/queryCargo/index.vue
src/views/systemConfig/roleConfig/drawer.vue
src/views/systemConfig/roleConfig/index.vue
src/views/systemConfig/userConfig/drawer.vue
src/views/systemConfig/userConfig/index.vue
src/assets/languages/tableHeaders.js
0 → 100644
View file @
3129c52
let
tableHeaders
=
{
//货物查询
"cargo"
:
[
{
name
:
"口岸代码"
,
value
:
"portName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"取件日期"
,
value
:
"pickUpDate"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"取件扫描号"
,
value
:
"pickUpScanNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"站点"
,
value
:
"siteName"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"运单号"
,
value
:
"waybillNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"总单号"
,
value
:
"totalWaybillNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"服务类型"
,
value
:
"serviceTypeName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"服务代码"
,
value
:
"serviceCode"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"URSA"
,
value
:
"ursa"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"推送状态"
,
value
:
"cargoAllocationDataStatus"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"配舱状态"
,
value
:
"flightIdImac"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"释放状态"
,
value
:
"releasing"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"申报类型"
,
value
:
"typeName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCSpool"
,
value
:
"accsPool"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"HandlingCode"
,
value
:
"handingCode"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"subcategory"
,
value
:
"subCategory"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"件数"
,
value
:
"qty"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"实际重量"
,
value
:
"actualWeight"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"收件人国家代码"
,
value
:
"consigneeCountry"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"品名描述"
,
value
:
"nameDescription"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"海关回执状态"
,
value
:
"customsReceiptStatusName"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预审状态"
,
value
:
"preQualificationStatus"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"航班预审意见"
,
value
:
"caPretrialOpinion"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"货物状态"
,
value
:
"statusName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"终配航班号"
,
value
:
"finalFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"终配航班日期"
,
value
:
"finalFlightTime"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"二配航班号"
,
value
:
"twoMatchFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"二配航班日期"
,
value
:
"twoMatchFlightTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预配航班号"
,
value
:
"preplanFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预配航班日期"
,
value
:
"preplanFlightTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航班号"
,
value
:
"fltNoAccs"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航班日期"
,
value
:
"fltDateAccs"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航线"
,
value
:
"accsFlightRoute"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"是否RDE手工录入"
,
value
:
"manualRde"
,
width
:
"170"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"是否自动"
,
value
:
"cargoRulesStatus"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"发件人账号"
,
value
:
"shipperAccount"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"发件公司中文名称"
,
value
:
"shipperCompany"
,
width
:
"150"
,
align
:
"center"
,
status
:
1
},
{
name
:
"始发地城市名称"
,
value
:
"originCity"
,
width
:
"130"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"收件地"
,
value
:
"destinationSiteName"
,
width
:
"90"
,
align
:
"center"
,
status
:
1
},
{
name
:
"尺寸"
,
value
:
"sizeStr"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"大货预审意见(是否可以配置航班)"
,
value
:
"bigPretrialOpinion"
,
width
:
"200"
,
align
:
"center"
,
status
:
1
},
{
name
:
"大货预审时间"
,
value
:
"bigPretrialTime"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"海关回执时间"
,
value
:
"customsReceiptTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"航班预审时间"
,
value
:
"caPretrialTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"创建人"
,
value
:
"createUserName"
,
width
:
"90"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"创建时间"
,
value
:
"createTime"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
],
//航班信息维护
"FlightInformation"
:
[
{
name
:
"航班日期"
,
value
:
"fltDate"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班起飞时间"
,
value
:
"takeOffTime"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"Pre-MDE CutOff时间"
,
value
:
"cutOffTime"
,
width
:
"150"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班号"
,
value
:
"fltNo"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班路线"
,
value
:
"route"
,
width
:
"140"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班类型"
,
value
:
"typeName"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班种类"
,
value
:
"flightKindName"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班状态"
,
value
:
"statusName"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"是否自动推送"
,
value
:
"pushDateSwitch"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"总重量"
,
value
:
"totalWeight"
,
width
:
"90"
,
align
:
"center"
,
status
:
1
},
{
name
:
"原始重量(KG)"
,
value
:
"originalWeight"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"已配重量"
,
value
:
"alloctedWeight"
,
width
:
"90"
,
align
:
"center"
,
status
:
1
},
{
name
:
"总体积(cm³)"
,
value
:
"totalVolume"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"已配体积(cm³)"
,
value
:
"alloctedVolume"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"是否需要预审"
,
value
:
"needRequired"
,
width
:
"130"
,
align
:
"center"
,
status
:
1
},
{
name
:
"是否开启高低价"
,
value
:
"highLowPriceFlg"
,
width
:
"140"
,
align
:
"center"
,
status
:
1
},
{
name
:
"是否限制一票一件"
,
value
:
"ticketToPiece"
,
width
:
"140"
,
align
:
"center"
,
status
:
1
},
{
name
:
"额外增重百分比"
,
value
:
"extraWeightPercent"
,
width
:
"140"
,
align
:
"center"
,
status
:
1
},
{
name
:
"高价百分比"
,
value
:
"highPriceWeightPercent"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"低价百分比"
,
value
:
"lowPriceWeightPercent"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班优先级"
,
value
:
"priorityName"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"配舱优先级"
,
value
:
"priorityRuleName"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"创建人"
,
value
:
"createUserName"
,
width
:
"90"
,
align
:
"center"
,
status
:
1
},
{
name
:
"创建时间"
,
value
:
"createTime"
,
width
:
"100"
,
align
:
"center"
,
status
:
1
},
{
name
:
"最后修改人"
,
value
:
"lastModifyUserName"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"最后修改时间"
,
value
:
"lastModifyTime"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
],
//手动配舱
"cargoAllocation"
:
[
{
name
:
"口岸代码"
,
value
:
"portName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"取件日期"
,
value
:
"pickUpDate"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"取件扫描号"
,
value
:
"pickUpScanNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"站点"
,
value
:
"siteName"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"运单号"
,
value
:
"waybillNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"总单号"
,
value
:
"totalWaybillNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"服务类型"
,
value
:
"serviceTypeName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"服务代码"
,
value
:
"serviceCode"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"URSA"
,
value
:
"ursa"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"申报类型"
,
value
:
"typeName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"HandlingCode"
,
value
:
"handingCode"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"subcategory"
,
value
:
"subCategory"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"件数"
,
value
:
"qty"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"实际重量"
,
value
:
"actualWeight"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"收件人国家代码"
,
value
:
"consigneeCountry"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"品名描述"
,
value
:
"nameDescription"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
false
,
status
:
1
},
{
name
:
"海关回执状态"
,
value
:
"customsReceiptStatusName"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预审状态"
,
value
:
"preQualificationStatus"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"航班预审意见"
,
value
:
"caPretrialOpinion"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"货物状态"
,
value
:
"statusName"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"终配航班号"
,
value
:
"finalFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"终配航班日期"
,
value
:
"finalFlightTime"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"二配航班号"
,
value
:
"twoMatchFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"二配航班日期"
,
value
:
"twoMatchFlightTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预配航班号"
,
value
:
"preplanFlightNo"
,
width
:
"120"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"预配航班日期"
,
value
:
"preplanFlightTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航班号"
,
value
:
"fltNoAccs"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航班日期"
,
value
:
"fltDateAccs"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"ACCS原航线"
,
value
:
"accsFlightRoute"
,
width
:
"140"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"是否RDE手工录入"
,
value
:
"manualRde"
,
width
:
"170"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"是否自动"
,
value
:
"cargoRulesStatus"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"发件人账号"
,
value
:
"shipperAccount"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"发件公司中文名称"
,
value
:
"shipperCompany"
,
width
:
"150"
,
align
:
"center"
,
status
:
1
},
{
name
:
"始发地城市名称"
,
value
:
"originCity"
,
width
:
"130"
,
align
:
"center"
,
status
:
1
},
{
name
:
"收件地"
,
value
:
"destinationSiteName"
,
width
:
"90"
,
align
:
"center"
,
status
:
1
},
{
name
:
"尺寸"
,
value
:
"sizeStr"
,
width
:
"80"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"大货预审意见(是否可以配置航班)"
,
value
:
"bigPretrialOpinion"
,
width
:
"250"
,
align
:
"center"
,
status
:
1
},
{
name
:
"大货预审时间"
,
value
:
"bigPretrialTime"
,
width
:
"120"
,
align
:
"center"
,
status
:
1
},
{
name
:
"海关回执时间"
,
value
:
"customsReceiptTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"航班预审时间"
,
value
:
"caPretrialTime"
,
width
:
"150"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"创建人"
,
value
:
"createUserName"
,
width
:
"90"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
{
name
:
"创建时间"
,
value
:
"createTime"
,
width
:
"100"
,
align
:
"center"
,
sorTable
:
true
,
status
:
1
},
],
//角色设置
"role"
:
[
{
name
:
"角色名称"
,
value
:
"name"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"角色状态"
,
value
:
"valid"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"创建人"
,
value
:
"createUserName"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"创建时间"
,
value
:
"createTime"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"修改时间"
,
value
:
"updateTime"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"备注"
,
value
:
"remark"
,
width
:
"400px"
,
align
:
"center"
,
status
:
1
},
],
//用户设置
"user"
:
[
{
name
:
"员工号"
,
value
:
"loginName"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"用户姓名"
,
value
:
"username"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"所属口岸"
,
value
:
"portName"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"所属角色"
,
value
:
"roleNames"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"电子邮箱"
,
value
:
"email"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"用户状态"
,
value
:
"isValid"
,
width
:
"100px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"修改时间"
,
value
:
"updateTime"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
{
name
:
"备注"
,
value
:
"remark"
,
width
:
"150px"
,
align
:
"center"
,
status
:
1
},
],
"DM"
:
[
{
name
:
"DMaccsId"
,
value
:
"dmAccsId"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"创建时间"
,
value
:
"dmCreateTime"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"落地时间"
,
value
:
"dmSendTime"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班号"
,
value
:
"dmFlightNbr"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"航班日期"
,
value
:
"dmFlightDate"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"货物创建时间"
,
value
:
"cargoCreateTime"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"推送状态"
,
value
:
"cargoAllocationDataStatus"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"ACCS航线"
,
value
:
"flightFltDate"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"ACCS Pool"
,
value
:
"flightFltNo"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"消息代码"
,
value
:
"sendLogSendTime"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"消息发送时间"
,
value
:
"sendLogSendResult"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
],
"dict"
:
[
{
name
:
"数据名称"
,
value
:
"chineseName"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"字典CODE"
,
value
:
"code"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"描述"
,
value
:
"description"
,
width
:
""
,
align
:
"center"
,
status
:
1
}
],
"dictServiceCode"
:
[
{
name
:
""
,
value
:
"serviceCodeMapperList"
,
width
:
""
,
align
:
"center"
,
expand
:
true
,
status
:
1
},
{
name
:
"数据名称"
,
value
:
"chineseName"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"字典CODE"
,
value
:
"code"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
{
name
:
"描述"
,
value
:
"description"
,
width
:
""
,
align
:
"center"
,
status
:
1
}
],
"dictServiceCodeChildren"
:
[
{
name
:
"数据名称"
,
value
:
"serviceCodeValue"
,
width
:
""
,
align
:
"center"
,
status
:
1
},
]
}
export
default
tableHeaders
;
\ No newline at end of file
src/assets/styles/FedEx.scss
View file @
3129c52
...
...
@@ -8,6 +8,10 @@
width
:
100%
!
important
;
}
.wid95
{
width
:
95%
!
important
;
}
.wid90
{
width
:
90%
!
important
;
}
...
...
@@ -80,9 +84,9 @@
margin-left
:
20px
;
}
.el-dialog
:not
(
.is-fullscreen
)
{
margin-top
:
6vh
!
important
;
}
//
.el-dialog:not(.is-fullscreen) {
//
margin-top: 6vh !important;
//
}
.el-table
{
...
...
@@ -108,13 +112,13 @@
.form-header
{
font-size
:
15px
;
color
:
#6379bb
;
border-bottom
:
1px
solid
#ddd
;
//
border-bottom: 1px solid #ddd;
margin
:
8px
10px
25px
10px
;
padding-top
:
15px
;
padding-bottom
:
5px
;
.formItem
{
width
:
9
0
%
;
width
:
9
5
%
;
// max-width: 300px;
}
}
...
...
src/assets/styles/index.scss
View file @
3129c52
...
...
@@ -26,6 +26,10 @@ html {
height
:
100%
;
}
input
{
background-color
:
#fff
!
important
;
}
*,
*
:before
,
*
:after
{
...
...
@@ -193,8 +197,8 @@ aside {
.el-table__body-wrapper
{
&
:
:-
webkit-scrollbar
{
height
:
10
px
;
width
:
10
px
;
height
:
7
px
;
width
:
7
px
;
}
&
:
:-
webkit-scrollbar-track
{
...
...
@@ -210,6 +214,13 @@ aside {
}
}
.el-scrollbar__wrap
{
&
:
:-
webkit-scrollbar
{
height
:
0px
;
width
:
0px
;
}
}
// 解决表格固定列问题
.el-table__fixed
,
.el-table__fixed-right
{
...
...
src/layout/components/Navbar.vue
View file @
3129c52
...
...
@@ -133,7 +133,7 @@ export default {
});
},
local(val) {
this.$i18n.locale = val; //此处val为 zh 或者 en
//
this.$i18n.locale = val; //此处val为 zh 或者 en
},
},
};
...
...
src/main.js
View file @
3129c52
...
...
@@ -11,20 +11,18 @@ import App from './App'
import
store
from
'./store'
import
router
from
'./router'
import
permission
from
'./directive/permission'
// import i18n from './i18n/index'
import
'./assets/icons'
// icon
import
'./permission'
// permission control
//import { getDicts } from "@/api/system/dict/data";
//import { getConfigKey } from "@/api/system/config";
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/FedEx"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
,
upCase
,
nowDate
}
from
"@/utils/FedEx"
;
import
Pagination
from
"@/components/Pagination"
;
// 自定义表格工具扩展
import
RightToolbar
from
"@/components/RightToolbar"
import
Table
from
"@/components/Table"
import
tableHeaders
from
'@/assets/languages/tableHeaders'
// 全局方法挂载
//Vue.prototype.getDicts = getDicts
//Vue.prototype.getConfigKey = getConfigKey
Vue
.
prototype
.
parseTime
=
parseTime
Vue
.
prototype
.
resetForm
=
resetForm
Vue
.
prototype
.
addDateRange
=
addDateRange
...
...
@@ -32,11 +30,18 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue
.
prototype
.
selectDictLabels
=
selectDictLabels
Vue
.
prototype
.
download
=
download
Vue
.
prototype
.
handleTree
=
handleTree
Vue
.
prototype
.
upCase
=
upCase
Vue
.
prototype
.
nowDate
=
nowDate
Vue
.
prototype
.
tableHeaders
=
tableHeaders
Vue
.
prototype
.
msgSuccess
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"success"
});
}
Vue
.
prototype
.
msgWarning
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"warning"
});
}
Vue
.
prototype
.
msgError
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"error"
});
}
...
...
@@ -48,7 +53,7 @@ Vue.prototype.msgInfo = function (msg) {
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'Tables'
,
Table
)
Vue
.
component
(
'Tables'
,
Table
)
Vue
.
use
(
permission
)
/**
...
...
@@ -62,8 +67,7 @@ Vue.use(permission)
Vue
.
use
(
Element
,
{
//size: Cookies.get('size') || 'medium' // set element-ui default size
size
:
localStorage
.
getItem
(
'size'
)
||
'medium'
// set element-ui default size
// size: localStorage.getItem('size') || 'medium' // set element-ui default size
})
Vue
.
config
.
productionTip
=
false
...
...
@@ -72,5 +76,6 @@ new Vue({
el
:
'#app'
,
router
,
store
,
// i18n,
render
:
h
=>
h
(
App
)
})
...
...
src/utils/FedEx.js
View file @
3129c52
...
...
@@ -3,180 +3,186 @@
* Copyright (c) 2019 FedEx
*/
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
// 日期格式化
export
function
parseTime
(
time
,
pattern
)
{
//debugger
if
(
arguments
.
length
===
0
||
!
time
)
{
return
null
}
const
format
=
pattern
||
'{y}-{m}-{d} {h}:{i}:{s}'
let
date
if
(
typeof
time
===
'object'
)
{
date
=
time
}
else
{
if
((
typeof
time
===
'string'
)
&&
(
/^
[
0-9
]
+$/
.
test
(
time
)))
{
time
=
parseInt
(
time
)
}
else
if
(
typeof
time
===
'string'
)
{
time
=
time
.
replace
(
new
RegExp
(
/-/gm
),
'/'
);
}
if
((
typeof
time
===
'number'
)
&&
(
time
.
toString
().
length
===
10
))
{
time
=
time
*
1000
}
date
=
new
Date
(
time
)
}
const
formatObj
=
{
y
:
date
.
getFullYear
(),
m
:
date
.
getMonth
()
+
1
,
d
:
date
.
getDate
(),
h
:
date
.
getHours
(),
i
:
date
.
getMinutes
(),
s
:
date
.
getSeconds
(),
a
:
date
.
getDay
()
}
const
time_str
=
format
.
replace
(
/{
(
y|m|d|h|i|s|a
)
+}/g
,
(
result
,
key
)
=>
{
let
value
=
formatObj
[
key
]
// Note: getDay() returns 0 on Sunday
if
(
key
===
'a'
)
{
return
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
][
value
]
}
if
(
result
.
length
>
0
&&
value
<
10
)
{
value
=
'0'
+
value
}
return
value
||
0
})
return
time_str
}
// 表单重置
export
function
resetForm
(
refName
)
{
if
(
this
.
$refs
[
refName
])
{
this
.
$refs
[
refName
].
resetFields
();
}
}
// 添加日期范围
export
function
addDateRange
(
params
,
dateRange
,
propName
)
{
var
search
=
params
;
search
.
params
=
{};
if
(
null
!=
dateRange
&&
''
!=
dateRange
)
{
if
(
typeof
(
propName
)
===
"undefined"
)
{
search
.
params
[
"beginTime"
]
=
dateRange
[
0
];
search
.
params
[
"endTime"
]
=
dateRange
[
1
];
}
else
{
search
.
params
[
"begin"
+
propName
]
=
dateRange
[
0
];
search
.
params
[
"end"
+
propName
]
=
dateRange
[
1
];
}
}
return
search
;
}
// 回显数据字典
export
function
selectDictLabel
(
datas
,
value
)
{
var
actions
=
[];
Object
.
keys
(
datas
).
some
((
key
)
=>
{
if
(
datas
[
key
].
dictValue
==
(
''
+
value
))
{
actions
.
push
(
datas
[
key
].
dictLabel
);
return
true
;
}
})
return
actions
.
join
(
''
);
}
// 回显数据字典(字符串数组)
export
function
selectDictLabels
(
datas
,
value
,
separator
)
{
var
actions
=
[];
var
currentSeparator
=
undefined
===
separator
?
","
:
separator
;
var
temp
=
value
.
split
(
currentSeparator
);
Object
.
keys
(
value
.
split
(
currentSeparator
)).
some
((
val
)
=>
{
Object
.
keys
(
datas
).
some
((
key
)
=>
{
if
(
datas
[
key
].
dictValue
==
(
''
+
temp
[
val
]))
{
actions
.
push
(
datas
[
key
].
dictLabel
+
currentSeparator
);
}
})
})
return
actions
.
join
(
''
).
substring
(
0
,
actions
.
join
(
''
).
length
-
1
);
}
// 通用下载方法
export
function
download
(
fileName
)
{
window
.
location
.
href
=
baseURL
+
"/common/download?fileName="
+
encodeURI
(
fileName
)
+
"&delete="
+
true
;
}
// 字符串格式化(%s )
export
function
sprintf
(
str
)
{
var
args
=
arguments
,
flag
=
true
,
i
=
1
;
str
=
str
.
replace
(
/%s/g
,
function
()
{
var
arg
=
args
[
i
++
];
if
(
typeof
arg
===
'undefined'
)
{
flag
=
false
;
return
''
;
}
return
arg
;
});
return
flag
?
str
:
''
;
}
// 转换字符串,undefined,null等转化为""
export
function
praseStrEmpty
(
str
)
{
if
(
!
str
||
str
==
"undefined"
||
str
==
"null"
)
{
return
""
;
}
return
str
;
}
/**
* 构造树型结构数据
* @param {*} data 数据源
* @param {*} id id字段 默认 'id'
* @param {*} parentId 父节点字段 默认 'parentId'
* @param {*} children 孩子节点字段 默认 'children'
*/
export
function
handleTree
(
data
,
id
,
parentId
,
children
)
{
let
config
=
{
id
:
id
||
'id'
,
parentId
:
parentId
||
'parentId'
,
childrenList
:
children
||
'children'
};
var
childrenListMap
=
{};
var
nodeIds
=
{};
var
tree
=
[];
for
(
let
d
of
data
)
{
let
parentId
=
d
[
config
.
parentId
];
if
(
childrenListMap
[
parentId
]
==
null
)
{
childrenListMap
[
parentId
]
=
[];
}
nodeIds
[
d
[
config
.
id
]]
=
d
;
childrenListMap
[
parentId
].
push
(
d
);
}
for
(
let
d
of
data
)
{
let
parentId
=
d
[
config
.
parentId
];
if
(
nodeIds
[
parentId
]
==
null
)
{
tree
.
push
(
d
);
}
}
for
(
let
t
of
tree
)
{
adaptToChildrenList
(
t
);
}
function
adaptToChildrenList
(
o
)
{
if
(
childrenListMap
[
o
[
config
.
id
]]
!==
null
)
{
o
[
config
.
childrenList
]
=
childrenListMap
[
o
[
config
.
id
]];
}
if
(
o
[
config
.
childrenList
])
{
for
(
let
c
of
o
[
config
.
childrenList
])
{
adaptToChildrenList
(
c
);
}
}
}
return
tree
;
}
//字符串英文转大写,;转英文;
export
function
upCase
(
str
){
let
newStr
=
str
.
replace
(
/;/g
,
";"
).
toUpperCase
();
return
newStr
;
}
\ No newline at end of file
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
// 日期格式化
export
function
parseTime
(
time
,
pattern
)
{
//debugger
if
(
arguments
.
length
===
0
||
!
time
)
{
return
null
}
const
format
=
pattern
||
'{y}-{m}-{d} {h}:{i}:{s}'
let
date
if
(
typeof
time
===
'object'
)
{
date
=
time
}
else
{
if
((
typeof
time
===
'string'
)
&&
(
/^
[
0-9
]
+$/
.
test
(
time
)))
{
time
=
parseInt
(
time
)
}
else
if
(
typeof
time
===
'string'
)
{
time
=
time
.
replace
(
new
RegExp
(
/-/gm
),
'/'
);
}
if
((
typeof
time
===
'number'
)
&&
(
time
.
toString
().
length
===
10
))
{
time
=
time
*
1000
}
date
=
new
Date
(
time
)
}
const
formatObj
=
{
y
:
date
.
getFullYear
(),
m
:
date
.
getMonth
()
+
1
,
d
:
date
.
getDate
(),
h
:
date
.
getHours
(),
i
:
date
.
getMinutes
(),
s
:
date
.
getSeconds
(),
a
:
date
.
getDay
()
}
const
time_str
=
format
.
replace
(
/{
(
y|m|d|h|i|s|a
)
+}/g
,
(
result
,
key
)
=>
{
let
value
=
formatObj
[
key
]
// Note: getDay() returns 0 on Sunday
if
(
key
===
'a'
)
{
return
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
][
value
]
}
if
(
result
.
length
>
0
&&
value
<
10
)
{
value
=
'0'
+
value
}
return
value
||
0
})
return
time_str
}
// 表单重置
export
function
resetForm
(
refName
)
{
if
(
this
.
$refs
[
refName
])
{
this
.
$refs
[
refName
].
resetFields
();
}
}
// 添加日期范围
export
function
addDateRange
(
params
,
dateRange
,
propName
)
{
var
search
=
params
;
search
.
params
=
{};
if
(
null
!=
dateRange
&&
''
!=
dateRange
)
{
if
(
typeof
(
propName
)
===
"undefined"
)
{
search
.
params
[
"beginTime"
]
=
dateRange
[
0
];
search
.
params
[
"endTime"
]
=
dateRange
[
1
];
}
else
{
search
.
params
[
"begin"
+
propName
]
=
dateRange
[
0
];
search
.
params
[
"end"
+
propName
]
=
dateRange
[
1
];
}
}
return
search
;
}
// 回显数据字典
export
function
selectDictLabel
(
datas
,
value
)
{
var
actions
=
[];
Object
.
keys
(
datas
).
some
((
key
)
=>
{
if
(
datas
[
key
].
dictValue
==
(
''
+
value
))
{
actions
.
push
(
datas
[
key
].
dictLabel
);
return
true
;
}
})
return
actions
.
join
(
''
);
}
// 回显数据字典(字符串数组)
export
function
selectDictLabels
(
datas
,
value
,
separator
)
{
var
actions
=
[];
var
currentSeparator
=
undefined
===
separator
?
","
:
separator
;
var
temp
=
value
.
split
(
currentSeparator
);
Object
.
keys
(
value
.
split
(
currentSeparator
)).
some
((
val
)
=>
{
Object
.
keys
(
datas
).
some
((
key
)
=>
{
if
(
datas
[
key
].
dictValue
==
(
''
+
temp
[
val
]))
{
actions
.
push
(
datas
[
key
].
dictLabel
+
currentSeparator
);
}
})
})
return
actions
.
join
(
''
).
substring
(
0
,
actions
.
join
(
''
).
length
-
1
);
}
// 通用下载方法
export
function
download
(
fileName
)
{
window
.
location
.
href
=
baseURL
+
"/common/download?fileName="
+
encodeURI
(
fileName
)
+
"&delete="
+
true
;
}
// 字符串格式化(%s )
export
function
sprintf
(
str
)
{
var
args
=
arguments
,
flag
=
true
,
i
=
1
;
str
=
str
.
replace
(
/%s/g
,
function
()
{
var
arg
=
args
[
i
++
];
if
(
typeof
arg
===
'undefined'
)
{
flag
=
false
;
return
''
;
}
return
arg
;
});
return
flag
?
str
:
''
;
}
// 转换字符串,undefined,null等转化为""
export
function
praseStrEmpty
(
str
)
{
if
(
!
str
||
str
==
"undefined"
||
str
==
"null"
)
{
return
""
;
}
return
str
;
}
/**
* 构造树型结构数据
* @param {*} data 数据源
* @param {*} id id字段 默认 'id'
* @param {*} parentId 父节点字段 默认 'parentId'
* @param {*} children 孩子节点字段 默认 'children'
*/
export
function
handleTree
(
data
,
id
,
parentId
,
children
)
{
let
config
=
{
id
:
id
||
'id'
,
parentId
:
parentId
||
'parentId'
,
childrenList
:
children
||
'children'
};
var
childrenListMap
=
{};
var
nodeIds
=
{};
var
tree
=
[];
for
(
let
d
of
data
)
{
let
parentId
=
d
[
config
.
parentId
];
if
(
childrenListMap
[
parentId
]
==
null
)
{
childrenListMap
[
parentId
]
=
[];
}
nodeIds
[
d
[
config
.
id
]]
=
d
;
childrenListMap
[
parentId
].
push
(
d
);
}
for
(
let
d
of
data
)
{
let
parentId
=
d
[
config
.
parentId
];
if
(
nodeIds
[
parentId
]
==
null
)
{
tree
.
push
(
d
);
}
}
for
(
let
t
of
tree
)
{
adaptToChildrenList
(
t
);
}
function
adaptToChildrenList
(
o
)
{
if
(
childrenListMap
[
o
[
config
.
id
]]
!==
null
)
{
o
[
config
.
childrenList
]
=
childrenListMap
[
o
[
config
.
id
]];
}
if
(
o
[
config
.
childrenList
])
{
for
(
let
c
of
o
[
config
.
childrenList
])
{
adaptToChildrenList
(
c
);
}
}
}
return
tree
;
}
//字符串英文转大写,;转英文;
export
function
upCase
(
str
)
{
let
newStr
=
str
.
replace
(
/;/g
,
";"
).
toUpperCase
();
return
newStr
;
}
//当前日期
export
function
nowDate
()
{
let
date
=
new
Date
()
return
`
${
date
.
getFullYear
()}
-
${(
date
.
getMonth
()
+
1
)
>
9
?
(
date
.
getMonth
()
+
1
)
:
'0'
+
(
date
.
getMonth
()
+
1
)}
-
${(
date
.
getDate
())
>
9
?
date
.
getDate
()
:
'0'
+
(
date
.
getDate
())}
`
}
\ No newline at end of file
...
...
src/views/allocationConfig/cargoAllocation/index.vue
View file @
3129c52
...
...
@@ -204,293 +204,7 @@ export default {
customsReceiptStatusId: null,
accsPool: "OSPR"
}, //查询数据
tableHeader: [
{
name: "口岸代码",
value: "portName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "取件日期",
value: "pickUpDate",
width: "120",
align: "center",
sorTable: true,
},
{
name: "取件扫描号",
value: "pickUpScanNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "站点",
value: "siteName",
width: "80",
align: "center",
sorTable: true,
},
{
name: "运单号",
value: "waybillNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "总单号",
value: "totalWaybillNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "服务类型",
value: "serviceTypeName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "服务代码",
value: "serviceCode",
width: "100",
align: "center",
},
{
name: "URSA",
value: "ursa",
width: "100",
align: "center",
sorTable: true,
},
{
name: "申报类型",
value: "typeName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "HandlingCode",
value: "handingCode",
width: "150",
align: "center",
sorTable: true,
},
{
name: "subcategory",
value: "subCategory",
width: "140",
align: "center",
sorTable: true,
},
{
name: "件数",
value: "qty",
width: "80",
align: "center",
sorTable: true,
},
{
name: "实际重量",
value: "actualWeight",
width: "100",
align: "center",
sorTable: true,
},
{
name: "收件人国家代码",
value: "consigneeCountry",
width: "150",
align: "center",
sorTable: true,
},
{
name: "品名描述",
value: "nameDescription",
width: "100",
align: "center",
},
{
name: "海关回执状态",
value: "customsReceiptStatusName",
width: "140",
align: "center",
sorTable: true,
},
{
name: "预审状态",
value: "preQualificationStatus",
width: "100",
align: "center",
sorTable: true,
},
{
name: "航班预审意见",
value: "caPretrialOpinion",
width: "120",
align: "center",
},
{
name: "货物状态",
value: "statusName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "终配航班号",
value: "finalFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "终配航班日期",
value: "finalFlightTime",
width: "140",
align: "center",
sorTable: true,
},
{
name: "二配航班号",
value: "twoMatchFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "二配航班日期",
value: "twoMatchFlightTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "预配航班号",
value: "preplanFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "预配航班日期",
value: "preplanFlightTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航班号",
value: "fltNoAccs",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航班日期",
value: "fltDateAccs",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航线",
value: "accsFlightRoute",
width: "140",
align: "center",
sorTable: true,
},
{
name: "是否RDE手工录入",
value: "manualRde",
width: "170",
align: "center",
sorTable: true,
},
{
name: "是否自动",
value: "cargoRulesStatus",
width: "100",
align: "center",
sorTable: true,
},
{
name: "发件人账号",
value: "shipperAccount",
width: "120",
align: "center",
},
{
name: "发件公司中文名称",
value: "shipperCompany",
width: "150",
align: "center",
},
{
name: "始发地城市名称",
value: "originCity",
width: "130",
align: "center",
},
{
name: "收件地",
value: "destinationSiteName",
width: "90",
align: "center",
},
{
name: "尺寸",
value: "sizeStr",
width: "80",
align: "center",
sorTable: true,
},
{
name: "大货预审意见(是否可以配置航班)",
value: "bigPretrialOpinion",
width: "250",
align: "center",
},
{
name: "大货预审时间",
value: "bigPretrialTime",
width: "120",
align: "center",
},
{
name: "海关回执时间",
value: "customsReceiptTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "航班预审时间",
value: "caPretrialTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "创建人",
value: "createUserName",
width: "90",
align: "center",
sorTable: true,
},
{
name: "创建时间",
value: "createTime",
width: "100",
align: "center",
sorTable: true,
},
], //表头数据
tableHeader: this.tableHeaders['cargoAllocation'], //表头数据
tableData: [], //表格数据
tableSelection: [], //选中数据
selectData: {
...
...
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
3129c52
...
...
@@ -50,7 +50,7 @@
<el-button type="text" size="mini" icon="el-icon-edit" v-hasPermi="['allocation:alloc:update']"
@click="handleClick(scope.row.id, 'update')">修改</el-button>
<el-button type="text" size="mini" icon="el-icon-delete" v-hasPermi="['allocation:alloc:delete']"
@click="del(scope.row.id, scope.row.status)">删除</el-button>
@click="del(scope.row.id, scope.row.status)"
style="color:#ff4949"
>删除</el-button>
<el-button type="text" size="mini" icon="el-icon-video-pause" v-hasPermi="['allocation:alloc:openClose']"
@click="changeStatus(scope.row.id, 3)" v-if="scope.row.status == '1'">停用</el-button>
<el-button type="text" size="mini" icon="el-icon-video-play" v-hasPermi="['allocation:alloc:openClose']"
...
...
src/views/allocationConfig/flightRandConfig/index.vue
View file @
3129c52
...
...
@@ -51,8 +51,8 @@
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" v-hasPermi="['allocation:rand:update']"
@click="handleUpdate(scope.row)">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete"
v-hasPermi="['allocation:rand:delete']
"
@click="handleDeleteorPlayorpause(scope.row, 0, '删除')">
<el-button size="mini" type="text" icon="el-icon-delete"
style="color:#ff4949
"
v-hasPermi="['allocation:rand:delete']"
@click="handleDeleteorPlayorpause(scope.row, 0, '删除')">
删除</el-button>
<el-button size="mini" type="text" icon="el-icon-video-play" v-if="scope.row.status == '3'"
v-hasPermi="['allocation:rand:openClose']" @click="handleDeleteorPlayorpause(scope.row, 1, '启用')">启用
...
...
src/views/basicInformation/caExportPreQualification/index.vue
View file @
3129c52
...
...
@@ -25,7 +25,7 @@
<el-col :span="6">
<el-form-item label="运单号">
<el-input clearable type="textarea" v-model="queryParams.waybillNo" class="formItem"
placeholder="请输入运单号(回车间隔)" :rows="1"></el-input>
placeholder="请输入运单号(回车间隔)" :rows="1"
:maxlength="12000"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
3129c52
<template>
<div>
<el-form class="form-header" :model="queryParams" ref="queryForm" label-position="right" label-width="auto"
size="
medium
">
size="
small
">
<el-row>
<el-col :span="6">
<el-form-item label="航班日期从" prop="fltDateStart">
...
...
@@ -64,10 +64,10 @@
</el-button>
</el-form>
<Tables ref="flightInfoTable" ductName="FlightInformation" :data="findAllFltDatList" :headerData="tableHeader"
:
infoData="tableHeader" :order="true" :selection="true" :totalCount="total" :loading="loading
"
:
limitSize="queryParams.limitSize" :page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight
"
:pageSizes="[20, 30, 40, 50, 100]" @tableSelect="tableSelect" @tableSelectAll="tableSelectAll
"
@
currentChange="currentChange" @
sortChange="sortChange" @sizeChange="sizeChange">
:
order="true" :selection="true" :totalCount="total" :loading="loading" :limitSize="queryParams.limitSize
"
:
page="queryParams.pageNum" :shiftKey="shiftKey" :height="tableHeight" :pageSizes="[20, 30, 40, 50, 100]
"
@tableSelect="tableSelect" @tableSelectAll="tableSelectAll" @currentChange="currentChange
"
@sortChange="sortChange" @sizeChange="sizeChange">
<template slot="optionColumn">
<el-table-column v-if="findAllFltDatList.length > 0" label="操作" align="center"
class-name="small-padding fixed-width" fixed="right">
...
...
@@ -79,8 +79,9 @@
</template>
</Tables>
<!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true">
<el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto">
<el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"
:show-close="false">
<el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="auto" size="small">
<el-row>
<el-col :span="12">
<el-form-item label="航班号" prop="fltNo">
...
...
@@ -98,9 +99,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="CutOff时间" prop="cutOffTime">
<el-select class="wid80" v-model="form.cutOffTime" clearable placeholder="选择时间(
hh:mm:ss
)" type="string"
filterable
allow-create default-first-option
>
<el-form-item label="
Pre-MDE
CutOff时间" prop="cutOffTime">
<el-select class="wid80" v-model="form.cutOffTime" clearable placeholder="选择时间(
输入查找选项
)" type="string"
filterable>
<el-option v-for="item in selectOption.cutOffTime" :key="item" :label="item" :value="item">
</el-option>
</el-select>
...
...
@@ -108,7 +109,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="航班路线" prop="route">
<el-input class="wid80" v-model="form.route" placeholder="请输入航班路线" />
<el-input class="wid80" v-model="form.route" placeholder="请输入航班路线
(XXX-XXX字母大写)
" />
</el-form-item>
</el-col>
</el-row>
...
...
@@ -228,7 +229,7 @@
</div>
</el-dialog>
<el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible" :close-on-click-modal="false"
:append-to-body="true">
:append-to-body="true"
:show-close="false"
>
<el-table :data="gridData">
<el-table-column property="fltNo" label="航班号"></el-table-column>
<el-table-column property="fltDate" label="航班日期"></el-table-column>
...
...
@@ -249,6 +250,7 @@ import {
updateStatusBatch,
updateAutoPushBatch,
} from "@/api/findAllFltData";
export default {
name: "FlightInformationMaintenance",
data() {
...
...
@@ -297,168 +299,22 @@ export default {
trigger: "blur",
},
],
// route: [
// {
// required: true,
// message: "航班线路不能为空",
// trigger: "blur",
// },
// {
// pattern: /^([A-Z]{3,4})(\-[A-Z]{3,4})+$/,
// message: "请输入正确得航班线路"
// }
// ]
},
//原航班规则数据
findAllFltDatList: [],
//表头
tableHeader: [
{
name: "航班日期",
value: "fltDate",
width: "100",
align: "center",
},
{
name: "航班起飞时间",
value: "takeOffTime",
width: "120",
align: "center",
},
{
name: "CutOff时间",
value: "cutOffTime",
width: "110",
align: "center",
},
{
name: "航班号",
value: "fltNo",
width: "100",
align: "center",
},
{
name: "航班路线",
value: "route",
width: "140",
align: "center",
},
{
name: "航班类型",
value: "typeName",
width: "100",
align: "center",
},
{
name: "航班种类",
value: "flightKindName",
width: "100",
align: "center",
},
{
name: "航班状态",
value: "statusName",
width: "100",
align: "center",
},
{
name: "是否自动推送",
value: "pushDateSwitch",
width: "120",
align: "center",
},
{
name: "总重量",
value: "totalWeight",
width: "90",
align: "center",
},
{
name: "原始重量(KG)",
value: "originalWeight",
width: "120",
align: "center",
},
{
name: "已配重量",
value: "alloctedWeight",
width: "90",
align: "center",
},
{
name: "是否需要预审",
value: "needRequired",
width: "130",
align: "center",
},
{
name: "是否开启高低价",
value: "highLowPriceFlg",
width: "140",
align: "center",
},
{
name: "是否限制一票一件",
value: "ticketToPiece",
width: "140",
align: "center",
},
{
name: "额外增重百分比",
value: "extraWeightPercent",
width: "140",
align: "center",
},
{
name: "高价百分比",
value: "highPriceWeightPercent",
width: "120",
align: "center",
},
{
name: "低价百分比",
value: "lowPriceWeightPercent",
width: "120",
align: "center",
},
{
name: "总体积(cm³)",
value: "totalVolume",
width: "100",
align: "center",
},
{
name: "已配体积(cm³)",
value: "alloctedVolume",
width: "120",
align: "center",
},
{
name: "航班优先级",
value: "priorityName",
width: "100",
align: "center",
},
{
name: "配舱优先级",
value: "priorityRuleName",
width: "100",
align: "center",
},
{
name: "创建人",
value: "createUserName",
width: "90",
align: "center",
},
{
name: "创建时间",
value: "createTime",
width: "100",
align: "center",
},
{
name: "最后修改人",
value: "lastModifyUserName",
width: "120",
align: "center",
},
{
name: "最后修改时间",
value: "lastModifyTime",
width: "120",
align: "center",
},
],
tableHeader: this.tableHeaders['FlightInformation'],
//删除失败数据
gridData: [],
//form属性禁用状态
...
...
@@ -487,29 +343,53 @@ export default {
//cutOffTime数据
cutOffTime: [
"00:00:00",
"00:30:00",
"01:00:00",
"01:30:00",
"02:00:00",
"02:30:00",
"03:00:00",
"03:30:00",
"04:00:00",
"04:30:00",
"05:00:00",
"05:30:00",
"06:00:00",
"06:30:00",
"07:00:00",
"07:30:00",
"08:00:00",
"08:30:00",
"09:00:00",
"09:30:00",
"10:00:00",
"10:30:00",
"11:00:00",
"11:30:00",
"12:00:00",
"12:30:00",
"13:00:00",
"13:30:00",
"14:00:00",
"14:30:00",
"15:00:00",
"15:30:00",
"16:00:00",
"16:30:00",
"17:00:00",
"17:30:00",
"18:00:00",
"18:30:00",
"19:00:00",
"19:30:00",
"20:00:00",
"20:30:00",
"21:00:00",
"21:30:00",
"22:00:00",
"22:30:00",
"23:00:00",
"23:30:00",
],
},
//选中数组
...
...
@@ -540,14 +420,14 @@ export default {
},
created() {
//查询条件数据源
let date = new Date()
this.queryParams.fltDateStart = `${date.getFullYear()}-${(date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : '0' + (date.getMonth() + 1)}-${(date.getDate()) > 9 ? date.getDate() : '0' + (date.getDate())}`
this.findFltConditionData();
this.queryParams.fltDateStart = this.nowDate()
if (this.$store.state.tagsView.cachedViews.length == 0) {
this.findFltConditionData();
this.findAllFltData();
}
},
activated() {
this.findFltConditionData();
this.findAllFltData();
},
deactivated() {
...
...
@@ -688,6 +568,7 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.findFltConditionData();
this.open = true;
this.title = "添加航班信息";
this.form.id = null;
...
...
@@ -803,6 +684,7 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
this.findFltConditionData();
this.open = true;
this.title = "修改航班信息";
//航班号
...
...
@@ -830,7 +712,6 @@ export default {
this.ids.forEach(item => {
fIds.push(item.id)
})
console.log(fIds)
this.$confirm("是否确认删除所选数据?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
...
...
@@ -915,6 +796,7 @@ export default {
cancel() {
this.open = false;
this.findAllFltData();
this.findFltConditionData();
this.reset();
},
/** 重置按钮操作 */
...
...
@@ -1016,7 +898,20 @@ export default {
this.queryParams.limitSize = val;
this.findAllFltData();
},
setClose() {
this.tableHeader = this.tableHeaders['FlightInformation']
},
},
computed: {
route: {
get: function () {
return this.form.route;
},
set: function (val) {
this.form.route = this.upCase(val);
},
}
}
};
</script>
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
3129c52
...
...
@@ -213,322 +213,7 @@ export default {
limitStart: 1,
limitSize: 100,
}, //表单数据
tableHeader: [
{
name: "口岸代码",
value: "portName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "取件日期",
value: "pickUpDate",
width: "120",
align: "center",
sorTable: true,
},
{
name: "取件扫描号",
value: "pickUpScanNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "站点",
value: "siteName",
width: "80",
align: "center",
sorTable: true,
},
{
name: "运单号",
value: "waybillNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "总单号",
value: "totalWaybillNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "服务类型",
value: "serviceTypeName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "服务代码",
value: "serviceCode",
width: "100",
align: "center",
sorTable: false,
},
{
name: "URSA",
value: "ursa",
width: "100",
align: "center",
sorTable: true,
},
{
name: "推送状态",
value: "cargoAllocationDataStatus",
width: "100",
align: "center",
sorTable: true,
},
{
name: "配舱状态",
value: "flightIdImac",
width: "100",
align: "center",
sorTable: true,
},
{
name: "释放状态",
value: "releasing",
width: "100",
align: "center",
sorTable: true,
},
{
name: "申报类型",
value: "typeName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "ACCSpool",
value: "accsPool",
width: "120",
align: "center",
sorTable: true,
},
{
name: "HandlingCode",
value: "handingCode",
width: "150",
align: "center",
sorTable: true,
},
{
name: "subcategory",
value: "subCategory",
width: "140",
align: "center",
sorTable: true,
},
{
name: "件数",
value: "qty",
width: "80",
align: "center",
sorTable: true,
},
{
name: "实际重量",
value: "actualWeight",
width: "100",
align: "center",
sorTable: true,
},
{
name: "收件人国家代码",
value: "consigneeCountry",
width: "150",
align: "center",
sorTable: true,
},
{
name: "品名描述",
value: "nameDescription",
width: "100",
align: "center",
},
{
name: "海关回执状态",
value: "customsReceiptStatusName",
width: "140",
align: "center",
sorTable: true,
},
{
name: "预审状态",
value: "preQualificationStatus",
width: "100",
align: "center",
sorTable: true,
},
{
name: "航班预审意见",
value: "caPretrialOpinion",
width: "120",
align: "center",
},
{
name: "货物状态",
value: "statusName",
width: "100",
align: "center",
sorTable: true,
},
{
name: "终配航班号",
value: "finalFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "终配航班日期",
value: "finalFlightTime",
width: "140",
align: "center",
sorTable: true,
},
{
name: "二配航班号",
value: "twoMatchFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "二配航班日期",
value: "twoMatchFlightTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "预配航班号",
value: "preplanFlightNo",
width: "120",
align: "center",
sorTable: true,
},
{
name: "预配航班日期",
value: "preplanFlightTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航班号",
value: "fltNoAccs",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航班日期",
value: "fltDateAccs",
width: "150",
align: "center",
sorTable: true,
},
{
name: "ACCS原航线",
value: "accsFlightRoute",
width: "140",
align: "center",
sorTable: true,
},
{
name: "是否RDE手工录入",
value: "manualRde",
width: "170",
align: "center",
sorTable: true,
},
{
name: "是否自动",
value: "cargoRulesStatus",
width: "100",
align: "center",
sorTable: true,
},
{
name: "发件人账号",
value: "shipperAccount",
width: "120",
align: "center",
},
{
name: "发件公司中文名称",
value: "shipperCompany",
width: "150",
align: "center",
},
{
name: "始发地城市名称",
value: "originCity",
width: "130",
align: "center",
},
{
name: "收件地",
value: "destinationSiteName",
width: "90",
align: "center",
},
{
name: "尺寸",
value: "sizeStr",
width: "80",
align: "center",
sorTable: true,
},
{
name: "大货预审意见(是否可以配置航班)",
value: "bigPretrialOpinion",
width: "250",
align: "center",
},
{
name: "大货预审时间",
value: "bigPretrialTime",
width: "120",
align: "center",
},
{
name: "海关回执时间",
value: "customsReceiptTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "航班预审时间",
value: "caPretrialTime",
width: "150",
align: "center",
sorTable: true,
},
{
name: "创建人",
value: "createUserName",
width: "90",
align: "center",
sorTable: true,
},
{
name: "创建时间",
value: "createTime",
width: "100",
align: "center",
sorTable: true,
},
], //表头数据
tableHeader: this.tableHeaders['cargo'], //表头数据
releaseHeader: [
{
name: "提示信息",
...
...
src/views/systemConfig/roleConfig/drawer.vue
View file @
3129c52
...
...
@@ -98,10 +98,7 @@ export default {
if (res.code === 200) {
this.treeData = this.treeDataInfo(res.data);
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -144,16 +141,10 @@ export default {
.then((res) => {
this.loading = false;
if (res.code === 200) {
this.$message({
message: "操作成功,新增权限需重新登陆后刷新。",
type: "success",
});
this.msgSuccess('操作成功,需重新登录已获取新权限。')
this.$emit("handleClose", false);
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
src/views/systemConfig/roleConfig/index.vue
View file @
3129c52
...
...
@@ -30,9 +30,9 @@
<el-button type="primary" icon="el-icon-plus" size="mini" @click="addRole" v-hasPermi="['system:role:add']">新增角色
</el-button>
</div>
<Tables
ductName="role" :data="data" :headerData="tableHeader" :info
Data="tableHeader" :totalCount="total"
<Tables
ref="role" ductName="role" :data="data" :header
Data="tableHeader" :totalCount="total"
:limitSize="formData.size" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :loading="tableLoading"
height="600
" @sizeChange="sizeChange" @currentChange="currentChange">
:height="tableHeight
" @sizeChange="sizeChange" @currentChange="currentChange">
<template slot="optionColumn">
<el-table-column header-align="center" align="center" label="操作">
<template slot-scope="scope">
...
...
@@ -55,7 +55,7 @@
<script>
import Drawer from "./drawer.vue";
import { MessageBox } from "element-ui";
import {
getRoleList,
detailRole,
...
...
@@ -77,44 +77,7 @@ export default {
name: null,
}, //查询条件
data: [], //表格数据
tableHeader: [
{
name: "角色名称",
value: "name",
width: "150px",
align: "center",
},
{
name: "角色状态",
value: "valid",
width: "150px",
align: "center",
},
{
name: "创建人",
value: "createUserName",
width: "150px",
align: "center",
},
{
name: "创建时间",
value: "createTime",
width: "150px",
align: "center",
},
{
name: "修改时间",
value: "updateTime",
width: "150px",
align: "center",
},
{
name: "备注",
value: "remark",
width: "400px",
align: "center",
},
], //表头数据
tableHeader: this.tableHeaders['role'], //表头数据
roleData: {}, //角色详情
createTime: [],
drawer: false,
...
...
@@ -122,6 +85,7 @@ export default {
roleFormDisabled: false,
tableLoading: false,
total: 0,
tableHeight: null
};
},
created() {
...
...
@@ -129,6 +93,9 @@ export default {
this.selectRoleList();
}
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250
},
activated() {
this.selectRoleList();
},
...
...
@@ -153,10 +120,7 @@ export default {
this.data = res.data.list;
this.total = res.data.total;
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -171,10 +135,7 @@ export default {
if (res.code === 200) {
this.roleData = res.data;
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -206,7 +167,7 @@ export default {
row.row.valid == 1
? ((msg = "是否关闭此角色"), (status.valid = 2))
: ((msg = "是否启用此角色"), (status.valid = 1));
MessageBox.
confirm(msg, "注意", {
this.$
confirm(msg, "注意", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
...
...
@@ -214,16 +175,10 @@ export default {
.then(() => {
updateRoleStatus(status).then((res) => {
if (res.code === 200) {
this.$message({
message: "操作成功",
type: "success",
});
this.msgSuccess('操作成功')
this.selectRoleList();
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
});
})
...
...
@@ -231,7 +186,7 @@ export default {
},
//删除角色
removeRole(row) {
MessageBox.
confirm(
this.$
confirm(
"如删除此角色,角色下所有用户将从中被剔除,可能会对用户操作造成影响!",
"注意",
{
...
...
@@ -247,13 +202,10 @@ export default {
confirmDel: false,
}).then((res) => {
if (res.code === 200) {
this.$message({
message: "删除成功",
type: "success",
});
this.msgSuccess('删除成功')
this.selectRoleList();
} else if (res.code === 202) {
MessageBox.
confirm(res.msg, "注意", {
this.$
confirm(res.msg, "注意", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
...
...
@@ -265,20 +217,14 @@ export default {
confirmDel: true,
}).then((res) => {
if (res.code === 200) {
this.$message({
message: "操作成功",
type: "success",
});
this.msgSuccess('操作成功')
this.selectRoleList();
}
});
})
.catch(() => { });
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
});
})
...
...
src/views/systemConfig/userConfig/drawer.vue
View file @
3129c52
...
...
@@ -172,8 +172,6 @@ export default {
},
};
},
created() {
},
watch: {
drawer(val, oldVal) {
if (val) {
...
...
@@ -209,10 +207,7 @@ export default {
}
});
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -225,17 +220,13 @@ export default {
if (res.code === 200) {
this.portNameList = res.data;
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
console.log(err);
});
},
//关闭
handleClose() {
this.roleid = [];
...
...
@@ -246,7 +237,6 @@ export default {
this.clearValidate('userForm')
this.$emit("handleClose", false);
},
//提交
submit() {
if (this.port.join(",").length > 0) {
...
...
@@ -258,16 +248,10 @@ export default {
.then((res) => {
this.loading = false;
if (res.code === 200) {
this.$message({
message: "操作成功",
type: "success",
});
this.msgSuccess('操作成功,需重新登录已获取新权限。')
this.$emit("handleClose", false);
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -275,10 +259,7 @@ export default {
console.log(err);
});
} else {
this.$message({
message: "口岸不能为空",
type: "warning",
});
this.msgWarning('口岸不能为空')
}
},
},
...
...
src/views/systemConfig/userConfig/index.vue
View file @
3129c52
...
...
@@ -29,8 +29,8 @@
</el-button>
</div>
<Tables ductName="user" :data="data" :headerData="tableHeader" :limitSize="formData.size" :totalCount="total"
:loading="loading" :page="formData.page" :pageSizes="[20, 30, 40, 50]"
height="600" @sizeChange="sizeChange
"
@currentChange="currentChange">
:loading="loading" :page="formData.page" :pageSizes="[20, 30, 40, 50]"
:height="tableHeight
"
@
sizeChange="sizeChange" @
currentChange="currentChange">
<template slot="optionColumn">
<el-table-column header-align="center" align="center" width="auto" label="操作">
<template slot-scope="scope">
...
...
@@ -87,7 +87,6 @@
<script>
import Drawer from "./drawer.vue";
import { MessageBox } from "element-ui";
import { listUser, detailUser, updateUserStatus } from "@/api/system/user.js";
export default {
name: "UserConfig",
...
...
@@ -103,56 +102,7 @@ export default {
username: null,
phone: null,
}, //查询条件
tableHeader: [
{
name: "员工号",
value: "loginName",
width: "150px",
align: "center",
},
{
name: "用户姓名",
value: "username",
width: "150px",
align: "center",
},
{
name: "所属口岸",
value: "portName",
width: "150px",
align: "center",
},
{
name: "所属角色",
value: "roleNames",
width: "150px",
align: "center",
},
{
name: "电子邮箱",
value: "email",
width: "150px",
align: "center",
},
{
name: "用户状态",
value: "isValid",
width: "100px",
align: "center",
},
{
name: "修改时间",
value: "updateTime",
width: "150px",
align: "center",
},
{
name: "备注",
value: "remark",
width: "150px",
align: "center",
},
], //表头数据
tableHeader: this.tableHeaders['user'], //表头数据
userData: {}, //用户详情
data: [], //用户列表
drawer: false,
...
...
@@ -161,6 +111,7 @@ export default {
drawerTitle: "",
total: 0,
loading: false,
tableHeight: null
};
},
created() {
...
...
@@ -168,6 +119,9 @@ export default {
this.selectUser();
}
},
mounted() {
this.tableHeight = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250
},
activated() {
this.selectUser();
},
...
...
@@ -189,10 +143,7 @@ export default {
this.total = res.data.total;
this.formData.page = res.data.page;
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
...
...
@@ -200,7 +151,6 @@ export default {
console.log(err);
});
},
//用户详情
userDetail(id) {
detailUser(id)
...
...
@@ -213,17 +163,13 @@ export default {
? this.userData.portName = this.userData.portName.split(",")
: '';
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
})
.catch((err) => {
console.log(err);
});
},
//新增用户
addUser() {
this.userData = {};
...
...
@@ -231,7 +177,6 @@ export default {
this.drawerTitle = "新增用户";
this.userFormDisabled = false;
},
//查询修改用户
buttonClick(row, status) {
this.userDetail(row.row.id);
...
...
@@ -239,7 +184,6 @@ export default {
? (this.userFormDisabled = true)
: (this.userFormDisabled = false);
},
//修改用户状态
userStatus(row) {
let msg = "";
...
...
@@ -247,7 +191,7 @@ export default {
row.row.isValid == 1
? ((msg = "是否要停用此用户"), (nowValid = 2))
: ((msg = "是否要启用此用户"), (nowValid = 1));
MessageBox.
confirm(msg, "提示", {
this.$
confirm(msg, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
...
...
@@ -256,16 +200,10 @@ export default {
updateUserStatus({ id: row.row.id, isValid: nowValid }).then(
(res) => {
if (res.code === 200) {
this.$message({
message: "操作成功",
type: "success",
});
this.msgSuccess('操作成功')
this.selectUser();
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
}
);
...
...
@@ -273,12 +211,11 @@ export default {
.catch((err) => {
console.log(err);
})
.catch(() =>
[]
);
.catch(() =>
{ }
);
},
//删除用户
removeUser(row) {
MessageBox.
confirm("是否要删除此用户", "提示", {
this.$
confirm("是否要删除此用户", "提示", {
confirmButtonText: "确定删除",
cancelButtonText: "取消",
type: "warning",
...
...
@@ -286,36 +223,27 @@ export default {
.then(() => {
updateUserStatus({ id: row.row.id, isValid: 0 }).then((res) => {
if (res.code === 200) {
this.$message({
message: "操作成功",
type: "success",
});
this.msgSuccess('操作成功')
this.selectUser();
} else {
this.$message({
message: res.msg,
type: "warning",
});
this.msgWarning(res.msg)
}
});
})
.catch((err) => {
console.log(err);
})
.catch(() =>
[]
);
.catch(() =>
{ }
);
},
handleClose(val) {
this.drawer = val;
this.userData = {};
this.selectUser();
},
currentChange(val) {
this.formData.page = val.page;
this.selectUser();
},
sizeChange(val) {
this.formData.size = val;
this.selectUser()
...
...
Please
register
or
login
to post a comment