|
@@ -259,6 +259,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
resetSearchForm () {
|
|
|
+ this.resetData()
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ },
|
|
|
+ // 重置数据
|
|
|
+ resetData () {
|
|
|
this.$refs.rangeDate.resetDate(this.time)
|
|
|
this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
|
|
|
this.queryParam.endDate = getDate.getCurrMonthDays().endtime
|
|
@@ -267,9 +272,8 @@ export default {
|
|
|
this.queryParam.auditEndDate = ''
|
|
|
this.queryParam.buyerSn = undefined
|
|
|
this.queryParam.salesReturnNo = ''
|
|
|
- this.queryParam.state = ''
|
|
|
+ this.queryParam.state = undefined
|
|
|
this.$refs.custList.resetForm()
|
|
|
- this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 客户 change
|
|
|
custChange (obj) {
|
|
@@ -306,8 +310,12 @@ export default {
|
|
|
activated () {
|
|
|
// 如果是新页签打开,则重置当前页面
|
|
|
if (this.$store.state.app.isNewTab) {
|
|
|
+ this.resetData()
|
|
|
+ if (this.$route.query.pageParams) {
|
|
|
+ this.queryParam.state = this.$route.query.pageParams.state
|
|
|
+ }
|
|
|
this.pageInit()
|
|
|
- this.resetSearchForm()
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
}
|
|
|
// 仅刷新列表,不重置页面
|
|
|
if (this.$store.state.app.updateList) {
|