|
|
@ -54,6 +54,12 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">型号:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="materialModel" th:field="*{materialModel}" class="form-control" type="text" readonly> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">品牌:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
@ -203,6 +209,11 @@ |
|
|
|
align: 'center', |
|
|
|
title: '描述' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'materialModel', |
|
|
|
align: 'center', |
|
|
|
title: '型号' |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'brand', |
|
|
|
align: 'center', |
|
|
@ -313,6 +324,24 @@ |
|
|
|
return '备注'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
formatter: function (value, row) { |
|
|
|
// 检查 row 是否存在 |
|
|
|
if (!row) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
// 检查 storageLocation 是否存在 |
|
|
|
if (row.storageLocation === undefined || row.storageLocation === null) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
// 根据 storageLocation 的值决定返回值 |
|
|
|
if (row.storageLocation) { |
|
|
|
return row.storageLocation; |
|
|
|
} else { |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
@ -369,6 +398,7 @@ |
|
|
|
materialName: rowData.materialName, |
|
|
|
materialType: rowData.materialType, |
|
|
|
describe: rowData.describe, |
|
|
|
materialModel:rowData.materialModel, |
|
|
|
brand: rowData.brand, |
|
|
|
unit: rowData.unit, |
|
|
|
processMethod: rowData.processMethod, |
|
|
|