Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
ef6e03ce
Commit
ef6e03ce
authored
Jan 05, 2026
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务中心对接
parent
79007a4a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
264 additions
and
104 deletions
+264
-104
src/api/financial/commission.js
+8
-0
src/components/SearchForm/SearchForm.vue
+2
-2
src/components/commonPage/index.vue
+0
-3
src/views/financialCenter/financialBilling.vue
+0
-2
src/views/financialCenter/financialIncome.vue
+128
-40
src/views/financialCenter/financialSalary.vue
+1
-0
src/views/financialCenter/payables.vue
+46
-16
src/views/financialCenter/receivables.vue
+79
-41
No files found.
src/api/financial/commission.js
View file @
ef6e03ce
...
@@ -395,3 +395,11 @@ export function syncExpectedCommission(data){
...
@@ -395,3 +395,11 @@ export function syncExpectedCommission(data){
data
:
data
data
:
data
})
})
}
}
// 更新出账记录
export
function
updatePayRecord
(
data
){
return
request
({
url
:
'/csf/api/expectedFortune/update'
,
method
:
'post'
,
data
:
data
})
}
src/components/SearchForm/SearchForm.vue
View file @
ef6e03ce
<
template
>
<
template
>
<el-form
ref=
"formRef"
:model=
"localModel"
:rules=
"formRules"
label-width=
"auto"
v-bind=
"$attrs"
:validate-on-rule-change=
"false"
>
<el-form
ref=
"formRef"
:model=
"localModel"
:rules=
"formRules"
label-width=
"auto"
v-bind=
"$attrs"
:validate-on-rule-change=
"false"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
v-for=
"item in visibleConfig"
:key=
"item.prop"
:span=
"item.span ||
8
"
>
<el-col
v-for=
"item in visibleConfig"
:key=
"item.prop"
:span=
"item.span ||
6
"
>
<el-form-item
:label=
"item.label"
:prop=
"item.prop"
:class=
"
{ 'search-form-item': isSearch }">
<el-form-item
:label=
"item.label"
:prop=
"item.prop"
:class=
"
{ 'search-form-item': isSearch }">
<!-- Input -->
<!-- Input -->
<el-input
v-if=
"item.type === 'input'"
v-model=
"localModel[item.prop]"
<el-input
v-if=
"item.type === 'input'"
v-model=
"localModel[item.prop]"
...
@@ -520,7 +520,7 @@ defineExpose({
...
@@ -520,7 +520,7 @@ defineExpose({
const
resetData
=
{}
const
resetData
=
{}
internalConfig
.
value
.
forEach
(
item
=>
{
internalConfig
.
value
.
forEach
(
item
=>
{
const
key
=
item
.
prop
const
key
=
item
.
prop
if
([
'checkbox-group'
,
'daterange'
].
includes
(
item
.
type
))
{
if
([
'checkbox-group'
,
'daterange'
].
includes
(
item
.
type
)
||
item
.
multiple
)
{
resetData
[
key
]
=
item
.
defaultValue
??
[]
resetData
[
key
]
=
item
.
defaultValue
??
[]
}
else
{
}
else
{
resetData
[
key
]
=
item
.
defaultValue
??
''
resetData
[
key
]
=
item
.
defaultValue
??
''
...
...
src/components/commonPage/index.vue
View file @
ef6e03ce
...
@@ -490,8 +490,5 @@ onMounted(() => {
...
@@ -490,8 +490,5 @@ onMounted(() => {
margin-bottom
:
8px
;
margin-bottom
:
8px
;
}
}
.pagination-container
{
justify-content
:
center
;
}
}
}
</
style
>
</
style
>
src/views/financialCenter/financialBilling.vue
View file @
ef6e03ce
...
@@ -364,12 +364,10 @@ const handleExport = () => {
...
@@ -364,12 +364,10 @@ const handleExport = () => {
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
// 重置搜索表单
// 重置搜索表单
searchFormRef
.
value
.
resetForm
()
searchFormRef
.
value
.
resetForm
()
searchParams
.
value
=
{}
console
.
log
(
'表单已重置'
)
console
.
log
(
'表单已重置'
)
}
}
const
handleQuery
=
async
()
=>
{
const
handleQuery
=
async
()
=>
{
const
params
=
searchFormRef
.
value
.
getFormData
()
const
params
=
searchFormRef
.
value
.
getFormData
()
console
.
log
(
'父组件发起查询:'
,
params
)
loadTableData
(
params
)
loadTableData
(
params
)
}
}
const
visibleDefaultButtons
=
ref
([
'add'
,
'import'
,
'export'
,
'reset'
,
'query'
])
const
visibleDefaultButtons
=
ref
([
'add'
,
'import'
,
'export'
,
'reset'
,
'query'
])
...
...
src/views/financialCenter/financialIncome.vue
View file @
ef6e03ce
...
@@ -130,9 +130,15 @@
...
@@ -130,9 +130,15 @@
</el-icon>
</el-icon>
</
template
>
</
template
>
<el-menu
@
select=
"handleSelect($event, row)"
popper-class=
"custom-menu"
>
<el-menu
@
select=
"handleSelect($event, row)"
popper-class=
"custom-menu"
>
<el-menu-item
:index=
"item.value"
v-for=
"item in dropdownItems"
:key=
"item.value"
>
{{
<el-menu-item
:index=
"item.value"
v-for=
"item in dropdownItems"
:key=
"item.value"
>
item.label
<el-text
class=
"mx-1"
v-if=
"!item.confirm"
>
{{item.label}}
</el-text>
}}
</el-menu-item>
<el-popconfirm
v-if=
"item.confirm"
confirm-button-text=
"Yes"
cancel-button-text=
"No"
:icon=
"InfoFilled"
icon-color=
"#626AEF"
:title=
"item.confirm"
@
confirm=
"handleMenuConfirm(item.value, row)"
width=
"300"
placement=
"left-end"
>
<
template
#
reference
>
<el-text
class=
"mx-1"
>
{{
item
.
label
}}
</el-text>
</
template
>
</el-popconfirm>
</el-menu-item>
</el-menu>
</el-menu>
</el-popover>
</el-popover>
</template>
</template>
...
@@ -140,14 +146,22 @@
...
@@ -140,14 +146,22 @@
</el-table>
</el-table>
<!-- 表格操作菜单 -->
<!-- 表格操作菜单 -->
<div
class=
"tableOptionContainer"
>
<div
class=
"tableOptionContainer"
>
<el-button
type=
"primary"
:icon=
"Select"
:disabled=
"updatePayRollStatusDisable"
<el-row
justify=
"space-between"
>
@
click=
"generateCommissionRecordapi"
>
生成可出账记录
</el-button>
<el-col
:span=
"12"
>
<el-text
type=
"danger"
>
*非关联保单应收单以及比对失败的不可生成可出账记录
</el-text>
</el-col>
<el-col
:span=
"4"
>
<el-button
type=
"primary"
:icon=
"Select"
:disabled=
"updatePayRollStatusDisable"
@
click=
"generateCommissionRecordapi"
>
{{ multipleSelection.length }} 条数据,生成可出账记录
</el-button>
</el-col>
</el-row>
</div>
</div>
</template>
</template>
</CommonPage>
</CommonPage>
<!-- 开始检核弹窗-->
<!-- 开始检核弹窗-->
<CommonDialog
dialogTitle=
'开始检核'
dialogWidth=
'80%'
:openDialog=
dialogFlag
:showAction=
'false'
:showClose=
'true'
<CommonDialog
dialogTitle=
'开始检核'
dialogWidth=
'80%'
:openDialog=
dialogFlag
:showAction=
'false'
:showClose=
'true'
@
close=
'dialogFlag = false'
>
@
close=
"closthDialog()"
>
<el-row>
<el-row>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<SearchForm
ref=
"checkFormRef"
:config=
"checkConfig"
v-model=
"checkFormData"
/>
<SearchForm
ref=
"checkFormRef"
:config=
"checkConfig"
v-model=
"checkFormData"
/>
...
@@ -155,11 +169,11 @@
...
@@ -155,11 +169,11 @@
</el-row>
</el-row>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:xs=
"24"
:sm=
"12"
:md=
"3"
:lg=
"3"
>
<el-col
:xs=
"24"
:sm=
"12"
:md=
"3"
:lg=
"3"
>
<el-button
type=
"primary"
:icon=
"Plus"
:disabled=
"!
searchParams
?.reconciliationYearMonth"
<el-button
type=
"primary"
:icon=
"Plus"
:disabled=
"!
checkFormData
?.reconciliationYearMonth"
@
click=
"addCheckRecordDialogFlag = true;"
>
新增
</el-button>
@
click=
"addCheckRecordDialogFlag = true;"
>
新增
</el-button>
</el-col>
</el-col>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"3"
:lg=
"3"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"3"
:lg=
"3"
>
<el-button
type=
"primary"
:icon=
"Upload"
:disabled=
"!
searchParams
?.reconciliationYearMonth"
<el-button
type=
"primary"
:icon=
"Upload"
:disabled=
"!
checkFormData
?.reconciliationYearMonth"
@
click=
"fileUploadDialogFlag = true;"
>
导入
</el-button>
@
click=
"fileUploadDialogFlag = true;"
>
导入
</el-button>
</el-col>
</el-col>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"3"
:lg=
"3"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"3"
:lg=
"3"
>
...
@@ -168,7 +182,7 @@
...
@@ -168,7 +182,7 @@
</el-row>
</el-row>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<el-table
:data=
"checkRecordTableData"
style=
"width: 100%"
>
<el-table
:data=
"checkRecordTableData"
style=
"width: 100%"
height=
"400"
>
<el-table-column
prop=
"commissionBizType"
label=
"应收款类型"
width=
"120"
>
<el-table-column
prop=
"commissionBizType"
label=
"应收款类型"
width=
"120"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
{{
getCommissionBizTypeLabel
(
row
.
commissionBizType
)
}}
{{
getCommissionBizTypeLabel
(
row
.
commissionBizType
)
}}
...
@@ -186,6 +200,7 @@
...
@@ -186,6 +200,7 @@
<el-table-column
prop=
"commissionDate"
label=
"入账日(实)"
width=
"120"
/>
<el-table-column
prop=
"commissionDate"
label=
"入账日(实)"
width=
"120"
/>
<el-table-column
prop=
"amount"
label=
"入账金额"
width=
"120"
/>
<el-table-column
prop=
"amount"
label=
"入账金额"
width=
"120"
/>
<el-table-column
prop=
"currency"
label=
"入账币种"
width=
"120"
/>
<el-table-column
prop=
"currency"
label=
"入账币种"
width=
"120"
/>
<el-table-column
prop=
"exchangeRate"
label=
"结算汇率"
width=
"120"
/>
<el-table-column
prop=
"commissionName"
label=
"入账项目"
width=
"120"
/>
<el-table-column
prop=
"commissionName"
label=
"入账项目"
width=
"120"
/>
<el-table-column
prop=
"reconciliationCompany"
label=
"对账公司"
width=
"120"
/>
<el-table-column
prop=
"reconciliationCompany"
label=
"对账公司"
width=
"120"
/>
<!-- <el-table-column prop="zip" label="入账状态" width="120" /> -->
<!-- <el-table-column prop="zip" label="入账状态" width="120" /> -->
...
@@ -205,13 +220,23 @@
...
@@ -205,13 +220,23 @@
</el-table>
</el-table>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"10"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<div
class=
"pagination-container"
>
<el-pagination
v-model:current-page=
"checkRecordPageInfo.currentPage"
v-model:page-size=
"checkRecordPageInfo.pageSize"
:page-sizes=
"[50, 100, 200, 300]"
:total=
"checkRecordPageInfo.total"
@
size-change=
"checkRecordPageHandleSizeChange"
@
current-change=
"checkRecordPageHandleCurrentChange"
layout=
"total, sizes, prev, pager, next, jumper"
/>
</div>
</el-col>
</el-row>
</CommonDialog>
</CommonDialog>
<!-- 新增检核记录弹窗 -->
<!-- 新增检核记录弹窗 -->
<CommonDialog
:dialogTitle=
'editStatus.value == "add" ? "新增检核记录" : "修改检核记录"'
dialogWidth=
'80%'
<CommonDialog
:dialogTitle=
'editStatus.value == "add" ? "新增检核记录" : "修改检核记录"'
dialogWidth=
'80%'
:openDialog=
addCheckRecordDialogFlag
:showAction=
'true'
:showClose=
'true'
:openDialog=
addCheckRecordDialogFlag
:showAction=
'true'
:showClose=
'true'
@
close=
'addCheckRecordDialogFlag = false'
@
confirm=
'handleAddCheckRecord()'
>
@
close=
'addCheckRecordDialogFlag = false
;editStatus = "add"
'
@
confirm=
'handleAddCheckRecord()'
>
<el-row>
<el-row>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"24"
:lg=
"24"
>
<SearchForm
ref=
"addCheckRecordFormRef"
:config=
"addCheckRecordConfig"
v-model=
"addReceivablesFormModel"
/>
<SearchForm
ref=
"addCheckRecordFormRef"
:config=
"addCheckRecordConfig"
v-model=
"addReceivablesFormModel"
/>
...
@@ -222,8 +247,8 @@
...
@@ -222,8 +247,8 @@
<CommonDialog
dialogTitle=
'文件导入'
dialogWidth=
'80%'
:openDialog=
fileUploadDialogFlag
:showAction=
'true'
<CommonDialog
dialogTitle=
'文件导入'
dialogWidth=
'80%'
:openDialog=
fileUploadDialogFlag
:showAction=
'true'
:showClose=
'true'
@
close=
'fileUploadDialogFlag = false; files = ""'
:showClose=
'true'
@
close=
'fileUploadDialogFlag = false; files = ""'
@
confirm=
'fileUploadDialogFlag = false; files = ""'
>
@
confirm=
'fileUploadDialogFlag = false; files = ""'
>
<FileUpload
v-model=
"files"
:data=
"{ reconciliationYearMonth: reconciliationYearMonth }"
<FileUpload
v-model=
"files"
:data=
"{ reconciliationYearMonth:
checkFormData.
reconciliationYearMonth }"
:file-type=
"['xlsx', 'xls']"
:action=
"'/csf/api/commission/upload/excel'"
:limit=
"1"
:fileSize=
"15"
/>
:file-type=
"['xlsx', 'xls']"
:action=
"'/csf/api/commission/upload/excel'"
:limit=
"1"
:fileSize=
"15"
@
uploadEnd=
"handleUploadEnd"
/>
</CommonDialog>
</CommonDialog>
<!-- 设置比对状态 -->
<!-- 设置比对状态 -->
...
@@ -258,20 +283,32 @@ import { formatCurrency } from '@/utils/number'
...
@@ -258,20 +283,32 @@ import { formatCurrency } from '@/utils/number'
// 接口
// 接口
import
{
import
{
getPolicyCommissionList
,
generateCommissionRecord
,
getPolicyCommissionList
,
generateCommissionRecord
,
addPayrollCheckRecord
,
commissionExpectedRecord
,
updateCompareStatus
,
updateCommissionRecord
,
deletePolicyCommission
addPayrollCheckRecord
,
commissionExpectedRecord
,
updateCompareStatus
,
updateCommissionRecord
,
deletePolicyCommission
,
syncExpectedCommission
}
from
'@/api/financial/commission'
}
from
'@/api/financial/commission'
import
{
Plus
,
Upload
,
Select
}
from
'@element-plus/icons-vue'
import
{
Plus
,
Upload
,
Select
}
from
'@element-plus/icons-vue'
import
FileUpload
from
'@/components/FileUpload/index.vue'
import
FileUpload
from
'@/components/FileUpload/index.vue'
import
{
loadDicts
,
getDictLabel
}
from
'@/utils/useDict'
import
{
loadDicts
,
getDictLabel
}
from
'@/utils/useDict'
const
files
=
ref
(
''
)
const
files
=
ref
(
''
)
const
reconciliationYearMonth
=
ref
(
''
)
// 分页相关
// 分页相关
const
currentPage
=
ref
(
1
)
const
currentPage
=
ref
(
1
)
const
pageSize
=
ref
(
10
)
const
pageSize
=
ref
(
10
)
const
pageTotal
=
ref
(
0
)
const
pageTotal
=
ref
(
0
)
// 弹窗页面检核记录分页
const
checkRecordPageInfo
=
reactive
({
currentPage
:
1
,
pageSize
:
10
,
total
:
0
})
const
checkRecordPageHandleSizeChange
=
(
val
)
=>
{
checkRecordPageInfo
.
pageSize
=
val
checkRecordQuery
()
}
const
checkRecordPageHandleCurrentChange
=
(
val
)
=>
{
checkRecordPageInfo
.
currentPage
=
val
checkRecordQuery
()
}
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
searchFormRef
=
ref
(
null
)
const
searchFormRef
=
ref
(
null
)
const
searchParams
=
ref
({})
const
searchConfig
=
ref
([
const
searchConfig
=
ref
([
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -362,7 +399,7 @@ const viewRecordDialogFlag = ref(false)
...
@@ -362,7 +399,7 @@ const viewRecordDialogFlag = ref(false)
const
fileUploadDialogFlag
=
ref
(
false
)
const
fileUploadDialogFlag
=
ref
(
false
)
const
checkRecordTableData
=
ref
([])
const
checkRecordTableData
=
ref
([])
const
selectedRowCheck
=
ref
(
null
)
const
checkFormRef
=
ref
(
null
)
const
checkFormRef
=
ref
(
null
)
const
checkConfig
=
ref
([
const
checkConfig
=
ref
([
{
{
...
@@ -374,7 +411,8 @@ const checkConfig = ref([
...
@@ -374,7 +411,8 @@ const checkConfig = ref([
}
}
])
])
const
checkRecordEdit
=
(
row
)
=>
{
const
checkRecordEdit
=
(
row
)
=>
{
// console.log('查看记录', row)
console
.
log
(
'查看记录'
,
row
)
selectedRowCheck
.
value
=
{...
row
}
editStatus
.
value
=
'edit'
editStatus
.
value
=
'edit'
addReceivablesFormModel
.
value
=
{
...
row
}
addReceivablesFormModel
.
value
=
{
...
row
}
addCheckRecordDialogFlag
.
value
=
true
addCheckRecordDialogFlag
.
value
=
true
...
@@ -385,7 +423,7 @@ const checkFormData = ref({
...
@@ -385,7 +423,7 @@ const checkFormData = ref({
reconciliationYearMonth
:
''
reconciliationYearMonth
:
''
})
})
// 监听
searchParams
变化,自动重新查询
// 监听
checkFormData
变化,自动重新查询
watch
(
watch
(
()
=>
({
...
checkFormData
.
value
}),
// 深度监听对象内容
()
=>
({
...
checkFormData
.
value
}),
// 深度监听对象内容
(
newVal
)
=>
{
(
newVal
)
=>
{
...
@@ -393,7 +431,6 @@ watch(
...
@@ -393,7 +431,6 @@ watch(
// ✅ 在这里调用查询接口 或 触发列表刷新
// ✅ 在这里调用查询接口 或 触发列表刷新
if
(
newVal
.
reconciliationYearMonth
)
{
if
(
newVal
.
reconciliationYearMonth
)
{
searchParams
.
value
=
checkFormRef
.
value
.
getFormData
()
checkRecordQuery
()
checkRecordQuery
()
}
}
},
},
...
@@ -517,16 +554,13 @@ const addCheckRecordConfig = ref([
...
@@ -517,16 +554,13 @@ const addCheckRecordConfig = ref([
]
]
},
{
},
{
type
:
'select'
,
type
:
'select'
,
prop
:
'commission
Info
'
,
prop
:
'commission
Type
'
,
label
:
'入账项目'
,
label
:
'入账项目'
,
dictType
:
'csf_commission_type'
,
dictType
:
'csf_commission_type'
,
valueKey
:
'itemValue'
,
labelKey
:
'itemLabel'
,
rules
:
[
rules
:
[
{
required
:
true
,
message
:
'请选择入账项目'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请选择入账项目'
,
trigger
:
'blur'
},
],
],
onChangeExtraFields
:
{
onChangeExtraFields
:
{
commissionType
:
'itemValue'
,
// 自动同步 raw.name 到 reconciliationCompany
commissionName
:
'itemLabel'
commissionName
:
'itemLabel'
},
},
},
{
},
{
...
@@ -566,16 +600,27 @@ const addCheckRecordConfig = ref([
...
@@ -566,16 +600,27 @@ const addCheckRecordConfig = ref([
const
addCheckRecordDialogFlag
=
ref
(
false
)
const
addCheckRecordDialogFlag
=
ref
(
false
)
const
handleAddCheckRecord
=
async
()
=>
{
const
handleAddCheckRecord
=
async
()
=>
{
try
{
try
{
const
addCheckSearchParams
=
addCheckRecordFormRef
.
value
.
getFormData
()
const
params
=
ref
({})
console
.
log
(
'新增检核记录'
,
addCheckSearchParams
)
if
(
editStatus
.
value
===
'edit'
)
{
const
params
=
{
params
.
value
=
{
...
addCheckSearchParams
,
...
addReceivablesFormModel
.
value
,
reconciliationYearMonth
:
searchParams
.
value
.
reconciliationYearMonth
commissionBizId
:
selectedRowCheck
.
value
.
commissionBizId
}
console
.
log
(
params
)
await
updateCommissionRecord
(
params
.
value
)
ElMessage
.
success
(
'更新检核记录成功'
)
}
else
{
const
addCheckSearchParams
=
addCheckRecordFormRef
.
value
.
getFormData
()
console
.
log
(
'新增检核记录'
,
addCheckSearchParams
)
params
.
value
=
{
...
addCheckSearchParams
,
reconciliationYearMonth
:
checkFormData
.
value
.
reconciliationYearMonth
}
await
addPayrollCheckRecord
([
params
.
value
])
ElMessage
.
success
(
'新增检核记录成功'
)
addCheckRecordDialogFlag
.
value
=
false
checkRecordTableData
.
value
=
[]
}
}
await
addPayrollCheckRecord
([
params
])
ElMessage
.
success
(
'新增检核记录成功'
)
addCheckRecordDialogFlag
.
value
=
false
checkRecordTableData
.
value
=
[]
checkRecordQuery
()
checkRecordQuery
()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'新增检核记录失败'
,
error
)
console
.
error
(
'新增检核记录失败'
,
error
)
...
@@ -601,11 +646,33 @@ const generateCommissionRecordapi = async () => {
...
@@ -601,11 +646,33 @@ const generateCommissionRecordapi = async () => {
}
}
// 表格操作菜单
// 表格操作菜单
const
dropdownItems
=
[
const
dropdownItems
=
[
{
label
:
'设置比对状态'
,
value
:
'setStatus'
},
{
label
:
'设置比对状态'
,
value
:
'setStatus'
,
confirm
:
''
},
{
label
:
'同步到应收款管理'
,
value
:
'syncToReceivable'
},
{
label
:
'同步到应收款管理'
,
value
:
'syncToReceivable'
,
confirm
:
'确认要同步到应收款管理吗?'
},
// { label: '更新数据', value: 'editRecord' },
// { label: '更新数据', value: 'editRecord' },
// { label: '查看记录', value: 'viewRecord' }
// { label: '查看记录', value: 'viewRecord' }
]
]
const
handleMenuConfirm
=
async
(
action
,
row
)
=>
{
console
.
log
(
'点击了操作菜单'
,
action
,
row
)
if
(
action
===
'syncToReceivable'
)
{
try
{
if
(
row
.
commissionStatus
!==
'3'
){
ElMessage
.
error
(
'应收款管理已有这条记录,无需同步'
)
return
}
const
res
=
await
syncExpectedCommission
({
commissionBizId
:
row
.
commissionBizId
})
if
(
res
.
code
===
200
)
{
ElMessage
.
success
(
'同步到应收款管理成功'
)
}
else
{
ElMessage
.
error
(
res
.
msg
||
'同步到应收款管理失败'
)
}
}
catch
(
error
)
{
console
.
error
(
'同步到应收款管理失败'
,
error
)
ElMessage
.
error
(
'同步到应收款管理失败'
)
}
}
}
// 统计信息
// 统计信息
const
statisticsData
=
ref
({})
const
statisticsData
=
ref
({})
...
@@ -624,7 +691,7 @@ const handleExport = () => {
...
@@ -624,7 +691,7 @@ const handleExport = () => {
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
// 重置搜索表单
// 重置搜索表单
searchFormRef
.
value
.
resetForm
()
searchFormRef
.
value
.
resetForm
()
searchParams
.
value
=
{}
checkFormData
.
value
=
{}
console
.
log
(
'表单已重置'
)
console
.
log
(
'表单已重置'
)
}
}
const
handleQuery
=
async
()
=>
{
const
handleQuery
=
async
()
=>
{
...
@@ -637,12 +704,15 @@ const handleQuery = async () => {
...
@@ -637,12 +704,15 @@ const handleQuery = async () => {
const
checkRecordQuery
=
async
()
=>
{
const
checkRecordQuery
=
async
()
=>
{
try
{
try
{
const
params
=
{
const
params
=
{
reconciliationYearMonth
:
searchParams
.
value
.
reconciliationYearMonth
,
reconciliationYearMonth
:
checkFormData
.
value
.
reconciliationYearMonth
,
pageNo
:
1
,
pageNo
:
checkRecordPageInfo
.
currentPage
,
pageSize
:
30
pageSize
:
checkRecordPageInfo
.
pageSize
}
}
const
res
=
await
commissionExpectedRecord
(
params
)
const
res
=
await
commissionExpectedRecord
(
params
)
checkRecordTableData
.
value
=
res
.
data
.
records
||
[]
checkRecordTableData
.
value
=
res
.
data
.
records
||
[]
checkRecordPageInfo
.
total
=
res
.
data
.
total
||
0
checkRecordPageInfo
.
currentPage
=
res
.
data
.
current
||
0
checkRecordPageInfo
.
pageSizes
=
res
.
data
.
size
||
0
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'查询检核记录失败'
,
error
)
console
.
error
(
'查询检核记录失败'
,
error
)
ElMessage
.
error
(
'查询检核记录失败'
)
ElMessage
.
error
(
'查询检核记录失败'
)
...
@@ -733,6 +803,9 @@ const handleSelect = (e, row) => {
...
@@ -733,6 +803,9 @@ const handleSelect = (e, row) => {
}
else
if
(
e
===
'viewRecord'
)
{
}
else
if
(
e
===
'viewRecord'
)
{
viewRecordDialogFlag
.
value
=
true
viewRecordDialogFlag
.
value
=
true
return
return
}
else
if
(
e
===
'syncToReceivable'
)
{
return
}
}
}
}
...
@@ -784,13 +857,28 @@ const updateDataapi = async () => {
...
@@ -784,13 +857,28 @@ const updateDataapi = async () => {
ElMessage
.
error
(
'更新数据失败'
)
ElMessage
.
error
(
'更新数据失败'
)
}
}
}
}
const
handleUploadEnd
=
(
code
)
=>
{
if
(
code
===
200
)
{
ElMessage
.
success
(
'上传文件成功'
)
fileUploadDialogFlag
.
value
=
false
files
.
value
=
''
checkRecordQuery
()
}
else
{
ElMessage
.
error
(
'上传文件失败'
)
}
}
// 关闭弹窗后的操作
const
closthDialog
=
()
=>
{
dialogFlag
.
value
=
false
checkFormRef
.
value
.
resetForm
()
checkFormData
.
value
=
{}
checkRecordTableData
.
value
=
[]
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.tableOptionContainer
{
.tableOptionContainer
{
display
:
flex
;
justify-content
:
flex-end
;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
...
...
src/views/financialCenter/financialSalary.vue
View file @
ef6e03ce
...
@@ -117,6 +117,7 @@ const searchConfig = ref([
...
@@ -117,6 +117,7 @@ const searchConfig = ref([
label
:
'出账状态'
,
label
:
'出账状态'
,
dictType
:
'csf_expected_fortune_status'
,
dictType
:
'csf_expected_fortune_status'
,
multiple
:
true
,
multiple
:
true
,
defaultValue
:
[
'6'
],
//默认查询待出账,已检核的数据
}
}
])
])
// 添加表格引用
// 添加表格引用
...
...
src/views/financialCenter/payables.vue
View file @
ef6e03ce
...
@@ -151,8 +151,9 @@
...
@@ -151,8 +151,9 @@
</el-table>
</el-table>
</CommonDialog>
</CommonDialog>
<!-- 新增出账记录 -->
<!-- 新增出账记录 -->
<CommonDialog
dialogTitle=
"新增出账记录"
dialogWidth=
"80%"
:openDialog=
"addPayRecordDialogVisible"
:showAction=
"true"
<CommonDialog
:dialogTitle=
"editStatus === 'add' ? '新增出账记录' : '修改出账记录'"
dialogWidth=
"80%"
:showClose=
"true"
@
close=
"addPayRecordDialogVisible = false"
@
confirm=
"handleConfirmAddPayRecord"
>
:openDialog=
"addPayRecordDialogVisible"
:showAction=
"true"
:showClose=
"true"
@
close=
"addPayRecordDialogVisible = false; editStatus = 'add'"
@
confirm=
"handleConfirmAddPayRecord"
>
<SearchForm
ref=
"addPayRecordFormRef"
:config=
"addPayRecordFormConfig"
v-model=
"addPayRecordFormModel"
/>
<SearchForm
ref=
"addPayRecordFormRef"
:config=
"addPayRecordFormConfig"
v-model=
"addPayRecordFormModel"
/>
</CommonDialog>
</CommonDialog>
<!-- 设置出账状态 -->
<!-- 设置出账状态 -->
...
@@ -170,7 +171,7 @@ import CommonPage from '@/components/commonPage'
...
@@ -170,7 +171,7 @@ import CommonPage from '@/components/commonPage'
import
{
ref
,
reactive
}
from
'vue'
import
{
ref
,
reactive
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
expectedFortuneList
,
payRecordList
,
addPayRecord
,
u
serSaleExpandDetail
}
from
'@/api/financial/commission'
import
{
expectedFortuneList
,
payRecordList
,
addPayRecord
,
u
pdatePayRecord
}
from
'@/api/financial/commission'
import
SearchForm
from
'@/components/SearchForm/SearchForm.vue'
import
SearchForm
from
'@/components/SearchForm/SearchForm.vue'
import
CommonDialog
from
'@/components/commonDialog'
import
CommonDialog
from
'@/components/commonDialog'
import
{
loadDicts
,
getDictLabel
}
from
'@/utils/useDict'
import
{
loadDicts
,
getDictLabel
}
from
'@/utils/useDict'
...
@@ -298,7 +299,7 @@ const searchConfig = ref([
...
@@ -298,7 +299,7 @@ const searchConfig = ref([
])
])
const
payRecordDialogTableVisible
=
ref
(
false
)
const
payRecordDialogTableVisible
=
ref
(
false
)
// 新增出账记录
// 新增出账记录
const
addPayRecordFormModel
=
re
active
({
const
addPayRecordFormModel
=
re
f
({
fortuneBizType
:
'U'
,
fortuneBizType
:
'U'
,
})
})
const
addPayRecordDialogVisible
=
ref
(
false
)
const
addPayRecordDialogVisible
=
ref
(
false
)
...
@@ -375,7 +376,7 @@ const addPayRecordFormConfig = [
...
@@ -375,7 +376,7 @@ const addPayRecordFormConfig = [
debounceWait
:
500
,
// 自定义防抖时间
debounceWait
:
500
,
// 自定义防抖时间
valueKey
:
'userSaleBizId'
,
valueKey
:
'userSaleBizId'
,
labelKey
:
'realName'
,
labelKey
:
'realName'
,
onChangeExtraFields
:
{
onChangeExtraFields
:
{
broker
:
'realName'
,
// 自动同步 raw.name 到 reconciliationCompany
broker
:
'realName'
,
// 自动同步 raw.name 到 reconciliationCompany
reconciliationCompanyCode
:
'code'
reconciliationCompanyCode
:
'code'
},
},
...
@@ -390,24 +391,42 @@ const addPayRecordFormConfig = [
...
@@ -390,24 +391,42 @@ const addPayRecordFormConfig = [
}
}
]
]
const
handleConfirmAddPayRecord
=
async
()
=>
{
const
handleConfirmAddPayRecord
=
async
()
=>
{
const
handleConfirmAddPayRecordparams
=
addPayRecordFormRef
.
value
.
getFormData
()
if
(
editStatus
.
value
===
'add'
)
{
try
{
const
handleConfirmAddPayRecordparams
=
addPayRecordFormRef
.
value
.
getFormData
()
await
addPayRecord
([
handleConfirmAddPayRecordparams
])
try
{
ElMessage
.
success
(
'新增出账记录成功'
)
await
addPayRecord
([
handleConfirmAddPayRecordparams
])
addPayRecordDialogVisible
.
value
=
false
ElMessage
.
success
(
'新增出账记录成功'
)
addPayRecordFormRef
.
value
.
resetForm
()
addPayRecordDialogVisible
.
value
=
false
}
catch
(
error
)
{
addPayRecordFormRef
.
value
.
resetForm
()
ElMessage
.
error
(
error
.
message
)
}
catch
(
error
)
{
ElMessage
.
error
(
error
.
message
)
}
}
else
if
(
editStatus
.
value
===
'edit'
)
{
try
{
const
params
=
{
expectedFortuneBizId
:
selectedRow
.
value
.
expectedFortuneBizId
,
...
addPayRecordFormModel
.
value
}
await
updatePayRecord
(
params
)
ElMessage
.
success
(
'更新出账记录成功'
)
addPayRecordDialogVisible
.
value
=
false
addPayRecordFormRef
.
value
.
resetForm
()
editStatus
.
value
=
'add'
}
catch
(
error
)
{
ElMessage
.
error
(
error
.
message
)
}
}
}
}
}
const
editStatus
=
ref
(
'add'
)
// 出账记录
// 出账记录
const
payRecordDialogTableData
=
ref
([])
const
payRecordDialogTableData
=
ref
([])
const
payRecordDialogTableColumns
=
ref
([])
const
payRecordDialogTableColumns
=
ref
([])
const
handleSelect
=
async
(
e
,
row
)
=>
{
const
handleSelect
=
async
(
e
,
row
)
=>
{
selectedRow
.
value
=
row
selectedRow
.
value
=
{
...
row
}
if
(
e
===
'payRecord'
)
{
if
(
e
===
'payRecord'
)
{
payRecordDialogTableVisible
.
value
=
true
payRecordDialogTableVisible
.
value
=
true
loadPayRecordTableData
(
selectedRow
.
value
.
expectedFortuneBizId
);
loadPayRecordTableData
(
selectedRow
.
value
.
expectedFortuneBizId
);
...
@@ -439,6 +458,16 @@ const handleSelect = async (e, row) => {
...
@@ -439,6 +458,16 @@ const handleSelect = async (e, row) => {
defaultValue
:
selectedRow
.
value
.
statusDesc
||
''
defaultValue
:
selectedRow
.
value
.
statusDesc
||
''
},
},
]
]
}
else
if
(
e
===
'updateData'
)
{
editStatus
.
value
=
'edit'
addPayRecordDialogVisible
.
value
=
true
if
(
addPayRecordFormRef
.
value
)
{
addPayRecordFormModel
.
value
=
{
...
selectedRow
.
value
}
}
console
.
log
(
addPayRecordFormModel
.
value
)
}
}
}
}
...
@@ -452,7 +481,8 @@ const loading = ref(false)
...
@@ -452,7 +481,8 @@ const loading = ref(false)
// 表格操作菜单
// 表格操作菜单
const
dropdownItems
=
[
const
dropdownItems
=
[
{
label
:
'出账记录'
,
value
:
'payRecord'
},
{
label
:
'出账记录'
,
value
:
'payRecord'
},
{
label
:
'设置状态'
,
value
:
'setStatus'
}
{
label
:
'设置状态'
,
value
:
'setStatus'
},
{
label
:
'更新数据'
,
value
:
'updateData'
}
]
]
// 表格数据
// 表格数据
...
...
src/views/financialCenter/receivables.vue
View file @
ef6e03ce
<
template
>
<
template
>
<div>
<div>
<CommonPage
:operationBtnList=
"operationBtnList"
:
showSearchForm=
"true"
:show-pagination=
"true
"
<CommonPage
:operationBtnList=
"operationBtnList"
:
visibleDefaultButtons=
"visibleDefaultButtons
"
:
total=
"pageTotal"
:current-page=
"currentPage"
:page-size=
"pageSize"
@
size-change=
"handleSizeChan
ge"
:
showSearchForm=
"true"
:show-pagination=
"true"
:total=
"pageTotal"
:current-page=
"currentPa
ge"
@
current-change=
"handleCurrentChange"
>
:page-size=
"pageSize"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
<!-- 搜索区域 -->
<!-- 搜索区域 -->
<template
#
searchForm
>
<template
#
searchForm
>
<SearchForm
ref=
"searchFormRef"
:config=
"searchConfig"
/>
<SearchForm
ref=
"searchFormRef"
:config=
"searchConfig"
/>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
{{
getCommissionBizTypeLabel
(
row
.
commissionBizType
)
}}
{{
getCommissionBizTypeLabel
(
row
.
commissionBizType
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"receivableNo"
label=
"应收款编号"
width=
"1
20"
/>
<el-table-column
prop=
"receivableNo"
label=
"应收款编号"
width=
"1
50"
sortable
/>
<el-table-column
prop=
"policyNo"
label=
"保单号"
width=
"120"
fixed=
"left"
sortable
/>
<el-table-column
prop=
"policyNo"
label=
"保单号"
width=
"120"
fixed=
"left"
sortable
/>
<el-table-column
prop=
"reconciliationCompany"
label=
"对账公司"
width=
"120"
sortable
/>
<el-table-column
prop=
"reconciliationCompany"
label=
"对账公司"
width=
"120"
sortable
/>
<el-table-column
prop=
"status"
label=
"入账状态"
width=
"120"
sortable
:formatter=
"formatStatus"
/>
<el-table-column
prop=
"status"
label=
"入账状态"
width=
"120"
sortable
:formatter=
"formatStatus"
/>
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"currency"
label=
"入账币种"
width=
"100"
/>
<el-table-column
prop=
"currency"
label=
"入账币种"
width=
"100"
/>
<el-table-column
prop=
"defaultExchangeRate"
label=
"结算汇率(估)"
width=
"120"
/>
<el-table-column
prop=
"defaultExchangeRate"
label=
"结算汇率(估)"
width=
"120"
/>
<el-table-column
prop=
"insur
erBizId
"
label=
"保险公司"
width=
"120"
sortable
/>
<el-table-column
prop=
"insur
anceCompany
"
label=
"保险公司"
width=
"120"
sortable
/>
<el-table-column
prop=
"product
LaunchBizId
"
label=
"产品计划"
width=
"120"
sortable
/>
<el-table-column
prop=
"product
Name
"
label=
"产品计划"
width=
"120"
sortable
/>
<el-table-column
prop=
"premium"
label=
"期交保费"
width=
"120"
sortable
>
<el-table-column
prop=
"premium"
label=
"期交保费"
width=
"120"
sortable
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
{{
numberWithCommas
(
row
.
premium
)
}}
{{
numberWithCommas
(
row
.
premium
)
}}
...
@@ -135,7 +135,8 @@
...
@@ -135,7 +135,8 @@
</CommonDialog>
</CommonDialog>
<!-- 新增应收款管理 -->
<!-- 新增应收款管理 -->
<CommonDialog
dialogTitle=
"新增应收款"
dialogWidth=
"80%"
:openDialog=
"addReceivablesDialogVisible"
<CommonDialog
:dialogTitle=
"editStatus === 'add' ? '新增应收款' : '更新应收款'"
dialogWidth=
"80%"
:openDialog=
"addReceivablesDialogVisible"
@
close=
"addReceivablesDialogVisible = false; resetAddReceivablesForm()"
@
close=
"addReceivablesDialogVisible = false; resetAddReceivablesForm()"
@
confirm=
"handleConfirmAddReceivables"
>
@
confirm=
"handleConfirmAddReceivables"
>
<SearchForm
ref=
"addRecordRef"
:config=
"addReceivablesFormConfig"
v-model=
"addReceivablesFormModel"
/>
<SearchForm
ref=
"addRecordRef"
:config=
"addReceivablesFormConfig"
v-model=
"addReceivablesFormModel"
/>
...
@@ -162,9 +163,10 @@ const commissionBizTypeOptions = [
...
@@ -162,9 +163,10 @@ const commissionBizTypeOptions = [
{
value
:
'R'
,
label
:
'关联保单应收单'
},
{
value
:
'R'
,
label
:
'关联保单应收单'
},
{
value
:
'U'
,
label
:
'非关联保单应收单'
}
{
value
:
'U'
,
label
:
'非关联保单应收单'
}
]
]
const
editStatus
=
ref
(
'add'
)
// 新增应收款管理
// 新增应收款管理
const
addReceivablesFormModel
=
re
active
({
const
addReceivablesFormModel
=
re
f
({
commissionBizType
:
'U'
,
commissionBizType
:
'U'
,
})
})
const
addReceivablesDialogVisible
=
ref
(
false
)
const
addReceivablesDialogVisible
=
ref
(
false
)
...
@@ -206,13 +208,15 @@ const addReceivablesFormConfig = [
...
@@ -206,13 +208,15 @@ const addReceivablesFormConfig = [
prop
:
'commissionDate'
,
prop
:
'commissionDate'
,
label
:
'入账日(估)'
,
label
:
'入账日(估)'
,
placeholder
:
'请选择'
placeholder
:
'请选择'
},
{
},
type
:
'date'
,
// {
prop
:
'actualCommissionDate'
,
// type: 'date',
label
:
'入账日(实)'
,
// prop: 'actualCommissionDate',
placeholder
:
'请选择'
,
// label: '入账日(实)',
maxDate
:
'today'
// placeholder: '请选择',
},
{
// maxDate: 'today'
// },
{
type
:
'input'
,
type
:
'input'
,
prop
:
'amount'
,
prop
:
'amount'
,
label
:
'入账金额'
,
label
:
'入账金额'
,
...
@@ -241,9 +245,12 @@ const addReceivablesFormConfig = [
...
@@ -241,9 +245,12 @@ const addReceivablesFormConfig = [
dictType
:
'bx_currency_type'
dictType
:
'bx_currency_type'
},
{
},
{
type
:
'select'
,
type
:
'select'
,
prop
:
'commission
Nam
e'
,
prop
:
'commission
Typ
e'
,
label
:
'入账项目'
,
label
:
'入账项目'
,
dictType
:
'csf_commission_type'
dictType
:
'csf_commission_type'
,
onChangeExtraFields
:
{
commissionName
:
'itemLabel'
,
},
},
{
},
{
type
:
'select'
,
type
:
'select'
,
prop
:
'reconciliationCompanyBizId'
,
prop
:
'reconciliationCompanyBizId'
,
...
@@ -268,24 +275,46 @@ const addReceivablesFormConfig = [
...
@@ -268,24 +275,46 @@ const addReceivablesFormConfig = [
// 弹窗表单重置
// 弹窗表单重置
const
resetAddReceivablesForm
=
()
=>
{
const
resetAddReceivablesForm
=
()
=>
{
addRecordRef
.
value
.
resetForm
()
addRecordRef
.
value
.
resetForm
()
editStatus
.
value
=
'add'
}
}
const
handleConfirmAddReceivables
=
async
()
=>
{
const
handleConfirmAddReceivables
=
async
()
=>
{
const
p
=
addRecordRef
.
value
.
getFormData
()
if
(
editStatus
.
value
===
'add'
)
{
try
{
const
p
=
addRecordRef
.
value
.
getFormData
()
await
addReceivedFortune
({
try
{
commissionExpectedAddDtoList
:
[
p
]
await
addReceivedFortune
({
})
commissionExpectedAddDtoList
:
[
p
]
ElMessage
.
success
(
'新增应收款成功'
)
})
addReceivablesDialogVisible
.
value
=
false
ElMessage
.
success
(
'新增应收款成功'
)
resetAddReceivablesForm
()
addReceivablesDialogVisible
.
value
=
false
handleQuery
()
resetAddReceivablesForm
()
}
catch
(
error
)
{
handleQuery
()
ElMessage
.
error
(
error
.
message
)
}
catch
(
error
)
{
ElMessage
.
error
(
error
.
message
)
}
}
else
{
try
{
const
res
=
await
updateCommissionExpected
({
commissionExpectedBizId
:
selectedRow
.
value
.
commissionExpectedBizId
,
...
addReceivablesFormModel
.
value
})
if
(
res
.
code
===
200
)
{
ElMessage
.
success
(
'应收款修改成功'
)
addReceivablesDialogVisible
.
value
=
false
resetAddReceivablesForm
()
loadTableData
()
// 重新加载表格
}
else
{
ElMessage
.
error
(
res
.
msg
||
'应收款修改失败'
)
}
}
catch
(
error
)
{
console
.
error
(
'修改应收款失败:'
,
error
)
ElMessage
.
error
(
'修改应收款失败'
)
}
}
}
}
}
...
@@ -417,7 +446,8 @@ const getCommissionBizTypeLabel = (value) => {
...
@@ -417,7 +446,8 @@ const getCommissionBizTypeLabel = (value) => {
// 表格操作菜单
// 表格操作菜单
const
dropdownItems
=
[
const
dropdownItems
=
[
{
label
:
'入账记录'
,
value
:
'entryRecord'
},
{
label
:
'入账记录'
,
value
:
'entryRecord'
},
{
label
:
'设置状态'
,
value
:
'setStatus'
}
{
label
:
'设置状态'
,
value
:
'setStatus'
},
{
label
:
'更新数据'
,
value
:
'updateData'
},
]
]
// 弹窗状态
// 弹窗状态
...
@@ -451,7 +481,12 @@ const statisticsData = ref({
...
@@ -451,7 +481,12 @@ const statisticsData = ref({
// 按钮事件处理
// 按钮事件处理
const
handleAdd
=
()
=>
{
const
handleAdd
=
()
=>
{
addReceivablesDialogVisible
.
value
=
true
addReceivablesDialogVisible
.
value
=
true
if
(
addRecordRef
.
value
)
{
addRecordRef
.
value
.
resetForm
()
}
addReceivablesFormModel
.
value
=
{}
}
}
const
handleImport
=
()
=>
ElMessage
.
info
(
'点击导入按钮'
)
const
handleImport
=
()
=>
ElMessage
.
info
(
'点击导入按钮'
)
const
handleExport
=
async
()
=>
{
const
handleExport
=
async
()
=>
{
...
@@ -480,11 +515,13 @@ const handleReset = () => {
...
@@ -480,11 +515,13 @@ const handleReset = () => {
const
handleQuery
=
()
=>
{
const
handleQuery
=
()
=>
{
loadTableData
()
loadTableData
()
}
}
const
visibleDefaultButtons
=
ref
([
'add'
,
'export'
,
'reset'
,
'query'
])
// 按钮配置
// 按钮配置
const
operationBtnList
=
ref
([
const
operationBtnList
=
ref
([
{
key
:
'add'
,
direction
:
'left'
,
click
:
handleAdd
},
{
key
:
'add'
,
direction
:
'left'
,
click
:
handleAdd
},
{
key
:
'import'
,
direction
:
'left'
,
click
:
handleImport
},
//
{ key: 'import', direction: 'left', click: handleImport },
{
key
:
'export'
,
direction
:
'right'
,
click
:
handleExport
},
{
key
:
'export'
,
direction
:
'right'
,
click
:
handleExport
},
{
key
:
'reset'
,
direction
:
'right'
,
click
:
handleReset
},
{
key
:
'reset'
,
direction
:
'right'
,
click
:
handleReset
},
{
key
:
'query'
,
direction
:
'right'
,
click
:
handleQuery
}
{
key
:
'query'
,
direction
:
'right'
,
click
:
handleQuery
}
...
@@ -569,7 +606,7 @@ const loadEntryEditRecordData = async (cbd) => {
...
@@ -569,7 +606,7 @@ const loadEntryEditRecordData = async (cbd) => {
// 操作菜单选择事件
// 操作菜单选择事件
const
handleSelect
=
async
(
e
,
row
)
=>
{
const
handleSelect
=
async
(
e
,
row
)
=>
{
selectedRow
.
value
=
row
selectedRow
.
value
=
{
...
row
}
if
(
e
===
'entryRecord'
)
{
if
(
e
===
'entryRecord'
)
{
entryRecordDialogTableVisible
.
value
=
true
entryRecordDialogTableVisible
.
value
=
true
entryRecordDialogTableColumns
.
value
=
[
entryRecordDialogTableColumns
.
value
=
[
...
@@ -603,6 +640,15 @@ const handleSelect = async (e, row) => {
...
@@ -603,6 +640,15 @@ const handleSelect = async (e, row) => {
},
},
]
]
setStatusDialogTableVisible
.
value
=
true
setStatusDialogTableVisible
.
value
=
true
}
else
if
(
e
===
'updateData'
)
{
editStatus
.
value
=
'update'
addReceivablesDialogVisible
.
value
=
true
if
(
addRecordRef
.
value
)
{
addReceivablesFormModel
.
value
=
{
...
selectedRow
.
value
}
}
console
.
log
(
'更新数据'
,
selectedRow
.
value
)
}
}
}
}
...
@@ -621,15 +667,7 @@ const handleClick = async () => {
...
@@ -621,15 +667,7 @@ const handleClick = async () => {
]
]
// 加载真实数据
// 加载真实数据
const
records
=
await
loadEntryEditRecordData
(
selectedRow
.
value
.
commissionExpectedBizId
)
const
records
=
await
loadEntryEditRecordData
(
selectedRow
.
value
.
commissionExpectedBizId
)
actionRecordsDialogTableData
.
value
=
records
.
length
?
records
:
[{
actionRecordsDialogTableData
.
value
=
records
.
length
?
records
:
[]
checkMonth
:
'2023-08'
,
compareStatus
:
'比对成功'
,
entryRatio
:
'10%'
,
shouldEntryRatio
:
'10%'
,
reconciliationCompany
:
'XX保险公司'
,
createTime
:
'2023-08-01 10:00:00'
,
userName
:
'张三'
}]
}
}
// 新增:设置状态确认事件
// 新增:设置状态确认事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment