|
@@ -15,6 +15,7 @@
|
|
|
@on-load="onLoad"
|
|
|
:table-loading="loading"
|
|
|
@saveColumn="saveColumn"
|
|
|
+ :cell-style="cellStyle"
|
|
|
>
|
|
|
<template slot="portOfLoadSearch">
|
|
|
<port-info v-model="search.portOfLoad" />
|
|
@@ -87,6 +88,7 @@
|
|
|
import option from "./config/mainList.json";
|
|
|
import { getList, remove } from "@/api/basicData/customerInquiry";
|
|
|
import detailPage from "./detailsPage.vue";
|
|
|
+import { defaultDate } from "@/util/date";
|
|
|
export default {
|
|
|
name: "customerInformation",
|
|
|
data() {
|
|
@@ -115,6 +117,7 @@ export default {
|
|
|
},
|
|
|
components: { detailPage },
|
|
|
async created() {
|
|
|
+ this.search.businesDate=defaultDate()
|
|
|
/**
|
|
|
* 已定义全局方法,直接使用,getColumnData获取列数据,参数传值(表格名称,引入的本地JSON的数据定义的名称)
|
|
|
* 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
@@ -142,6 +145,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ cellStyle() {
|
|
|
+ return "padding:0;height:40px;";
|
|
|
+ },
|
|
|
//删除列表后面的删除按钮触发触发(row, index, done)
|
|
|
rowDel(row, index, done) {
|
|
|
this.$confirm("确定删除数据?", {
|
|
@@ -192,15 +198,19 @@ export default {
|
|
|
this.page.pageSize = val;
|
|
|
},
|
|
|
onLoad(page, params) {
|
|
|
+ if (this.search.businesDate.length>0) {
|
|
|
+ params={
|
|
|
+ orderStartDate:this.search.businesDate[0],
|
|
|
+ orderEndDate:this.search.businesDate[1],
|
|
|
+ }
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
.then(res => {
|
|
|
this.dataList = res.data.data.records ? res.data.data.records : [];
|
|
|
this.page.total = res.data.data.total;
|
|
|
if (this.page.total) {
|
|
|
- this.option.height = window.innerHeight - 380;
|
|
|
- } else {
|
|
|
- this.option.height = window.innerHeight - 305;
|
|
|
+ this.option.height = window.innerHeight - 420;
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|