diff --git a/public/js/order-list.js b/public/js/order-list.js
index 4209ce7..f10ee70 100644
--- a/public/js/order-list.js
+++ b/public/js/order-list.js
@@ -77,9 +77,10 @@ function renderOtherIncomeItem(r) {
function renderDispatchItem(r) {
const time = formatLocalTime(r.created_at);
+ const unitPrice = r.unit_price || (r.quantity ? r.amount / r.quantity : 0);
return '
' +
'
' + (r.boss || '-') + '' + (r.amount || 0).toFixed(2) + '
' +
- '
' + (r.quantity || 0) + '单 × ' + ((r.rebate || r.amount / r.quantity) || 0).toFixed(2) + '(单价' + (r.unit_price || 0).toFixed(2) + ')' + time + (r.partner ? ' · ' + r.partner : '') + '
';
+ '' + (r.quantity || 0) + '单 × ' + (r.rebate || 0).toFixed(2) + '(单价' + unitPrice.toFixed(2) + ')' + time + (r.partner ? ' · ' + r.partner : '') + '
';
}
function renderRedEnvelopeItem(r) {