| | |
| | | } |
| | | ctx.body = this.info; |
| | | } |
| | | //分页查询 PO明细空物料号信息 [EditBy shaocx,2022-09-13] |
| | | @Post() |
| | | public async QueryPagePurchaseEmptyMaterialCode() { |
| | | |
| | | let { ctx } = this; |
| | | siemensApi.domainUrl = this.app.config.domainUrl; |
| | | let result: any; |
| | | var params = this.ctx.body; |
| | | var par = JSON.stringify(params); |
| | | result = await siemensApi.QueryPagePurchaseEmptyMaterialCode({ |
| | | par |
| | | }); |
| | | var resultInfo = JSON.parse(result); |
| | | |
| | | if (resultInfo.status == 200) { |
| | | this.info.data = resultInfo.date; |
| | | this.info.data2 = resultInfo.allDate;//增加 【EditBy shaocx,2022-03-07】 |
| | | this.info.result = true; |
| | | this.info.countPrint = resultInfo.total; |
| | | this.info.statusCode = resultInfo.status; |
| | | } else { |
| | | this.info.result = false; |
| | | } |
| | | ctx.body = this.info; |
| | | } |
| | | //分页查询 堆垛机运行统计 [EditBy shaocx,2022-09-13] |
| | | @Post() |
| | | public async QueryPageDeviceGeneralInfo() { |
| | | |
| | | let { ctx } = this; |
| | | siemensApi.domainUrl = this.app.config.domainUrl; |
| | | let result: any; |
| | | var params = this.ctx.body; |
| | | var par = JSON.stringify(params); |
| | | result = await siemensApi.QueryPageDeviceGeneralInfo({ |
| | | par |
| | | }); |
| | | var resultInfo = JSON.parse(result); |
| | | |
| | | if (resultInfo.status == 200) { |
| | | this.info.data = resultInfo.date; |
| | | this.info.data2 = resultInfo.allDate;//增加 【EditBy shaocx,2022-03-07】 |
| | | this.info.result = true; |
| | | this.info.countPrint = resultInfo.total; |
| | | this.info.statusCode = resultInfo.status; |
| | | } else { |
| | | this.info.result = false; |
| | | } |
| | | ctx.body = this.info; |
| | | } |
| | | //分页查询 闲时移库 [EditBy shaocx,2022-09-13] |
| | | @Post() |
| | | public async QueryPageFreeTimeMoveLocationTask() { |