|
@@ -29,7 +29,7 @@ export default {
|
|
components: { SecurityCheckHeader, SecurityCheckTable },
|
|
components: { SecurityCheckHeader, SecurityCheckTable },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- loading:false,
|
|
|
|
|
|
+ loading: false,
|
|
tableHeight: "50vh",
|
|
tableHeight: "50vh",
|
|
tableCols: [
|
|
tableCols: [
|
|
{
|
|
{
|
|
@@ -47,19 +47,19 @@ export default {
|
|
key: "num",
|
|
key: "num",
|
|
title: "货物件数",
|
|
title: "货物件数",
|
|
clickHandler: (row, rowIndex) => {
|
|
clickHandler: (row, rowIndex) => {
|
|
- this.$router.push({
|
|
|
|
- path: "/waybillTable",
|
|
|
|
- query: {
|
|
|
|
- startTime: this.FormData.startTime,
|
|
|
|
- endTime: this.FormData.endTime,
|
|
|
|
- destination: this.FormData.destination,
|
|
|
|
- agentCode: this.FormData.agentCode,
|
|
|
|
- agentLevel: this.FormData.agentLevel,
|
|
|
|
- riskRating: row.risk,
|
|
|
|
- openResult: this.FormData.openResult,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/waybillTable",
|
|
|
|
+ query: {
|
|
|
|
+ startTime: this.FormData.startTime,
|
|
|
|
+ endTime: this.FormData.endTime,
|
|
|
|
+ destination: this.FormData.destination,
|
|
|
|
+ agentCode: this.FormData.agentCode,
|
|
|
|
+ agentLevel: this.FormData.agentLevel,
|
|
|
|
+ riskRating: row.risk,
|
|
|
|
+ openResult: this.FormData.openResult,
|
|
},
|
|
},
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
dataIndex: "kxsNum",
|
|
dataIndex: "kxsNum",
|
|
@@ -85,7 +85,7 @@ export default {
|
|
agentCode: this.FormData.agentCode,
|
|
agentCode: this.FormData.agentCode,
|
|
agentLevel: this.FormData.agentLevel,
|
|
agentLevel: this.FormData.agentLevel,
|
|
riskRating: row.risk,
|
|
riskRating: row.risk,
|
|
- openResult: '放行',
|
|
|
|
|
|
+ openResult: "放行",
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -104,7 +104,7 @@ export default {
|
|
agentCode: this.FormData.agentCode,
|
|
agentCode: this.FormData.agentCode,
|
|
agentLevel: this.FormData.agentLevel,
|
|
agentLevel: this.FormData.agentLevel,
|
|
riskRating: row.risk,
|
|
riskRating: row.risk,
|
|
- openResult: '拒运',
|
|
|
|
|
|
+ openResult: "拒运",
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -123,7 +123,7 @@ export default {
|
|
agentCode: this.FormData.agentCode,
|
|
agentCode: this.FormData.agentCode,
|
|
agentLevel: this.FormData.agentLevel,
|
|
agentLevel: this.FormData.agentLevel,
|
|
riskRating: row.risk,
|
|
riskRating: row.risk,
|
|
- openResult: '移交',
|
|
|
|
|
|
+ openResult: "移交",
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -132,42 +132,50 @@ export default {
|
|
},
|
|
},
|
|
],
|
|
],
|
|
tableData: [],
|
|
tableData: [],
|
|
- FormData:{
|
|
|
|
- destination:'',// 目的站
|
|
|
|
- agentCode:'',//代理人ID
|
|
|
|
- agentLevel:'',//代理人信用等级 A\B\C\D
|
|
|
|
- riskRating:'',//综合风险等级评估 低风险\优先\普通\高风险\严控
|
|
|
|
- startTime:'',//开始时间
|
|
|
|
- endTime:'',//结束时间
|
|
|
|
- }
|
|
|
|
|
|
+ FormData: {
|
|
|
|
+ destination: "", // 目的站
|
|
|
|
+ agentCode: "", //代理人ID
|
|
|
|
+ agentLevel: "", //代理人信用等级 A\B\C\D
|
|
|
|
+ riskRating: "", //综合风险等级评估 低风险\优先\普通\高风险\严控
|
|
|
|
+ startTime: "", //开始时间
|
|
|
|
+ endTime: "", //结束时间
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created(){
|
|
|
|
- this.formatDate()
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.formatDate();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.setTableHeight();
|
|
this.setTableHeight();
|
|
window.addEventListener("resize", this.setTableHeight);
|
|
window.addEventListener("resize", this.setTableHeight);
|
|
- this.getData()
|
|
|
|
|
|
+ this.getData();
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
window.removeEventListener("resize", this.setTableHeight);
|
|
window.removeEventListener("resize", this.setTableHeight);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
formatDate() {
|
|
formatDate() {
|
|
- let date = new Date();
|
|
|
|
- let myyear = date.getFullYear();
|
|
|
|
- let mymonth = date.getMonth() +1;
|
|
|
|
- let myweekday = date.getDate();
|
|
|
|
- mymonth < 10 ? mymonth = "0" + mymonth : mymonth;
|
|
|
|
- myweekday < 10 ? myweekday = "0" + myweekday :myweekday;
|
|
|
|
- this.FormData.startTime = `${myyear}-${mymonth}-${myweekday}`;
|
|
|
|
- this.FormData.endTime = `${myyear}-${mymonth}-${myweekday}`;
|
|
|
|
- },
|
|
|
|
|
|
+ let date = new Date();
|
|
|
|
+ let myyear = date.getFullYear();
|
|
|
|
+ let mymonth = date.getMonth() + 1;
|
|
|
|
+ let myweekday = date.getDate();
|
|
|
|
+ mymonth < 10 ? (mymonth = "0" + mymonth) : mymonth;
|
|
|
|
+ myweekday < 10 ? (myweekday = "0" + myweekday) : myweekday;
|
|
|
|
+ this.FormData.startTime = `${myyear}-${mymonth}-${myweekday}`;
|
|
|
|
+ this.FormData.endTime = `${myyear}-${mymonth}-${myweekday}`;
|
|
|
|
+ },
|
|
//接口数据
|
|
//接口数据
|
|
async getData() {
|
|
async getData() {
|
|
try {
|
|
try {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
+ if (Object.keys(this.$route.query).length !== 0) {
|
|
|
|
+ const { startTime, endTime, agentLevel, agentCode } =
|
|
|
|
+ this.$route.query;
|
|
|
|
+ this.FormData.startTime = startTime;
|
|
|
|
+ this.FormData.endTime = endTime;
|
|
|
|
+ this.FormData.agentLevel = agentLevel;
|
|
|
|
+ this.FormData.agentCode = agentCode;
|
|
|
|
+ }
|
|
const result = await comprehensive(this.FormData);
|
|
const result = await comprehensive(this.FormData);
|
|
if (result.code === 200) {
|
|
if (result.code === 200) {
|
|
this.tableData = result.data;
|
|
this.tableData = result.data;
|
|
@@ -180,14 +188,15 @@ export default {
|
|
changeHandler() {
|
|
changeHandler() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "./cargoStatistics",
|
|
path: "./cargoStatistics",
|
|
|
|
+ query: this.FormData,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
searchHandler(arr) {
|
|
searchHandler(arr) {
|
|
- this.FormData.startTime=arr[0][0];
|
|
|
|
- this.FormData.endTime=arr[0][1];
|
|
|
|
- this.FormData.agentLevel=arr[1];
|
|
|
|
- this.FormData.agentCode=arr[2];
|
|
|
|
- this.getData()
|
|
|
|
|
|
+ this.FormData.startTime = arr[0][0];
|
|
|
|
+ this.FormData.endTime = arr[0][1];
|
|
|
|
+ this.FormData.agentLevel = arr[1];
|
|
|
|
+ this.FormData.agentCode = arr[2];
|
|
|
|
+ this.getData();
|
|
},
|
|
},
|
|
setTableHeight() {
|
|
setTableHeight() {
|
|
const topBarHeight = 80;
|
|
const topBarHeight = 80;
|