Jelajahi Sumber

feature_20260228_周报半月报动态配置

zhujindu 2 hari lalu
induk
melakukan
9046295dea

+ 7 - 2
src/views/week/doubleHistoricalWeeklyDetils.vue

@@ -216,12 +216,12 @@
             >
           </van-row>
         </van-collapse-item>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上期工作成果" name="7">
@@ -402,6 +402,7 @@ export default {
       managerRemarkContent: '',
       isDiy: false,
       type: '-1',
+      JZQuota: false,
       //
     };
   },
@@ -564,6 +565,10 @@ export default {
       });
       getDetailById({ reportId: this.$route.query.reportId }).then((res) => {
         loading1.clear();
+        this.JZQuota = false;
+        if (res.data.postType == 'JZ') {
+          this.JZQuota = true;
+        }
         this.title =
           res.data.deptName + '-' + res.data.postName + '-' + res.data.nickName + '的半月报';
         this.ptitle = res.data.pdeptName + '-' + res.data.ppostName + '-' + res.data.pnickName;

+ 7 - 2
src/views/week/doubleWeekly.vue

@@ -231,10 +231,10 @@
           </van-row>
         </van-collapse-item>
         <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <reportCustom
             ref="reportCustom"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上期工作成果" name="7" class="collapsettitle">
@@ -358,6 +358,7 @@ export default {
       weekType: [],
       temporaryShow: '',
       type: '-1',
+      JZQuota: false,
     };
   },
   created() {
@@ -410,6 +411,10 @@ export default {
       getDetailById({ reportId: this.$route.query.reportId }).then((res) => {
         loading1.clear();
         if (res.code == 200) {
+          this.JZQuota = false;
+          if (res.data.postType == 'JZ') {
+            this.JZQuota = true;
+          }
           if (res.data.status != '0' && res.data.status != '2') {
             this.$dialog
               .alert({

+ 7 - 2
src/views/week/doubleWeeklyApproval.vue

@@ -216,12 +216,12 @@
             >
           </van-row>
         </van-collapse-item>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上期工作成果" name="7">
@@ -366,6 +366,7 @@ export default {
       updateReport: {},
       weekType: [],
       type: '-1',
+      JZQuota: false,
     };
   },
   created() {
@@ -473,6 +474,10 @@ export default {
       getDetailById({ reportId: this.$route.query.reportId }).then((res) => {
         loading1.clear();
         if (res.code == 200) {
+          this.JZQuota = false;
+          if (res.data.postType == 'JZ') {
+            this.JZQuota = true;
+          }
           if (res.data.status != '1') {
             this.$dialog
               .alert({

+ 2 - 2
src/views/week/doubleWeeklyDetils.vue

@@ -215,12 +215,12 @@
             >
           </van-row>
         </van-collapse-item>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上期工作成果" name="7">

+ 2 - 2
src/views/week/weeklyApproval.vue

@@ -75,12 +75,12 @@
             </van-row>
           </van-collapse-item>
         </template>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上周工作成果" name="8">

+ 2 - 2
src/views/week/weeklyApprovalDetils.vue

@@ -75,12 +75,12 @@
             </van-row>
           </van-collapse-item>
         </template>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上周工作成果" name="8">

+ 2 - 2
src/views/week/weeklyHistoricalDetils.vue

@@ -76,12 +76,12 @@
             </van-row>
           </van-collapse-item>
         </template>
-        <div class="contentContainer" v-if="reportTargetAll.isHistory == '0'">
+        <div class="contentContainer" v-if="reportTarget.isHistory == '0'">
           <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
           <reportCustom
             ref="reportCustom"
             :disabled="true"
-            :reportCustomData="reportTargetAll.customTaskList"></reportCustom>
+            :reportCustomData="reportTarget.customTaskList"></reportCustom>
         </div>
         <template v-else>
           <van-collapse-item title="上周工作成果" name="8">