|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="contentborder">
|
|
<div class="contentborder">
|
|
|
<van-button
|
|
<van-button
|
|
|
- v-if="powerGrade == 3 && showButton"
|
|
|
|
|
|
|
+ v-if="reportType == 3 && showButton"
|
|
|
class="Btn1"
|
|
class="Btn1"
|
|
|
plain
|
|
plain
|
|
|
size="small"
|
|
size="small"
|
|
@@ -63,7 +63,7 @@
|
|
|
>填写半月报</van-button
|
|
>填写半月报</van-button
|
|
|
>
|
|
>
|
|
|
<van-button
|
|
<van-button
|
|
|
- v-if="powerGrade == 2 && showButton"
|
|
|
|
|
|
|
+ v-if="reportType == 2 && showButton"
|
|
|
class="Btn1"
|
|
class="Btn1"
|
|
|
plain
|
|
plain
|
|
|
size="small"
|
|
size="small"
|
|
@@ -72,7 +72,7 @@
|
|
|
>填写周报</van-button
|
|
>填写周报</van-button
|
|
|
>
|
|
>
|
|
|
<van-button
|
|
<van-button
|
|
|
- v-if="powerGrade == 1 && showButton"
|
|
|
|
|
|
|
+ v-if="reportType == 1 && showButton"
|
|
|
class="Btn1"
|
|
class="Btn1"
|
|
|
plain
|
|
plain
|
|
|
size="small"
|
|
size="small"
|
|
@@ -81,7 +81,7 @@
|
|
|
>填写日报</van-button
|
|
>填写日报</van-button
|
|
|
>
|
|
>
|
|
|
<van-button
|
|
<van-button
|
|
|
- v-if="powerGrade < 4 && isCommit"
|
|
|
|
|
|
|
+ v-if="reportType < 4 && isCommit"
|
|
|
class="Btn1"
|
|
class="Btn1"
|
|
|
plain
|
|
plain
|
|
|
size="small"
|
|
size="small"
|
|
@@ -127,6 +127,7 @@ export default {
|
|
|
type: '-1',
|
|
type: '-1',
|
|
|
ownerBirthdayBoxFlag: false,
|
|
ownerBirthdayBoxFlag: false,
|
|
|
ownerBirthdayReminds: null,
|
|
ownerBirthdayReminds: null,
|
|
|
|
|
+ reportType: null,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
@@ -153,11 +154,13 @@ export default {
|
|
|
localStorage.setItem('jzType', res.data.jzType);
|
|
localStorage.setItem('jzType', res.data.jzType);
|
|
|
localStorage.setItem('customerVisits', res.data.customerManagerVisits);
|
|
localStorage.setItem('customerVisits', res.data.customerManagerVisits);
|
|
|
localStorage.setItem('postType', res.data.postType);
|
|
localStorage.setItem('postType', res.data.postType);
|
|
|
|
|
+ localStorage.setItem('reportType', res.data.reportType);
|
|
|
this.proccessPendingNum = res.data.proccessPendingNum;
|
|
this.proccessPendingNum = res.data.proccessPendingNum;
|
|
|
this.reportInfoData = res.data;
|
|
this.reportInfoData = res.data;
|
|
|
this.approvalButton = res.data.approvalButton;
|
|
this.approvalButton = res.data.approvalButton;
|
|
|
this.powerGrade = res.data.positionId;
|
|
this.powerGrade = res.data.positionId;
|
|
|
this.showButton = res.data.showButton;
|
|
this.showButton = res.data.showButton;
|
|
|
|
|
+ this.reportType = res.data.reportType;
|
|
|
if (res.data.reportTargetAll != null) {
|
|
if (res.data.reportTargetAll != null) {
|
|
|
this.updataTime = res.data.reportTargetAll.updateTime;
|
|
this.updataTime = res.data.reportTargetAll.updateTime;
|
|
|
}
|
|
}
|