|
@@ -224,11 +224,10 @@
|
|
|
timestamp: '',
|
|
|
//分页
|
|
|
currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: 50,
|
|
|
deptCircularPage: {},
|
|
|
deptBudgetTotal: 0,
|
|
|
deptBudgetTotal1: 0,
|
|
|
- deptBudgetTotal1: 0,
|
|
|
managementType: 3,
|
|
|
isShowPrint: false,
|
|
|
printData: {},
|
|
@@ -314,7 +313,7 @@
|
|
|
warehouseName: that.warehouseName,
|
|
|
managementType: that.managementType,
|
|
|
qualityType: 1,
|
|
|
- loadingstatus: 1,
|
|
|
+ // loadingstatus: 1,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -342,7 +341,7 @@
|
|
|
warehouseName: that.warehouseName,
|
|
|
managementType: that.managementType,
|
|
|
qualityType: 2,
|
|
|
- loadingstatus: 1,
|
|
|
+ // loadingstatus: 1,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -762,60 +761,60 @@
|
|
|
},
|
|
|
getList() {
|
|
|
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
|
|
|
+ })
|
|
|
},
|
|
|
},
|
|
|
}
|