| | |
| | | // ,{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} |
| | |
| | | , { |
| | | 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); |
| | |
| | | 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} |