|
|
@ -488,11 +488,12 @@ body {
|
|
|
|
if (num <= 0) {
|
|
|
|
if (num <= 0) {
|
|
|
|
return layer.msg('资源数量需要大于0')
|
|
|
|
return layer.msg('资源数量需要大于0')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var numReadonly = isEnableNum == 1 ? '' : 'readonly'
|
|
|
|
var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' +
|
|
|
|
var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' +
|
|
|
|
'<td>' + resourceTypeName + '</td>' +
|
|
|
|
'<td>' + resourceTypeName + '</td>' +
|
|
|
|
'<td>' + resourceName + '</td>' +
|
|
|
|
'<td>' + resourceName + '</td>' +
|
|
|
|
'<td class="amount">' + amount + '</td>' +
|
|
|
|
'<td class="amount">' + amount + '</td>' +
|
|
|
|
'<td class="num"><input name="num" type="text" value="' + num + '" readonly></td>' +
|
|
|
|
'<td class="num"><input name="num" type="text" value="' + num + '" ' + numReadonly + '></td>' +
|
|
|
|
'<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' +
|
|
|
|
'<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' +
|
|
|
|
'<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' +
|
|
|
|
'<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' +
|
|
|
|
'</tr>';
|
|
|
|
'</tr>';
|
|
|
|