|
@ -369,7 +369,6 @@ |
|
|
{title: '物料的数量',field: 'materialNum',align: 'center', |
|
|
{title: '物料的数量',field: 'materialNum',align: 'center', |
|
|
editable:{ |
|
|
editable:{ |
|
|
type : 'text', |
|
|
type : 'text', |
|
|
mode: 'inline', |
|
|
|
|
|
title : '物料的数量', |
|
|
title : '物料的数量', |
|
|
validate : function(value) { |
|
|
validate : function(value) { |
|
|
if (!value) { |
|
|
if (!value) { |
|
@ -386,7 +385,6 @@ |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
editable:{ |
|
|
editable:{ |
|
|
type: 'text', // 使用'text'类型,因为我们需自定义验证小数 |
|
|
type: 'text', // 使用'text'类型,因为我们需自定义验证小数 |
|
|
mode: 'inline', |
|
|
|
|
|
enabled: function() { |
|
|
enabled: function() { |
|
|
return ($("#commonCurrency_add").val() === '1'); // 当货币类型为2时启用 |
|
|
return ($("#commonCurrency_add").val() === '1'); // 当货币类型为2时启用 |
|
|
}, |
|
|
}, |
|
@ -417,7 +415,6 @@ |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
editable: { |
|
|
editable: { |
|
|
type: 'text', // 使用'text'类型,因为我们需自定义验证小数 |
|
|
type: 'text', // 使用'text'类型,因为我们需自定义验证小数 |
|
|
mode: 'inline', |
|
|
|
|
|
enabled: function() { |
|
|
enabled: function() { |
|
|
return ($("#commonCurrency_add").val() === '2'); // 当货币类型为2时启用 |
|
|
return ($("#commonCurrency_add").val() === '2'); // 当货币类型为2时启用 |
|
|
}, |
|
|
}, |
|
|