|
@@ -17,6 +17,9 @@
|
|
|
@saveColumn="saveColumn"
|
|
|
:cell-style="cellStyle"
|
|
|
>
|
|
|
+ <template slot-scope="{ row }" slot="createUser">
|
|
|
+ <span>{{ row.createUserName }}</span>
|
|
|
+ </template>
|
|
|
<template slot="portOfLoadSearch">
|
|
|
<port-info v-model="search.portOfLoad" />
|
|
|
</template>
|
|
@@ -35,6 +38,30 @@
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
+ <template slot="dateValiditySearch">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="search.dateValidity"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </template>
|
|
|
+ <template slot="createTimeSearch">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="search.createTime"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </template>
|
|
|
<template slot="menuLeft">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -55,6 +82,9 @@
|
|
|
<template slot-scope="scope" slot="corpId">
|
|
|
{{ scope.row.corpsName }}
|
|
|
</template>
|
|
|
+ <template slot-scope="scope" slot="grossProfitRate">
|
|
|
+ {{ scope.row.grossProfitRate }}%
|
|
|
+ </template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -98,7 +128,8 @@ export default {
|
|
|
multiple: false,
|
|
|
collapseTags: false,
|
|
|
placeholder: "请点击右边按钮选择",
|
|
|
- dicData: []
|
|
|
+ dicData: [],
|
|
|
+ clearable: true
|
|
|
},
|
|
|
search: {},
|
|
|
form: {},
|
|
@@ -117,13 +148,17 @@ export default {
|
|
|
},
|
|
|
components: { detailPage },
|
|
|
async created() {
|
|
|
- this.search.businesDate=defaultDate()
|
|
|
+ this.search.businesDate = defaultDate();
|
|
|
/**
|
|
|
* 已定义全局方法,直接使用,getColumnData获取列数据,参数传值(表格名称,引入的本地JSON的数据定义的名称)
|
|
|
* 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
|
* 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
|
|
|
*/
|
|
|
this.option = await this.getColumnData(this.getColumnName(0), option);
|
|
|
+ this.getWorkDicts("order_status").then(res => {
|
|
|
+ this.findObject(this.option.column, "orderStatus").dicData =
|
|
|
+ res.data.data;
|
|
|
+ });
|
|
|
let _this = this;
|
|
|
this.option.column.forEach(e => {
|
|
|
if (e.prop == "exchangeRate") {
|
|
@@ -185,7 +220,17 @@ export default {
|
|
|
params.orderStartDate = params.businesDate[0];
|
|
|
params.orderEndDate = params.businesDate[1];
|
|
|
}
|
|
|
+ if (params.dateValidity) {
|
|
|
+ params.dateValidityStart = params.dateValidity[0];
|
|
|
+ params.dateValidityEnd = params.dateValidity[1];
|
|
|
+ }
|
|
|
+ if (params.createTime) {
|
|
|
+ params.createTimeStart = params.createTime[0];
|
|
|
+ params.createTimeEnd = params.createTime[1];
|
|
|
+ }
|
|
|
delete params.businesDate;
|
|
|
+ delete params.dateValidity;
|
|
|
+ delete params.createTime;
|
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page, params);
|
|
|
done();
|
|
@@ -198,11 +243,12 @@ 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],
|
|
|
- }
|
|
|
+ if (this.search.businesDate && this.search.businesDate.length > 0) {
|
|
|
+ params = {
|
|
|
+ ...params,
|
|
|
+ orderStartDate: this.search.businesDate[0],
|
|
|
+ orderEndDate: this.search.businesDate[1]
|
|
|
+ };
|
|
|
}
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
@@ -210,7 +256,7 @@ export default {
|
|
|
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 - 420;
|
|
|
+ this.option.height = window.innerHeight - 460;
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|