| | |
| | | |
| | | /*************************************************************************************************************/ |
| | | /********************************************** 物料业务抽象 ***************************************************/ |
| | | |
| | | /*************************************************************************************************************/ |
| | | |
| | | function arrRemove(arr, key, val) { |
| | |
| | | // ,{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) { |
| | | , { |
| | | 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: 'color', align: 'center', title: '颜色', hide: true } |
| | | , { field: 'brand', align: 'center', title: '品牌', hide: true } |
| | |
| | | , { field: 'maktx', align: 'center', title: '商品名称(品名)', sort: true } |
| | | , { field: 'orderNo', align: 'center', title: '单据编号', hide: false } |
| | | , { field: 'batch', align: 'center', title: '货品特征', sort: true } |
| | | , { field: 'anfme', align: 'center', title: '数量', hide: false } |
| | | , { |
| | | field: 'anfme', align: 'center', title: '数量', hide: false, templet: function (d) { |
| | | var raw = d.anfme; |
| | | 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: 'zpallet', align: 'center', title: '托盘条码', hide: false } |
| | | , { field: 'specs', align: 'center', title: '规格', hide: false } |
| | | , { |
| | | field: 'safeQty', align: 'center', title: '归零阀值', hide: false, 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: 'volume', align: 'center', title: 'km/cm', hide: false, 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: 'model', align: 'center', title: '代码', hide: true } |
| | | , { field: 'color', align: 'center', title: '颜色', hide: true } |
| | | , { field: 'brand', align: 'center', title: '品牌', hide: true } |
| | |
| | | , { field: 'manu', align: 'center', title: '厂家', hide: true } |
| | | , { field: 'manuDate', align: 'center', title: '生产日期', hide: true } |
| | | , { field: 'itemNum', align: 'center', title: '品项数', hide: true } |
| | | , { field: 'safeQty', align: 'center', title: '安全库存量', hide: true } |
| | | , { field: 'weight', align: 'center', title: '单箱净重', hide: true } |
| | | , { field: 'length', align: 'center', title: '单箱毛重', hide: true } |
| | | , { field: 'volume', align: 'center', title: '单箱体积', hide: true } |
| | | , { field: 'threeCode', align: 'center', title: '箱子尺寸', hide: true } |
| | | , { field: 'supp', align: 'center', title: '供应商', hide: true } |
| | | , { field: 'suppCode', align: 'center', title: '供应商编码', hide: true } |
| | |
| | | var vars = query.split("&"); |
| | | for (var i = 0; i < vars.length; i++) { |
| | | var pair = vars[i].split("="); |
| | | if (pair[0] == variable) { return pair[1]; } |
| | | if (pair[0] == variable) { |
| | | return pair[1]; |
| | | } |
| | | } |
| | | return (false); |
| | | } |