Преглед на файлове

瑞鹰日报施工简报在编辑和审批状态下都可以填写

Zimo преди 1 седмица
родител
ревизия
55084398a5
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 1
      src/views/pms/iotrydailyreport/ry-form.vue
  2. 2 1
      src/views/pms/iotrydailyreport/ry-xj-form.vue

+ 2 - 1
src/views/pms/iotrydailyreport/ry-form.vue

@@ -176,6 +176,7 @@ const form = ref<Form>(initFormData())
 const isApproval = computed(() => props.type === 'approval')
 const isEdit = computed(() => props.type === 'edit')
 const isMainFieldDisabled = computed(() => formType.value === 'readonly' || isApproval.value)
+const isConstructionBriefDisabled = computed(() => formType.value === 'readonly')
 
 const wellOptions = ref<{ label: string; value: number }[]>([])
 
@@ -867,7 +868,7 @@ const inputCurrentDepth = useDebounceFn(function inputCurrentDepth() {
             resize="none"
             :maxlength="1000"
             placeholder="请输入当日施工简报"
-            :disabled="isMainFieldDisabled" />
+            :disabled="isConstructionBriefDisabled" />
         </el-form-item>
 
         <el-form-item class="col-span-2" label="下步计划" prop="nextPlan">

+ 2 - 1
src/views/pms/iotrydailyreport/ry-xj-form.vue

@@ -180,6 +180,7 @@ const form = ref<Form>(initFormData())
 const isApproval = computed(() => props.type === 'approval')
 const isEdit = computed(() => props.type === 'edit')
 const isMainFieldDisabled = computed(() => formType.value === 'readonly' || isApproval.value)
+const isConstructionBriefDisabled = computed(() => formType.value === 'readonly')
 
 const wellOptions = ref<{ label: string; value: number }[]>([])
 
@@ -864,7 +865,7 @@ const allocatedTimeDisabled = computed(() => {
             resize="none"
             :maxlength="1000"
             placeholder="请输入当日施工简报"
-            :disabled="isMainFieldDisabled" />
+            :disabled="isConstructionBriefDisabled" />
         </el-form-item>
 
         <!-- 时间信息 -->