Procházet zdrojové kódy

调整瑞鹰日报填写

Zimo před 1 týdnem
rodič
revize
d13b8b4470

+ 44 - 87
src/views/pms/iotrydailyreport/ry-form.vue

@@ -338,7 +338,7 @@ const rules = reactive<FormRules>({
   reportDetails: [{ required: true, message: '请填写生产动态', type: 'array' }],
   constructionBrief: [
     {
-      required: isApproval.value,
+      required: !isMainFieldDisabled.value,
       message: '请填写施工简报',
       type: 'string',
       trigger: ['blur', 'change']
@@ -479,8 +479,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
     header-class="mb-0!"
     size="100%"
     :close-on-click-modal="false"
-    :close-on-press-escape="false"
-  >
+    :close-on-press-escape="false">
     <template #header>
       <span class="text-xl font-bold text-[var(--el-text-color-primary)]">
         {{ type === 'edit' ? '编辑日报' : '审批日报' }}
@@ -495,13 +494,11 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
       :model="form"
       v-loading="loading"
       require-asterisk-position="right"
-      :disabled="formType === 'readonly' && type !== 'approval'"
-    >
+      :disabled="formType === 'readonly' && type !== 'approval'">
       <!-- 顶部提示区 -->
       <div class="flex flex-col gap-3 text-sm mb-4">
         <div
-          class="rounded-md border border-blue-100 bg-blue-50/80 p-3 dark:border-blue-900/30 dark:bg-blue-900/10"
-        >
+          class="rounded-md border border-blue-100 bg-blue-50/80 p-3 dark:border-blue-900/30 dark:bg-blue-900/10">
           <div class="flex flex-col gap-2.5">
             <div class="flex items-center justify-between">
               <div class="text-gray-600 dark:text-gray-400">
@@ -509,8 +506,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                 当日油耗
               </div>
               <span
-                class="inline-flex items-center rounded border border-red-200 bg-red-100 px-2 py-0.5 text-xs font-medium text-red-600 dark:bg-red-900/20 dark:border-red-800 dark:text-red-400"
-              >
+                class="inline-flex items-center rounded border border-red-200 bg-red-100 px-2 py-0.5 text-xs font-medium text-red-600 dark:bg-red-900/20 dark:border-red-800 dark:text-red-400">
                 >9000升 红色预警
               </span>
             </div>
@@ -520,8 +516,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                 进尺 + 其它生产 + 非生产 = 24H
               </div>
               <span
-                class="inline-flex items-center rounded border border-orange-200 bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-600 dark:bg-orange-900/20 dark:border-orange-800 dark:text-orange-400"
-              >
+                class="inline-flex items-center rounded border border-orange-200 bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-600 dark:bg-orange-900/20 dark:border-orange-800 dark:text-orange-400">
                 ≠24H 橙色预警
               </span>
             </div>
@@ -529,12 +524,10 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
         </div>
         <div
           v-if="isEdit && form.opinion"
-          class="flex gap-3 rounded-md border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-800 dark:bg-yellow-900/10"
-        >
+          class="flex gap-3 rounded-md border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-800 dark:bg-yellow-900/10">
           <Icon
             icon="ep:warning-filled"
-            class="mt-0.5 shrink-0 text-base text-yellow-600 dark:text-yellow-500"
-          />
+            class="mt-0.5 shrink-0 text-base text-yellow-600 dark:text-yellow-500" />
           <div class="flex flex-col">
             <h4 class="mb-1 font-bold text-yellow-800 dark:text-yellow-500">审核意见</h4>
             <p class="leading-relaxed text-gray-600 dark:text-gray-400">{{ form.opinion }}</p>
@@ -559,8 +552,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             v-model="form.taskId"
             placeholder="请选择任务井"
             :options="wellOptions"
-            :disabled="form.auditStatus !== 20 && form.auditStatus !== 30"
-          />
+            :disabled="form.auditStatus !== 20 && form.auditStatus !== 30" />
         </el-form-item>
         <el-form-item label="施工区域" prop="location">
           <el-input v-model="form.location" disabled />
@@ -569,14 +561,12 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
           <el-select
             v-model="form.rigStatus"
             placeholder="请选择施工状态"
-            :disabled="isMainFieldDisabled"
-          >
+            :disabled="isMainFieldDisabled">
             <el-option
               v-for="(dict, index) in getStrDictOptions(DICT_TYPE.PMS_PROJECT_TASK_RY_SCHEDULE)"
               :key="index"
               :label="dict.label"
-              :value="dict.value"
-            />
+              :value="dict.value" />
           </el-select>
         </el-form-item>
         <el-form-item label="设计井深(m)" prop="designWellDepth">
@@ -590,8 +580,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="当日用电量(kWh)" prop="dailyPowerUsage">
           <el-input-number
@@ -602,8 +591,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="当日油耗(升)" prop="dailyFuel">
           <el-input-number
@@ -615,8 +603,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="泥浆密度(g/cm³)" prop="mudDensity">
           <el-input-number
@@ -627,8 +614,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="泥浆粘度(S)" prop="mudViscosity">
           <el-input-number
@@ -639,8 +625,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="水平段长度(m)" prop="lateralLength">
           <el-input-number
@@ -651,8 +636,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="井斜(°)" prop="wellInclination">
           <el-input-number
@@ -663,8 +647,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="方位(°)" prop="azimuth">
           <el-input-number
@@ -675,8 +658,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :disabled="isMainFieldDisabled"
             :controls="false"
             align="left"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="设计井身结构" prop="designWellStruct">
           <el-input
@@ -684,8 +666,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             placeholder=""
             type="textarea"
             disabled
-            autosize
-          />
+            autosize />
         </el-form-item>
         <el-form-item label="人员情况" prop="personnel">
           <el-input
@@ -694,8 +675,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             type="textarea"
             :max-length="1000"
             autosize
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
         <el-form-item class="col-span-2" label="备注" prop="remark">
           <el-input
@@ -703,8 +683,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             type="textarea"
             autosize
             maxlength="1000"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <div class="col-span-2">
@@ -718,8 +697,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
               link
               :icon="Plus"
               @click="addProductionStatusRow"
-              :disabled="isMainFieldDisabled"
-            >
+              :disabled="isMainFieldDisabled">
               添加一行
             </el-button>
           </div>
@@ -736,8 +714,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       message: '请选择日期',
                       trigger: ['change', 'blur'],
                       type: 'number'
-                    }"
-                  >
+                    }">
                     <el-date-picker
                       v-model="row.reportDate"
                       placeholder="选择日期"
@@ -745,8 +722,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       class="w-full!"
                       value-format="x"
                       :disabled="isMainFieldDisabled"
-                      @change="inputCurrentDepth()"
-                    />
+                      @change="inputCurrentDepth()" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -761,8 +737,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       required: true,
                       message: '请选择开始时间',
                       trigger: ['change', 'blur']
-                    }"
-                  >
+                    }">
                     <el-time-picker
                       v-model="row.startTime"
                       placeholder="选择开始时间"
@@ -771,8 +746,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       value-format="HH:mm"
                       class="w-full!"
                       @change="acalculateDuration(row)"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -786,8 +760,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       required: true,
                       message: '请选择结束时间',
                       trigger: ['change', 'blur']
-                    }"
-                  >
+                    }">
                     <el-time-picker
                       v-model="row.endTime"
                       placeholder="选择结束时间"
@@ -796,8 +769,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       value-format="HH:mm"
                       class="w-full!"
                       @change="acalculateDuration(row)"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -809,8 +781,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                     v-if="$index >= 0"
                     :prop="`reportDetails.${$index}.currentOperation`"
                     :rules="{ required: true, message: '请输入工况', trigger: ['change', 'blur'] }"
-                    class="mb-0!"
-                  >
+                    class="mb-0!">
                     <el-input
                       v-model="row.currentOperation"
                       type="textarea"
@@ -818,8 +789,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       show-word-limit
                       :maxlength="1000"
                       placeholder="请输入工况"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -837,8 +807,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       },
                       { validator: validateLastCurrentDepth, trigger: ['change', 'blur'] }
                     ]"
-                    class="mb-0!"
-                  >
+                    class="mb-0!">
                     <el-input-number
                       v-model="row.currentDepth"
                       :min="0"
@@ -847,8 +816,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       align="left"
                       placeholder="请输入结束井深"
                       :disabled="isMainFieldDisabled"
-                      @input="() => inputCurrentDepth()"
-                    >
+                      @input="() => inputCurrentDepth()">
                       <template #suffix> m </template>
                     </el-input-number>
                   </el-form-item>
@@ -861,8 +829,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                     v-if="$index >= 0"
                     :prop="`reportDetails.${$index}.constructionDetail`"
                     :rules="{ required: true, message: '请输入详细描述', trigger: 'blur' }"
-                    class="mb-0!"
-                  >
+                    class="mb-0!">
                     <el-input
                       v-model="row.constructionDetail"
                       type="textarea"
@@ -870,8 +837,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                       show-word-limit
                       :maxlength="1000"
                       placeholder="请输入详细描述"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -883,8 +849,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
                     type="danger"
                     :icon="Delete"
                     @click="removeProductionStatusRow($index)"
-                    :disabled="isMainFieldDisabled"
-                  >
+                    :disabled="isMainFieldDisabled">
                     删除
                   </el-button>
                 </template>
@@ -902,8 +867,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             resize="none"
             :maxlength="1000"
             placeholder="请输入当日施工简报"
-            :disabled="!isApproval"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <el-form-item class="col-span-2" label="下步计划" prop="nextPlan">
@@ -915,8 +879,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             resize="none"
             :maxlength="1000"
             placeholder="请输入下步计划"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <!-- 时间信息 -->
@@ -937,8 +900,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             align="left"
             placeholder="进尺+其他+非生产=24H"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
         <el-form-item label="其它生产时间(H)" prop="otherProductionTime">
           <el-input-number
@@ -950,8 +912,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             align="left"
             placeholder="请输入其它生产时间(H)"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
 
         <!-- 循环渲染11个具体非生产时间 -->
@@ -959,8 +920,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
           v-for="field in NON_PROD_FIELDS"
           :key="field.key"
           :label="field.label + '(H)'"
-          :prop="field.key"
-        >
+          :prop="field.key">
           <el-input-number
             class="!w-full"
             :min="0"
@@ -969,8 +929,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             :controls="false"
             align="left"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
 
         <!-- 其他非生产原因 -->
@@ -978,8 +937,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
           <el-input
             v-model="form.otherNptReason"
             placeholder="请输入其他非生产原因"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <!-- 审批意见 -->
@@ -991,8 +949,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
               maxlength="1000"
               type="textarea"
               :autosize="{ minRows: 3 }"
-              :disabled="formType === 'readonly'"
-            />
+              :disabled="formType === 'readonly'" />
           </el-form-item>
         </div>
       </div>

+ 45 - 89
src/views/pms/iotrydailyreport/ry-xj-form.vue

@@ -337,7 +337,7 @@ const rules = reactive<FormRules>({
   reportDetails: [{ required: true, message: '请填写生产动态', type: 'array' }],
   constructionBrief: [
     {
-      required: isApproval.value,
+      required: !isMainFieldDisabled.value,
       message: '请填写施工简报',
       type: 'string',
       trigger: ['blur', 'change']
@@ -471,8 +471,7 @@ const allocatedTimeDisabled = computed(() => {
     :model-value="visible"
     @update:model-value="emits('update:visible', $event)"
     header-class="mb-0!"
-    size="100%"
-  >
+    size="100%">
     <template #header>
       <span class="text-xl font-bold text-[var(--el-text-color-primary)]">
         {{ type === 'edit' ? '编辑日报' : '审批日报' }}
@@ -487,13 +486,11 @@ const allocatedTimeDisabled = computed(() => {
       :model="form"
       v-loading="loading"
       require-asterisk-position="right"
-      :disabled="formType === 'readonly' && type !== 'approval'"
-    >
+      :disabled="formType === 'readonly' && type !== 'approval'">
       <!-- 顶部提示区 -->
       <div class="flex flex-col gap-3 text-sm mb-4">
         <div
-          class="rounded-md border border-blue-100 bg-blue-50/80 p-3 dark:border-blue-900/30 dark:bg-blue-900/10"
-        >
+          class="rounded-md border border-blue-100 bg-blue-50/80 p-3 dark:border-blue-900/30 dark:bg-blue-900/10">
           <div class="flex flex-col gap-2.5">
             <div class="flex items-center justify-between">
               <div class="text-gray-600 dark:text-gray-400">
@@ -501,8 +498,7 @@ const allocatedTimeDisabled = computed(() => {
                 生产时间/额定生产时间
               </div>
               <span
-                class="inline-flex items-center rounded border border-red-200 bg-red-100 px-2 py-0.5 text-xs font-medium text-red-600 dark:bg-red-900/20 dark:border-red-800 dark:text-red-400"
-              >
+                class="inline-flex items-center rounded border border-red-200 bg-red-100 px-2 py-0.5 text-xs font-medium text-red-600 dark:bg-red-900/20 dark:border-red-800 dark:text-red-400">
                 >100% 红色预警
               </span>
             </div>
@@ -512,8 +508,7 @@ const allocatedTimeDisabled = computed(() => {
                 生产 + 非生产 = 额定生产
               </div>
               <span
-                class="inline-flex items-center rounded border border-orange-200 bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-600 dark:bg-orange-900/20 dark:border-orange-800 dark:text-orange-400"
-              >
+                class="inline-flex items-center rounded border border-orange-200 bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-600 dark:bg-orange-900/20 dark:border-orange-800 dark:text-orange-400">
                 ≠额定生产 橙色预警
               </span>
             </div>
@@ -523,8 +518,7 @@ const allocatedTimeDisabled = computed(() => {
                 当日油耗
               </div>
               <span
-                class="inline-flex items-center rounded border border-blue-200 bg-blue-100 px-2 py-0.5 text-xs font-medium text-blue-600 dark:bg-blue-900/20 dark:border-blue-800 dark:text-blue-400"
-              >
+                class="inline-flex items-center rounded border border-blue-200 bg-blue-100 px-2 py-0.5 text-xs font-medium text-blue-600 dark:bg-blue-900/20 dark:border-blue-800 dark:text-blue-400">
                 >3500升 蓝色预警
               </span>
             </div>
@@ -532,12 +526,10 @@ const allocatedTimeDisabled = computed(() => {
         </div>
         <div
           v-if="isEdit && form.opinion"
-          class="flex gap-3 rounded-md border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-800 dark:bg-yellow-900/10"
-        >
+          class="flex gap-3 rounded-md border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-800 dark:bg-yellow-900/10">
           <Icon
             icon="ep:warning-filled"
-            class="mt-0.5 shrink-0 text-base text-yellow-600 dark:text-yellow-500"
-          />
+            class="mt-0.5 shrink-0 text-base text-yellow-600 dark:text-yellow-500" />
           <div class="flex flex-col">
             <h4 class="mb-1 font-bold text-yellow-800 dark:text-yellow-500">审核意见</h4>
             <p class="leading-relaxed text-gray-600 dark:text-gray-400">{{ form.opinion }}</p>
@@ -562,8 +554,7 @@ const allocatedTimeDisabled = computed(() => {
             v-model="form.taskId"
             placeholder="请选择任务井"
             :options="wellOptions"
-            :disabled="form.auditStatus !== 20 && form.auditStatus !== 30"
-          />
+            :disabled="form.auditStatus !== 20 && form.auditStatus !== 30" />
         </el-form-item>
         <el-form-item label="施工区域" prop="location">
           <el-input v-model="form.location" disabled />
@@ -573,16 +564,14 @@ const allocatedTimeDisabled = computed(() => {
             v-model="form.repairStatus"
             placeholder="请选择"
             clearable
-            :disabled="isMainFieldDisabled"
-          >
+            :disabled="isMainFieldDisabled">
             <el-option
               v-for="(dict, index) in getStrDictOptions(
                 DICT_TYPE.PMS_PROJECT_TASK_RY_REPAIR_SCHEDULE
               )"
               :key="index"
               :label="dict.label"
-              :value="dict.value"
-            />
+              :value="dict.value" />
           </el-select>
         </el-form-item>
         <el-form-item :label="t('project.technology')" prop="technique">
@@ -591,8 +580,7 @@ const allocatedTimeDisabled = computed(() => {
               v-for="(dict, index) in getStrDictOptions(DICT_TYPE.PMS_PROJECT_RY_TECHNOLOGY)"
               :key="index"
               :label="dict.label"
-              :value="dict.value"
-            />
+              :value="dict.value" />
           </el-select>
         </el-form-item>
         <el-form-item label="井别" prop="wellCategory">
@@ -616,8 +604,7 @@ const allocatedTimeDisabled = computed(() => {
             placeholder="请输入当日油耗(升)"
             :disabled="isMainFieldDisabled"
             :controls="false"
-            align="left"
-          />
+            align="left" />
         </el-form-item>
         <el-form-item :label="t('project.currentOperation')" prop="currentOperation">
           <el-input
@@ -626,8 +613,7 @@ const allocatedTimeDisabled = computed(() => {
             type="textarea"
             autosize
             :maxlength="1000"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
         <el-form-item :label="t('project.nextPlan')" prop="nextPlan">
           <el-input
@@ -636,8 +622,7 @@ const allocatedTimeDisabled = computed(() => {
             type="textarea"
             autosize
             :maxlength="1000"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
         <el-form-item label="运行时效" prop="transitTime">
           <el-input
@@ -645,8 +630,7 @@ const allocatedTimeDisabled = computed(() => {
             placeholder="运行时效"
             disabled
             :class="{ 'warning-input': transitTime.original >= 1.0 }"
-            id="transitTimeInput"
-          />
+            id="transitTimeInput" />
         </el-form-item>
         <el-form-item label="全员数量" prop="totalStaffNum">
           <el-input-number
@@ -656,8 +640,7 @@ const allocatedTimeDisabled = computed(() => {
             :min="0"
             v-model="form.totalStaffNum"
             placeholder="请输入全员数量"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="在岗人数" prop="onDutyStaffNum">
           <el-input-number
@@ -665,8 +648,7 @@ const allocatedTimeDisabled = computed(() => {
             v-model="onDutyStaffNum"
             placeholder=""
             disabled
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="休假人员数量" prop="leaveStaffNum">
           <el-input-number
@@ -676,15 +658,13 @@ const allocatedTimeDisabled = computed(() => {
             :min="0"
             v-model="form.leaveStaffNum"
             placeholder="请输入休假人员数量"
-            class="w-full!"
-          />
+            class="w-full!" />
         </el-form-item>
         <el-form-item label="白班跟班干部" prop="daySupervisors">
           <el-input
             v-model="form.daySupervisors"
             placeholder="请输入白班跟班干部"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
         <el-form-item label="备注" prop="remark">
           <el-input
@@ -692,15 +672,13 @@ const allocatedTimeDisabled = computed(() => {
             type="textarea"
             autosize
             maxlength="1000"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
         <el-form-item label="夜班跟班干部" prop="nightSupervisors">
           <el-input
             v-model="form.nightSupervisors"
             placeholder="请输入夜班跟班干部"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <div class="col-span-2">
@@ -714,8 +692,7 @@ const allocatedTimeDisabled = computed(() => {
               link
               :icon="Plus"
               @click="addProductionStatusRow"
-              :disabled="isMainFieldDisabled"
-            >
+              :disabled="isMainFieldDisabled">
               添加一行
             </el-button>
           </div>
@@ -732,16 +709,14 @@ const allocatedTimeDisabled = computed(() => {
                       message: '请选择日期',
                       trigger: ['change', 'blur'],
                       type: 'number'
-                    }"
-                  >
+                    }">
                     <el-date-picker
                       v-model="row.reportDate"
                       placeholder="选择日期"
                       clearable
                       class="w-full!"
                       value-format="x"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -756,8 +731,7 @@ const allocatedTimeDisabled = computed(() => {
                       required: true,
                       message: '请选择开始时间',
                       trigger: ['change', 'blur']
-                    }"
-                  >
+                    }">
                     <el-time-picker
                       v-model="row.startTime"
                       placeholder="选择开始时间"
@@ -766,8 +740,7 @@ const allocatedTimeDisabled = computed(() => {
                       value-format="HH:mm"
                       class="w-full!"
                       @change="calculate(row)"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -781,8 +754,7 @@ const allocatedTimeDisabled = computed(() => {
                       required: true,
                       message: '请选择结束时间',
                       trigger: ['change', 'blur']
-                    }"
-                  >
+                    }">
                     <el-time-picker
                       v-model="row.endTime"
                       placeholder="选择结束时间"
@@ -791,8 +763,7 @@ const allocatedTimeDisabled = computed(() => {
                       value-format="HH:mm"
                       class="w-full!"
                       @change="calculate(row)"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -804,8 +775,7 @@ const allocatedTimeDisabled = computed(() => {
                     v-if="$index >= 0"
                     :prop="`reportDetails.${$index}.currentOperation`"
                     :rules="{ required: true, message: '请输入工况', trigger: ['change', 'blur'] }"
-                    class="mb-0!"
-                  >
+                    class="mb-0!">
                     <el-input
                       v-model="row.currentOperation"
                       type="textarea"
@@ -814,8 +784,7 @@ const allocatedTimeDisabled = computed(() => {
                       show-word-limit
                       :maxlength="1000"
                       placeholder="请输入工况"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -826,8 +795,7 @@ const allocatedTimeDisabled = computed(() => {
                     v-if="$index >= 0"
                     :prop="`reportDetails.${$index}.constructionDetail`"
                     :rules="{ required: true, message: '请输入详细描述', trigger: 'blur' }"
-                    class="mb-0!"
-                  >
+                    class="mb-0!">
                     <el-input
                       v-model="row.constructionDetail"
                       type="textarea"
@@ -836,8 +804,7 @@ const allocatedTimeDisabled = computed(() => {
                       show-word-limit
                       :maxlength="1000"
                       placeholder="请输入详细描述"
-                      :disabled="isMainFieldDisabled"
-                    />
+                      :disabled="isMainFieldDisabled" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -847,8 +814,7 @@ const allocatedTimeDisabled = computed(() => {
                   <el-form-item
                     v-if="$index >= 0"
                     class="mb-0!"
-                    :prop="`reportDetails.${$index}.allocatedTime`"
-                  >
+                    :prop="`reportDetails.${$index}.allocatedTime`">
                     <el-input-number
                       v-model="row.allocatedTime"
                       :disabled="isMainFieldDisabled || allocatedTimeDisabled"
@@ -858,8 +824,7 @@ const allocatedTimeDisabled = computed(() => {
                       placeholder="请输入定额时长"
                       class="!w-full"
                       :precision="2"
-                      @input="computedAllocatedEfficiency(row)"
-                    />
+                      @input="computedAllocatedEfficiency(row)" />
                   </el-form-item>
                 </template>
               </ZmTableColumn>
@@ -872,8 +837,7 @@ const allocatedTimeDisabled = computed(() => {
                 :formatter="
                   (row) =>
                     row.allocatedEfficiency ? `${(row.allocatedEfficiency * 100).toFixed(2)}%` : ''
-                "
-              />
+                " />
 
               <ZmTableColumn label="操作" width="80" fixed="right" align="center">
                 <template #default="{ $index }">
@@ -882,8 +846,7 @@ const allocatedTimeDisabled = computed(() => {
                     type="danger"
                     :icon="Delete"
                     @click="removeProductionStatusRow($index)"
-                    :disabled="isMainFieldDisabled"
-                  >
+                    :disabled="isMainFieldDisabled">
                     删除
                   </el-button>
                 </template>
@@ -901,8 +864,7 @@ const allocatedTimeDisabled = computed(() => {
             resize="none"
             :maxlength="1000"
             placeholder="请输入当日施工简报"
-            :disabled="!isApproval"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <!-- 时间信息 -->
@@ -922,8 +884,7 @@ const allocatedTimeDisabled = computed(() => {
             align="left"
             placeholder="请输入额定生产时间(H)"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
         <el-form-item label="生产时间(H)" prop="productionTime">
           <el-input-number
@@ -934,8 +895,7 @@ const allocatedTimeDisabled = computed(() => {
             align="left"
             placeholder="请输入生产时间(H)"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
 
         <!-- 循环渲染11个具体非生产时间 -->
@@ -943,8 +903,7 @@ const allocatedTimeDisabled = computed(() => {
           v-for="field in NON_PROD_FIELDS"
           :key="field.key"
           :label="field.label + '(H)'"
-          :prop="field.key"
-        >
+          :prop="field.key">
           <el-input-number
             class="!w-full"
             :min="0"
@@ -952,8 +911,7 @@ const allocatedTimeDisabled = computed(() => {
             :controls="false"
             align="left"
             :disabled="isMainFieldDisabled"
-            :class="{ 'orange-input': orange }"
-          />
+            :class="{ 'orange-input': orange }" />
         </el-form-item>
 
         <!-- 其他非生产原因 -->
@@ -961,8 +919,7 @@ const allocatedTimeDisabled = computed(() => {
           <el-input
             v-model="form.otherNptReason"
             placeholder="请输入其他非生产原因"
-            :disabled="isMainFieldDisabled"
-          />
+            :disabled="isMainFieldDisabled" />
         </el-form-item>
 
         <!-- 审批意见 -->
@@ -974,8 +931,7 @@ const allocatedTimeDisabled = computed(() => {
               maxlength="1000"
               type="textarea"
               :autosize="{ minRows: 3 }"
-              :disabled="formType === 'readonly'"
-            />
+              :disabled="formType === 'readonly'" />
           </el-form-item>
         </div>
       </div>