소스 검색

生产计划库存数量不显示bug修复

jingshuyong 11 달 전
부모
커밋
aced7b43b5
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/views/productionPlan/index.vue
  2. 8 0
      src/views/saleOrder/salesToProductionNewTwo.vue

+ 0 - 2
src/views/productionPlan/index.vue

@@ -846,9 +846,7 @@
       },
       // 修改计划
       planEdit(row) {
-
         if (row.timeDimensionPlanType == 3) {
-          console.log(row,'1111');
           this.factoryObj = row;
           // this.factoryType = ;
           // this.factoryShow = true;

+ 8 - 0
src/views/saleOrder/salesToProductionNewTwo.vue

@@ -850,6 +850,8 @@
           this.requestDict('交付要求');
           this.getByCodeFn();
           this.getFactoryList();
+          // 查询库存数量
+          // this.inventory(val.id);
           if (val.type == 'edit') {
             this.getPlanInfo(val.id);
           } else {
@@ -909,6 +911,10 @@
           }
         });
       },
+      // 查询库存数量
+      inventory(id){
+        
+      }, 
       // 验证时间是否超期
       changeDate(item, i) {
         if (this.isTimeAGreaterThanB(item.deliveryTime, item.reqMoldTime)) {
@@ -950,10 +956,12 @@
           this.bomListVersion();
           //   this.getPlanRouting();
         }
+        this._getInventory();
       },
       async _getInventory() {
         let code = [this.form.productCode];
         const res = await getInventoryTotalAPI(code);
+        console.log(res,'这是库存的数据 ---')
         this.form.stockCountBase = res[0].stockCountBase;
       },