Bladeren bron

提交车间管理代码

Lijy 6 maanden geleden
bovenliggende
commit
6e55c4f6ce
1 gewijzigde bestanden met toevoegingen van 11 en 2 verwijderingen
  1. 11 2
      fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/workView/fillReport.vue

+ 11 - 2
fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/workView/fillReport.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="distribution">
     <van-nav-bar title="报工" left-text="返回" @click-left="back" fixed left-arrow />
-    <van-cell title="报工日期" :value="reportDate" @click="reportDateShow = true" is-link>
+    <van-cell title="报工日期" :value="reportDate" @click="showReportDate" is-link>
     </van-cell>
     <van-cell title="产品名称" :value="reportForm.product_name"></van-cell>
     <van-cell :title="reportForm.plan_type == 0?'排产工单号':'任务变更通知号'" :value="reportForm.plan_type == 0 ? reportForm.product_scheduling_num : reportForm.task_change_notice_num"></van-cell>
@@ -101,7 +101,8 @@ export default {
         progress: 10,
       },
       inputSteelNum:null,
-      oldPlanSteelStampNumberList:[]
+      oldPlanSteelStampNumberList:[],
+      supplementaryReportFlag: true, // 是否补报
     };
   },
   computed: {},
@@ -116,8 +117,16 @@ export default {
     this.reportId = this.$route.query.otherId;
 
     this.getMyPlanProcedureList();
+    const { functionList = [] } = this.user
+    this.supplementaryReportFlag = functionList.filter(item => item.name == '补报').length > 0
   },
   methods: {
+    showReportDate() {
+      if(!this.supplementaryReportFlag) {
+        return
+      }
+      this.reportDateShow = true
+    },
     formatDate(date) {
       // 中国标准时间转成 YYYY-MM-DD
       const year = date.getFullYear();