|
@@ -209,6 +209,7 @@ export default {
|
|
warehouseId:'',
|
|
warehouseId:'',
|
|
forbidden:false,
|
|
forbidden:false,
|
|
forbidden1:false,
|
|
forbidden1:false,
|
|
|
|
+ start:2021,
|
|
addvisible:false,
|
|
addvisible:false,
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
@@ -227,6 +228,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
|
|
+ this.cangid=this.$route.query.cangId
|
|
// 货名
|
|
// 货名
|
|
// packList({ constId: 'CON2' })
|
|
// packList({ constId: 'CON2' })
|
|
// .toPromise()
|
|
// .toPromise()
|
|
@@ -234,13 +236,13 @@ export default {
|
|
// this.goodnameList = response
|
|
// this.goodnameList = response
|
|
// })
|
|
// })
|
|
this.year=new Date().getFullYear()
|
|
this.year=new Date().getFullYear()
|
|
- for(var i=2021;i<=this.year;i++){
|
|
|
|
|
|
+ for(var i=this.start;i<=this.year;i++){
|
|
this.yearList.push({value:i})
|
|
this.yearList.push({value:i})
|
|
}
|
|
}
|
|
if(this.year>=new Date().getFullYear()){
|
|
if(this.year>=new Date().getFullYear()){
|
|
this.forbidden1=true
|
|
this.forbidden1=true
|
|
}
|
|
}
|
|
- if(this.year<=2021){
|
|
|
|
|
|
+ if(this.year<=this.start){
|
|
this.forbidden=true
|
|
this.forbidden=true
|
|
}
|
|
}
|
|
this.selectWarehouse()
|
|
this.selectWarehouse()
|
|
@@ -266,7 +268,7 @@ export default {
|
|
},
|
|
},
|
|
minus(){
|
|
minus(){
|
|
|
|
|
|
- if(this.year<=2021){
|
|
|
|
|
|
+ if(this.year<=this.start){
|
|
this.forbidden=true
|
|
this.forbidden=true
|
|
}else{
|
|
}else{
|
|
this.year--
|
|
this.year--
|