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
shanyunduo.cheng
2021-12-03 13:55:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cdeac79520a71531e5c02c4360e424d5158e6955
cdeac795
1 parent
11d48797
成功失败提示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
10 deletions
src/views/allocationConfig/flightAllocConfig/index.vue
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
cdeac79
...
...
@@ -10,6 +10,7 @@
<el-input
v-model="queryParams.purposeOfFlightNo"
placeholder="航班号"
@keyup.enter.native="getList"
></el-input>
</el-form-item>
<el-form-item>
...
...
@@ -139,6 +140,14 @@ export default {
}
this.loading = true;
findFlightNo(this.queryParams).then((response) => {
if (response.code != 200) {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
reuturn;
}
this.flyList = response.data.list;
this.total = response.data.totalCount;
this.loading = false;
...
...
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
cdeac79
...
...
@@ -63,24 +63,60 @@
<el-form-item label="件数">
<el-col :span="3">
<!-- <el-input v-model="form.minNumOfPieces"></el-input> -->
<el-input-number v-model="form.minNumOfPieces == 0 ? form.minNumOfPieces = undefined : form.minNumOfPieces" :precision="0" :controls="false" style="width:100%"></el-input-number>
<el-input-number
v-model="
form.minNumOfPieces == 0
? (form.minNumOfPieces = undefined)
: form.minNumOfPieces
"
:precision="0"
:controls="false"
style="width: 100%"
></el-input-number>
</el-col>
<el-col style="text-align: center" :span="1">-</el-col>
<el-col :span="3">
<!-- <el-input v-model="form.maxNumOfPieces"></el-input> -->
<el-input-number v-model="form.maxNumOfPieces == 0 ? form.maxNumOfPieces = undefined : form.maxNumOfPieces" :precision="0" :controls="false" style="width:100%"></el-input-number>
<el-input-number
v-model="
form.maxNumOfPieces == 0
? (form.maxNumOfPieces = undefined)
: form.maxNumOfPieces
"
:precision="0"
:controls="false"
style="width: 100%"
></el-input-number>
</el-col>
</el-form-item>
<el-form-item label="重量">
<el-col :span="3">
<!-- <el-input v-model="form.minWeight"></el-input> -->
<el-input-number v-model="form.minWeight == 0 ? form.minWeight = undefined : form.minWeight" :precision="2" :controls="false" style="width:100%"></el-input-number>
<el-input-number
v-model="
form.minWeight == 0
? (form.minWeight = undefined)
: form.minWeight
"
:precision="2"
:controls="false"
style="width: 100%"
></el-input-number>
</el-col>
<el-col style="text-align: center" :span="1">-</el-col>
<el-col :span="3">
<!-- <el-input v-model="form.maxWeight"></el-input> -->
<el-input-number v-model="form.maxWeight == 0 ? form.maxWeight = undefined : form.maxWeight" :precision="2" :controls="false" style="width:100%"></el-input-number>
<el-input-number
v-model="
form.maxWeight == 0
? (form.maxWeight = undefined)
: form.maxWeight
"
:precision="2"
:controls="false"
style="width: 100%"
></el-input-number>
</el-col>
</el-form-item>
...
...
@@ -190,17 +226,24 @@ export default {
updateOrAddFlight(this.form).then((response) => {
if (response.code === 200) {
this.$message({
showClose: true,
message: "成功",
type: "success",
});
}
this.close();
} else {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
this.btnLoading = false;
}
});
this.form.typeOfGoods = this.typeOfGoods;
this.form.declarationCategory = this.declarationCategory;
this.form.serviceCode = this.formServiceCode;
this.form.subCategory = this.formSubCategory;
this.btnLoading = false;
},
close() {
this.$store.state.tagsView.visitedViews.splice(
...
...
@@ -217,9 +260,21 @@ export default {
},
},
created() {
let matched = this.$route.matched.filter(
(item) => item.meta && item.meta.title
);
let routers = this.$router.options.routes;
let handle = this.$route.params.handle;
allDictData().then((response) => {
if (response.code != 200) {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
reuturn;
}
let dict = response.data;
this.cargoType = dict.cargoType;
this.cargoStatus = dict.cargoStatus;
...
...
@@ -235,6 +290,14 @@ export default {
//货物信息
findByFlightId(id).then((response) => {
if (response.code != 200) {
this.$message({
showClose: true,
message: response.msg,
type: "error",
});
reuturn;
}
let info = response.data.list;
info.typeOfGoods = info.typeOfGoods ? info.typeOfGoods.split(";") : [];
info.declarationCategory = info.declarationCategory
...
...
@@ -252,18 +315,18 @@ export default {
};
</script>
<style rel="stylesheet/scss" lang="scss">
.el-textarea.is-disabled .el-textarea__inner{
.el-textarea.is-disabled .el-textarea__inner
{
background-color: rgba(255, 255, 255, 0.5);
color: #82848a;
}
.el-input.is-disabled .el-input__inner{
.el-input.is-disabled .el-input__inner
{
background-color: rgba(255, 255, 255, 0.5);
color: #82848a;
}
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner
{
background-color: rgba(255, 255, 255, 0.5);
}
.el-checkbox__input.is-disabled + span.el-checkbox__label{
.el-checkbox__input.is-disabled + span.el-checkbox__label
{
color: #82848a;
}
</style>
...
...
Please
register
or
login
to post a comment