Jelajahi Sumber

fix(productionPlan): 修复标准工时字段并补充保存数据

yusheng 3 minggu lalu
induk
melakukan
bfeead26b0

+ 2 - 0
src/views/productionPlan/components/newFactoryProductionScheduling.vue

@@ -2375,6 +2375,7 @@
             ? this.findHomemadeOption(row)
             : null;
           const detail = {
+            standardHours: row.standardHours||'',
             executionEndTime: row.executionEndTime || undefined,
             executionStartTime: row.executionStartTime || undefined,
             executionTeamId:
@@ -3462,6 +3463,7 @@
           this.$message.warning('请选择需要保存的工艺配置');
           return;
         }
+
         if (!this.validateTaskRow(row, { checkSequence: false })) return;
 
         const payload = this.buildSavePayload(this.isOrderScheduling ? 0 : 1);

+ 8 - 3
src/views/productionPlan/components/newFactoryProductionScheduling/TaskConfigPanel.vue

@@ -627,14 +627,19 @@
               />
             </template>
           </el-table-column>
-          <el-table-column label="标准工时" min-width="120" align="center">
+          <el-table-column label="标准工时(小时)" min-width="120" align="center">
             <template slot-scope="{ row }">
               <el-input
-                v-model="row.standardWorkingHours"
+                v-model="row.standardHours"
                 placeholder="请输入标准工时"
                 :disabled="readonlyMode"
+                type="number"
                 class="config-table-control"
-              ></el-input>
+              >
+                <!-- <template slot="append">
+                  <span>H</span>
+                </template> -->
+            </el-input>
             </template>
           </el-table-column>