|
@@ -7,17 +7,7 @@
|
|
|
<button :class="['button-sty', { act: filterObj.month === item.label }]" v-for="item in monthLabel" @click="toggleMonth(item.label)" :key="item.label">
|
|
|
{{ item.label }}
|
|
|
</button>
|
|
|
- <date-picker
|
|
|
- v-model="filterObj.date"
|
|
|
- type="date"
|
|
|
- range
|
|
|
- value-type="format"
|
|
|
- placeholder="自定义时间段"
|
|
|
- :clearable="false"
|
|
|
- :editable="false"
|
|
|
- :disabled-date="disabledBeforeToday"
|
|
|
- @change="dateChange"
|
|
|
- />
|
|
|
+ <date-picker v-model="filterObj.date" type="date" range value-type="format" placeholder="自定义时间段" clearable :editable="false" :disabled-date="disabledBeforeToday" @change="dateChange" />
|
|
|
<el-input placeholder="合同编号/客户名称/社会信用码" v-model="searchVal" style="width: 400px; margin-left: auto" @input="handleSearch" clearable>
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
@@ -85,6 +75,7 @@ export default {
|
|
|
sale: "",
|
|
|
area: "",
|
|
|
},
|
|
|
+ searchVal: "",
|
|
|
monthLabel: [
|
|
|
{
|
|
|
label: "近1个月",
|
|
@@ -110,8 +101,8 @@ export default {
|
|
|
let token = localStorage.getItem("auth") || "";
|
|
|
let paramStr = "";
|
|
|
let obj = {
|
|
|
- StartDate: this.filterObj.date[0],
|
|
|
- EndDate: this.filterObj.date[1],
|
|
|
+ StartDate: this.filterObj.date[0] ? this.filterObj.date[0] : "",
|
|
|
+ EndDate: this.filterObj.date[1] ? this.filterObj.date[1] : "",
|
|
|
Keyword: this.searchVal,
|
|
|
IsExport: true,
|
|
|
};
|
|
@@ -150,8 +141,8 @@ export default {
|
|
|
async getTableData() {
|
|
|
const res = await contractInterface.getAllocationStatistic({
|
|
|
Keyword: this.searchVal,
|
|
|
- StartDate: this.filterObj.date[0],
|
|
|
- EndDate: this.filterObj.date[1],
|
|
|
+ StartDate: this.filterObj.date[0] ? this.filterObj.date[0] : "",
|
|
|
+ EndDate: this.filterObj.date[1] ? this.filterObj.date[1] : "",
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
this.datalist = res.Data.List;
|
|
@@ -168,7 +159,11 @@ export default {
|
|
|
lookDetailsHadelr(item) {
|
|
|
if (item.RealName == "合计" || item.RealName == "平均") return;
|
|
|
this.isShowDlg = true;
|
|
|
- this.listDlg = item;
|
|
|
+ this.listDlg = {
|
|
|
+ ...item,
|
|
|
+ date: this.filterObj.date,
|
|
|
+ searchVal: this.searchVal,
|
|
|
+ };
|
|
|
},
|
|
|
handleSearch() {
|
|
|
this.getTableData();
|