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
yu.sun
2023-10-25 07:46:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
69bb45a6e571243ebb00da2907592805ef8cdb39
69bb45a6
1 parent
fd669bd8
modify
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
48 deletions
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
69bb45a
...
...
@@ -4,18 +4,9 @@
<!-- 航线设置规则信息查询条件 -->
<el-row style="padding: 0 50px">
<el-col>
<yl-form
ref="ruleForm"
:formConfig="formConfig"
:queryForm="queryForm"
:inline="false"
formWidth="auto"
@blur="blurEvent"
>
<route-draggable
:routeList="routeList"
:dragOptions="dragOptions"
></route-draggable>
<yl-form ref="ruleForm" :formConfig="formConfig" :queryForm="queryForm" :inline="false" formWidth="auto"
@blur="blurEvent">
<route-draggable :routeList="routeList" :dragOptions="dragOptions"></route-draggable>
</yl-form>
</el-col>
</el-row>
...
...
@@ -25,34 +16,14 @@
<el-divider content-position="left">航线维度设置</el-divider>
</el-col>
<el-col>
<route-info
ref="routeInfo"
:routesInfo="routesInfo"
:cargoType="cargoType"
:cargoStatus="cargoStatus"
:puporpux="puporpux"
:serviceCode="serviceCode"
:handlingCode="handlingCode"
:subCategory="subCategory"
:status="getRouter"
:loading="loading"
@addRlue="addRlue"
@save="saveSubmit"
@onOff="onOffSubmit"
@delete="deleteSubmit"
@locRadio="locRadio"
@dessiteRadio="dessiteRadio"
@locationBur="locationBur"
@notLocationBur="notLocationBur"
@destinationSiteBur="destinationSiteBur"
@notDestinationSiteBur="notDestinationSiteBur"
@includeUrsaBur="includeUrsaBur"
@notIncludeUrsaBur="notIncludeUrsaBur"
@minNumOfPiecesBur="minNumOfPiecesBur"
@maxNumOfPiecesBur="maxNumOfPiecesBur"
@minWeightBur="minWeightBur"
@maxWeightBur="maxWeightBur"
>
<route-info ref="routeInfo" :routesInfo="routesInfo" :cargoType="cargoType" :cargoStatus="cargoStatus"
:puporpux="puporpux" :serviceCode="serviceCode" :handlingCode="handlingCode" :subCategory="subCategory"
:status="getRouter" :loading="loading" @addRlue="addRlue" @save="saveSubmit" @onOff="onOffSubmit"
@delete="deleteSubmit" @locRadio="locRadio" @dessiteRadio="dessiteRadio" @locationBur="locationBur"
@notLocationBur="notLocationBur" @destinationSiteBur="destinationSiteBur"
@notDestinationSiteBur="notDestinationSiteBur" @includeUrsaBur="includeUrsaBur"
@notIncludeUrsaBur="notIncludeUrsaBur" @minNumOfPiecesBur="minNumOfPiecesBur"
@maxNumOfPiecesBur="maxNumOfPiecesBur" @minWeightBur="minWeightBur" @maxWeightBur="maxWeightBur">
</route-info>
</el-col>
</el-row>
...
...
@@ -127,7 +98,7 @@ export default {
// 只负责接收参数和接口调用
this.queryCondition(parmas);
},
mounted() {},
mounted() {
},
methods: {
// 航班信息维护查询
queryFindAllFltDataApi(parmas) {
...
...
@@ -138,7 +109,7 @@ export default {
this.flightRouteList = data.list;
}
})
.catch((error) => {});
.catch((error) => {
});
},
// 【通过航班号查询航线】
getQueryRouteByFltNo(parmas) {
...
...
@@ -153,7 +124,13 @@ export default {
const routes = [];
if (isEtesRoute.length) {
isEtesRoute.map((item) => {
routes.push({ config: false, route: item.route });
routes.push({
config: false,
fltNo: item.fltNo,
route: item.route,
etesRule: item.isEtesRoute,
routePriority: item.ordinal,
});
});
} else {
this.msgWarning("暂无航线");
...
...
@@ -166,7 +143,7 @@ export default {
}
}
})
.catch(() => {});
.catch(() => {
});
},
// 航班号输入框失焦事件
blurEvent({ purposeOfFlightNo }) {
...
...
@@ -185,10 +162,28 @@ export default {
...this.routesInfo[index],
...routeRuleForm,
};
if (this.routeList[index].hasOwnProperty("ordinal")) {
mergeObj.routePriority = this.routeList[index].ordinal;
if (this.$route.query.dataStatus == "add") {
// mergeObj.routePriority = this.routeList[index].routePriority;
let routeSpecifyDateSeq = [];
if (this.routeList.length) {
this.routeList.map((item) => {
routeSpecifyDateSeq.push(item.route);
});
}
mergeObj.routeSpecifyDateSeq = routeSpecifyDateSeq.join(";");
console.log(this.routeList)
console.log(this.routesInfo)
// this.routeList.map((item1) => {
// let currentRoute = this.routesInfo.findIndex((item2) => {
// if (item1.route == item2.route) {
// item2.routePriority = item1.routePriority;
// }
// });
// return currentRoute;
// });
}
this.$set(this.routesInfo, index, mergeObj); // 给新增规则赋上默认数据
console.log(this.routesInfo)
},
// 保存 【新增/修改航线规则设置】
saveSubmit(item, index) {
...
...
@@ -334,11 +329,12 @@ export default {
.then((res) => {
const { code, msg, data } = res;
if (code == 200) {
console.log(item)
this.$set(this.routesInfo, index, {
route: item.flightRoute,
config: false,
fltNo:
this.routeList[0]
.fltNo,
etesRule:
this.routeList[0]
.etesRule,
fltNo:
item
.fltNo,
etesRule:
item
.etesRule,
routePriority: item.routePriority,
});
this.msgSuccess(msg);
...
...
Please
register
or
login
to post a comment