Explorar el Código

手动新建的委外

yusheng hace 1 año
padre
commit
b87664cb03
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  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.verifyDeptName = this.form.deptName;
           });
+          let pData = {
+            type: '1',
+            builders: this.form.productList.map((item) => {
+              return {
+                categoryId: item.id,
+                num: item.totalCount
+              };
+            })
+          };
           let pData2 = {
             type: 3,
             taskIds: this.form.productList.map((item) => item.taskId),
             workOrderIds: [this.form.sourceId]
           };
           storageApi
-            .getHierarchyFifo(pData2)
+            .getHierarchyFifo(this.form.sourceId?pData2:pData)
             .then((data) => {
               this.detailData(data, this.dimension);
             })