소스 검색

手动新建的委外

yusheng 1 년 전
부모
커밋
b87664cb03
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      src/views/bpm/outgoingManagement/outbound.vue

+ 10 - 1
src/views/bpm/outgoingManagement/outbound.vue

@@ -971,13 +971,22 @@
             this.formData.extInfo.verifyDeptCode = this.form.deptId;
             this.formData.extInfo.verifyDeptCode = this.form.deptId;
             this.formData.extInfo.verifyDeptName = this.form.deptName;
             this.formData.extInfo.verifyDeptName = this.form.deptName;
           });
           });
+          let pData = {
+            type: '1',
+            builders: this.form.productList.map((item) => {
+              return {
+                categoryId: item.id,
+                num: item.totalCount
+              };
+            })
+          };
           let pData2 = {
           let pData2 = {
             type: 3,
             type: 3,
             taskIds: this.form.productList.map((item) => item.taskId),
             taskIds: this.form.productList.map((item) => item.taskId),
             workOrderIds: [this.form.sourceId]
             workOrderIds: [this.form.sourceId]
           };
           };
           storageApi
           storageApi
-            .getHierarchyFifo(pData2)
+            .getHierarchyFifo(this.form.sourceId?pData2:pData)
             .then((data) => {
             .then((data) => {
               this.detailData(data, this.dimension);
               this.detailData(data, this.dimension);
             })
             })