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

zth
lijingjia 3 weeks ago
parent 20b5e12e1b
commit 8309ff5cb0

@ -88,7 +88,8 @@ export const feeApplyColumns = [
}, { }, {
title: '金额', title: '金额',
width: 80, width: 80,
dataIndex: 'amount' dataIndex: 'amount',
align: 'right'
}, { }, {
title: '币别', title: '币别',
width: 60, width: 60,
@ -96,7 +97,8 @@ export const feeApplyColumns = [
}, { }, {
title: '未结金额', title: '未结金额',
width: 80, width: 80,
dataIndex: 'restAmount' dataIndex: 'restAmount',
align: 'right'
}, { }, {
title: '本次申请金额', title: '本次申请金额',
width: 100, width: 100,
@ -108,7 +110,8 @@ export const feeApplyColumns = [
}, { }, {
title: '开票金额', title: '开票金额',
width: 100, width: 100,
dataIndex: 'invoiceAmount' dataIndex: 'invoiceAmount',
align: 'right'
}, { }, {
title: '备注', title: '备注',
width: 150, width: 150,

@ -45,6 +45,7 @@
import { feeStatusList } from '../columns' import { feeStatusList } from '../columns'
// id // id
import { GetList, GetFees } from '../api' import { GetList, GetFees } from '../api'
import { numberThousandFormat } from '/@/utils/commonUtil'
// id // id
import { GetFeeTemplateDetailList } from '/@/views/fee/template/api' import { GetFeeTemplateDetailList } from '/@/views/fee/template/api'
const props = defineProps({ const props = defineProps({
@ -83,6 +84,9 @@
loading.value = false loading.value = false
const { data } = res const { data } = res
data.forEach((item, index) => { data.forEach((item, index) => {
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
item['feeStatusText'] = feeStatusList[item.feeStatus] item['feeStatusText'] = feeStatusList[item.feeStatus]
if (item.createTime) item.createTime = item.createTime.split(' ')[0] if (item.createTime) item.createTime = item.createTime.split(' ')[0]
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0] if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
@ -112,6 +116,9 @@
const { data } = res const { data } = res
loading.value = false loading.value = false
data.items.forEach((item, index) => { data.items.forEach((item, index) => {
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
item['feeStatusText'] = feeStatusList[item.feeStatus] item['feeStatusText'] = feeStatusList[item.feeStatus]
item['id'] = item.recordId item['id'] = item.recordId
if (item.createTime) item.createTime = item.createTime.split(' ')[0] if (item.createTime) item.createTime = item.createTime.split(' ')[0]
@ -139,6 +146,9 @@
const { data } = res const { data } = res
loading.value = false loading.value = false
data.forEach((item, index) => { data.forEach((item, index) => {
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
item['feeStatusText'] = feeStatusList[item.feeStatus] item['feeStatusText'] = feeStatusList[item.feeStatus]
if (item.createTime) item.createTime = item.createTime.split(' ')[0] if (item.createTime) item.createTime = item.createTime.split(' ')[0]
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0] if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]

@ -73,7 +73,7 @@
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<div class="flex fee-tables"> <div class="flex" :class="{'fee-tables': !route.query.status}">
<!-- 三个表格 --> <!-- 三个表格 -->
<ul class="columns-name"> <ul class="columns-name">
<li class="fee-name">费用名称</li> <li class="fee-name">费用名称</li>

@ -33,41 +33,41 @@ export const businessColumns: BasicColumn[] = [
title: 'RMB未付', title: 'RMB未付',
dataIndex: 'unpaidRMB', dataIndex: 'unpaidRMB',
width: 120, width: 120,
align: 'left' align: 'right'
}, },
{ {
title: 'USD未付', title: 'USD未付',
dataIndex: 'unpaidUSD', dataIndex: 'unpaidUSD',
width: 120, width: 120,
align: 'left' align: 'right'
},
{
title: '其他未付',
dataIndex: 'unpaidOther',
width: 120,
align: 'left'
}, },
// {
// title: '其他未付',
// dataIndex: 'unpaidOther',
// width: 120,
// align: 'left'
// },
{ {
title: 'RMB未收', title: 'RMB未收',
dataIndex: 'unpaidOther', dataIndex: 'unreceivedRMB',
width: 120, width: 120,
align: 'left' align: 'right'
}, },
{ {
title: 'USD未收', title: 'USD未收',
dataIndex: 'unpaidOther', dataIndex: 'unreceivedUSD',
width: 120, width: 120,
align: 'left' align: 'right'
},
{
title: '其他未收',
dataIndex: 'unpaidOther',
width: 120,
align: 'left'
}, },
// {
// title: '其他未收',
// dataIndex: 'unpaidOther',
// width: 120,
// align: 'left'
// },
{ {
title: '订舱编号', title: '订舱编号',
dataIndex: 'unpaidOther', dataIndex: 'bookingNo',
width: 120, width: 120,
align: 'left' align: 'left'
}, },
@ -75,23 +75,23 @@ export const businessColumns: BasicColumn[] = [
title: 'RMB付未开票', title: 'RMB付未开票',
dataIndex: 'unBilledRMB', dataIndex: 'unBilledRMB',
width: 120, width: 120,
align: 'left' align: 'right'
}, },
{ {
title: 'USD付未开票', title: 'USD付未开票',
dataIndex: 'unBilledUSD', dataIndex: 'unBilledUSD',
width: 120, width: 120,
align: 'left' align: 'right'
}, },
{ {
title: '合计未收', title: '合计未收',
dataIndex: 'unreceivedTotal', dataIndex: 'unreceivedTotal',
width: 120, width: 120,
align: 'left' align: 'right'
}, },
{ {
title: '业务类别', title: '业务类别',
dataIndex: 'businessType', dataIndex: 'businessTypeName',
width: 120, width: 120,
align: 'left' align: 'left'
}, },
@ -101,9 +101,9 @@ export const businessColumns: BasicColumn[] = [
width: 120, width: 120,
align: 'left' align: 'left'
}, },
{///////////// {
title: '委托单位', title: '委托单位',
dataIndex: 'unreceivedTotal', dataIndex: 'clientName',
width: 120, width: 120,
align: 'left' align: 'left'
}, },
@ -125,12 +125,6 @@ export const businessColumns: BasicColumn[] = [
width: 120, width: 120,
align: 'left' align: 'left'
}, },
{/////////////
title: '会计日期',
dataIndex: 'changeOrder',
width: 120,
align: 'left'
},
{ {
title: '操作', title: '操作',
dataIndex: 'operator', dataIndex: 'operator',
@ -143,18 +137,18 @@ export const businessColumns: BasicColumn[] = [
width: 120, width: 120,
align: 'left' align: 'left'
}, },
{//////////////// // {////////////////
title: 'RMB收费状态', // title: 'RMB收费状态',
dataIndex: 'cntrTotal', // dataIndex: 'cntrTotal',
width: 120, // width: 120,
align: 'left' // align: 'left'
}, // },
{////////////////// // {//////////////////
title: 'USD收费状态', // title: 'USD收费状态',
dataIndex: 'cntrTotal', // dataIndex: 'cntrTotal',
width: 120, // width: 120,
align: 'left' // align: 'left'
}, // },
{ {
title: '起运港', title: '起运港',
dataIndex: 'loadPort', dataIndex: 'loadPort',
@ -659,7 +653,7 @@ export const searchFormSchema: FormSchema[] = [
} }
}, },
{ {
field: 'feeName', field: 'feeId',
label: '费用名称', label: '费用名称',
component: 'ApiSelect', component: 'ApiSelect',
colProps: { span: 4 }, colProps: { span: 4 },

@ -68,6 +68,7 @@
import { DeleteDetail } from '../../api' import { DeleteDetail } from '../../api'
import { exportExcelByData } from '/@/hooks/web/common' import { exportExcelByData } from '/@/hooks/web/common'
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
import { numberThousandFormat } from '/@/utils/commonUtil'
const { createMessage } = useMessage() const { createMessage } = useMessage()
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
const route = useRoute() const route = useRoute()
@ -154,8 +155,8 @@
(list) => { (list) => {
if (list && list.length) { if (list && list.length) {
list.forEach(item => { list.forEach(item => {
if (item.amount) item.amount = item.amount.toLocaleString() if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
if (item.originalAmount) item.originalAmount = item.originalAmount.toLocaleString() if (item.originalAmount) item.originalAmount = numberThousandFormat(item.originalAmount, 2, true)
}) })
} }
setTableData([...list]) setTableData([...list])

@ -5,6 +5,7 @@
*/ */
import { commentProps } from 'ant-design-vue/lib/comment' import { commentProps } from 'ant-design-vue/lib/comment'
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import { right } from 'inquirer/lib/utils/readline'
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '委托编号', title: '委托编号',
@ -58,6 +59,7 @@ export const columns: BasicColumn[] = [
title: '申请金额', title: '申请金额',
dataIndex: 'amount', dataIndex: 'amount',
width: 100, width: 100,
align: 'right'
}, },
{ {
title: '原始币别', title: '原始币别',
@ -78,6 +80,7 @@ export const columns: BasicColumn[] = [
title: '原始金额', title: '原始金额',
dataIndex: 'originalAmount', dataIndex: 'originalAmount',
width: 100, width: 100,
align: 'right'
}, },
// { // {
// title: '进项/销项税率', // title: '进项/销项税率',

@ -102,6 +102,7 @@
import feeTable from '/@/components/CostEntry/components/feeTable.vue' import feeTable from '/@/components/CostEntry/components/feeTable.vue'
import { BasicForm, useForm } from '/@/components/Form' import { BasicForm, useForm } from '/@/components/Form'
import ExchangeRate from './exchangeRate.vue' import ExchangeRate from './exchangeRate.vue'
import { numberThousandFormat } from '/@/utils/commonUtil'
// //
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
import { Divider } from 'ant-design-vue' import { Divider } from 'ant-design-vue'
@ -139,6 +140,11 @@
const res = await GetBizList(p) const res = await GetBizList(p)
res.data.forEach((item, index) => { res.data.forEach((item, index) => {
item['idIndex'] = item.id + index item['idIndex'] = item.id + index
if (item['unpaidRMB']) item['unpaidRMB'] = numberThousandFormat(item['unpaidRMB'], 2, true)
if (item['unpaidUSD']) item['unpaidUSD'] = numberThousandFormat(item['unpaidUSD'], 2, true)
if (item['unBilledRMB']) item['unBilledRMB'] = numberThousandFormat(item['unBilledRMB'], 2, true)
if (item['unBilledUSD']) item['unBilledUSD'] = numberThousandFormat(item['unBilledUSD'], 2, true)
if (item['unreceivedTotal']) item['unreceivedTotal'] = numberThousandFormat(item['unreceivedTotal'], 2, true)
}) })
if (res?.data?.length) state.historyRowKeys = [res.data[0].id + 0] if (res?.data?.length) state.historyRowKeys = [res.data[0].id + 0]
setSelectedRows([res.data[0]]) setSelectedRows([res.data[0]])
@ -335,7 +341,7 @@
const qCondition = [] const qCondition = []
const formData = getForm().getFieldsValue() const formData = getForm().getFieldsValue()
for (var key in formData) { for (var key in formData) {
if (formData[key]) { if (formData[key] && (key == 'feeType' || key == 'currency' || key == 'feeId')) {
qCondition.push({ qCondition.push({
FieldName: key, FieldName: key,
FieldValue: formData[key], FieldValue: formData[key],
@ -376,7 +382,6 @@
bPostData.value = postData bPostData.value = postData
if (currencyList.length == 0) { if (currencyList.length == 0) {
// //
BizSave(postData).then(res => { BizSave(postData).then(res => {
loading.value = false loading.value = false
if (res.succeeded) { if (res.succeeded) {

Loading…
Cancel
Save