|
@@ -241,8 +241,6 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
- this.approvalStatus = this.approvalStatusList[0];
|
|
|
|
|
- this.storageStatus = this.storageStatusList[0];
|
|
|
|
|
this.userList = [];
|
|
this.userList = [];
|
|
|
this.formData.startTime = this.getThreeDaysAgo();
|
|
this.formData.startTime = this.getThreeDaysAgo();
|
|
|
// this.formData.startTime = this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2)
|
|
// this.formData.startTime = this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2)
|
|
@@ -300,46 +298,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
$route(to, from) {
|
|
$route(to, from) {
|
|
|
- // if(to.path=="/VisitSummary"&&from.path!="/My/index"){
|
|
|
|
|
- // this.userList=[]
|
|
|
|
|
- // this.formData.pageNum=1
|
|
|
|
|
- // this.list = [];
|
|
|
|
|
- // this.tableList=[];
|
|
|
|
|
- // this.regionName="全部大区"
|
|
|
|
|
- // this.regionCode=""
|
|
|
|
|
- // this.deptName="全部销售部"
|
|
|
|
|
- // this.deptCode=""
|
|
|
|
|
- // this.userCode=""
|
|
|
|
|
- // this.userName="全部业务员"
|
|
|
|
|
- // this.powerGrade = localStorage.getItem("powerGrade")
|
|
|
|
|
- // this.getDeptInfo("dept")
|
|
|
|
|
- // if(this.powerGrade==5){
|
|
|
|
|
- // setTimeout(()=>{
|
|
|
|
|
- // if(this.$route.query.userCode==undefined){
|
|
|
|
|
- // this.companyName=this.companyList[0].deptName;
|
|
|
|
|
- // this.companyCode=this.companyList[0].deptId;}
|
|
|
|
|
- // this.getDeptInfo("dept",1)
|
|
|
|
|
- // },1000)
|
|
|
|
|
- // }
|
|
|
|
|
- // if(this.powerGrade==4){
|
|
|
|
|
- // setTimeout(()=>{
|
|
|
|
|
- // this.getDeptInfo("dept",1)
|
|
|
|
|
- // },1000)
|
|
|
|
|
- // }
|
|
|
|
|
- // if(this.powerGrade==3){
|
|
|
|
|
- // setTimeout(()=>{
|
|
|
|
|
- // this.getDeptInfo("dept",2)
|
|
|
|
|
- // },1000)
|
|
|
|
|
- // }
|
|
|
|
|
- // if(this.powerGrade==2||this.powerGrade==1){
|
|
|
|
|
- // setTimeout(()=>{
|
|
|
|
|
- // this.getDeptInfo("user")
|
|
|
|
|
- // },2000)
|
|
|
|
|
- // }
|
|
|
|
|
- // setTimeout(()=>{
|
|
|
|
|
- // this.searchBtn()
|
|
|
|
|
- // },1000)
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (from.path == '/My/index') {
|
|
|
|
|
+ this.approvalStatus = this.approvalStatusList[0];
|
|
|
|
|
+ this.storageStatus = this.storageStatusList[0];
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -515,6 +477,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
dailyFn(row) {
|
|
dailyFn(row) {
|
|
|
|
|
+ // 暂存
|
|
|
if (row.status == '0') {
|
|
if (row.status == '0') {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/VisitSummaryStorageDetail',
|
|
path: '/VisitSummaryStorageDetail',
|
|
@@ -528,7 +491,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onClickLeft() {
|
|
onClickLeft() {
|
|
|
- this.$router.go(-1);
|
|
|
|
|
|
|
+ this.$router.replace({
|
|
|
|
|
+ path: '/My/index',
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
regionClick() {
|
|
regionClick() {
|
|
|
// if(this.powerGrade>4){
|
|
// if(this.powerGrade>4){
|