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