付款单申请

This commit is contained in:
lSun 2026-01-28 15:14:34 +08:00
parent 3dd47ed305
commit d3dbc15b17
1 changed files with 3 additions and 8 deletions

View File

@ -265,7 +265,7 @@ function getPayCarDetails(id) {
imgNum += item.fileList.length; imgNum += item.fileList.length;
const actualGls = item.gls || 0; // 实际公里数初始=预估公里数 const actualGls = item.gls || 0; // 实际公里数初始=预估公里数
const actualMoney = item.glsMoney || 0; // 实际金额初始=预估金额 const actualMoney = 0; // 实际金额初始=预估金额
html += "<tr>" + html += "<tr>" +
"<td>" + item.type + "</td>" + "<td>" + item.type + "</td>" +
@ -313,7 +313,7 @@ function getPayCarDetails(id) {
imgNum += item.fileList.length; imgNum += item.fileList.length;
const actualPlanDay = item.planDay || 0; const actualPlanDay = item.planDay || 0;
const actualDcMoney = item.dcMoney || 0; const actualDcMoney = 0;
html += '<tr>' + html += '<tr>' +
'<td>' + item.type + '</td>' + '<td>' + item.type + '</td>' +
@ -448,12 +448,7 @@ $(document).on('input', '.classTable input.form-control', function() {
} }
}); });
// 输入框失焦时格式化(补零 + 统一两位小数)
$(document).on('blur', '.classTable input.form-control', function() {
if (this.value === '') return; // 空值不处理
// 转数字后格式化,自动补两位小数(如 123 → 123.00123.4 → 123.40
this.value = Number(this.value).toFixed(2);
});
// 关闭页面 // 关闭页面
function closePage(type) { function closePage(type) {