فهرست منبع

瑞鹰修井添加夜班白班干部

Zimo 15 ساعت پیش
والد
کامیت
4bc6d47871
1فایلهای تغییر یافته به همراه24 افزوده شده و 2 حذف شده
  1. 24 2
      src/views/pms/iotrydailyreport/ry-xj-form.vue

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

@@ -95,6 +95,8 @@ interface FormOriginal {
 
   auditStatus: number
   location: string
+  daySupervisors: string
+  nightSupervisors: string
 }
 
 type Form = Partial<FormOriginal>
@@ -141,7 +143,9 @@ const FORM_KEYS: (keyof FormOriginal)[] = [
   'otherNptTime',
   'otherNptReason',
   'auditStatus',
-  'location'
+  'location',
+  'daySupervisors',
+  'nightSupervisors'
 ]
 
 const formRef = ref<FormInstance>()
@@ -315,6 +319,10 @@ const validateOtherReason = (_rule: any, value: any, callback: any) => {
 // 动态构建校验规则
 const rules = reactive<FormRules>({
   repairStatus: [{ required: true, message: '请选择施工状态', trigger: ['change', 'blur'] }],
+  daySupervisors: [{ required: true, message: '请输入白班跟班干部', trigger: ['change', 'blur'] }],
+  nightSupervisors: [
+    { required: true, message: '请输入夜班跟班干部', trigger: ['change', 'blur'] }
+  ],
   reportDetails: [{ required: true, message: '请填写生产动态', type: 'array' }],
   constructionBrief: [
     {
@@ -638,7 +646,14 @@ const orange = computed(() => {
             class="w-full!"
           />
         </el-form-item>
-        <el-form-item class="col-span-2" label="备注" prop="remark">
+        <el-form-item label="白班跟班干部" prop="daySupervisors">
+          <el-input
+            v-model="form.daySupervisors"
+            placeholder="请输入白班跟班干部"
+            :disabled="isMainFieldDisabled"
+          />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
           <el-input
             v-model="form.remark"
             type="textarea"
@@ -647,6 +662,13 @@ const orange = computed(() => {
             :disabled="isMainFieldDisabled"
           />
         </el-form-item>
+        <el-form-item label="夜班跟班干部" prop="nightSupervisors">
+          <el-input
+            v-model="form.nightSupervisors"
+            placeholder="请输入夜班跟班干部"
+            :disabled="isMainFieldDisabled"
+          />
+        </el-form-item>
 
         <div class="col-span-2">
           <div class="flex items-center justify-between mb-6">