From 0f43183f986f0ed314647687c73da5a4493d2611 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 16 十月 2023 20:36:15 +0800
Subject: [PATCH] bug修复(5219 5233)

---
 src/views/other/payment/saleInvoice/index.vue |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/src/views/other/payment/saleInvoice/index.vue b/src/views/other/payment/saleInvoice/index.vue
index ac90903..b430c93 100644
--- a/src/views/other/payment/saleInvoice/index.vue
+++ b/src/views/other/payment/saleInvoice/index.vue
@@ -169,13 +169,25 @@
     // 璇锋眰鏁版嵁
     async getData() {
       this.loading = true
-      await getInvoiceList({
-        keyword: this.keyword,
-        keywordType: this.keywordType,
-        page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize,
-        sourceId:this.addConfig.id
-      })
+      console.log(this.addConfig)
+      let params = {}
+      let sourceTyle = this.addConfig.keywordType === "閿�鍞槑缁嗗崟" ? 1 : 2
+      if (this.addConfig.id) {
+        params = {
+          sourceID: this.addConfig.id,
+          sourceType: sourceTyle,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize
+        }
+      } else {
+        params = {
+          keyword: this.keyword,
+          keywordType: this.keywordType,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize
+        }
+      }
+      await getInvoiceList(params)
         .then((res) => {
           if (res.data.code === 200) {
             if (res.data.data.data && res.data.data.data.length > 0) {

--
Gitblit v1.8.0