Commit 654519e7 by yuzhenWang

保费对账与回执基础版已完成发布测试

parent cbfe6f9f
...@@ -54,6 +54,14 @@ export function addPremiumReconciliation(data) { ...@@ -54,6 +54,14 @@ export function addPremiumReconciliation(data) {
data: data data: data
}) })
} }
//编辑提交保费对账
export function editPremiumReconciliation(data) {
return request({
url: '/csf/api/premiumReconciliation/edit',
method: 'put',
data: data
})
}
//保费对账编辑单个汇款记录 //保费对账编辑单个汇款记录
export function editPremiumRemittance(data) { export function editPremiumRemittance(data) {
return request({ return request({
...@@ -100,4 +108,34 @@ export function getPremiumRemittanceListApi(data) { ...@@ -100,4 +108,34 @@ export function getPremiumRemittanceListApi(data) {
data: data data: data
}) })
} }
//检查保单号是否已经提交过保费对账
export function getCheckPolicyNoApi(policyNo) {
return request({
url: `/csf/api/premiumReconciliation/check/reconciliation/complete?policyNo=${policyNo}`,
method: 'get'
})
}
// 保费对账认定结果计算待付金额
export function getRemainingUnpaidAmount(data) {
return request({
url: '/csf/api/premiumReconciliation/calculate/remainingUnpaidAmount',
method: 'post',
data: data
})
}
//提交保费对账认定结果
export function submitResult(data) {
return request({
url: '/csf/api/premiumReconciliation/edit/result',
method: 'put',
data: data
})
}
//单个新增保费对账汇款记录
export function addSinglePremiumRemittance(data) {
return request({
url: '/csf/api/premiumRemittance/add',
method: 'post',
data: data
})
}
...@@ -129,8 +129,17 @@ ...@@ -129,8 +129,17 @@
:on-error="(err, file, fileList) => handleUploadError(err, file, fileList, item)" :on-error="(err, file, fileList) => handleUploadError(err, file, fileList, item)"
:on-remove="(file, fileList) => handleUploadRemove(file, fileList, item)" :on-remove="(file, fileList) => handleUploadRemove(file, fileList, item)"
> >
<el-button size="small" type="primary" :link="item.link" :disabled="item.disabled"> <el-icon class="iconStyle" :size="20" v-if="item.uploadType === 'image'"
{{ item.uploadType === 'image' ? '点击上传图片' : '点击上传文件' }} ><Upload
/></el-icon>
<el-button
v-else
size="small"
type="primary"
:link="item.link"
:disabled="item.disabled"
>
{{ '点击上传文件' }}
</el-button> </el-button>
<template #tip v-if="item.maxSize || item.accept"> <template #tip v-if="item.maxSize || item.accept">
<div class="el-upload__tip"> <div class="el-upload__tip">
...@@ -206,6 +215,8 @@ function handleUploadSuccess(response, file, fileList, item) { ...@@ -206,6 +215,8 @@ function handleUploadSuccess(response, file, fileList, item) {
// 触发 model 更新 // 触发 model 更新
handleModelChange([...fileList], item) handleModelChange([...fileList], item)
ElMessage.success(`文件 ${file.name} 上传成功`) ElMessage.success(`文件 ${file.name} 上传成功`)
console.log('上传成功', item)
} }
function handleExceed(files, fileList) { function handleExceed(files, fileList) {
ElMessage.warning('超出文件数量限制') ElMessage.warning('超出文件数量限制')
...@@ -298,7 +309,7 @@ const props = defineProps({ ...@@ -298,7 +309,7 @@ const props = defineProps({
isSearch: { type: Boolean, default: false } isSearch: { type: Boolean, default: false }
}) })
const emit = defineEmits(['update:modelValue', 'update']) const emit = defineEmits(['update:modelValue', 'update', 'selectChange', 'uploadSuccess'])
// ==================== Refs ==================== // ==================== Refs ====================
const formRef = ref(null) const formRef = ref(null)
...@@ -507,6 +518,12 @@ function handleModelChange(value, item) { ...@@ -507,6 +518,12 @@ function handleModelChange(value, item) {
console.log('🚫 跳过 emit:认为相等') console.log('🚫 跳过 emit:认为相等')
} }
}) })
if (item.type === 'select') {
emit('selectChange', item.prop, value, item)
} else if (item.type == 'upload') {
// 传给父组件最新的上传值newModel
emit('uploadSuccess', item.prop, newModel)
}
console.groupEnd() console.groupEnd()
} }
// 辅助函数:浅比较两个对象 // 辅助函数:浅比较两个对象
...@@ -803,7 +820,13 @@ defineExpose({ ...@@ -803,7 +820,13 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
.formBox {
box-sizing: border-box;
}
.search-form-item { .search-form-item {
margin-bottom: 20px; margin-bottom: 20px;
} }
.iconStyle {
color: #409eff;
}
</style> </style>
...@@ -124,6 +124,7 @@ watch( ...@@ -124,6 +124,7 @@ watch(
} }
.content { .content {
padding: 0 15px; padding: 0 15px;
box-sizing: border-box;
} }
.dialog-footer { .dialog-footer {
width: 100%; width: 100%;
......
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