| | |
| | | |
| | | table.render({ |
| | | elem: '#LAY-app-content-list', |
| | | url: IP +"/Basis/GetMateList", |
| | | url: IP + "/Basis/GetMateList", |
| | | method: 'POST', |
| | | height: h1,//'full-'+hei1 |
| | | id: 'LAY-app-content-list', |
| | |
| | | { |
| | | title: '操作', fixed: 'right', align: 'center', toolbar: '#table-content-list', width: 170 |
| | | } |
| | | ]],parseData: function(res) { // 数据解析回调 |
| | | console.log('原始返回数据:', res); |
| | | return { |
| | | "code": res.code, // 解析接口状态 |
| | | "msg": res.msg, // 解析提示文本 |
| | | "count": res.count, // 解析数据长度 |
| | | "data": res.data // 解析数据列表 |
| | | }; |
| | | }, |
| | | ]] |
| | | }); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | Price: Number(field.Price), |
| | | AdventTime: Number(field.AdventTime), //临期 |
| | | LowInventory: Number(field.LowInventory), //低库存 |
| | | |
| | | //CAS号 |
| | | CasNo: field.CasNo, |
| | | //是否批次管理 |
| | | IsLotManage: field.IsLotManage, |
| | | //留样时间 |
| | | LeaveTime: field.LeaveTime, |
| | | //液体物料闪点 |
| | | LiquidFlashPoint: field.LiquidFlashPoint, |
| | | //危险货位信息 |
| | | DangerLocatInfo: field.DangerLocatInfo, |
| | | //灭火方式 |
| | | OutFireMethod: field.OutFireMethod, |
| | | //物料禁忌 |
| | | MaterialTaboo: field.MaterialTaboo, |
| | | |
| | | Demo: field.Demo |
| | | }; |
| | | if (doing) { |
| | |
| | | Price: Number(field.Price), |
| | | AdventTime: Number(field.AdventTime), //临期 |
| | | LowInventory: Number(field.LowInventory), //低库存 |
| | | |
| | | //CAS号 |
| | | CasNo: field.CasNo, |
| | | //是否批次管理 |
| | | IsLotManage: field.IsLotManage, |
| | | //留样时间 |
| | | LeaveTime: field.LeaveTime, |
| | | //液体物料闪点 |
| | | LiquidFlashPoint: field.LiquidFlashPoint, |
| | | //危险货位信息 |
| | | DangerLocatInfo: field.DangerLocatInfo, |
| | | //灭火方式 |
| | | OutFireMethod: field.OutFireMethod, |
| | | //物料禁忌 |
| | | MaterialTaboo: field.MaterialTaboo, |
| | | |
| | | Demo: field.Demo |
| | | }; |
| | | if (doing) { |