表头固定
parent
23fa27838b
commit
4bbe0d2c7c
src/main/resources
|
@ -170,6 +170,7 @@ $(function () {
|
|||
|
||||
$("#costAddBtn").click(function () {
|
||||
appendTrCost();
|
||||
$("#costAddBtn").blur();
|
||||
});
|
||||
|
||||
//绑定其他其他的输入框
|
||||
|
@ -240,7 +241,7 @@ function appendTrCost() {
|
|||
'<td width="100px"><input type="text" class="number am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-pay-amount-cost" ></td>\n' +
|
||||
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost" ></td>\n' +
|
||||
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost" ></td>\n' +
|
||||
'<td><button type="button" style="margin-top: 10px" class="am-btn am-btn-danger am-btn-xs am-round am-modal-line-delete"><span class="am-icon-minus"></span></button></td>'+
|
||||
'<td width="60px"><button type="button" style="margin-top: 10px" class="am-btn am-btn-danger am-btn-xs am-round am-modal-line-delete"><span class="am-icon-minus"></span></button></td>'+
|
||||
'</tr>';
|
||||
|
||||
$("#costTotal").before(template);
|
||||
|
@ -258,6 +259,10 @@ function appendTrCost() {
|
|||
bindTypeSelectChange();
|
||||
//绑定数字输入框保留两位小数
|
||||
bindNumberInput();
|
||||
|
||||
if ($('#costTable').find('tbody') && $('#costTable').find('tbody')[0]) {
|
||||
$('#costTable').find('tbody')[0].scrollTop = $('#costTable').find('tbody')[0].scrollHeight
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -105,6 +105,7 @@ $(function () {
|
|||
|
||||
$("#costProjectManageAddBtn").click(function () {
|
||||
appendTrCostProjectManage();
|
||||
$("#costProjectManageAddBtn").blur();
|
||||
});
|
||||
bindTypeSelectChangeManager();
|
||||
//绑定项目管理明细输入框
|
||||
|
@ -119,8 +120,8 @@ $(function () {
|
|||
*/
|
||||
function appendTrCostProjectManage() {
|
||||
var template = '<tr>\n' +
|
||||
' <td width="60px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-budget-num" readonly></td>\n' +
|
||||
' <td width="100px">\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-budget-num" readonly></td>\n' +
|
||||
' <td>\n' +
|
||||
' <select style="float: left;" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-type">\n' +
|
||||
' <option value="xxxx" disabled selected>--请选择--</option>\n' +
|
||||
' <option value="1" >人工成本</option>\n' +
|
||||
|
@ -129,7 +130,7 @@ function appendTrCostProjectManage() {
|
|||
' <option value="4" >保证金</option>\n' +
|
||||
' </select>\n' +
|
||||
' </td>\n' +
|
||||
' <td width="180px">\n' +
|
||||
' <td>\n' +
|
||||
' <select style="float: left;" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category">\n' +
|
||||
' <option value="xxxx" disabled selected>--请选择--</option>\n' +
|
||||
' <option value="1" >人工费</option>\n' +
|
||||
|
@ -142,16 +143,16 @@ function appendTrCostProjectManage() {
|
|||
' </select>\n' +
|
||||
' <input type="hidden" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category2"/>\n' +
|
||||
' </td>\n' +
|
||||
' <td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td width="80px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="number" min="0" max="99999999" step="1" maxlength="8" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-amount-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="text" min="0.00" max="9999999999.99" step="0.01" maxlength="19" class="price am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-price-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-project-manage" readonly></td>\n' +
|
||||
' <td width="130px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" data-am-datepicker></td>\n' +
|
||||
' <td width="100px"><input type="text" class="number am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-pay-amount-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><input type="number" min="0" max="99999999" step="1" maxlength="8" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-amount-project-manage"></td>\n' +
|
||||
' <td><input type="text" min="0.00" max="9999999999.99" step="0.01" maxlength="19" class="price am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-price-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-project-manage" readonly></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" data-am-datepicker></td>\n' +
|
||||
' <td><input type="text" class="number am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-pay-amount-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"></td>\n' +
|
||||
' <td><button type="button" style="margin-top: 10px" class="am-btn am-btn-danger am-btn-xs am-round am-modal-line-delete"><span class="am-icon-minus"></span></button>' +
|
||||
' <input type="hidden" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="1"></td>\n' +
|
||||
' </tr>';
|
||||
|
@ -167,6 +168,10 @@ function appendTrCostProjectManage() {
|
|||
bindTypeSelectChangeManager();
|
||||
//绑定数字输入框保留两位小数
|
||||
bindNumberInput();
|
||||
|
||||
if ($('#costProjectManageTable').find('tbody') && $('#costProjectManageTable').find('tbody')[0]) {
|
||||
$('#costProjectManageTable').find('tbody')[0].scrollTop = $('#costProjectManageTable').find('tbody')[0].scrollHeight
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -82,6 +82,7 @@ $(function () {
|
|||
});
|
||||
$("#incomeAddBtn").click(function () {
|
||||
appendTrIncome();
|
||||
$("#incomeAddBtn").blur();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -191,6 +192,10 @@ function appendTrIncome() {
|
|||
bindIncomeTotal();
|
||||
//绑定数字输入框保留两位小数
|
||||
bindNumberInput();
|
||||
|
||||
if ($('#incomeTable').find('tbody') && $('#incomeTable').find('tbody')[0]) {
|
||||
$('#incomeTable').find('tbody')[0].scrollTop = $('#incomeTable').find('tbody')[0].scrollHeight
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,6 +40,7 @@ $(function () {
|
|||
});
|
||||
$("#incomePlanAddBtn").click(function () {
|
||||
appendTrIncomePlan();
|
||||
$("#incomePlanAddBtn").blur();
|
||||
});
|
||||
$(".am-modal-line-delete").click(function () {
|
||||
//删除自己对应的tr
|
||||
|
@ -80,6 +81,10 @@ function appendTrIncomePlan() {
|
|||
bindIncomePlanTotal();
|
||||
//绑定数字输入框保留两位小数
|
||||
bindNumberInput();
|
||||
|
||||
if ($('#incomePlanTable').find('tbody') && $('#incomePlanTable').find('tbody')[0]) {
|
||||
$('#incomePlanTable').find('tbody')[0].scrollTop = $('#incomePlanTable').find('tbody')[0].scrollHeight
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue