|
|
@@ -26,13 +26,13 @@ |
|
|
|
近一周 |
|
|
|
</div> --> |
|
|
|
<el-button |
|
|
|
:class="{ 'el-button--primary': TimetoAhoose == 4 }" |
|
|
|
@click="tabtimetap(4)" |
|
|
|
:class="{ 'el-button--primary': TimetoAhoose == 0 }" |
|
|
|
@click="tabtimetap(0)" |
|
|
|
>今天</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
:class="{ 'el-button--primary': TimetoAhoose == 5 }" |
|
|
|
@click="tabtimetap(5)" |
|
|
|
:class="{ 'el-button--primary': TimetoAhoose == 4 }" |
|
|
|
@click="tabtimetap(4)" |
|
|
|
>近7天</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
@@ -164,7 +164,7 @@ export default { |
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
houseId: "", |
|
|
|
buildingoptions: [], |
|
|
|
TimetoAhoose: 5, |
|
|
|
TimetoAhoose: 4, |
|
|
|
customtime: [], |
|
|
|
fromobj: { |
|
|
|
starttime: "", |
|
|
@@ -180,30 +180,14 @@ export default { |
|
|
|
this.zkhousePage(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// <el-button |
|
|
|
// :class="{ 'el-button--primary': TimetoAhoose == 4 }" |
|
|
|
// @click="tabtimetap(4)" |
|
|
|
// >今天</el-button |
|
|
|
// > |
|
|
|
// <el-button |
|
|
|
// :class="{ 'el-button--primary': TimetoAhoose == 5 }" |
|
|
|
// @click="tabtimetap(5)" |
|
|
|
// >近7天</el-button |
|
|
|
// > |
|
|
|
// <el-button |
|
|
|
// :class="{ 'el-button--primary': TimetoAhoose == 6 }" |
|
|
|
// @click="tabtimetap(6)" |
|
|
|
// >近30天</el-button |
|
|
|
// > |
|
|
|
// </div> |
|
|
|
goTo(i) { |
|
|
|
if (i == 1) { |
|
|
|
if (this.TimetoAhoose == 6) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}`) |
|
|
|
} else { |
|
|
|
if (this.TimetoAhoose == 4) { |
|
|
|
if (this.TimetoAhoose == 0) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&dateType=0&houseId=${this.houseId}`) |
|
|
|
} else if (this.TimetoAhoose == 5) { |
|
|
|
} else if (this.TimetoAhoose == 4) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&dateType=2&houseId=${this.houseId}`) |
|
|
|
} else { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&houseId=${this.houseId}`) |
|
|
@@ -215,9 +199,9 @@ export default { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}`); |
|
|
|
} else { |
|
|
|
|
|
|
|
if (this.TimetoAhoose == 4) { |
|
|
|
if (this.TimetoAhoose == 0) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=0&houseId=${this.houseId}`) |
|
|
|
} else if (this.TimetoAhoose == 5) { |
|
|
|
} else if (this.TimetoAhoose == 4) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&dateType=2&houseId=${this.houseId}`) |
|
|
|
} else { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=1&houseId=${this.houseId}`) |
|
|
@@ -228,9 +212,9 @@ export default { |
|
|
|
if (this.TimetoAhoose == 6) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:5'&houseId=${this.houseId}`); |
|
|
|
} else { |
|
|
|
if (this.TimetoAhoose == 4) { |
|
|
|
if (this.TimetoAhoose == 0) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=0&houseId=${this.houseId}`) |
|
|
|
} else if (this.TimetoAhoose == 5) { |
|
|
|
} else if (this.TimetoAhoose == 4) { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&dateType=2&houseId=${this.houseId}`) |
|
|
|
} else { |
|
|
|
Router.push(`/ReceivingRecords/index?validInvalid=0&markAdvisor=0&houseId=${this.houseId}`) |
|
|
|