中控模板json.txt 5.49 KB
电视中控面板:
1.
当天出入库清空:GET请求,地址:/wms/api/tv/todayTaskNum
	参数:zoneCode=L  String
返回结果:
{
    "success": true,
    "message": "",
    "code": 200,
    "result": [
        {
            "shipmentNum": 0, //出库数量
            "receiptNum": 1,  //入库数量
            "proportion": 100 //百分比,需在后面加个“%”
        }
    ],
    "timestamp": 1698369457061
}

当周地址:GET请求,地址:/wms/api/tv/weekTaskNum 其他和当天一样
当周地址:GET请求,地址:/wms/api/tv/monthTaskNum 其他和当天一样

2.
库位使用情况
 GET请求,地址:/wms/api/tv/roadWayLocation
	参数:zoneCode=L  String
返回结果:
{
    "success": true,
    "message": "",
    "code": 200,
    "result": [
        {
            "usagerate": "3%",  //使用率
            "unHaveContainerNum": "468",  //空闲库位
            "haveContainerNum": "12",  //有货库位
            "roadWay": "1号巷道",  //巷道
            "sumNum": "480"  //总库位
        },
        {
            "usagerate": "0%", //使用率
            "unHaveContainerNum": "200", //空闲库位
            "haveContainerNum": "0", //有货库位
            "roadWay": "2号巷道", //巷道
            "sumNum": "200" //总库位
        }
    ],
    "timestamp": 1698370268397
}

3.
库存使用情况
GET请求,地址/wms/api/tv/produceSituation
	参数:zoneCode=L  String
返回结果:
{
    "success": true,
    "message": "",
    "code": 200,
    "result": [
        {
            "materialName": "测试物料",  //物料名称
            "sumCosumeQty": "5",  //交易数量
            "sumNeedQty": "5",   //出库单明细数量
            "materialCode": "1631463631",  //物料编码
            "inventorySumQty": "578" //库存数量
        }
    ],
    "timestamp": 1698376172838
}


4.分拣看板
GET请求,地址/wms/api/tv/taskOfStation
	参数:code = P1001  String
返回结果:
{
    "success": true,
    "message": "",
    "code": 200,
    "result": [
        {
            "taskHeader": {
                "id": 622,
                "preTaskNo": 0,
                "upstreamTaskNo": null,
                "receiptContainerHeaderId": 583,
                "shipmentContainerHeaderId": null,
                "warehouseCode": "CS0001",
                "companyCode": null,
                "zoneCode": "L",
                "taskType": 100,
                "containerFillStatus": "some",
                "innernalTaskType": 100,
                "containerCode": "M00089", //容器号
                "fromLocationCode": "",  //起始库位
                "toLocationCode": null,  //目标库位
                "isEmptyOut": 0,
                "isDoubleIn": 0,
                "isPickupError": 0,
                "originLocationCode": null,
                "status": 50,
                "fromPortCode": null,
                "toPortCode": "P1001", //站台号
                "toAgvPort": "",
                "agvTaskId": 0,
                "sendAgv": 0,
                "backMes": 0,
                "backMesTimes": 0,
                "backMesTimestamp": null,
                "length": null,
                "width": null,
                "height": null,
                "weight": 0,
                "shipmentOrder": 0,
                "sequence": 0,
                "sequenceNumber": 0,
                "exceptionName": null,
                "exceptionState": 0,
                "roadWay": null,
                "callBox": 0,
                "userdef1": "整盘入库", //任务类型
                "userdef2": "到达拣选台", //任务状态
                "userdef3": null,
                "createBy": "曾湘平",
                "createTime": "2023-10-27 09:56:13",
                "updateBy": "",
                "updateTime": "2023-10-27 10:24:59",
                "executeTime": null,
                "allocationTime": null,
                "arrivalTime": "2023-10-27 10:24:59",
                "completeTime": null
            },
            "taskDetailList": [
                {
                    "id": 489,
                    "taskHeaderId": 622,
                    "taskType": 100,
                    "warehouseCode": "CS0001",
                    "companyCode": "CSHH",
                    "shipmentId": null,
                    "shipmentCode": null,
                    "shipmentDetailId": null,
                    "shipmentContainerDetailId": null,
                    "receiptId": 156,
                    "receiptCode": null,
                    "receiptDetailId": 149,
                    "receiptContainerDetailId": 284,
                    "materialCode": "1631463631", //物料编码
                    "materialName": "测试物料", //物料名称
                    "materialSpec": "20*20",
                    "materialUnit": null,
                    "qty": 5, //数量
                    "batch": null,
                    "lot": null,
                    "project": null,
                    "inventoryStatus": "good",
                    "fromInventoryDetailId": null,
                    "toInventoryDetailId": null,
                    "sn": null,
                    "receiveTime": null,
                    "userdef1": null,
                    "userdef2": null,
                    "userdef3": null,
                    "createBy": "曾湘平",
                    "createTime": "2023-10-27 09:56:13",
                    "updateBy": null,
                    "updateTime": null
                }
            ]
        }
    ],
    "timestamp": 1698373518936
}