yusheng 1 year ago
parent
commit
378ef4a5b3

+ 1 - 1
src/api/saleManage/contact.js

@@ -137,7 +137,7 @@ export async function contactDelete(data) {
  * 获取客户分类树
  */
 export async function contactTypeTree(data) {
-  const res = await request.get(`/main/categoryLevel/getTreeByCode/${data.code}`);
+  const res = await request.get(`/main/categoryLevel/getTreeByPid/${data.id}`);
   if (res.data.code == 0) {
     return res.data;
   }

+ 1 - 1
src/views/contractManage/contractBook/components/generateContractsDialog.vue

@@ -70,7 +70,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W9' });
+        const res = await contactTypeTree({ id: '20' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;

+ 2 - 2
src/views/contractManage/contractBook/index.vue

@@ -10,7 +10,7 @@
           <div class="ele-border-lighter sys-organization-list">
             <AssetTree
               @handleNodeClick="handleNodeClick"
-              codeS="W9"
+              id="20"
               :isFirstRefreshTable="false"
               ref="treeList"
             />
@@ -427,7 +427,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W9' });
+        const res = await contactTypeTree({ id: '17' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;

+ 1 - 1
src/views/purchasingManage/inquiryManage/components/generateContractsDialog.vue

@@ -75,7 +75,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W9' });
+        const res = await contactTypeTree({ id: '20' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;

+ 1 - 1
src/views/purchasingManage/inquiryManage/index.vue

@@ -323,7 +323,7 @@ import generateContractsDialog from "@/views/purchasingManage/inquiryManage/comp
       async getTreeData() {
         try {
           this.treeLoading = true;
-          const res = await contactTypeTree({ code: 'W9' });
+          const res = await contactTypeTree({ id: '20' });
           this.treeLoading = false;
           if (res?.code === '0') {
             this.treeList = res.data;

+ 3 - 3
src/views/purchasingManage/producerManage/index.vue

@@ -10,7 +10,7 @@
           <div class="ele-border-lighter sys-organization-list">
             <AssetTree
               @handleNodeClick="handleNodeClick"
-              codeS="W10"
+              id="20250317001"
               :isFirstRefreshTable="false"
               ref="treeList"
             />
@@ -318,8 +318,8 @@
       async getTreeData() {
         try {
           this.treeLoading = true;
-          let typeObj = await getProduceTreeByCode('W10');
-          const res = await contactTypeTree({ type:typeObj[0]?.id});
+          // let typeObj = await getProduceTreeByCode('W10');
+          const res = await contactTypeTree({ id:'20250317001'});
           this.treeLoading = false;
           if (res?.code === '0') {
             this.treeList = res.data;

+ 1 - 1
src/views/purchasingManage/purchaseOrder/components/generateOrderDialog.vue

@@ -73,7 +73,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W9' });
+        const res = await contactTypeTree({ id: '20' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;

+ 2 - 2
src/views/purchasingManage/supplierManage/index.vue

@@ -10,7 +10,7 @@
           <div class="ele-border-lighter sys-organization-list">
             <AssetTree
               @handleNodeClick="handleNodeClick"
-              codeS="W8,W10"
+              id="19"
               :isFirstRefreshTable="false"
               ref="treeList"
             />
@@ -314,7 +314,7 @@
       async getTreeData() {
         try {
           this.treeLoading = true;
-          const res = await contactTypeTree({ code: 'W8,W10' });
+          const res = await contactTypeTree({ id: '19' });
           this.treeLoading = false;
           if (res?.code === '0') {
             this.treeList = res.data;

+ 1 - 1
src/views/saleManage/contact/contactList.vue

@@ -369,7 +369,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W7' });
+        const res = await contactTypeTree({ id: '17' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;

+ 1 - 1
src/views/saleManage/contact/contactListAdmin.vue

@@ -447,7 +447,7 @@
       async getTreeData() {
         try {
           this.treeLoading = true;
-          const res = await contactTypeTree({ code: 'W7' });
+          const res = await contactTypeTree({ id: '17' });
           this.treeLoading = false;
           if (res?.code === '0') {
             this.treeList = res.data;

+ 2 - 2
src/views/saleManage/contact/index.vue

@@ -31,7 +31,7 @@
               @handleNodeClick="handleNodeClick"
               :defaultExpandedKeys="defaultExpandedKeys"
               :defaultExpandAll="false"
-              codeS="W7"
+              id="17"
               :isFirstRefreshTable="false"
               ref="treeList"
             />
@@ -478,7 +478,7 @@ export default {
     async getTreeData() {
       try {
         this.treeLoading = true;
-        const res = await contactTypeTree({ code: 'W7' });
+        const res = await contactTypeTree({ id: '17' });
         this.treeLoading = false;
         if (res?.code === '0') {
           this.treeList = res.data;