| | |
| | | {field: 'id', hide: true, title: '主键id'}, |
| | | {field: 'materialCode', sort: true, title: '物料编号',width:130}, |
| | | {field: 'materialName', sort: true, title: '物料名称',width:180}, |
| | | {field: 'materialView', sort: true, title: '视图'}, |
| | | {field: 'typeZ', sort: true, title: '种类'}, |
| | | {field: 'typeL', sort: true, title: '类型'}, |
| | | // {field: 'materialView', sort: true, title: '视图'}, |
| | | // {field: 'typeZ', sort: true, title: '种类'}, |
| | | { |
| | | field: 'typeL', align: "center", title: '类型', templet: function (d) { |
| | | console.log(d.typeL) |
| | | switch(d.typeL){ |
| | | case "PRODUCE" : |
| | | return "产品"; |
| | | break; |
| | | case "SEMIFINISHEDPRODUCTS" : |
| | | return "半成品"; |
| | | break; |
| | | case "COMPONENTSANDPARTS" : |
| | | return "零部件"; |
| | | break; |
| | | default : |
| | | } |
| | | } |
| | | }, |
| | | {field: 'unit', sort: true, title: '单位'}, |
| | | {field: 'matterVersion', sort: true, title: '版本'}, |
| | | // {field: 'matterVersion', sort: true, title: '版本'}, |
| | | {field: 'remarks', sort: true, title: '备注'}, |
| | | {field: 'createUser', sort: true, title: '创建用户',width:120}, |
| | | {field: 'createTime', sort: true, title: '创建时间',width:160}, |
| | | {field: 'updateUser', sort: true, title: '更改用户',width:120}, |
| | | {field: 'updateTime', sort: true, title: '更改时间',width:160}, |
| | | {field: 'erpSpec', sort: true, title: ''}, |
| | | // {field: 'erpSpec', sort: true, title: ''}, |
| | | {fixed: 'right',width: 125, minWidth: 125, align: 'center', toolbar: '#tableBar', title: '操作'} |
| | | ]]; |
| | | }; |