jinhui.wang

增加服务代码列,无用代码删除,图标修改

......@@ -62,7 +62,7 @@ export const constantRoutes = [
path: 'index',
component: (resolve) => require(['@/views/index'], resolve),
name: '首页',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
meta: { title: '首页', icon: 'home', noCache: true, affix: true }
}
]
},
......
......@@ -333,7 +333,7 @@
import Dialog from "./info.vue";
import { findConditionData, findCargoAllocationData } from "@/api/cargoSelect";
import { allDictData } from "@/api/destinationFlight";
import { findFltConditionDataApi } from "@/api/findAllFltData";
// import { findFltConditionDataApi } from "@/api/findAllFltData";
import { downLoadXlsx } from "@/utils/zipdownload";
import { upCase } from "@/utils/FedEx";
......@@ -458,6 +458,15 @@ export default {
},
{
type: "",
name: "服务代码",
value: "serviceCode",
width: "150",
align: "center",
sorTable: false,
fixed:false,
},
{
type: "",
name: "URSA",
value: "ursa",
width: "150",
......@@ -827,26 +836,47 @@ export default {
};
},
created() {
//查询条件
new Promise((resolve, reject) => {
let obj = {};
findFltConditionDataApi()
.then((res) => {
if (res.code === 200) {
obj.flightType = res.data.flightType;
} else {
reject(res.msg);
this.seleData();
this.select();
},
mounted() {
window.addEventListener("keydown", (code) => {
if (code.keyCode === 16 && code.shiftKey) {
this.shiftKey = true;
}
})
.catch(() => {});
});
window.addEventListener("keyup", (code) => {
if (code.keyCode === 16) {
this.shiftKey = false;
}
});
},
methods: {
//查询条件
async seleData() {
// findFltConditionDataApi()
// .then((res) => {
// if (res.code === 200) {
// this.selectData.fltTypes = res.data.flightType;
// }else{
// this.$message({
// message: "查询条件不存在",
// type: "warning",
// });
// }
// })
// .catch(() => {});
allDictData()
.then((res) => {
if (res.code === 200) {
obj.HandlingCode = res.data.handlingCode;
obj.SubCategory = res.data.subCategory;
} else {
reject(res.msg);
this.selectData.HandlingCode = res.data.handlingCode;
this.selectData.SubCategory = res.data.subCategory;
}else{
this.$message({
message: "查询条件不存在",
type: "warning",
});
}
})
.catch(() => {});
......@@ -854,38 +884,16 @@ export default {
findConditionData()
.then((res) => {
if (res.code == 200) {
obj.findConditionData = res.data;
} else {
reject(res.msg);
}
resolve(obj);
})
.catch(() => {});
this.select();
})
.then((res) => {
this.selectData = res;
})
.catch((err) => {
this.selectData.findConditionData = res.data;
}else{
this.$message({
message: "查询条件不存在",
type: "warning",
});
});
},
mounted() {
window.addEventListener("keydown", (code) => {
if (code.keyCode === 16 && code.shiftKey) {
this.shiftKey = true;
}
});
window.addEventListener("keyup", (code) => {
if (code.keyCode === 16) {
this.shiftKey = false;
}
});
})
.catch(() => {});
},
methods: {
//查询
select() {
this.loading = true;
......
......@@ -236,6 +236,7 @@
methods: {
//跳转到查看,修改页面
handleClick(flightiId, handle) {
this.openFlightDate = false;
this.$router.push({
name: "FlightAllocConfigInfo",
params: {
......
......@@ -36,8 +36,7 @@
</el-table>
</div>
</template>
</div>
</template>
<script>
import {
downLoadTemplate,
......
......@@ -204,18 +204,6 @@
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="6">
<el-form-item label="口岸代码">
<el-select
placeholder="不限"
v-model="formData.portName"
class="formItem"
clearable
>
</el-select>
</el-form-item>
</el-col> -->
</el-row>
</el-col>
</el-row>
......@@ -228,9 +216,6 @@
@click="select"
>查询</el-button
>
<!-- <el-button type="primary" size="small" @click="checks(tableData)"
>全选/全否</el-button
> -->
<el-button :type="downLoadingTip.downloading?'warning':'primary'" size="small" @click="xlse(0)" :disabled="tableData.length==0" :loading="downLoadingTip.downloading"
>{{downLoadingTip.downloading?downLoadingTip.tip:"导出本页查询结果"}}</el-button
>
......@@ -243,7 +228,6 @@
<span style="paddingRight: 50px">总重量:{{ allWeight }}</span>
<span>总件数:{{ allQty }}</span>
</div>
<!-- <RightToolbar :showSearch.sync="formShow" size="small"></RightToolbar> -->
<div class="formShow" @click="formShow = !formShow"><i class="el-icon-s-tools"></i>{{formShow?'收起条件':'更多条件'}}</div>
</div>
</el-form>
......@@ -395,6 +379,15 @@ export default {
},
{
type: "",
name: "服务代码",
value: "serviceCode",
width: "150",
align: "center",
sorTable: false,
fixed:false,
},
{
type: "",
name: "URSA",
value: "ursa",
width: "150",
......