✨ 正式结算保存草稿与同步入口,项目申请平台公司多选等业务优化
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2693,6 +2693,10 @@ export default {
|
||||
return this.formatCell(row?.[prop]);
|
||||
},
|
||||
formatFeeDetailCell(row, prop) {
|
||||
if (prop === 'transportQuantityText' || prop === 'transportQuantity') {
|
||||
if (this.isBlankTransportQuantity(row)) return '-';
|
||||
return this.formatDetailCell(row, prop);
|
||||
}
|
||||
if (prop !== 'originalAmountText') return this.formatDetailCell(row, prop);
|
||||
|
||||
const adjustAmount = Number(row?.adjustAmount || 0);
|
||||
@@ -2711,6 +2715,17 @@ export default {
|
||||
formatCell(value) {
|
||||
return value === null || value === undefined || value === '' ? '-' : value;
|
||||
},
|
||||
isBlankTransportQuantity(row = {}) {
|
||||
const quantity = row.transportQuantity;
|
||||
if (quantity !== null && quantity !== undefined && quantity !== '') {
|
||||
const amount = Number(quantity);
|
||||
return !Number.isFinite(amount) || amount === 0 || amount === -1;
|
||||
}
|
||||
const text = String(row.transportQuantityText || '').trim();
|
||||
if (!text || text === '-') return true;
|
||||
const amount = Number(text.split(/\s+/)[0]);
|
||||
return Number.isFinite(amount) && (amount === 0 || amount === -1);
|
||||
},
|
||||
parseJson(value) {
|
||||
if (!value) return [];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user