ソースを参照

销售订单转生产计划 bug修复

jingshuyong 10 ヶ月 前
コミット
2a99b9bee5

+ 6 - 6
src/views/productionPlan/components/homogeneityInspectDialog.vue

@@ -120,22 +120,22 @@
                   </el-form-item>
                 </el-form>
               </template>
-              <template v-slot:stockCount="{ row }">
+              <template v-slot:inventoryQuantity="{ row }">
                 <el-link
                   type="primary"
                   :underline="false"
                   @click="stockDetail(row)"
                 >
-                  {{ row.stockCount }}
+                  {{ row.inventoryQuantity }}
                 </el-link>
               </template>
-              <template v-slot:currentCount="{ row }">
+              <template v-slot:inTransitNum="{ row }">
                 <el-link
                   type="primary"
                   :underline="false"
                   @click="currentDetail(row)"
                 >
-                  {{ row.currentCount }}
+                  {{ row.inTransitNum }}
                 </el-link>
               </template>
               <template v-slot:inventoryStatusText="{ row }">
@@ -425,10 +425,10 @@
       //   });
       // },
       stockDetail(row) {
-        this.$refs.stockDetailDialog.open(row);
+        this.$refs.stockDetailDialog.open({ bomCode: row.code });
       },
       currentDetail(row) {
-        this.$refs.currentDetailDialog.open(row);
+        this.$refs.currentDetailDialog.open({ bomCode: row.code });
       },
       // 选择BOM类型
       async bomTypeChange(e) {

+ 2 - 3
src/views/saleOrder/salesToProductionNewTwo.vue

@@ -826,8 +826,7 @@
         // 表单验证规则
         rules: {
           produceRoutingId: [
-            { required: true, message: '请选择工艺路线', trigger: 'blur' },
-            
+            { required: true, message: '请选择工艺路线', trigger: 'blur' }
           ],
           // startTime: [
           //   {
@@ -1099,8 +1098,8 @@
           if (queryD.produceRoutingId && !queryD.bomCategoryId) {
             this.form.produceRoutingName = queryD.produceRoutingName;
             this.form.produceRoutingId = queryD.produceRoutingId;
+            this.selectionRowShow = true;
           }
-          this.selectionRowShow = true;
         }
         this.bomListVersion(type);
       },