From 702ddaf6a965f20fe51c322c55fbcdede9d18c5d Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Mon, 2 Feb 2026 15:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=8D=95=E5=8A=A0=E5=A4=87?= =?UTF-8?q?=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/car_settlement/payment_form.css | 23 +++++++++++++++++++ js/car_application_audit/car_audit_detail.js | 2 ++ js/car_application_audit/car_audit_update.js | 2 ++ js/car_settlement/child/payment_form.js | 14 ++++++++--- .../child/car_audit_detail.html | 2 ++ .../child/car_audit_update.html | 2 ++ .../child/payment_form.html | 14 ++++++----- 7 files changed, 50 insertions(+), 9 deletions(-) diff --git a/css/car_settlement/payment_form.css b/css/car_settlement/payment_form.css index ae1ea70..bbf1f86 100644 --- a/css/car_settlement/payment_form.css +++ b/css/car_settlement/payment_form.css @@ -507,3 +507,26 @@ blockquote { overflow: hidden; text-overflow: ellipsis; } + +#dispatch-car-table2 td:nth-child(2) { /* 备注 */ + max-width: 120px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#dispatch-car-table2 td:nth-child(5) { /* 备注 */ + max-width: 120px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#dispatch-car-table2 td:nth-child(13) { /* 备注 */ + max-width: 120px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + + diff --git a/js/car_application_audit/car_audit_detail.js b/js/car_application_audit/car_audit_detail.js index 88d165c..f43d3be 100644 --- a/js/car_application_audit/car_audit_detail.js +++ b/js/car_application_audit/car_audit_detail.js @@ -146,6 +146,7 @@ function carDetail(list) { " ¥ " + (item.glsMoney ? item.glsMoney : 0) + "" + "" + imgNum + "查看附件>>" + "" + item.planCode + "" + + '' + item.remark + '' + ""; }) } else { @@ -190,6 +191,7 @@ function carDetail(list) { "" + imgNum + "查看附件>>" + "" + item.planCode + "" + + '' + item.remark + '' + ''; }) } else { diff --git a/js/car_application_audit/car_audit_update.js b/js/car_application_audit/car_audit_update.js index 3aa6a1d..7c49b5c 100644 --- a/js/car_application_audit/car_audit_update.js +++ b/js/car_application_audit/car_audit_update.js @@ -186,6 +186,7 @@ function carDetail(list){ ¥ ${item.glsMoney||0} ${imgNum}查看附件>> ${item.planCode} + ${item.remark} `; }); $('#dispatch-car-table').removeAttr('style').append(html); @@ -212,6 +213,7 @@ function carDetail(list){ ${imgNum}查看附件>> ${item.planCode} + ${item.remark} `; }); $('#dispatch-car-table2').removeAttr('style').append(html); diff --git a/js/car_settlement/child/payment_form.js b/js/car_settlement/child/payment_form.js index f2408df..8c1738c 100644 --- a/js/car_settlement/child/payment_form.js +++ b/js/car_settlement/child/payment_form.js @@ -281,14 +281,15 @@ function getPayCarDetails(id) { "" + - "" + item.glsPrice + "" + - " ¥ " + (item.glsMoney ? item.glsMoney : 0) + "" + + "" + formatToThreeDecimals(item.glsPrice) + "" + + " ¥ " + formatToThreeDecimals(item.glsMoney) + "" + // "" + "" + imgNum + "查看附件>>" + "" + item.planCode + "" + + "" + item.remark + "" + ""; }) } else { @@ -325,13 +326,14 @@ function getPayCarDetails(id) { "" + '' + setZlPrice(item) + '' + - ' ¥ ' + item.dcMoney + '' + + ' ¥ ' + formatToThreeDecimals(item.dcMoney) + '' + "" + "" + imgNum + "查看附件>>" + "" + item.planCode + "" + + "" + item.remark + "" + ''; }) } else { @@ -358,6 +360,12 @@ function getPayCarDetails(id) { } } +// 四舍五入保留3位小数 +function formatToThreeDecimals(num) { + if (num === null || num === undefined || num === '' || isNaN(Number(num))) return '0.000'; + return Number(num).toFixed(3); +} + // 需求计划详情 function viewPlanDetail(obj) { obj.id = obj.planId; diff --git a/page/car_application_audit/child/car_audit_detail.html b/page/car_application_audit/child/car_audit_detail.html index 5ad8a83..2880460 100644 --- a/page/car_application_audit/child/car_audit_detail.html +++ b/page/car_application_audit/child/car_audit_detail.html @@ -151,6 +151,7 @@ 金额 行驶证/挂靠协议
驾驶证/身份证/导航图 需求计划编号 + 备注 @@ -167,6 +168,7 @@ + diff --git a/page/car_application_audit/child/car_audit_update.html b/page/car_application_audit/child/car_audit_update.html index 49b8224..76ab792 100644 --- a/page/car_application_audit/child/car_audit_update.html +++ b/page/car_application_audit/child/car_audit_update.html @@ -126,6 +126,7 @@ 金额 行驶证/挂靠协议
驾驶证/身份证/导航图 需求计划编号 + 备注 @@ -142,6 +143,7 @@ + diff --git a/page/car_application_audit/child/payment_form.html b/page/car_application_audit/child/payment_form.html index 3c2d701..1b74efb 100644 --- a/page/car_application_audit/child/payment_form.html +++ b/page/car_application_audit/child/payment_form.html @@ -104,6 +104,7 @@ 预估金额 行驶证/挂靠协议
驾驶证/身份证/导航图 需求计划编号 + 备注 @@ -113,13 +114,14 @@ - - + + - - + + - + + @@ -136,4 +138,4 @@ - \ No newline at end of file +