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-03 14:33:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e29d5cd31d07743d0b73315d2b87d1d817b7a61
4e29d5cd
1 parent
afc32128
代码更新
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
18 deletions
src/components/Table/index.vue
src/views/allocationConfig/cargoAllocation/index.vue
src/views/allocationConfig/cargoAllocation/info.vue
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/allocationConfig/flightRandConfig/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/queryCargo/index.vue
src/components/Table/index.vue
View file @
4e29d5c
...
...
@@ -50,6 +50,7 @@
<el-pagination
:total="totalCount"
:page-size.sync="limitSize"
:current-page.sync="pageNum"
background
layout="prev, pager, next, jumper, ->, total, slot"
class="tablePagination"
...
...
@@ -201,6 +202,11 @@ export default {
created() {
this.newHeader = this.headerData;
},
watch:{
page(){
this.pageNum = this.page;
}
},
mounted() {},
methods: {
nextClick() {
...
...
src/views/allocationConfig/cargoAllocation/index.vue
View file @
4e29d5c
...
...
@@ -142,6 +142,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="重量区间">
<el-row>
<el-col :span="11"
><el-input-number
class="formItem"
...
...
@@ -163,10 +164,12 @@
:precision="2"
></el-input-number
></el-col>
</el-row>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="件数区间">
<el-row>
<el-col :span="11"
><el-input-number
class="formItem"
...
...
@@ -186,6 +189,7 @@
:min="formData.minNumber"
></el-input-number
></el-col>
</el-row>
</el-form-item>
</el-col>
<!-- <el-col :span="6">
...
...
@@ -270,7 +274,7 @@
icon="el-icon-search"
size="mini"
:loading="loading"
@click="select"
@click="select
(0)
"
>查询</el-button
>
<el-button
...
...
@@ -314,6 +318,7 @@
:loading="loading"
:limitSize="size"
:limitStart="formData.limitStart"
:page="page"
:shiftKey="shiftKey"
height="350"
@tableSelect="tableSelect"
...
...
@@ -793,9 +798,13 @@ export default {
};
},
created() {
this.seleData()
this.seleData()
;
this.select();
},
// activated(){
// this.seleData();
// this.select();
// },
mounted() {
window.addEventListener("keydown", (code) => {
if (code.keyCode === 16 && code.shiftKey) {
...
...
@@ -852,9 +861,13 @@ export default {
.catch(() => {});
},
//查询
select(
) {
async select(val
) {
this.loading = true;
this.dataInfo();
if(val === 0){
this.page = 1;
this.formData.page = 1;
}
findCargoAllocationData(this.formData)
.then((res) => {
this.loading = false;
...
...
@@ -999,9 +1012,9 @@ export default {
}
});
data = data.sort(this.$refs.newTables.compare(val.prop, val.order));
if (val.order
!= "a
scending") {
if (val.order
== "de
scending") {
this.tableData = nullData.concat(data);
} else
{
} else{
this.tableData = data.concat(nullData);
}
this.tableData.forEach((item, index = 0) => {
...
...
src/views/allocationConfig/cargoAllocation/info.vue
View file @
4e29d5c
...
...
@@ -59,7 +59,7 @@
</el-form>
<div slot="footer">
<el-button @click="dialogBeforeClose">取 消</el-button>
<el-button type="primary" @click="submit">确 定</el-button>
<el-button type="primary" @click="submit"
:loading="loading"
>确 定</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -119,6 +119,7 @@ export default {
},
],
},
loading:false,
};
},
methods: {
...
...
@@ -132,6 +133,7 @@ export default {
},
//确定配舱
submit() {
this.loading= true;
let arr = [];
this.tableData.forEach((item) => {
arr.push(item.id);
...
...
@@ -146,6 +148,7 @@ export default {
type: "success",
});
this.cleaerForm();
this.loading = false;
this.$emit("dialogBeforeClose", { close: false, reload: true });
} else if (res.code === 202) {
MessageBox.confirm(res.msg, "提示", {
...
...
@@ -169,6 +172,7 @@ export default {
}
});
this.cleaerForm();
this.loading = false;
this.$emit("dialogBeforeClose", { close: false, reload: true });
})
.catch(() => {
...
...
@@ -178,19 +182,24 @@ export default {
type: "success",
});
this.cleaerForm();
this.loading = false;
this.$emit("dialogBeforeClose", {
close: false,
reload:
fals
e,
reload:
tru
e,
});
});
} else {
this.loading = false;
this.$message({
message: res.msg,
type: "warning",
});
}
}).catch(()=>{
this.loading = false;
});
} else {
this.loading = false;
this.$message({
message: "航班号或航班日期不能为空",
type: "warning",
...
...
@@ -199,7 +208,7 @@ export default {
},
dialogBeforeClose() {
this.cleaerForm();
this.$emit("dialogBeforeClose", { close: false, reload:
fals
e });
this.$emit("dialogBeforeClose", { close: false, reload:
tru
e });
},
},
computed: {
...
...
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
4e29d5c
...
...
@@ -561,7 +561,9 @@ export default {
this.isNeedRequired = info.isNeedRequired;
}
this.loading = false;
});
}).catch(()=>{
this.loading = false;
})
} else {
//货物信息
findByFlightId(id).then((response) => {
...
...
@@ -600,7 +602,9 @@ export default {
this.isNeedRequired = isNeedRequired;
}
this.loading = false;
});
}).catch(()=>{
this.loading = false;
})
}
}
} else {
...
...
src/views/allocationConfig/flightRandConfig/index.vue
View file @
4e29d5c
...
...
@@ -115,7 +115,7 @@
</el-col>
<el-col :span="24" style="margin-bottom: 5%;">
<span style="color: #ff4949;margin-left: 10%;">提示:配载航班之
同
请用分号分隔【符号不区分中英文】,例:CA1053;C7433</span><br />
<span style="color: #ff4949;margin-left: 10%;">提示:配载航班之
间
请用分号分隔【符号不区分中英文】,例:CA1053;C7433</span><br />
<span style="color: #ff4949;margin-left: 10%;">提示:如果需要设置配载航班延迟或提前可以直接在目的航斑后加减【+-】天数。如:CA1053+1;CZ433-1</span>
</el-col>
<el-col :span="24">
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
4e29d5c
...
...
@@ -70,12 +70,12 @@
</el-button>
</el-col>
</el-row> -->
<el-table
max-
height="550" highlight-current-row border stripe v-loading="loading" :data="findAllFltDatList" size="mini"
<el-table height="550" highlight-current-row border stripe v-loading="loading" :data="findAllFltDatList" size="mini"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="航班日期" align="center" prop="fltDate" width="120" />
<el-table-column label="航班起飞时间" align="center" prop="takeOffTime" width="120" />
<el-table-column label="航班号" align="center" prop="fltNo" />
<el-table-column label="航班号" align="center" prop="fltNo"
width="150"
/>
<el-table-column label="航班路线" align="center" prop="route" width="150" />
<el-table-column label="航班类型" align="center" prop="typeName" width="100" />
<el-table-column label="航班种类" align="center" prop="flightKindName" width="130" />
...
...
@@ -268,7 +268,7 @@
</div>
</el-dialog>
<el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible">
<el-dialog title="未删除成功航班" width="40%" center :visible.sync="dialogTableVisible"
:close-on-click-modal="false" :append-to-body="true"
>
<el-table :data="gridData">
<el-table-column property="fltNo" label="航班号" width="150"></el-table-column>
<el-table-column property="fltDate" label="航班日期" width="200"></el-table-column>
...
...
@@ -564,7 +564,7 @@
Weight = this.Weightall();
}
//高价可配
if (this.form.highPriceWeightPercent > 0) {
if (this.form.highPriceWeightPercent >
=
0) {
this.$set(this.form, "lowPriceWeightPercent", 100-this.form.highPriceWeightPercent);
this.$set(this.form, "highAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form
.highPriceWeightPercent / 100));
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
4e29d5c
...
...
@@ -213,7 +213,7 @@
icon="el-icon-search"
size="small"
:loading="tableLoading"
@click="select"
@click="select
(0)
"
>查询</el-button
>
<el-button :type="downLoadingTip.downloading?'warning':'primary'" size="small" @click="xlse(0)" :disabled="tableData.length==0" :loading="downLoadingTip.downloading"
...
...
@@ -239,6 +239,7 @@
:loading="tableLoading"
:limitSize="limitSize"
:limitStart="limitStart"
:page="page"
:shiftKey="shiftKey"
height="550"
@tableSelect="tableSelect"
...
...
@@ -709,7 +710,7 @@ export default {
};
},
created() {
//查询条件
//
查询条件
findConditionData().then((res) => {
if (res.code == 200) {
this.findConditionData = res.data;
...
...
@@ -722,6 +723,19 @@ export default {
});
},
// activated(){
// findConditionData().then((res) => {
// if (res.code == 200) {
// this.findConditionData = res.data;
// } else {
// this.$message({
// message: "查询条件不存在",
// type: "warning",
// });
// }
// });
// },
mounted() {
window.addEventListener("keydown", (code) => {
if (code.keyCode === 16 && code.shiftKey) {
...
...
@@ -740,12 +754,17 @@ export default {
this.$refs.cargoForm.resetFields();
},
//查询
select() {
select(
val
) {
this.tableData = [];
this.allWeight = 0;
this.allQty = 0;
this.tableLoading = true;
this.dataInfo();
if(val === 0){
this.formData.limitStart = 1;
this.limitStart = 1;
this.page = 1;
}
findCargoData(this.formData).then((res) => {
if (res.code == 200) {
this.tableData = res.data.list;
...
...
Please
register
or
login
to post a comment