自动化立体仓库 - WMS系统
skyouc
8 天以前 c4c82d17fed4f68562650e000c23e3eef8db8f43
src/main/webapp/static/js/common.js
@@ -186,19 +186,9 @@
    // ,{field: 'uuid', align: 'center',title: '编号'}
    , {field: 'maktx', align: 'center', title: '商品名称(品名)', width: 200}
    , {field: 'specs', align: 'center', title: '规格'}
    , {
        field: 'safeQty', align: 'center', title: '归零阀值', templet: function (d) {
            var raw = d.safeQty;
            if (raw === null || raw === undefined) return '';
            if (typeof raw === 'string' && raw.trim() === '') return '';
            var num = Number(raw);
            if (!isFinite(num)) return '';
            return num.toFixed(2);
        }
    }
    , {field: 'model', align: 'center', title: '代码', hide: true}
    , {field: 'model', align: 'center', title: '型号', hide: false}
    , {field: 'color', align: 'center', title: '颜色', hide: true}
    , {field: 'brand', align: 'center', title: '品牌', hide: true}
    , {field: 'brand', align: 'center', title: '品牌', hide: false}
    , {field: 'upQty', align: 'center', title: '组托上限', hide: true}
    , {field: 'unit', align: 'center', title: '单位', hide: false}
    , {field: 'price', align: 'center', title: '单价', hide: true}
@@ -214,6 +204,16 @@
    , {
        field: 'volume', align: 'center', title: '每公斤长度', templet: function (d) {
            var raw = d.volume;
            if (raw === null || raw === undefined) return '';
            if (typeof raw === 'string' && raw.trim() === '') return '';
            var num = Number(raw);
            if (!isFinite(num)) return '';
            return num.toFixed(2);
        }
    }
    , {
        field: 'safeQty', align: 'center', title: '归零阀值', templet: function (d) {
            var raw = d.safeQty;
            if (raw === null || raw === undefined) return '';
            if (typeof raw === 'string' && raw.trim() === '') return '';
            var num = Number(raw);
@@ -298,9 +298,9 @@
            return num.toFixed(2);
        }
    }
    , {field: 'model', align: 'center', title: '代码', hide: true}
    , {field: 'color', align: 'center', title: '颜色', hide: true}
    , {field: 'brand', align: 'center', title: '品牌', hide: false}
    , {field: 'model', align: 'center', title: '型号', hide: false}
    , {field: 'unit', align: 'center', title: '单位', hide: false}
    , {field: 'price', align: 'center', title: '单价', hide: true}
    , {field: 'sku', align: 'center', title: 'sku', hide: true}