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-05-07 11:37:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
131c33a49f44639a7e8dcff57d80be781f0007bc
131c33a4
1 parent
81db7464
手动配舱按钮状态修复
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
58 deletions
src/views/allocationConfig/cargoAllocation/index.vue
src/views/allocationConfig/cargoAllocation/info.vue
src/views/allocationConfig/cargoAllocation/index.vue
View file @
131c33a
...
...
@@ -282,7 +282,7 @@
size="mini"
v-hasPermi="['allocation:cargo:allocation']"
@click="addFit"
:disabled="tableSelection.length <= 0
|| formData.accsPool!='OSPR'
"
:disabled="tableSelection.length <= 0"
>添加到航班</el-button
>
<div class="tips">
...
...
src/views/allocationConfig/cargoAllocation/info.vue
View file @
131c33a
<template>
<div>
<el-dialog
title="货物配舱"
width="80%"
:visible.sync="dialogVisible"
:close-on-click-modal="false"
:append-to-body="true"
>
<el-dialog title="货物配舱" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false"
:append-to-body="true">
<el-divider content-position="left">已选货物信息</el-divider>
<el-table
:data="tableData"
size="mini"
height="200"
max-height="200"
border
stripe
highlight-current-row
style="width: 100%"
>
<el-table :data="tableData" size="mini" height="200" max-height="200" border stripe highlight-current-row
style="width: 100%">
<el-table-column type="index" label="序号" align="center">
</el-table-column>
<el-table-column
v-for="(item, index) in cargoHeader"
header-align="center"
align="center"
:prop="item.value"
:label="item.name"
:key="index"
:show-overflow-tooltip="true"
:formatter="formatter"
>
<el-table-column v-for="(item, index) in cargoHeader" header-align="center" align="center" :prop="item.value"
:label="item.name" :key="index" :show-overflow-tooltip="true" :formatter="formatter">
</el-table-column>
</el-table>
<el-form
ref="form"
label-position="right"
label-width="auto"
style="width: 400px; margin: 30px auto"
>
<el-form ref="form" label-position="right" label-width="auto" style="width: 400px; margin: 30px auto"
:model="formData" :rules="rules">
<el-form-item label="航班号" prop="fltNo">
<el-input
v-model="fltNo"
size="medium"
placeholder="请输入航班号"
style="width: 350px"
></el-input>
<el-input v-model="fltNo" size="medium" placeholder="请输入航班号" maxlength="10" style="width: 350px"></el-input>
</el-form-item>
<el-form-item label="航班日期:" prop="fltDate">
<el-date-picker
v-model="formData.fltDate"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd"
size="medium"
style="width: 350px"
>
<el-date-picker v-model="formData.fltDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
size="medium" style="width: 350px">
</el-date-picker>
</el-form-item>
</el-form>
...
...
@@ -116,11 +80,11 @@ export default {
{
required: true,
message: "航班日期不能为空",
trigger: "
change
",
trigger: "
blur
",
},
],
},
loading:false,
loading:
false,
};
},
methods: {
...
...
@@ -134,7 +98,7 @@ export default {
},
//确定配舱
submit() {
this.loading= true;
this.loading
= true;
let arr = [];
this.tableData.forEach((item) => {
arr.push(item.id);
...
...
@@ -173,7 +137,6 @@ export default {
}
});
this.cleaerForm();
this.loading = false;
this.$emit("dialogBeforeClose", { close: false, reload: true });
})
.catch(() => {
...
...
@@ -183,7 +146,6 @@ export default {
type: "success",
});
this.cleaerForm();
this.loading = false;
this.$emit("dialogBeforeClose", {
close: false,
reload: true,
...
...
@@ -196,7 +158,7 @@ export default {
type: "warning",
});
}
}).catch(()
=>
{
}).catch(()
=>
{
this.loading = false;
});
} else {
...
...
@@ -209,13 +171,14 @@ export default {
},
dialogBeforeClose() {
this.cleaerForm();
this.$refs['form'].clearValidate();
this.$emit("dialogBeforeClose", { close: false, reload: true });
},
formatter(row, column, cellValue, index){
if
(column.property == "cargoRulesStatus")
{
if
(cellValue == 1)
{
formatter(row, column, cellValue, index)
{
if
(column.property == "cargoRulesStatus")
{
if
(cellValue == 1)
{
return "手动"
}
else
{
}
else
{
return "自动"
}
}
...
...
Please
register
or
login
to post a comment