|
|
@@ -13,6 +13,7 @@
|
|
|
<script type="text/javascript" src="./js/common.js"></script>
|
|
|
<script src="./plugin/datav.min.js"></script>
|
|
|
<script type="text/javascript" src="./js/chart.js"></script>
|
|
|
+ <script type="text/javascript" src="./js/testDatas.js"></script>
|
|
|
</head>
|
|
|
<script>
|
|
|
$(window).load(function () {
|
|
|
@@ -323,467 +324,7 @@
|
|
|
const _self = this;
|
|
|
const url = "/api/InventoryRepairResource/queryBoardData";
|
|
|
const params = [["warehouseId", _self.warehouseId]];
|
|
|
- // const success = {
|
|
|
- // errorCode: 0,
|
|
|
- // errorMessage: null,
|
|
|
- // data: {
|
|
|
- // cfCheckVouchBoardResponse: {
|
|
|
- // checkVouchId: 643723837739072,
|
|
|
- // name: "测试盘点单",
|
|
|
- // documentNo: "20260100001",
|
|
|
- // warehouseId: null,
|
|
|
- // warehouseName: "CF",
|
|
|
- // clampQuantity: 0,
|
|
|
- // clampInventoriedQuantity: 0,
|
|
|
- // clampNotInventoriedQuantity: 0,
|
|
|
- // instrumentQuantity: 0,
|
|
|
- // instrumentInventoriedQuantity: 0,
|
|
|
- // instrumentNotInventoriedQuantity: 0,
|
|
|
- // },
|
|
|
- // cfInventoryRepairBoardResponse: {
|
|
|
- // repairQuantity: 8,
|
|
|
- // repairCompletedQuantity: 6,
|
|
|
- // repairUncompletedQuantity: 2,
|
|
|
- // cfInventoryRepairLineBoardResponses: [
|
|
|
- // {
|
|
|
- // index: 1,
|
|
|
- // name: "测试工装01489",
|
|
|
- // no: "01489",
|
|
|
- // type: "工装",
|
|
|
- // repairReason: "ces234",
|
|
|
- // repairTime: "2026-01-30 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-22 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 2,
|
|
|
- // name: "测试设备02991",
|
|
|
- // no: "02991",
|
|
|
- // type: "设备",
|
|
|
- // repairReason: "ces3",
|
|
|
- // repairTime: "2026-01-29 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-30 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 3,
|
|
|
- // name: "测试工装01492",
|
|
|
- // no: "01492",
|
|
|
- // type: "工装",
|
|
|
- // repairReason: "坏了送去维修",
|
|
|
- // repairTime: "2026-01-22 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-23 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 4,
|
|
|
- // name: "测试工装01485",
|
|
|
- // no: "01485",
|
|
|
- // type: "工装",
|
|
|
- // repairReason: "测试123",
|
|
|
- // repairTime: "2026-01-21 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-22 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 5,
|
|
|
- // name: "测试设备02996",
|
|
|
- // no: "02996",
|
|
|
- // type: "设备",
|
|
|
- // repairReason: "1111111111111",
|
|
|
- // repairTime: "2026-01-21 00:00:00",
|
|
|
- // completeRepairTime: null,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 6,
|
|
|
- // name: "测试工装01393",
|
|
|
- // no: "01393",
|
|
|
- // type: "工装",
|
|
|
- // repairReason: null,
|
|
|
- // repairTime: "2026-01-20 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-21 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 7,
|
|
|
- // name: "测试工装01497",
|
|
|
- // no: "01497",
|
|
|
- // type: "工装",
|
|
|
- // repairReason: "2222222",
|
|
|
- // repairTime: "2026-01-19 00:00:00",
|
|
|
- // completeRepairTime: null,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 8,
|
|
|
- // name: "测试设备03000",
|
|
|
- // no: "03000",
|
|
|
- // type: "设备",
|
|
|
- // repairReason: "测试1",
|
|
|
- // repairTime: "2026-01-11 00:00:00",
|
|
|
- // completeRepairTime: "2026-01-13 00:00:00",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // cfInventoryInspectionBoardResponse: {
|
|
|
- // inspectionQuantity: 6,
|
|
|
- // inspectionCompletedQuantity: 4,
|
|
|
- // inspectionUncompletedQuantity: 2,
|
|
|
- // cfInventoryInspectionLineBoardResponses: [
|
|
|
- // {
|
|
|
- // index: 1,
|
|
|
- // name: "测试设备02996",
|
|
|
- // no: "02996",
|
|
|
- // type: "设备",
|
|
|
- // inspectionReason: "需要检验",
|
|
|
- // inspectionTime: "2026-01-27 00:00:00",
|
|
|
- // completeInspectionTime: null,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 2,
|
|
|
- // name: "测试设备02982",
|
|
|
- // no: "02982",
|
|
|
- // type: "设备",
|
|
|
- // inspectionReason: "需要检验",
|
|
|
- // inspectionTime: "2026-01-24 00:00:00",
|
|
|
- // completeInspectionTime: "2026-01-25 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 3,
|
|
|
- // name: "测试工装01496",
|
|
|
- // no: "01496",
|
|
|
- // type: "工装",
|
|
|
- // inspectionReason: "这是一个测试",
|
|
|
- // inspectionTime: "2026-01-21 00:00:00",
|
|
|
- // completeInspectionTime: null,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 4,
|
|
|
- // name: "测试设备02995",
|
|
|
- // no: "02995",
|
|
|
- // type: "设备",
|
|
|
- // inspectionReason: "需要检验",
|
|
|
- // inspectionTime: "2026-01-21 00:00:00",
|
|
|
- // completeInspectionTime: "2026-01-22 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 5,
|
|
|
- // name: "测试工装01491",
|
|
|
- // no: "01491",
|
|
|
- // type: "工装",
|
|
|
- // inspectionReason: "这是一个测试",
|
|
|
- // inspectionTime: "2026-01-20 00:00:00",
|
|
|
- // completeInspectionTime: "2026-01-21 00:00:00",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: 6,
|
|
|
- // name: "测试工装01493",
|
|
|
- // no: "01493",
|
|
|
- // type: "工装",
|
|
|
- // inspectionReason: "这是一个测试",
|
|
|
- // inspectionTime: "2026-01-10 00:00:00",
|
|
|
- // completeInspectionTime: "2026-01-29 00:00:00",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // cfInventoryChartBoardResponse: {
|
|
|
- // cfInventoryChartClampLineBoardResponses: [
|
|
|
- // {
|
|
|
- // monthName: "2026-1",
|
|
|
- // quantity: 3,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-12",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-11",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-10",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-9",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-8",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-7",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-6",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-5",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-4",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-3",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-2",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // cfInventoryChartInstrumentLineBoardResponses: [
|
|
|
- // {
|
|
|
- // monthName: "2026-1",
|
|
|
- // quantity: 3,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-12",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-11",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-10",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-9",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-8",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-7",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-6",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-5",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-4",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-3",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-2",
|
|
|
- // quantity: 0,
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // cfInventoryAgvBoardResponse: {
|
|
|
- // completeQuantity: 25,
|
|
|
- // incompleteQuantity: 0,
|
|
|
- // agvTaskList: [
|
|
|
- // {
|
|
|
- // type: "成品下架",
|
|
|
- // createTime: "2026-01-20 18:32:19",
|
|
|
- // executeTime: "2026-01-20 18:32:20",
|
|
|
- // endTime: "2026-01-20 18:32:25",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "LT-1-2",
|
|
|
- // positionEndNo: "SD-1-1",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "料箱上架",
|
|
|
- // createTime: "2026-01-20 18:31:53",
|
|
|
- // executeTime: "2026-01-20 18:32:00",
|
|
|
- // endTime: "2026-01-20 18:32:05",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "SL-1-1",
|
|
|
- // positionEndNo: "LT-1-2",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "成品下架",
|
|
|
- // createTime: "2026-01-20 18:30:31",
|
|
|
- // executeTime: "2026-01-20 18:30:40",
|
|
|
- // endTime: "2026-01-20 18:30:45",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "LT-1-2",
|
|
|
- // positionEndNo: "SD-1-1",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "料箱上架",
|
|
|
- // createTime: "2026-01-20 18:29:34",
|
|
|
- // executeTime: "2026-01-20 18:29:40",
|
|
|
- // endTime: "2026-01-20 18:29:45",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "SL-1-1",
|
|
|
- // positionEndNo: "LT-1-2",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "成品下架",
|
|
|
- // createTime: "2026-01-20 18:18:48",
|
|
|
- // executeTime: "2026-01-20 18:19:00",
|
|
|
- // endTime: "2026-01-20 18:26:02",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "LT-1-2",
|
|
|
- // positionEndNo: "SD-1-1",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "料箱上架",
|
|
|
- // createTime: "2026-01-20 18:17:04",
|
|
|
- // executeTime: "2026-01-20 18:17:10",
|
|
|
- // endTime: "2026-01-20 18:17:16",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "SL-1-1",
|
|
|
- // positionEndNo: "LT-1-2",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "成品下架",
|
|
|
- // createTime: "2026-01-20 18:05:38",
|
|
|
- // executeTime: "2026-01-20 18:06:23",
|
|
|
- // endTime: "2026-01-20 18:08:29",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "LT-1-2",
|
|
|
- // positionEndNo: "SD-1-1",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "料箱上架",
|
|
|
- // createTime: "2026-01-20 18:03:20",
|
|
|
- // executeTime: "2026-01-20 18:03:30",
|
|
|
- // endTime: "2026-01-20 18:03:36",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "SL-1-1",
|
|
|
- // positionEndNo: "LT-1-2",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "成品下架",
|
|
|
- // createTime: "2026-01-20 17:59:52",
|
|
|
- // executeTime: "2026-01-20 18:00:00",
|
|
|
- // endTime: "2026-01-20 18:00:05",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "LT-1-2",
|
|
|
- // positionEndNo: "SD-1-1",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "料箱上架",
|
|
|
- // createTime: "2026-01-20 17:57:24",
|
|
|
- // executeTime: "2026-01-20 17:57:30",
|
|
|
- // endTime: "2026-01-20 17:57:35",
|
|
|
- // agvName: "LeanwoAGV",
|
|
|
- // status: "已完成",
|
|
|
- // positionNo: "SL-1-1",
|
|
|
- // positionEndNo: "LT-1-2",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // agvMonthTaskList: [
|
|
|
- // {
|
|
|
- // monthName: "2026-1",
|
|
|
- // groundCount: 2,
|
|
|
- // stereoscopicCount: 23,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-12",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-11",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-10",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-9",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-8",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-7",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-6",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-5",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-4",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-3",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // monthName: "2025-2",
|
|
|
- // groundCount: 0,
|
|
|
- // stereoscopicCount: 0,
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // cfInventoryUseTimeBoardResponse: [
|
|
|
- // {
|
|
|
- // invName: "测试工装00002",
|
|
|
- // invNo: "00002",
|
|
|
- // type: "工装",
|
|
|
- // useTime: "19天5时49分",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // invName: "测试工装00001",
|
|
|
- // invNo: "00001",
|
|
|
- // type: "工装",
|
|
|
- // useTime: "18天22时48分",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // invName: "测试工装00015",
|
|
|
- // invNo: "00015",
|
|
|
- // type: "工装",
|
|
|
- // useTime: "17天6时46分",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // invName: "工装101",
|
|
|
- // invNo: "62255351027308800009",
|
|
|
- // type: "工装",
|
|
|
- // useTime: "15天2时23分",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // invName: "工装-1",
|
|
|
- // invNo: "62255351027308800002",
|
|
|
- // type: "工装",
|
|
|
- // useTime: "3天22时31分",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // };
|
|
|
+ // const success = twoDatas // 测试数据
|
|
|
ajaxGet(url, params).then((success) => {
|
|
|
if (success.errorCode === 0) {
|
|
|
const {
|