Files
10-JixaZhuangPei-Kanban/public/config.js
2026-05-29 14:35:43 +08:00

59 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
window.g = {
mqttClient: null,
mqttSubscriptionTopic: 'MES/InstantMessaging/HL/+',
mqttPublishTopic: 'WEB/InstantMessaging/HL/MisServer',
mqttIP: '192.168.0.12',
// mqttIP: '127.0.0.1',
mqttPortNumber: "8083",
baseURL: 'http://192.168.0.12:10050/submit/MESCommonBase.ashx'
// baseURL: "http://127.0.0.1:10050/submit/MESCommonBase.ashx",
};
// 时间要发时间戳
报工接口数据格式 = {
订单号: '20231016001',
总成号: 'H1M53-00001-2023083179',
型号: 'H1M53-00001',
工位数据: [
{
到达时间: '1697524115',
离开时间: '1697524124',
工件节拍: '110',
合格标志: '1',
物料数据: [{
物料号: 'H24N3-02161C',
物料名称: '螺栓(制动器)',
使用数量: '1',
扫描时间: '1697524125'
}],
质量数据: [{
测量位置: '线内上拧紧轴1最终扭矩',
测量项目: '扭矩',
测量值: '233.100',
测量单位: 'N·m',
合格标志: '1',
测量时间: '1697524219'
}]
}
]
}
订单下发接口数据格式 = {
订单号: '20231016001',
型号: 'H1M53-00001',
物料名称: '1t驱动桥总成单胎人力制动',
数量: '120',
计划日期: '1697524115',
完成日期: '1697524846',
BOM: [
{
物料号: 'H24N3-02161C',
物料名称: '螺栓(制动器)',
单台数量: '1',
单位: '件',
使用工位号: 'OPA10',
是否验证: '1' // 1 验证 0 不验证
}
]
}