|
|
@@ -93,11 +93,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import history from '@/assets/Icon/history.png';
|
|
|
-import times from '@/assets/Icon/times.png';
|
|
|
-import bfindex from '@/assets/bfindex.png';
|
|
|
-import storeindex from '@/assets/storeindex.png';
|
|
|
-import oderindex from '@/assets/oderindex.png';
|
|
|
import {
|
|
|
userTodayPlanNum,
|
|
|
getReportInfo,
|
|
|
@@ -115,16 +110,9 @@ export default {
|
|
|
shows: true,
|
|
|
show: true,
|
|
|
num: 0,
|
|
|
- timeimg: times,
|
|
|
- bfindex: bfindex,
|
|
|
- storeindex: storeindex,
|
|
|
- oderindex: oderindex,
|
|
|
todayGoal: {},
|
|
|
progressWidth: 0,
|
|
|
updataTime: '',
|
|
|
- customerClueButton: false,
|
|
|
- saptitle: '业绩目标SAP(千元)',
|
|
|
- history: history,
|
|
|
activeNames: [
|
|
|
'1',
|
|
|
'2',
|
|
|
@@ -223,13 +211,6 @@ export default {
|
|
|
});
|
|
|
getReportInfo({ isContent: false }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- if (res.data.postType == 'GZ') {
|
|
|
- this.GZdata = true;
|
|
|
- this.saptitle = '公裝业绩SAP(千元)';
|
|
|
- } else {
|
|
|
- this.saptitle = '业绩目标SAP(千元)';
|
|
|
- this.GZdata = false;
|
|
|
- }
|
|
|
loading1.clear();
|
|
|
localStorage.setItem('powerGrade', res.data.positionId);
|
|
|
localStorage.setItem('userDeptLevel', res.data.userDeptLevel);
|
|
|
@@ -237,31 +218,12 @@ export default {
|
|
|
localStorage.setItem('uType', res.data.userType);
|
|
|
localStorage.setItem('jzType', res.data.jzType);
|
|
|
localStorage.setItem('customerVisits', res.data.customerManagerVisits);
|
|
|
- this.isDiy = res.data.diy;
|
|
|
- this.proccessPendingNum = res.data.proccessPendingNum;
|
|
|
- this.reportInfoData = res.data;
|
|
|
- this.approvalButton = res.data.approvalButton;
|
|
|
- this.powerGrade = res.data.positionId;
|
|
|
- this.showButton = res.data.showButton;
|
|
|
- this.deptLevel = res.data.deptLevel;
|
|
|
- if (res.data.postType == 'JZ') {
|
|
|
- this.JZQuota = true;
|
|
|
- } else {
|
|
|
- this.JZQuota = false;
|
|
|
- }
|
|
|
localStorage.setItem('postType', res.data.postType);
|
|
|
- if (res.data.reportTargetAll != null) {
|
|
|
- this.reportTargetAll = res.data.reportTargetAll;
|
|
|
- this.updataTime = res.data.reportTargetAll.updateTime;
|
|
|
- }
|
|
|
if (res.data.homePageIndicatorList != null) {
|
|
|
this.homePageIndicatorList = res.data.homePageIndicatorList;
|
|
|
+ this.updataTime = res.data.homePageIndicatorUpdateTime;
|
|
|
}
|
|
|
- this.approvalPendingNum = res.data.approvalPendingNum;
|
|
|
this.type = res.data.userType;
|
|
|
- // if (res.data.userType == 4) {
|
|
|
- // this.tabVal = '1';
|
|
|
- // }
|
|
|
} else {
|
|
|
this.$toast(res.msg);
|
|
|
}
|