付费审核

zth
lijingjia 3 weeks ago
parent 84d5edabcd
commit 71cdb34f9a

@ -113,12 +113,6 @@ export const columns: BasicColumn[] = [
dataIndex: 'ledgerVoucherNO', dataIndex: 'ledgerVoucherNO',
sorter: true, sorter: true,
width: 100 width: 100
},
{
title: '结算日期',
dataIndex: 'settlementDate',
sorter: true,
width: 100
} }
] ]

@ -12,8 +12,9 @@ const route = useRoute()
import { GetClientListByCode, getOrgList, GetClientBank, GetFeeCurrencySelectList } from '/@/api/common' import { GetClientListByCode, getOrgList, GetClientBank, GetFeeCurrencySelectList } from '/@/api/common'
import { GetOrgList, ClientCommonGetStlMode, GetClientBankList,GetOrgBankList } from '../../feeSettlement/api' import { GetOrgList, ClientCommonGetStlMode, GetClientBankList,GetOrgBankList } from '../../feeSettlement/api'
// 业务表格列 // 业务表格列
export const businessColumns: BasicColumn[] = [ export const mainBusinessColumns: BasicColumn[] = [
{ {
title: '申请单号', title: '申请单号',
dataIndex: 'applicationNO', dataIndex: 'applicationNO',
@ -130,6 +131,124 @@ export const businessColumns: BasicColumn[] = [
} }
] ]
// 业务表格列
export const businessColumns: BasicColumn[] = [
{
title: '申请单号',
dataIndex: 'applicationNO',
width: 120,
align: 'left'
},
{
title: '状态',
dataIndex: 'statusText',
width: 100,
align: 'left'
},
{
title: '结算单位',
dataIndex: 'customerName',
width: 120,
align: 'left'
},
{
title: 'RMB申请金额',
dataIndex: 'amountRMB',
width: 100,
align: 'left'
},
{
title: 'RMB未结金额',
dataIndex: 'unSettledRMB',
width: 100,
align: 'left'
},
{
title: 'RMB本次结算',
dataIndex: 'settlementRMB',
width: 100,
align: 'left'
},
{
title: 'USD申请金额',
dataIndex: 'amountUSD',
width: 100,
align: 'left'
},
{
title: 'USD未结金额',
dataIndex: 'unSettledUSD',
width: 100,
align: 'left'
},
{
title: 'USD本次结算',
dataIndex: 'settlementUSD',
width: 100,
align: 'left'
},
{
title: '申请日期',
dataIndex: 'createTime',
width: 100,
align: 'left'
},
{
title: '申请人',
dataIndex: 'createByName',
width: 100,
align: 'left'
},
{
title: '申请支付日期',
dataIndex: 'paymentDate',
width: 100,
align: 'left'
},
{
title: '结算方式',
dataIndex: 'settlementTypeName',
width: 100,
align: 'left'
},
{
title: '审核实付金额',
dataIndex: 'payAmount',
width: 100,
align: 'left'
},
{
title: '审核时间',
dataIndex: 'auditTime',
width: 100,
align: 'left'
},
{
title: '审核人',
dataIndex: 'auditerName',
width: 100,
align: 'left'
},
{
title: '客户银行',
dataIndex: 'customerBankName',
width: 120,
align: 'left'
},
{
title: '银行账号',
dataIndex: 'customerAccount',
width: 120,
align: 'left'
},
{
title: '所属分部',
dataIndex: 'saleDeptName',
width: 120,
align: 'left'
}
]
// 费用表格 // 费用表格
export const feeColumns: BasicColumn[] = [ export const feeColumns: BasicColumn[] = [
{ {
@ -509,7 +628,7 @@ export const formSchema: FormSchema[] = [
field: 'relativeNO', field: 'relativeNO',
label: '相关号码', label: '相关号码',
component: 'InputNumber', component: 'InputNumber',
dynamicDisabled: true, dynamicDisabled: false,
colProps: { span: 4 } colProps: { span: 4 }
}, },
{ {

@ -53,7 +53,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref, defineEmits, defineProps, watch, defineExpose } from 'vue' import { onMounted, ref, defineEmits, defineProps, watch, defineExpose } from 'vue'
import { BasicTable, useTable } from '/@/components/Table' import { BasicTable, useTable } from '/@/components/Table'
import { businessColumns } from '../columns' import { mainBusinessColumns } from '../columns'
import { Divider } from 'ant-design-vue' import { Divider } from 'ant-design-vue'
import invoiceFile from '/@/views/operation/invoiceIssue/detail/invoiceFile.vue' import invoiceFile from '/@/views/operation/invoiceIssue/detail/invoiceFile.vue'
import { DeleteDetail } from '../../api' import { DeleteDetail } from '../../api'
@ -85,7 +85,7 @@
}) })
const [registerTable, { reload, setTableData, getSelectRows, getColumns }] = useTable({ const [registerTable, { reload, setTableData, getSelectRows, getColumns }] = useTable({
title: '', title: '',
columns: businessColumns, columns: mainBusinessColumns,
isTreeTable: false, isTreeTable: false,
pagination: false, pagination: false,
striped: false, striped: false,

@ -22,7 +22,7 @@
<a-dropdown> <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item @click="addInfos"></a-menu-item> <a-menu-item @click="addInfos('All')"></a-menu-item>
<a-menu-item @click="addInfos('RMB')">RMB</a-menu-item> <a-menu-item @click="addInfos('RMB')">RMB</a-menu-item>
<a-menu-item @click="addInfos('USD')">USD</a-menu-item> <a-menu-item @click="addInfos('USD')">USD</a-menu-item>
</a-menu> </a-menu>
@ -268,7 +268,6 @@
if (selectRows.length == 0) { if (selectRows.length == 0) {
return createMessage.warning('没有选择要添加的业务!') return createMessage.warning('没有选择要添加的业务!')
} }
console.log(props.formData)
// //
const postData = { const postData = {
description: '按申请单增加添加费用明细', description: '按申请单增加添加费用明细',
@ -289,7 +288,6 @@
const items = await GetExchanges(postCurrency).then(res => { const items = await GetExchanges(postCurrency).then(res => {
return res.data return res.data
}) })
items.forEach(item => { items.forEach(item => {
if (item.exchangeRates) { if (item.exchangeRates) {
item.exchangeRates.forEach(c => { item.exchangeRates.forEach(c => {
@ -314,16 +312,18 @@
if (type == 'USD') { if (type == 'USD') {
item.settlementRMB = null item.settlementRMB = null
} }
if (type == "All") {
if (item.settlementRMB == 0) item.settlementRMB = null
if (item.settlementUSD == 0) item.settlementUSD = null
console.log(item.settlementUSD)
}
}) })
}) })
// //
currencyList = Array.from(new Set(currencyList.map(item => item.currency))).map(currency => { currencyList = Array.from(new Set(currencyList.map(item => item.currency))).map(currency => {
return currencyList.find(item => item.currency === currency) return currencyList.find(item => item.currency === currency)
}) })
postData.documents = items postData.documents = items
console.log(postData)
console.log(currencyList)
bPostData.value = postData bPostData.value = postData
exchangeRate.value.init(currency, currencyList, type) exchangeRate.value.init(currency, currencyList, type)
} }

@ -9,30 +9,30 @@
<div class="mt15"> <div class="mt15">
<div v-for="(item, index) in c2" :key="'cur' + index"> <div v-for="(item, index) in c2" :key="'cur' + index">
<p class="flex"> <p class="flex">
<span class="unit">1{{ c1 }} =</span> <span class="unit">1{{ item.currency }} =</span>
<a-input-number <a-input-number
v-model:value="item.value1" v-model:value="item.value"
:min="0.000001" :min="0.000001"
:max="99999999" :max="99999999"
:step="0.000001" :step="0.000001"
string-mode
:precision="6" :precision="6"
@change="calc1($event, item)" string-mode
@change="calc2($event, item)"
/> />
{{ item.currency }} {{ c1 }}
</p> </p>
<p class="flex"> <p class="flex">
<span class="unit">1{{ item.currency }} =</span> <span class="unit">1{{ c1 }} =</span>
<a-input-number <a-input-number
v-model:value="item.value" v-model:value="item.value1"
:min="0.000001" :min="0.000001"
:max="99999999" :max="99999999"
:step="0.000001" :step="0.000001"
:precision="6"
string-mode string-mode
@change="calc2($event, item)" :precision="6"
@change="calc1($event, item)"
/> />
{{ c1 }} {{ item.currency }}
</p> </p>
</div> </div>
</div> </div>
@ -92,7 +92,8 @@
.ds-exchange-rate { .ds-exchange-rate {
.unit { .unit {
display: inline-block; display: inline-block;
width: 66px; width: 72px;
white-space: nowrap;
} }
.ant-input-number { .ant-input-number {
position: relative; position: relative;

Loading…
Cancel
Save