|
|
@@ -134,6 +134,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getVendorSystemInfo, getVendorHierarchyInfo, getVendorTeamMembers, getVendorTeamCustomers } from '@/utils/api.js'
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -192,7 +194,7 @@ export default {
|
|
|
// 获取体系信息
|
|
|
async fetchSystemInfo() {
|
|
|
try {
|
|
|
- const res = await this.$http.get('/api/admin/supply-system/my-system', {})
|
|
|
+ const res = await getVendorSystemInfo()
|
|
|
return res.data || null
|
|
|
} catch (e) {
|
|
|
return null
|
|
|
@@ -202,7 +204,7 @@ export default {
|
|
|
// 获取层级关系
|
|
|
async fetchHierarchyInfo() {
|
|
|
try {
|
|
|
- const res = await this.$http.get('/api/admin/supply-hierarchy/my', {})
|
|
|
+ const res = await getVendorHierarchyInfo()
|
|
|
return res.data || null
|
|
|
} catch (e) {
|
|
|
return null
|
|
|
@@ -212,9 +214,7 @@ export default {
|
|
|
// 获取团队成员
|
|
|
async fetchTeamMembers() {
|
|
|
try {
|
|
|
- const res = await this.$http.get('/api/admin/supply-team/members', {
|
|
|
- systemId: this.systemInfo?.id
|
|
|
- })
|
|
|
+ const res = await getVendorTeamMembers(this.systemInfo?.id)
|
|
|
return res.data || []
|
|
|
} catch (e) {
|
|
|
return []
|
|
|
@@ -224,7 +224,7 @@ export default {
|
|
|
// 获取团队客户
|
|
|
async fetchTeamCustomers() {
|
|
|
try {
|
|
|
- const res = await this.$http.get('/api/admin/supply-team/customers', {
|
|
|
+ const res = await getVendorTeamCustomers({
|
|
|
systemId: this.systemInfo?.id,
|
|
|
parentId: null,
|
|
|
page: 1,
|