Эх сурвалжийг харах

pms 瑞都日报 故障情况 故障误工

zhangcl 2 өдөр өмнө
parent
commit
3d6956157e

+ 34 - 1
src/views/pms/iotrddailyreport/FillDailyReportForm.vue

@@ -328,6 +328,36 @@
           </el-col>
         </el-row>
 
+        <!-- 故障情况 -->
+        <el-row>
+          <el-col :span="24">
+            <el-form-item label="故障情况" prop="malfunction">
+              <el-input
+                v-model="formData.malfunction"
+                type="textarea"
+                :rows="3"
+                placeholder="请输入故障情况"
+                :readonly="isReadonlyMode"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+
+        <!-- 故障误工H -->
+        <el-row>
+          <el-col :span="24">
+            <el-form-item label="故障误工H" prop="faultDowntime">
+              <el-input
+                v-model="formData.faultDowntime"
+                type="number"
+                :rows="3"
+                placeholder="请输入故障误工H"
+                :readonly="isReadonlyMode"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+
         <!-- 第六行:上传附件 -->
         <el-row>
           <el-col :span="24">
@@ -599,7 +629,8 @@ const formData = ref({
   productionStatus: '', // 当日生产动态
   nextPlan: '', // 下步工作计划
   externalRental: '', // 外租设备
-
+  malfunction: '',    // 故障情况
+  faultDowntime: '',  // 故障误工
   // 添加动态字段对象
   dynamicFields: {} as Record<string, any>,
   // 附件列表
@@ -1125,6 +1156,8 @@ const initFormData = (reportData: any) => {
     productionStatus: reportData.productionStatus || '',
     nextPlan: reportData.nextPlan || '',
     externalRental: reportData.externalRental || '',
+    malfunction: reportData.malfunction || '',
+    faultDowntime: reportData.faultDowntime || '',
     startTime: reportData.startTime || undefined,
     endTime: reportData.endTime || undefined,
     companyId: reportData.companyId || '',