|
|
@ -54,59 +54,28 @@ |
|
|
|
singleSelect: true, // 单选 |
|
|
|
url: prefix + "/list", |
|
|
|
modalName: "物料信息", |
|
|
|
columns: [{ |
|
|
|
checkbox: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'id', |
|
|
|
title: '主键ID', |
|
|
|
visible: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'materialNo', |
|
|
|
title: '料号' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '图片', |
|
|
|
field:'photoUrl', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.imageView(value); |
|
|
|
columns: [ |
|
|
|
{checkbox: true}, |
|
|
|
{title: '主键ID',field: 'id',visible: false}, |
|
|
|
{title: '料号',field: 'materialNo',}, |
|
|
|
{title: '图片',field:'photoUrl', |
|
|
|
formatter: function(value, row, index) {return $.table.imageView(value);} |
|
|
|
}, |
|
|
|
{title: '物料名称',field: 'materialName',}, |
|
|
|
{title: '物料类型',field: 'materialType', |
|
|
|
formatter: function(value, row, index) {return $.table.selectCategoryLabel(materialTypeDatas, value);} |
|
|
|
}, |
|
|
|
{title: '品牌', field: 'brand',}, |
|
|
|
{title: '单位',field: 'unit',formatter: function(value, row, index) {return $.table.selectDictLabel(sysUnitClassDatas, value);}}, |
|
|
|
{title: '描述',field: 'describe',}, |
|
|
|
{title: '入库部门',field:'warehouseDept', formatter:function(value, row, index){ |
|
|
|
return $.table.selectDictLabel(warehouseDeptDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '加工方法',field: 'processMethod',formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'materialName', |
|
|
|
title: '物料名称' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'materialType', |
|
|
|
title: '物料类型', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectCategoryLabel(materialTypeDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'brand', |
|
|
|
title: '品牌' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'unit', |
|
|
|
title: '单位', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(sysUnitClassDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'describe', |
|
|
|
title: '描述' |
|
|
|
}, |
|
|
|
{field:'warehouseDept', title: '仓库部门',}, |
|
|
|
{ |
|
|
|
field: 'processMethod', |
|
|
|
title: '加工方法', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(processMethodDatas, value); |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|