|
@@ -110,6 +110,15 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
+ <!-- 按钮 -->
|
|
|
+ <div class="btn-group clearfix">
|
|
|
+ <div class="fr">
|
|
|
+ <ExportButton
|
|
|
+ :exUrl="'/finance/standing/book/export'"
|
|
|
+ :exParams="exParams"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div v-show="bill == 'COMMONLY'">
|
|
|
<!-- 列表 -->
|
|
|
<div class="mymain-container">
|
|
@@ -484,6 +493,41 @@ export default {
|
|
|
isDisabled: false,
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ exParams() {
|
|
|
+ // return {
|
|
|
+ // type: this.bill,
|
|
|
+ // };
|
|
|
+ if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
|
+ return {
|
|
|
+ ...this.searchForm,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pageNum: this.currentPage,
|
|
|
+ type: this.bill,
|
|
|
+ customerName: this.$route.query.customerName,
|
|
|
+ customerNumber: this.$route.query.customerNumber,
|
|
|
+ };
|
|
|
+ } else if (this.isCustomer) {
|
|
|
+ return {
|
|
|
+ ...this.searchForm,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pageNum: this.currentPage,
|
|
|
+ type: this.bill,
|
|
|
+ customerName: this.$store.state.user.customerName,
|
|
|
+ customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ ...this.searchForm,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pageNum: this.currentPage,
|
|
|
+ type: this.bill,
|
|
|
+ customerName: this.customerName,
|
|
|
+ customerNumber: this.customerNumber,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
// console.log(to, from, next, 898);
|
|
|
next((vm) => {
|