付款全流程测试

zth
lijingjia 2 weeks ago
parent 4c2bb8c419
commit c687e348af

@ -17,6 +17,7 @@ export const columns: BasicColumn[] = [
title: '结算单位', title: '结算单位',
dataIndex: 'customerName', dataIndex: 'customerName',
sorter: true, sorter: true,
align: 'left',
width: 130 width: 130
}, },
{ {
@ -24,6 +25,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'billType', dataIndex: 'billType',
sorter: true, sorter: true,
width: 80, width: 80,
align: 'left',
customRender: ({ text }) => { customRender: ({ text }) => {
if (text === 1) { if (text === 1) {
return '收费' return '收费'
@ -37,12 +39,14 @@ export const columns: BasicColumn[] = [
title: '结算方式', title: '结算方式',
dataIndex: 'modeText', dataIndex: 'modeText',
sorter: true, sorter: true,
align: 'left',
width: 80 width: 80
}, },
{ {
title: '币别', title: '币别',
dataIndex: 'currency', dataIndex: 'currency',
sorter: true, sorter: true,
align: 'left',
width: 80 width: 80
}, },
{ {
@ -69,31 +73,36 @@ export const columns: BasicColumn[] = [
title: '未开票', title: '未开票',
dataIndex: 'unInvoiceAmount', dataIndex: 'unInvoiceAmount',
sorter: true, sorter: true,
align: 'left',
width: 100 width: 100
}, },
{ {
title: '结算时间', title: '结算时间',
dataIndex: 'settlementDate', dataIndex: 'settlementDate',
sorter: true, sorter: true,
width: 100 align: 'left',
width: 90
}, },
{ {
title: '结算人', title: '结算人',
dataIndex: 'createByName', dataIndex: 'createByName',
sorter: true, sorter: true,
align: 'left',
width: 100 width: 100
}, },
{ {
title: '结算账户', title: '结算账户',
dataIndex: 'customerBank', dataIndex: 'customerBank',
sorter: true, sorter: true,
width: 100 align: 'left',
width: 120
}, },
{ {
title: '银行账号', title: '银行账号',
dataIndex: 'customerAccount', dataIndex: 'customerAccount',
sorter: true, sorter: true,
width: 100 align: 'left',
width: 120
}, },
{ {
title: '原始金额', title: '原始金额',
@ -106,12 +115,14 @@ export const columns: BasicColumn[] = [
title: '申请单号', title: '申请单号',
dataIndex: 'applicationNO', dataIndex: 'applicationNO',
sorter: true, sorter: true,
width: 100 align: 'left',
width: 120
}, },
{ {
title: '总账凭证号', title: '总账凭证号',
dataIndex: 'ledgerVoucherNO', dataIndex: 'ledgerVoucherNO',
sorter: true, sorter: true,
align: 'left',
width: 100 width: 100
} }
] ]

@ -80,6 +80,13 @@
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
import { Divider } from 'ant-design-vue' import { Divider } from 'ant-design-vue'
import { formatParams } from '/@/hooks/web/common' import { formatParams } from '/@/hooks/web/common'
import { useRoute, useRouter } from 'vue-router'
import { useGo } from '/@/hooks/web/usePage'
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
const tabStore = useMultipleTabStore()
const go = useGo()
const route = useRoute()
const router = useRouter()
const emit = defineEmits(['save', 'refresh']) const emit = defineEmits(['save', 'refresh'])
const { createMessage } = useMessage() const { createMessage } = useMessage()
const props = defineProps({ const props = defineProps({
@ -246,10 +253,18 @@
}) })
loading.value = true loading.value = true
Save(bPostData.value).then(res => { Save(bPostData.value).then(res => {
console.log(bPostData.value)
loading.value = false loading.value = false
if (res.succeeded) { if (route.path == '/payment-settlement/create') {
//
createMessage.success('添加成功!') createMessage.success('添加成功!')
const { fullPath } = route //
tabStore.closeTabByKey(fullPath, router)
setTimeout(() => {
go(`/payment-settlement/detail?id=${res.data.id}&type=1`)
}, 50)
} else {
//
createMessage.success('保存成功!')
if (res?.data?.id) { if (res?.data?.id) {
emit('refresh', res.data.id) emit('refresh', res.data.id)
} }

@ -19,6 +19,7 @@
></ActionBar> ></ActionBar>
<Divider <Divider
type="vertical" type="vertical"
style="margin-top: 12px"
class="action-divider" class="action-divider"
/> />
<!-- <a-dropdown> <!-- <a-dropdown>

@ -19,6 +19,7 @@
></ActionBar> ></ActionBar>
<Divider <Divider
type="vertical" type="vertical"
style="margin-top: 12px;"
class="action-divider" class="action-divider"
/> />
<div style="padding-top: 8px;"> <div style="padding-top: 8px;">

@ -559,6 +559,7 @@ export const searchFormSchema: FormSchema[] = [
immediate: true, immediate: true,
onChange: (v, obj) => { onChange: (v, obj) => {
if (v && obj) formModel.customerId = obj.id if (v && obj) formModel.customerId = obj.id
if (!v && !obj) formModel.customerId = null
} }
} }
} }

@ -84,11 +84,16 @@
import { BasicForm, useForm } from '/@/components/Form' import { BasicForm, useForm } from '/@/components/Form'
import ApplyInfo from './components/applyInfo.vue' import ApplyInfo from './components/applyInfo.vue'
import { numberThousandFormat } from '/@/utils/commonUtil' import { numberThousandFormat } from '/@/utils/commonUtil'
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
// //
import BusinessTable from './components/businessTable.vue' import BusinessTable from './components/businessTable.vue'
import { useGo } from '/@/hooks/web/usePage'
const { createMessage } = useMessage() const { createMessage } = useMessage()
import { useRoute } from 'vue-router' const tabStore = useMultipleTabStore()
const go = useGo()
import { useRoute, useRouter } from 'vue-router'
const route = useRoute() const route = useRoute()
const router = useRouter()
const visible = ref(false) const visible = ref(false)
import { formSchema } from './columns' import { formSchema } from './columns'
import { Save, Get, Delete, ApplyAudit } from '../api' import { Save, Get, Delete, ApplyAudit } from '../api'
@ -136,10 +141,17 @@
Save(postData).then(res => { Save(postData).then(res => {
loading.value = false loading.value = false
visible.value = false visible.value = false
if (res.succeeded) { if (route.fullPath == '/paid-apply/create') {
//
//
const { fullPath } = route //
tabStore.closeTabByKey(fullPath, router)
setTimeout(() => {
go(`/paid-apply/detail?id=${res.data.id}`)
}, 50)
} else {
createMessage.success('保存成功') createMessage.success('保存成功')
bid.value = res.data.id bid.value = res.data.id
visible.value = false
init() init()
} }
}).catch(() => { }).catch(() => {

@ -13,13 +13,15 @@
<template v-if="column.dataIndex == 'applicationNO'"> <template v-if="column.dataIndex == 'applicationNO'">
<span style="cursor: pointer"><span><span @click="copyNo($event, record.applicationNO)" class="iconfont icon-fuzhi11"></span>{{ record.applicationNO }}</span></span> <span style="cursor: pointer"><span><span @click="copyNo($event, record.applicationNO)" class="iconfont icon-fuzhi11"></span>{{ record.applicationNO }}</span></span>
</template> </template>
<!-- <template v-if="column.dataIndex == 'statusText'"> <template v-if="column.dataIndex == 'statusText'">
<span v-if="record.status == 0" class="ds-blue-tag">{{ record.statusText }}</span> <span>
<span v-else-if="record.status == 1" class="ds-green-tag">{{ record.statusText }}</span> <span v-if="record.status == 0" class="ds-blue-tag">{{ record.statusText }}</span>
<span v-else-if="/^2|3|4|5|6$/.test(record.status)" class="ds-orange-tag">{{ record.statusText }}</span> <span v-else-if="record.status == 1" class="ds-green-tag">{{ record.statusText }}</span>
<span v-else-if="/^7|8$/.test(record.status)" class="ds-red-tag">{{ record.statusText }}</span> <span v-else-if="/^2|3|4|5|6$/.test(record.status)" class="ds-orange-tag">{{ record.statusText }}</span>
<span v-else class="ds-purple-tag">{{ record.statusText }}</span> <span v-else-if="/^7|8$/.test(record.status)" class="ds-red-tag">{{ record.statusText }}</span>
</template> --> <span v-else class="ds-purple-tag">{{ record.statusText }}</span>
</span>
</template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction :actions="[ <TableAction :actions="[
{ {

Loading…
Cancel
Save