fix
This commit is contained in:
@@ -4,11 +4,7 @@
|
||||
v-bind="editorContainerProps"
|
||||
@update:model-value="visible = $event"
|
||||
>
|
||||
<div
|
||||
v-loading="loading"
|
||||
class="formal-editor"
|
||||
:class="{ 'formal-editor--page': pageMode }"
|
||||
>
|
||||
<div v-loading="loading" class="formal-editor" :class="{ 'formal-editor--page': pageMode }">
|
||||
<section-card title="结算基本信息">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
@@ -227,6 +223,9 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<span v-if="column.money">{{ formatMoney(row[column.prop]) }}</span>
|
||||
<span v-else-if="column.prop === 'transportQuantity'">
|
||||
{{ formatQuantity(row[column.prop]) }}
|
||||
</span>
|
||||
<span v-else-if="column.prop === 'transportType'">
|
||||
{{ transportTypeName(row[column.prop]) }}
|
||||
</span>
|
||||
@@ -417,7 +416,12 @@
|
||||
<el-table-column prop="paidAmount" label="已付款金额" min-width="130" align="center">
|
||||
<template #default="{ row }">{{ formatMoney(row.paidAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="approvalStatusName" label="单据状态" min-width="120" align="center">
|
||||
<el-table-column
|
||||
prop="approvalStatusName"
|
||||
label="单据状态"
|
||||
min-width="120"
|
||||
align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ displayValue(row.approvalStatusName) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="kingdeeBillNo" label="金蝶单据号" min-width="150" align="center">
|
||||
@@ -439,7 +443,12 @@
|
||||
<el-table-column prop="adjustmentAmount" label="调整金额" min-width="130" align="center">
|
||||
<template #default="{ row }">{{ formatMoney(row.adjustmentAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="approvalStatusName" label="单据状态" min-width="120" align="center">
|
||||
<el-table-column
|
||||
prop="approvalStatusName"
|
||||
label="单据状态"
|
||||
min-width="120"
|
||||
align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ displayValue(row.approvalStatusName) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" min-width="220" align="center">
|
||||
@@ -627,7 +636,7 @@
|
||||
><el-input-number
|
||||
v-model="row.transportQuantity"
|
||||
:min="0"
|
||||
:precision="6"
|
||||
:precision="2"
|
||||
:controls="false" /></template
|
||||
></el-table-column>
|
||||
<el-table-column label="里程(KM)" min-width="130" align="center"
|
||||
@@ -1458,9 +1467,7 @@ export default {
|
||||
remainingAmount = Number((remainingAmount - matchedAmount).toFixed(2));
|
||||
return {
|
||||
invoiceNo,
|
||||
invoiceDate: this.$dayjs()
|
||||
.subtract(index, 'day')
|
||||
.format('YYYY-MM-DD'),
|
||||
invoiceDate: this.$dayjs().subtract(index, 'day').format('YYYY-MM-DD'),
|
||||
invoiceType: index === 1 ? '增值税普通发票' : '增值税专用发票',
|
||||
taxRate: [3, 6, 9][index],
|
||||
invoiceAmount: invoiceAmounts[index],
|
||||
@@ -1627,6 +1634,11 @@ export default {
|
||||
formatMoney(value) {
|
||||
return `${Number(value || 0).toFixed(2)} RMB`;
|
||||
},
|
||||
formatQuantity(value) {
|
||||
if (value === undefined || value === null || value === '') return '-';
|
||||
const quantity = Number(value);
|
||||
return Number.isFinite(quantity) ? quantity.toFixed(2) : '-';
|
||||
},
|
||||
async loadTransportTypeOptions() {
|
||||
const { data } = await getDictionary({ code: 'transport_type' });
|
||||
this.transportTypeOptions = data?.data || [];
|
||||
|
||||
Reference in New Issue
Block a user