فهرست منبع

🦄 refactor(瑞都日报): 非生产时间只能黄印填写

Zimo 5 روز پیش
والد
کامیت
ea4332da0c
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      src/views/pms/iotrddailyreport/FillDailyReportForm.vue
  2. 3 3
      src/views/pms/iotrddailyreport/fillDailyReport.vue

+ 2 - 2
src/views/pms/iotrddailyreport/FillDailyReportForm.vue

@@ -458,7 +458,7 @@
               v-model="formData[field.key]"
               :controls="false"
               align="left"
-              :disabled="isReadonlyMode && query.istime !== 'true'"
+              :disabled="query.istime !== 'true'"
             />
           </el-form-item>
         </div>
@@ -469,7 +469,7 @@
               <el-input
                 v-model="formData.otherNptReason"
                 placeholder="请输入其他非生产原因"
-                :disabled="isReadonlyMode && query.istime !== 'true'"
+                :disabled="query.istime !== 'true'"
               />
             </el-form-item>
           </el-col>

+ 3 - 3
src/views/pms/iotrddailyreport/fillDailyReport.vue

@@ -100,7 +100,7 @@
               <el-button
                 link
                 type="warning"
-                @click="openForm('fill', scope.row.id)"
+                @click="openForm('fill', scope.row.id, 'true')"
                 v-hasPermi="['pms:iot-rd-daily-report:non-productive']"
                 v-if="scope.row.auditStatus === 20"
               >
@@ -381,8 +381,8 @@ const resetQuery = () => {
 
 /** 添加/修改操作 */
 const formRef = ref()
-const openForm = (type: string, id?: number) => {
-  push({ name: 'FillDailyReportForm', params: { id: id, mode: 'fill' }, query: { istime: 'true' } })
+const openForm = (type: string, id?: number, istime: string = 'false') => {
+  push({ name: 'FillDailyReportForm', params: { id: id, mode: 'fill' }, query: { istime: istime } })
 }
 
 /** 删除按钮操作 */