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