瀏覽代碼

Finish Hotfix-9

chen 3 年之前
父節點
當前提交
e9bd9135ff
共有 3 個文件被更改,包括 75 次插入1 次删除
  1. 16 0
      src/views/finance/account_list.vue
  2. 15 1
      src/views/finance/rebate_list.vue
  3. 44 0
      src/views/finance/standbook_list.vue

+ 16 - 0
src/views/finance/account_list.vue

@@ -107,6 +107,12 @@
             >记录</el-button
           >
         </div>
+        <div class="fr">
+          <ExportButton
+            :exUrl="'/finance/standing/book/export'"
+            :exParams="exParams"
+          />
+        </div>
       </div>
       <!-- 列表 -->
       <div class="mymain-container">
@@ -269,6 +275,16 @@ export default {
       walletList: [],
     };
   },
+  computed: {
+    exParams() {
+      return {
+        ...this.searchForm,
+        pageSize: this.pageSize,
+        pageNum: this.currentPage,
+        isReconciliation: false,
+      };
+    },
+  },
   created() {
     this.getDataList({
       pageSize: this.pageSize,

+ 15 - 1
src/views/finance/rebate_list.vue

@@ -71,7 +71,12 @@
           </el-row>
         </el-form>
       </div>
-
+      <!-- 按钮 -->
+      <div class="btn-group clearfix">
+        <div class="fr">
+          <ExportButton :exUrl="'/rebate/order/export'" :exParams="exParams" />
+        </div>
+      </div>
       <!-- 列表 -->
       <div class="mymain-container">
         <div class="table">
@@ -588,6 +593,15 @@ export default {
       isShow: null,
     };
   },
+  computed: {
+    exParams() {
+      return {
+        ...this.searchForm,
+        pageSize: this.pageSize,
+        pageNum: this.currentPage,
+      };
+    },
+  },
   created() {
     this.getDataList({
       pageSize: this.pageSize,

+ 44 - 0
src/views/finance/standbook_list.vue

@@ -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) => {