付费申请bug修复,金额保留2位

zth
lijingjia 2 weeks ago
parent 8309ff5cb0
commit 306bf9f2a8

@ -7,7 +7,12 @@
<a-spin :spinning="loading">
<div class="ds-approve-fee-table-sf">
<div class="fee-check-opt">
<h4>{{ status == 'BILL_RECV_AUDIT' ? '应收费用确认' : '应收应付费用' }}</h4>
<h4>{{ status == 'BILL_RECV_AUDIT' ? '应收费用确认' : '应收应付费用' }}
<a-button type="link" >
<span class="iconfont icon-dengjizongshu"></span>
编辑
</a-button>
</h4>
<span v-if="!status">
<a-dropdown>
<template #overlay>
@ -80,7 +85,7 @@
<li v-for="(item, index) in tableData" class="fee-data" :key="'f-n-' + index">
{{ item.feeName }}
</li>
<li v-show="tableData.length" class="fee-li-statistic"></li>
<li v-show="tableData && tableData.length" class="fee-li-statistic"></li>
</ul>
<!-- 应收表格 -->
<BasicTable class="ds-mini-table-detail receive-table" @register="registerTable1">

@ -83,6 +83,7 @@
import { Divider } from 'ant-design-vue'
import { BasicForm, useForm } from '/@/components/Form'
import ApplyInfo from './components/applyInfo.vue'
import { numberThousandFormat } from '/@/utils/commonUtil'
//
import BusinessTable from './components/businessTable.vue'
const { createMessage } = useMessage()
@ -181,16 +182,19 @@
dloading.value = true
Get({ id }).then(res => {
dloading.value = false
if (res?.data?.amountRMB) res.data.amountRMB = numberThousandFormat(res.data.amountRMB, 2, true)
if (res?.data?.amountUSD) res.data.amountUSD = numberThousandFormat(res.data.amountUSD, 2, true)
setFieldsValue(res.data)
status.value = res.data.status
bid.value = res.data.id
statusText.value = res.data.statusText
applyNo.value = res.data.applicationNO
feeData.value = res.data.details
if (res?.additionalData?.receivablesRMB) res.additionalData.receivablesRMB = res.additionalData.receivablesRMB.toLocaleString()
if (res?.additionalData?.receivablesUSD) res.additionalData.receivablesUSD = res.additionalData.receivablesUSD.toLocaleString()
if (res?.additionalData?.unSettledRMB) res.additionalData.unSettledRMB = res.additionalData.unSettledRMB.toLocaleString()
if (res?.additionalData?.unSettledUSD) res.additionalData.unSettledUSD = res.additionalData.unSettledUSD.toLocaleString()
if (res?.additionalData?.amountRMB) res.additionalData.amountRMB = numberThousandFormat(res.additionalData.amountRMB, 2, true)
if (res?.additionalData?.receivablesRMB) res.additionalData.receivablesRMB = numberThousandFormat(res.additionalData.receivablesRMB, 2, true)
if (res?.additionalData?.receivablesUSD) res.additionalData.receivablesUSD = numberThousandFormat(res.additionalData.receivablesUSD, 2, true)
if (res?.additionalData?.unSettledRMB) res.additionalData.unSettledRMB = numberThousandFormat(res.additionalData.unSettledRMB, 2, true)
if (res?.additionalData?.unSettledUSD) res.additionalData.unSettledUSD = numberThousandFormat(res.additionalData.unSettledUSD, 2, true)
additionalData.value = res.additionalData
})
// id

Loading…
Cancel
Save