From b0254fc60807423cd748f057ed0393ab0e784fce Mon Sep 17 00:00:00 2001
From: futian.liu <liufutianyoo@163.com>
Date: 星期六, 09 十二月 2023 15:51:29 +0800
Subject: [PATCH] 分发明细只查本机构及下级

---
 admin-web/src/views/departmentitem/itemdis/distribution/index.vue |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/admin-web/src/views/departmentitem/itemdis/distribution/index.vue b/admin-web/src/views/departmentitem/itemdis/distribution/index.vue
index 9b4f879..1adbf96 100644
--- a/admin-web/src/views/departmentitem/itemdis/distribution/index.vue
+++ b/admin-web/src/views/departmentitem/itemdis/distribution/index.vue
@@ -114,7 +114,7 @@
         },
         {
           type: 'select',
-          dataIndex: 'inAgencyId',
+          dataIndex: 'departmentId',
           label: '鍒嗗彂閮ㄩ棬',
           placeholder: '璇烽�夋嫨',
           optionsConfig: {
@@ -135,7 +135,7 @@
           optionsConfig: {
             label: 'goodsName',
             value: 'id',
-            url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate',
+            url: SettingIplatform.apiBaseURL + `/pc/base/goods/template/query/goodsTemplate?tenantId=${getUserDetail().tenantId}`,
           },
         },
         {
@@ -172,18 +172,14 @@
         qryType: 1,
         pageNum: this.pageNum,
         pageSize: this.pageSize,
-        outAgencyId: this.userInfo.tenantId,
+        departmentId: this.userInfo.tenantId,
         ...this.filterFrom,
       }).then((res) => {
         this.list = res.datas;
         this.total = res.totalRows;
         this.loading = false;
       });
-    },
-    fifterForm(params) {
-      this.filterFrom = Object.assign(this.filterFrom, params);
-      this.search(1);
-    },
+    }
   },
 };
 </script>

--
Gitblit v1.9.1