Sfoglia il codice sorgente

任务单列表:树形表格调参

chris 1 anno fa
parent
commit
65cedff093
2 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 8 0
      src/api/product.js
  2. 3 2
      src/views/modules/order/order-detail.vue

+ 8 - 0
src/api/product.js

@@ -34,6 +34,14 @@ export function getChildren (productId) {
   })
 }
 
+// 物料列表(任务单)
+export function getChildren2 (productId, saleROrderProductId) {
+  return request({
+    url: request.adornUrl(`/biz-service/order/queryByParentId/${productId}/${saleROrderProductId}`),
+    method: 'get'
+  })
+}
+
 // 图纸列表
 export function getDrawList (params) {
   return request({

+ 3 - 2
src/views/modules/order/order-detail.vue

@@ -327,7 +327,7 @@
   import EDescItem from '../common/e-desc-item'
   import { dealStepData, dealStepLogs } from '@/api/util'
   import { getOrderDetail } from '@/api/sale'
-  import { getChildren } from '@/api/product'
+  import { getChildren2 } from '@/api/product'
   import uploadComponent from '../common/upload-component'
   import ApproveComponent from '../common/approve-component'
   import PreviewComponent from '@/views/modules/common/preview-component'
@@ -448,7 +448,8 @@ export default {
         })
       },
       loadingData (row, treeNode, resolve) {
-        getChildren(row.productId).then(({data}) => {
+        getChildren2(row.productId, row.id).then(({data}) => {
+          // console.log(JSON.stringify(data))
           if (data && data.code === '200') {
             data.data.forEach(item => {
               if (item.attachList2 && item.attachList2.length > 0) {