|
|
@ -3,6 +3,7 @@ |
|
|
|
<head> |
|
|
|
<th:block th:include="include :: header('入库-采购单(采购入库)')" /> |
|
|
|
<th:block th:include="include :: datetimepicker-css" /> |
|
|
|
<th:block th:include="include :: bootstrap-editable-css" /> |
|
|
|
<th:block th:include="include :: select2-css" /> |
|
|
|
<style> |
|
|
|
|
|
|
@ -296,13 +297,42 @@ |
|
|
|
if (isNaN(v)) return '数量必须是数字'; |
|
|
|
var processBadNum = parseInt(v); |
|
|
|
if (processBadNum <= 0) return '数量必须是正整数'; |
|
|
|
}, |
|
|
|
}, |
|
|
|
formatter: function (value, row) { |
|
|
|
// 检查 storageNum 是否存在 |
|
|
|
if (row.storageNum === undefined || row.storageNum === null) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
// 根据 storageNum 的值决定返回值 |
|
|
|
if (row.storageNum) { |
|
|
|
return row.storageNum; |
|
|
|
} else { |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '存放位置', |
|
|
|
field: 'storageLocation', |
|
|
|
editable: true |
|
|
|
editable: { |
|
|
|
type: 'text', |
|
|
|
mode:'inline', |
|
|
|
}, |
|
|
|
formatter: function (value, row) { |
|
|
|
// 检查 storageLocation 是否存在 |
|
|
|
if (row.storageLocation === undefined || row.storageLocation === null) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
// 根据 storageLocation 的值决定返回值 |
|
|
|
if (row.storageLocation) { |
|
|
|
return row.storageLocation; |
|
|
|
} else { |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|