Commit 57ca649f by yuzhenWang

Merge branch 'feature-20250827wyz-写业务' into 'test'

Feature 20250827wyz 写业务

See merge request !41
parents a22e899f cbfe6f9f
......@@ -100,3 +100,4 @@ export function getPremiumRemittanceListApi(data) {
data: data
})
}
......@@ -407,10 +407,7 @@ const handleSearchSelectChange = (father, key) => {
dialogForm.value['productLaunchBizId'] = item1.value
}
item1.apiAttributeSettingDtoList.forEach(item2 => {
if (
item2.attributeSettingBizId == 'attribute_setting_okpcuc8tlXRfVIAy' &&
item.key == 'issueNumber'
) {
if (item2.fieldBizId == 'field_eWCnuwS3WPKog5kZ' && item.key == 'issueNumber') {
if (item2.value) {
item.options = item2.value
.split(/[,,;;\s]+/)
......@@ -435,10 +432,7 @@ const handleSearchSelectChange = (father, key) => {
form.value[father.key]['productLaunchBizId'] = item1.value
}
item1.apiAttributeSettingDtoList.forEach(item2 => {
if (
item2.attributeSettingBizId == 'attribute_setting_okpcuc8tlXRfVIAy' &&
item.key == 'issueNumber'
) {
if (item2.fieldBizId == 'field_eWCnuwS3WPKog5kZ' && item.key == 'issueNumber') {
if (item2.value) {
item.options = item2.value
.split(/[,,;;\s]+/)
......
......@@ -166,7 +166,11 @@
</template>
</el-table-column>
<el-table-column label="付款人" prop="payer" />
<el-table-column label="付款银行" prop="payingBank" />
<el-table-column label="付款银行" prop="payingBank">
<template #default="{ row }">
{{ changeDictLabel('bank', row.payingBank) }}
</template>
</el-table-column>
<el-table-column label="付款账号" prop="paymentAccount" />
<el-table-column label="操作" width="100">
<template #default="{ row, $index }">
......@@ -251,8 +255,7 @@ import CommonDialog from '@/components/commonDialog'
import SearchForm from '@/components/SearchForm/SearchForm.vue'
import { ElMessage } from 'element-plus'
import { formatCurrency } from '@/utils/number'
// 接口
import { updatePayoutAmount } from '@/api/financial/commission'
import {
premiumReconciliationList,
EditPolicyReceipt,
......@@ -262,8 +265,10 @@ import {
deletePremiumRemittanceFile,
getPremiumRemittanceFileList,
editSiglePremiumRemittance,
getPremiumRemittanceListApi
getPremiumRemittanceListApi,
deletePremiumRemittance
} from '@/api/sign/policy'
import { getBankList } from '@/api/common'
import useUserStore from '@/store/modules/user'
import { loadDicts, getDictLabel } from '@/utils/useDict'
import { getToken } from '@/utils/auth'
......@@ -282,7 +287,7 @@ const receiptsDialogTitle = ref('新增保单回执')
const remittanceDialogTitle = ref('新增汇款')
const showRemittance = ref(false)
const remittanceFormRef = ref(null)
const bankOptions = ref([]) //银行options
const searchConfig = ref([
{
type: 'select',
......@@ -386,6 +391,30 @@ const fortuneBizTypeOptions = [
{ value: 'R', label: '关联保单应付单' },
{ value: 'U', label: '非关联保单应付单' }
]
//获取远程搜索下拉框数据,回显数据用
const getSelectOptions = async () => {
const params4 = {
pageNo: 1,
pageSize: 99999
}
const response4 = await getBankList(params4)
if (response4.code == 200) {
response4.data.records = response4.data.records.map(item => {
return {
...item,
label: item.bankName,
value: item.bankBizId
}
})
bankOptions.value = response4.data.records
}
}
function changeDictLabel(type, value) {
if (type == 'bank') {
const bank = bankOptions.value.find(opt => opt.value === value)
return bank ? bank.label : value || ''
}
}
// ==============设置认定结果开始============
const showAffirm = ref(false)
const affirmFormRef = ref(null)
......@@ -398,7 +427,7 @@ const affirmConfig = [
inputType: 'decimal',
rules: [
{ required: true, message: '请输入', trigger: 'blur' },
{ pattern: /^\d+$/, message: '只能输入正整数', trigger: 'blur' }
{ pattern: /^\d+$/, message: '只能输入正整数' }
]
},
{
......@@ -452,7 +481,7 @@ const remittanceConfig = [
inputType: 'decimal',
rules: [
{ required: true, message: '请输入', trigger: 'blur' },
{ pattern: /^\d+$/, message: '只能输入正整数', trigger: 'blur' }
{ pattern: /^\d+$/, message: '只能输入正整数' }
]
},
{
......@@ -791,10 +820,9 @@ const editRemittance = row => {
})
}
}
console.log('====================================')
console.log('汇款修改', newObj)
console.log('====================================')
remittanceFormModel.value = newObj
showRemittance.value = true
}
// 删除汇款记录
......@@ -827,6 +855,8 @@ function removeRemittance(row, index) {
.then(res => {
if (res && res.code == 200) {
proxy.$modal.msgSuccess('汇款删除成功')
// 重新获取详情拿到最新数据
getPremiumReconciliationDetail(addCheckRecordFormModel.value)
// 删除成功要调用保费对账的详情接口,重新汇款记录数据,这里还没做等会做
}
})
......@@ -1072,6 +1102,7 @@ const onSubmit = data => {
// 获取入账状态,字典值转化方法
onMounted(async () => {
try {
getSelectOptions()
await loadDicts([
'csf_ap_first_issue',
'csf_policy_follow_status_new',
......@@ -1081,6 +1112,7 @@ onMounted(async () => {
'reconciliation_type',
'rel_pay_policy'
])
loadTableData()
} catch (error) {
console.error('字典加载失败', error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment