|
@@ -762,60 +762,60 @@
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
this.timestamp = new Date().valueOf()
|
|
this.timestamp = new Date().valueOf()
|
|
- this.refreshClick(1)
|
|
|
|
- // getinspectList({
|
|
|
|
- // compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- // currentPage: this.currentPage,
|
|
|
|
- // pageSize: this.pageSize,
|
|
|
|
- // warehouseName: this.warehouseName,
|
|
|
|
- // managementType: this.managementType,
|
|
|
|
- // qualityType:1
|
|
|
|
- // })
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // this.noinspectList = response.records
|
|
|
|
- // console.log(this.inspectbtn,this.noinspectList.length )
|
|
|
|
- // if(this.inspectbtn == 1 && this.noinspectList.length > 0){
|
|
|
|
- // this.switchList = this.noinspectList
|
|
|
|
- // this.inspect = this.noinspectList[0]
|
|
|
|
- // if(!this.inspect.weighingManagement){
|
|
|
|
- // this.inspect.weighingManagement = {}
|
|
|
|
- // }
|
|
|
|
- // }else if(this.inspectbtn == 1){
|
|
|
|
- // this.switchList = []
|
|
|
|
- // this.inspect = {}
|
|
|
|
- // this.inspect.weighingManagement = {}
|
|
|
|
- // }
|
|
|
|
- // console.log(this.switchList )
|
|
|
|
- // this.deptBudgetTotal1 = response.total
|
|
|
|
- // this.nosuccess = response.total
|
|
|
|
- // })
|
|
|
|
- // getinspectList({
|
|
|
|
- // compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- // currentPage: this.currentPage,
|
|
|
|
- // pageSize: this.pageSize,
|
|
|
|
- // warehouseName: this.warehouseName,
|
|
|
|
- // managementType: this.managementType,
|
|
|
|
- // qualityType:2
|
|
|
|
- // })
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // this.inspectList = response.records
|
|
|
|
- // console.log(this.inspectbtn,this.inspectList.length )
|
|
|
|
- // if(this.inspectbtn == 2 && this.inspectList.length > 0){
|
|
|
|
- // this.switchList = this.inspectList
|
|
|
|
- // this.inspect = this.inspectList[0]
|
|
|
|
- // if(!this.inspect.weighingManagement){
|
|
|
|
- // this.inspect.weighingManagement = {}
|
|
|
|
- // }
|
|
|
|
- // }else if(this.inspectbtn == 2){
|
|
|
|
- // this.switchList = []
|
|
|
|
- // this.inspect = {}
|
|
|
|
- // this.inspect.weighingManagement = {}
|
|
|
|
- // }
|
|
|
|
- // this.deptBudgetTotal2 = response.total
|
|
|
|
- // this.success = response.total
|
|
|
|
- // })
|
|
|
|
|
|
+ // this.refreshClick(1)
|
|
|
|
+ getinspectList({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ managementType: this.managementType,
|
|
|
|
+ qualityType:1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.noinspectList = response.records
|
|
|
|
+ console.log(this.inspectbtn,this.noinspectList.length )
|
|
|
|
+ if(this.inspectbtn == 1 && this.noinspectList.length > 0){
|
|
|
|
+ this.switchList = this.noinspectList
|
|
|
|
+ this.inspect = this.noinspectList[0]
|
|
|
|
+ if(!this.inspect.weighingManagement){
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ }else if(this.inspectbtn == 1){
|
|
|
|
+ this.switchList = []
|
|
|
|
+ this.inspect = {}
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ console.log(this.switchList )
|
|
|
|
+ this.deptBudgetTotal1 = response.total
|
|
|
|
+ this.nosuccess = response.total
|
|
|
|
+ })
|
|
|
|
+ getinspectList({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ managementType: this.managementType,
|
|
|
|
+ qualityType:2
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.inspectList = response.records
|
|
|
|
+ console.log(this.inspectbtn,this.inspectList.length )
|
|
|
|
+ if(this.inspectbtn == 2 && this.inspectList.length > 0){
|
|
|
|
+ this.switchList = this.inspectList
|
|
|
|
+ this.inspect = this.inspectList[0]
|
|
|
|
+ if(!this.inspect.weighingManagement){
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ }else if(this.inspectbtn == 2){
|
|
|
|
+ this.switchList = []
|
|
|
|
+ this.inspect = {}
|
|
|
|
+ this.inspect.weighingManagement = {}
|
|
|
|
+ }
|
|
|
|
+ this.deptBudgetTotal2 = response.total
|
|
|
|
+ this.success = response.total
|
|
|
|
+ })
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|