|
|
@ -2111,40 +2111,43 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getDataList() |
|
|
|
|
|
|
|
|
this.handleRouteQuery() |
|
|
}, |
|
|
}, |
|
|
activated () { |
|
|
activated () { |
|
|
if (this.$route.params.type === 'tokenLogin') { |
|
|
|
|
|
if (this.$route.params.docNo) { |
|
|
|
|
|
this.searchData.quotationBatchNo = this.$route.params.docNo |
|
|
|
|
|
} |
|
|
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
|
|
let params = { |
|
|
|
|
|
...this.searchData, |
|
|
|
|
|
createBy: this.$store.state.user.name |
|
|
|
|
|
} |
|
|
|
|
|
quotationInformationSearch(params).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.dataList = data.page.list |
|
|
|
|
|
this.pageIndex = data.page.currPage |
|
|
|
|
|
this.pageSize = data.page.pageSize |
|
|
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
|
|
this.$refs.selectDiv.setLengthAll(this.dataList.length) |
|
|
|
|
|
//判断是否全部存在数据 |
|
|
|
|
|
if (this.dataList.length > 0) { |
|
|
|
|
|
//设置选中行 |
|
|
|
|
|
// this.$refs.quotationTable.setCurrentRow(this.dataList[0]) |
|
|
|
|
|
// this.refreshCurrentTabTable() //加载当前的页签的table |
|
|
|
|
|
this.quotationClickRow(this.dataList[0]) |
|
|
|
|
|
this.updateModal(this.dataList[0]) |
|
|
|
|
|
}else { |
|
|
|
|
|
this.quotationCurrentRow = {} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.handleRouteQuery() |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
handleRouteQuery(){ |
|
|
|
|
|
if (this.$route.params.type === 'tokenLogin') { |
|
|
|
|
|
if (this.$route.params.docNo) { |
|
|
|
|
|
this.searchData.quotationBatchNo = this.$route.params.docNo |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
}else { |
|
|
|
|
|
if (this.$route.params.quotationNo) { |
|
|
|
|
|
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
|
|
let params = { |
|
|
|
|
|
...this.searchData, |
|
|
|
|
|
createBy: this.$store.state.user.name |
|
|
|
|
|
} |
|
|
|
|
|
quotationInformationSearch(params).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.dataList = data.page.list |
|
|
|
|
|
this.pageIndex = data.page.currPage |
|
|
|
|
|
this.pageSize = data.page.pageSize |
|
|
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
|
|
this.$refs.selectDiv.setLengthAll(this.dataList.length) |
|
|
|
|
|
//判断是否全部存在数据 |
|
|
|
|
|
if (this.dataList.length > 0) { |
|
|
|
|
|
//设置选中行 |
|
|
|
|
|
// this.$refs.quotationTable.setCurrentRow(this.dataList[0]) |
|
|
|
|
|
// this.refreshCurrentTabTable() //加载当前的页签的table |
|
|
|
|
|
this.quotationClickRow(this.dataList[0]) |
|
|
|
|
|
this.updateModal(this.dataList[0]) |
|
|
|
|
|
}else { |
|
|
|
|
|
this.quotationCurrentRow = {} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}else if (this.$route.params.quotationNo) { |
|
|
this.searchData.quotationNo = this.$route.params.quotationNo |
|
|
this.searchData.quotationNo = this.$route.params.quotationNo |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
@ -2172,10 +2175,10 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else { |
|
|
|
|
|
this.getDataList() |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
}, |
|
|
// ======== 分页相关方法 ======== |
|
|
// ======== 分页相关方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 每页数 |
|
|
* 每页数 |
|
|
|