|
@@ -14,6 +14,8 @@
|
|
|
row-key="index"
|
|
|
:height="tableHeight"
|
|
|
show-summary
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
/>
|
|
|
</main>
|
|
|
</div>
|
|
@@ -22,35 +24,38 @@
|
|
|
<script>
|
|
|
import SecurityCheckHeader from "../components/securityCheckHeader.vue";
|
|
|
import SecurityCheckTable from "../components/securityCheckTable.vue";
|
|
|
+import { comprehensiveTable } from "@/api/statistics/statistics.js";
|
|
|
export default {
|
|
|
components: { SecurityCheckHeader, SecurityCheckTable },
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading:false,
|
|
|
tableHeight: "50vh",
|
|
|
tableCols: [
|
|
|
{
|
|
|
- dataIndex: "index",
|
|
|
- key: "index",
|
|
|
+ dataIndex: "no",
|
|
|
+ key: "no",
|
|
|
title: "序号",
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: "level",
|
|
|
- key: "level",
|
|
|
+ dataIndex: "risk",
|
|
|
+ key: "risk",
|
|
|
title: "等级",
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: "cargoCount",
|
|
|
- key: "cargoCount",
|
|
|
+ dataIndex: "num",
|
|
|
+ key: "num",
|
|
|
title: "货物件数",
|
|
|
- clickHandler: () => {
|
|
|
- this.$router.push({
|
|
|
- path: "/waybillTable",
|
|
|
- });
|
|
|
+ clickHandler: (row) => {
|
|
|
+ console.log(row)
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/waybillTable",
|
|
|
+ // });
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: "unpackCount",
|
|
|
- key: "unpackCount",
|
|
|
+ dataIndex: "kxsNum",
|
|
|
+ key: "kxsNum",
|
|
|
title: "开箱件数",
|
|
|
clickHandler: () => {
|
|
|
this.$router.push({
|
|
@@ -64,8 +69,8 @@ export default {
|
|
|
title: "开箱结果",
|
|
|
children: [
|
|
|
{
|
|
|
- dataIndex: "release",
|
|
|
- key: "release",
|
|
|
+ dataIndex: "fxNum",
|
|
|
+ key: "fxNum",
|
|
|
title: "放行",
|
|
|
clickHandler: () => {
|
|
|
this.$router.push({
|
|
@@ -74,8 +79,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: "reject",
|
|
|
- key: "reject",
|
|
|
+ dataIndex: "jyNum",
|
|
|
+ key: "jyNum",
|
|
|
title: "拒运",
|
|
|
clickHandler: () => {
|
|
|
this.$router.push({
|
|
@@ -84,8 +89,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: "turnOver",
|
|
|
- key: "turnOver",
|
|
|
+ dataIndex: "yjNum",
|
|
|
+ key: "yjNum",
|
|
|
title: "移交",
|
|
|
clickHandler: () => {
|
|
|
this.$router.push({
|
|
@@ -96,65 +101,40 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
- tableData: [
|
|
|
- {
|
|
|
- index: 1,
|
|
|
- level: "高风险等级",
|
|
|
- cargoCount: 100,
|
|
|
- unpackCount: 10,
|
|
|
- release: 5,
|
|
|
- reject: 3,
|
|
|
- turnOver: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- index: 2,
|
|
|
- level: "严控级",
|
|
|
- cargoCount: 100,
|
|
|
- unpackCount: 10,
|
|
|
- release: 5,
|
|
|
- reject: 3,
|
|
|
- turnOver: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- index: 3,
|
|
|
- level: "普通级",
|
|
|
- cargoCount: 100,
|
|
|
- unpackCount: 10,
|
|
|
- release: 5,
|
|
|
- reject: 3,
|
|
|
- turnOver: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- index: 4,
|
|
|
- level: "优先级",
|
|
|
- cargoCount: 100,
|
|
|
- unpackCount: 10,
|
|
|
- release: 5,
|
|
|
- reject: 3,
|
|
|
- turnOver: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- index: 5,
|
|
|
- level: "低风险等级",
|
|
|
- cargoCount: 100,
|
|
|
- unpackCount: 10,
|
|
|
- release: 5,
|
|
|
- reject: 3,
|
|
|
- turnOver: 2,
|
|
|
- },
|
|
|
- ],
|
|
|
+ tableData: [],
|
|
|
+ FormData:{
|
|
|
+ destination:'',// 目的站
|
|
|
+ agentCode:'',//代理人ID
|
|
|
+ agentLevel:'',//代理人信用等级 A\B\C\D
|
|
|
+ riskRating:'',//综合风险等级评估 低风险\优先\普通\高风险\严控
|
|
|
+ startTime:'',//开始时间
|
|
|
+ endTime:'',//结束时间
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
this.setTableHeight();
|
|
|
window.addEventListener("resize", this.setTableHeight);
|
|
|
+ this.getData()
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
window.removeEventListener("resize", this.setTableHeight);
|
|
|
},
|
|
|
methods: {
|
|
|
//接口数据
|
|
|
-
|
|
|
+ async getData() {
|
|
|
+ try {
|
|
|
+ this.loading = true;
|
|
|
+ console.log(this.FormData);
|
|
|
+ const result = await comprehensiveTable();
|
|
|
+ if (result.code === 200) {
|
|
|
+ this.tableData = result.data;
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
+ },
|
|
|
changeHandler() {
|
|
|
this.$router.push({
|
|
|
path: "./cargoStatistics",
|