#
Junjie
2026-04-13 24d7e8d7271a68e2d2eda90326ac6409d9e5215d
#
1个文件已修改
20 ■■■■■ 已修改文件
src/main/webapp/static/js/deviceLogs/deviceLogs.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/deviceLogs/deviceLogs.js
@@ -906,6 +906,19 @@
            }
            return {};
        },
        normalizeVisualValue: function (value) {
            if (value == null || value === '') {
                return value;
            }
            if (Array.isArray(value) || Object.prototype.toString.call(value) === '[object Object]') {
                try {
                    return JSON.stringify(value);
                } catch (e) {
                    return String(value);
                }
            }
            return value;
        },
        transformData: function (protocol, type) {
            if (!protocol) {
                return {};
@@ -996,18 +1009,23 @@
                    targetStaNo: protocol.targetStaNo,
                    autoing: protocol.autoing,
                    loading: protocol.loading,
                    ioMode: protocol.ioMode,
                    inEnable: protocol.inEnable,
                    outEnable: protocol.outEnable,
                    emptyMk: protocol.emptyMk,
                    fullPlt: protocol.fullPlt,
                    runBlock: protocol.runBlock,
                    enableIn: protocol.enableIn,
                    inBarcodeError: protocol.inBarcodeError,
                    palletHeight: protocol.palletHeight,
                    barcode: protocol.barcode,
                    weight: protocol.weight,
                    taskWriteIdx: protocol.taskWriteIdx,
                    taskBufferItems: Array.isArray(protocol.taskBufferItems) ? protocol.taskBufferItems : [],
                    error: protocol.error,
                    errorMsg: protocol.errorMsg,
                    extend: protocol.extend
                    systemWarning: this.normalizeVisualValue(protocol.systemWarning),
                    extend: this.normalizeVisualValue(protocol.extend)
                };
            }
            return protocol;