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
Authored by
jinhui.wang
2022-03-02 16:51:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb4d7c3a98e614a3701c6df736cdad2ad5ad99ee
bb4d7c3a
1 parent
dd739f67
货物查询导出条件修复,页面缓存修复,样式更改
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
130 additions
and
59 deletions
src/layout/components/TagsView/index.vue
src/router/index.js
src/views/allocationConfig/cargoAllocation/index.vue
src/views/allocationConfig/flightAllocConfig/index.vue
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/basicInformation/caExportPreQualification/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/queryCargo/index.vue
src/layout/components/TagsView/index.vue
View file @
bb4d7c3
...
...
@@ -14,7 +14,7 @@
@contextmenu.prevent.native="openMenu(tag,$event)"
>
{{ tag.title }}
<span v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
<span v-if="
tag.name != 'FlightAllocConfigAdd' && tag.name != 'FlightAllocConfigInfo' &&
!isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
</router-link>
</scroll-pane>
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
...
...
src/router/index.js
View file @
bb4d7c3
...
...
@@ -81,7 +81,7 @@ export const constantRoutes = [
{
path
:
'/flightAllocConfig/:handle'
,
component
:
(
resolve
)
=>
require
([
'@/views/allocationConfig/flightAllocConfig/info'
],
resolve
),
name
:
'FlightAllocConfig
Info
'
,
name
:
'FlightAllocConfig
Add
'
,
meta
:
{
title
:
'添加航班配舱'
,
icon
:
'user'
,
breadcrumb
:
false
}
}
]
...
...
src/views/allocationConfig/cargoAllocation/index.vue
View file @
bb4d7c3
...
...
@@ -860,8 +860,8 @@ export default {
this.loading = false;
if (res.code === 200) {
this.tableData = res.data.list;
this.totalCount = res.data.total;
if (res.data.list.length > 0) {
this.totalCount = res.data.total;
this.tableData.forEach((item, index = 0) => {
item.index = index;
});
...
...
@@ -1004,6 +1004,9 @@ export default {
} else {
this.tableData = data.concat(nullData);
}
this.tableData.forEach((item, index = 0) => {
item.index = index;
});
},
//添加到航班
addFit() {
...
...
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
bb4d7c3
...
...
@@ -36,7 +36,7 @@
size="mini"
@click="
$router.push({
name: 'FlightAllocConfig
Info
',
name: 'FlightAllocConfig
Add
',
params: { handle: 'add' },
})
"
...
...
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
bb4d7c3
<template>
<div style="margin: 40px" v-loading="loading">
<el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty>
<div v-if="isEmpty">
<el-empty description="找不到这条数据!"></el-empty>
<el-button size="small" @click="close">返回</el-button>
</div>
<template v-else>
<el-form
ref="form"
...
...
@@ -249,7 +252,6 @@
</el-card>
</el-form-item>
<el-form-item> </el-form-item>
</el-form>
<div style="marginleft: 200px">
<el-button
...
...
@@ -317,6 +319,9 @@ export default {
btnLoading: false,
loading: true,
isEmpty: false,
routeName:"",
dataId:"",
handleName:""
};
},
methods: {
...
...
@@ -356,7 +361,9 @@ export default {
this.formHandlingCode = this.form.handlingCode;
this.formSubCategory = this.form.subCategory;
this.form.isNeedRequired = this.isNeedRequired;
this.form.purposeOfFlightNo = this.form.purposeOfFlightNo.toUpperCase();
if(this.form.purposeOfFlightNo){
this.form.purposeOfFlightNo = this.form.purposeOfFlightNo.toUpperCase();
}
if (this.isLocation == 1) {
this.form.notLocation = "";
} else {
...
...
@@ -428,22 +435,52 @@ export default {
this.form.subCategory = this.formSubCategory;
},
close() {
this.removes()
this.$store.state.tagsView.visitedViews.splice(
this.$store.state.tagsView.visitedViews.findIndex(
(item) => item.path === this.$route.path
),
1
);
this.$router.push(
this.$store.state.tagsView.visitedViews[
this.$store.state.tagsView.visitedViews.length - 1
].path
);
this.$router.push({name:"FlightAllocConfig"})
// this.$router.push(
// this.$store.state.tagsView.visitedViews[
// this.$store.state.tagsView.visitedViews.length - 1
// ].path
// );
},
removes(){
if(this.routeName == "FlightAllocConfigAdd"){
sessionStorage.setItem("flightAdd","remove")
}else{
sessionStorage.setItem("flightInfo"+this.dataId,"remove")
}
},
},
beforeDestroy(){
if(this.routeName == "FlightAllocConfigAdd"){
if(sessionStorage.getItem("flightAdd") == "remove"){
sessionStorage.removeItem("flightAdd")
}else{
this.form.isNeedRequired = this.isNeedRequired
sessionStorage.setItem("flightAdd",JSON.stringify(this.form))
}
}else{
if(sessionStorage.getItem("flightInfo"+this.dataId) == "remove"){
sessionStorage.removeItem("flightInfo"+this.dataId)
}else{
if(this.handleName == "detail"){
this.form.isNeedRequired = this.isNeedRequired
sessionStorage.setItem("flightInfo"+this.dataId,JSON.stringify(this.form))
}
}
}
},
created() {
let handle = this.$route.params.handle;
allDictData().then((response) => {
if (response.code != 200) {
this.$message({
...
...
@@ -463,6 +500,9 @@ export default {
this.handlingCode = this.sorttodo(dict.handlingCode, "BLANK");
this.subCategory = dict.subCategory;
});
this.routeName = this.$route.name;
this.dataId = this.$route.params.id;
this.handleName = this.$route.params.handle;
if (handle === "detail") {
this.disable = true;
}
...
...
@@ -470,8 +510,17 @@ export default {
if (handle != "add") {
this.nameDisabled = true;
let id = this.$route.params.id;
if (isNaN(Number(id))) {
if(sessionStorage.getItem("flightInfo"+id) && this.$route.name == "FlightAllocConfigInfo" && handle != "detail"){
this.loading = false
this.form = JSON.parse(sessionStorage.getItem("flightInfo"+this.$route.params.id))
this.isNeedRequired = this.form.isNeedRequired;
if(this.form.notLocation != null || this.form.notLocation == ""){
this.isLocation = "2";
}else{
this.isLocation = "1";
}
}else{
if (isNaN(Number(id))) {
findDestinationFltRuleByActualFlight(id).then((response) => {
if (response.code != 200) {
this.$message({
...
...
@@ -512,46 +561,58 @@ export default {
} else {
//货物信息
findByFlightId(id).then((response) => {
if (response.code != 200) {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
this.isEmpty = true;
} else {
let info = response.data.list;
info.typeOfGoods = info.typeOfGoods
? info.typeOfGoods.split(";")
: [];
info.declarationCategory = info.declarationCategory
? info.declarationCategory.split(";")
: [];
info.serviceCode = info.serviceCode
? info.serviceCode.split(";")
: [];
info.handlingCode = info.handlingCode
? info.handlingCode.split(";")
: [];
info.subCategory = info.subCategory
? info.subCategory.split(";")
: [];
this.form = info;
if (info.notLocation != null || info.notLocation == "") {
this.isLocation = "2";
if (response.code != 200) {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
this.isEmpty = true;
} else {
this.isLocation = "1";
let info = response.data.list;
info.typeOfGoods = info.typeOfGoods
? info.typeOfGoods.split(";")
: [];
info.declarationCategory = info.declarationCategory
? info.declarationCategory.split(";")
: [];
info.serviceCode = info.serviceCode
? info.serviceCode.split(";")
: [];
info.handlingCode = info.handlingCode
? info.handlingCode.split(";")
: [];
info.subCategory = info.subCategory
? info.subCategory.split(";")
: [];
this.form = info;
if (info.notLocation != null || info.notLocation == "") {
this.isLocation = "2";
} else {
this.isLocation = "1";
}
let isNeedRequired = response.data.isNeedRequired;
this.form.isNeedRequired = isNeedRequired;
this.isNeedRequired = isNeedRequired;
}
let isNeedRequired = response.data.isNeedRequired;
this.form.isNeedRequired = isNeedRequired;
this.isNeedRequired = isNeedRequired;
}
this.loading = false;
});
this.loading = false;
});
}
}
} else {
this.loading = false;
}
if(this.$route.name == "FlightAllocConfigAdd"){
if(sessionStorage.getItem("flightAdd")){
this.form = JSON.parse(sessionStorage.getItem("flightAdd"))
this.isNeedRequired = this.form.isNeedRequired;
if(this.form.notLocation != null || this.form.notLocation == ""){
this.isLocation = "2";
}else{
this.isLocation = "1";
}
}
}
},
computed: {
minNumOfPieces: {
...
...
@@ -583,7 +644,7 @@ export default {
return this.form.minWeight;
},
set: function (val) {
if (val ==
0 || val ==
null || val == "-") {
if (val == null || val == "-") {
this.form.minWeight = undefined;
} else if (!isNaN(val)) {
this.form.minWeight = val;
...
...
@@ -595,7 +656,7 @@ export default {
return this.form.maxWeight;
},
set: function (val) {
if (val ==
0 || val ==
null || val == "-") {
if (val == null || val == "-") {
this.form.maxWeight = undefined;
} else if (!isNaN(val)) {
this.form.maxWeight = val;
...
...
src/views/basicInformation/caExportPreQualification/index.vue
View file @
bb4d7c3
...
...
@@ -127,19 +127,20 @@
label="运单号"
align="center"
prop="waybillNo"
width="1
2
0"
width="1
5
0"
/>
<el-table-column
:show-overflow-tooltip="true"
label="品牌描述"
align="center"
prop="nameDescription"
width="1
2
0"
width="1
5
0"
/>
<el-table-column
label="航班日期"
align="center"
prop="fltDate"
width="1
3
0"
width="1
5
0"
/>
<el-table-column label="航班号" align="center" prop="fltNo" />
<el-table-column
...
...
@@ -179,7 +180,7 @@
import { findCagroPreData } from "@/api/cargoSelect";
import { cargoXlsxPre } from "@/utils/zipdownload";
export default {
name: "
caExportPreQualification
",
name: "
CAPreQualificationExport
",
data() {
return {
//导出
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
bb4d7c3
...
...
@@ -155,12 +155,13 @@
</el-col>
</el-row> -->
<el-table
max-height="5
0
0"
max-height="5
5
0"
highlight-current-row
border
stripe
v-loading="loading"
:data="findAllFltDatList"
size="small"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
...
...
@@ -177,7 +178,7 @@
width="120"
/>
<el-table-column label="航班号" align="center" prop="fltNo" />
<el-table-column label="航班路线" align="center" prop="route" />
<el-table-column label="航班路线" align="center" prop="route"
width="150"
/>
<el-table-column
label="航班类型"
align="center"
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
bb4d7c3
...
...
@@ -748,9 +748,9 @@ export default {
this.dataInfo();
findCargoData(this.formData).then((res) => {
if (res.code == 200) {
this.tableData = res.data.list;
this.totalCount = res.data.totalCount;
if (res.data.list.length > 0) {
this.tableData = res.data.list;
this.totalCount = res.data.totalCount;
for (let i = 0; i < this.tableData.length; i++) {
this.tableData[i].index = i;
}
...
...
@@ -809,6 +809,8 @@ export default {
if(this.formData.waybillNo){
this.formData.waybillNo = this.formData.waybillNo.trim();
}
this.formData.limitStart = this.limitStart;
this.formData.limitSize = 100;
},
//总和
cargoTotal(){
...
...
@@ -857,6 +859,9 @@ export default {
}else{
this.tableData = data.concat(nullData)
}
this.tableData.forEach((item, index = 0) => {
item.index = index;
});
},
// 导出表格
xlse(page) {
...
...
Please
register
or
login
to post a comment