#
Junjie
20 小时以前 969895c60880294ccb9fef11bdf3500043ee8a14
#
2个文件已修改
47 ■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/LocMast.java 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locMast/locMast.js 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocMast.java
@@ -221,4 +221,18 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime);
    }
    public String getStatus$() {
        if (this.status == null) {
            return null;
        }
        switch (this.status) {
            case 1:
                return "正常";
            case 0:
                return "禁用";
            default:
                return String.valueOf(this.status);
        }
    }
}
src/main/webapp/static/js/locMast/locMast.js
@@ -25,16 +25,27 @@
        field: 'locSts',
        columnName: 'loc_sts',
        label: '库位状态',
        tableProp: 'locSts',
        exportField: 'locSts',
        kind: 'text',
        tableProp: 'locSts$',
        exportField: 'locSts$',
        kind: 'enum',
        valueType: 'string',
        required: false,
        primaryKey: false,
        sortable: false,
        textarea: false,
        minWidth: 110,
        enumOptions: [],
        minWidth: 120,
        enumOptions: [
            { rawValue: 'D', label: '空板' },
            { rawValue: 'F', label: '在库' },
            { rawValue: 'O', label: '空库' },
            { rawValue: 'R', label: '出库预约' },
            { rawValue: 'S', label: '入库预约' },
            { rawValue: 'X', label: '禁用' },
            { rawValue: 'E', label: '不可放货通道' },
            { rawValue: 'W', label: '母轨道' },
            { rawValue: 'C', label: '充电桩' },
            { rawValue: 'Z', label: '站点' }
        ],
        foreignQuery: '',
        checkboxActiveRaw: 'Y',
        checkboxInactiveRaw: 'N'
@@ -312,17 +323,17 @@
    {
        field: 'status',
        columnName: 'status',
        label: '',
        tableProp: 'status',
        exportField: 'status',
        kind: 'text',
        label: '状态',
        tableProp: 'status$',
        exportField: 'status$',
        kind: 'enum',
        valueType: 'number',
        required: false,
        primaryKey: false,
        sortable: false,
        textarea: false,
        minWidth: 110,
        enumOptions: [],
        minWidth: 120,
        enumOptions: [{ rawValue: '1', label: '正常' }, { rawValue: '0', label: '禁用' }],
        foreignQuery: '',
        checkboxActiveRaw: '1',
        checkboxInactiveRaw: '0'