Explorar el Código

Merge branch 'dev' of http://git.echepei.com/caojunjie/Smart_platform_ui into dev

fenghy hace 3 años
padre
commit
40afd637f9

+ 1 - 0
src/api/basicData/basicFeesDesc.js

@@ -17,6 +17,7 @@ export const getDeptLazyTree = (parentId) => {
         }
     })
 }
+
 //商品查询接口
 export const getDeptLazyTreeTwo = (parentId) => {
     return request({

+ 9 - 1
src/api/basicData/configuration.js

@@ -83,7 +83,15 @@ export function getDeptLazyTree(parentId){
         }
     })
 }
-
+export const getDeptLazyTreeS = (parentId) => {
+    return request({
+        url: '/api/blade-client/goodstype/lazy-tree',
+        method: 'get',
+        params: {
+            parentId
+        }
+    })
+}
 export const getList = (current, size, params, goodsTypeId) => {
     return request({
         url: '/api//blade-client/goodsdesc/selectGoods',

+ 4 - 2
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -333,7 +333,8 @@ import {
   corpsbank,
   corpsfiles,
   corpsitem,
-  getList
+  getList,
+  getDeptLazyTreeS
 } from "@/api/basicData/configuration"
 import customerContact from "./configuration/customerContact.json"
 import advantageProject from "./configuration/advantageProject.json"
@@ -399,7 +400,8 @@ export default {
         lazy: true,
         treeLoad: function (node, resolve) {
           const parentId = (node.level === 0) ? 0 : node.data.id;
-          getDeptLazyTree(parentId).then(res => {
+          getDeptLazyTreeS(parentId).then(res => {
+            console.log(res.data.data)
             resolve(res.data.data.map(item => {
               return {
                 ...item,