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
0b469171
Commit
0b469171
authored
May 08, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wyz' into 'test'
入账检核--修改入账状态发布测试 See merge request
!126
parents
7e34eea4
0b2828d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
9 deletions
+99
-9
src/api/financial/commission.js
+4
-4
src/views/financialCenter/financialIncome.vue
+95
-5
No files found.
src/api/financial/commission.js
View file @
0b469171
...
@@ -539,11 +539,11 @@ export function actualPayoutDateApi(data) {
...
@@ -539,11 +539,11 @@ export function actualPayoutDateApi(data) {
data
:
data
data
:
data
})
})
}
}
//
出账检核--修改结算汇率
//
入账检核--修改入账状态
export
function
edit
ExchangeRate
Api
(
data
)
{
export
function
edit
Status
Api
(
data
)
{
return
request
({
return
request
({
url
:
'csf/api/
fortune/edit/exchange_rate
'
,
url
:
'csf/api/
commission/edit/status
'
,
method
:
'p
os
t'
,
method
:
'p
u
t'
,
data
:
data
data
:
data
})
})
}
}
src/views/financialCenter/financialIncome.vue
View file @
0b469171
...
@@ -411,7 +411,7 @@
...
@@ -411,7 +411,7 @@
@
close=
"viewRecordDialogFlag = false"
@
close=
"viewRecordDialogFlag = false"
>
>
</CommonDialog>
</CommonDialog>
<!--
更新数据
-->
<!--
修改检核
-->
<CommonDialog
<CommonDialog
dialogTitle=
"修改检核"
dialogTitle=
"修改检核"
...
@@ -428,6 +428,23 @@
...
@@ -428,6 +428,23 @@
v-model=
"updateDataFormModel"
v-model=
"updateDataFormModel"
/>
/>
</CommonDialog>
</CommonDialog>
<!-- 修改入账状态 -->
<CommonDialog
dialogTitle=
"修改入账状态"
dialogWidth=
"80%"
:openDialog=
"accountedStatusFlag"
:showAction=
"true"
:showClose=
"true"
@
close=
"accountedStatusFlag = false"
@
confirm=
"confirmAccountedStatus"
>
<SearchForm
ref=
"accountedStatusFormRef"
:config=
"accountedStatusConfig"
v-model=
"accountedStatusFormModel"
/>
</CommonDialog>
</div>
</div>
</template>
</template>
...
@@ -436,7 +453,7 @@ import { ref, reactive, onMounted } from 'vue'
...
@@ -436,7 +453,7 @@ import { ref, reactive, onMounted } from 'vue'
import
CommonPage
from
'@/components/commonPage'
import
CommonPage
from
'@/components/commonPage'
import
CommonDialog
from
'@/components/commonDialog'
import
CommonDialog
from
'@/components/commonDialog'
import
SearchForm
from
'@/components/SearchForm/SearchForm.vue'
import
SearchForm
from
'@/components/SearchForm/SearchForm.vue'
import
{
ElMessage
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
formatCurrency
}
from
'@/utils/number'
// 接口
// 接口
import
{
import
{
...
@@ -448,19 +465,41 @@ import {
...
@@ -448,19 +465,41 @@ import {
updateCommissionRecord
,
updateCommissionRecord
,
deletePolicyCommission
,
deletePolicyCommission
,
syncExpectedCommission
,
syncExpectedCommission
,
compareCommissionEntry
compareCommissionEntry
,
editStatusApi
}
from
'@/api/financial/commission'
}
from
'@/api/financial/commission'
import
{
InfoFilled
,
Select
,
Upload
,
Plus
}
from
'@element-plus/icons-vue'
import
{
InfoFilled
,
Select
,
Upload
,
Plus
}
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
accountedStatusFormModel
=
ref
({})
const
accountedStatusFlag
=
ref
(
false
)
const
accountedStatusFormRef
=
ref
(
null
)
const
{
proxy
}
=
getCurrentInstance
()
const
{
proxy
}
=
getCurrentInstance
()
const
{
csf_expected_commission_status
}
=
proxy
.
useDict
(
'csf_expected_commission_status'
)
const
{
csf_expected_commission_status
}
=
proxy
.
useDict
(
'csf_expected_commission_status'
)
const
{
csf_commission_status
}
=
proxy
.
useDict
(
'csf_commission_status'
)
const
{
csf_commission_status
}
=
proxy
.
useDict
(
'csf_commission_status'
)
const
downloadTemplateUrl
=
const
downloadTemplateUrl
=
'https://yd-ali-oss.oss-cn-shanghai-finance-1-pub.aliyuncs.com/xlsx/2026/01/26/33f0637762144d58a256f5d8d3c2d2b6.xlsx'
'https://yd-ali-oss.oss-cn-shanghai-finance-1-pub.aliyuncs.com/xlsx/2026/01/26/33f0637762144d58a256f5d8d3c2d2b6.xlsx'
const
recordCheckDialogFlag
=
ref
(
false
)
const
recordCheckDialogFlag
=
ref
(
false
)
const
accountedStatusConfig
=
ref
([
{
type
:
'select'
,
prop
:
'status'
,
label
:
'入账状态'
,
dictType
:
'csf_expected_commission_status'
,
rules
:
[{
required
:
true
,
message
:
'请选择入账状态'
,
trigger
:
'blur'
}]
// defaultValue: selectedRow.value.status || ''
},
{
type
:
'textarea'
,
prop
:
'statusDesc'
,
label
:
'修改理由'
,
rules
:
[{
required
:
true
,
message
:
'请填写修改理由'
,
trigger
:
'blur'
}]
// defaultValue: selectedRow.value.statusDesc || ''
}
])
const
downloadTemplate
=
()
=>
{
const
downloadTemplate
=
()
=>
{
const
link
=
document
.
createElement
(
'a'
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
downloadTemplateUrl
// 注意:以 / 开头,指向 public 下的文件
link
.
href
=
downloadTemplateUrl
// 注意:以 / 开头,指向 public 下的文件
...
@@ -804,6 +843,11 @@ const addCheckRecordConfig = ref([
...
@@ -804,6 +843,11 @@ const addCheckRecordConfig = ref([
{
required
:
true
,
message
:
'请输入金额'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入金额'
,
trigger
:
'blur'
},
{
pattern
:
/^
\d
+
(\.\d{1,4})?
$/
,
message
:
'最多四位小数'
,
trigger
:
'blur'
}
{
pattern
:
/^
\d
+
(\.\d{1,4})?
$/
,
message
:
'最多四位小数'
,
trigger
:
'blur'
}
]
]
},
{
type
:
'input'
,
prop
:
'remark'
,
label
:
'备注'
}
}
])
])
const
addCheckRecordDialogFlag
=
ref
(
false
)
const
addCheckRecordDialogFlag
=
ref
(
false
)
...
@@ -870,8 +914,8 @@ const generateCommissionRecordapi = async () => {
...
@@ -870,8 +914,8 @@ const generateCommissionRecordapi = async () => {
const
dropdownItems
=
[
const
dropdownItems
=
[
{
label
:
'设置比对状态'
,
value
:
'setStatus'
,
confirm
:
''
},
{
label
:
'设置比对状态'
,
value
:
'setStatus'
,
confirm
:
''
},
{
label
:
'同步到应收款管理'
,
value
:
'syncToReceivable'
,
confirm
:
'确认要同步到应收款管理吗?'
},
{
label
:
'同步到应收款管理'
,
value
:
'syncToReceivable'
,
confirm
:
'确认要同步到应收款管理吗?'
},
{
label
:
'修改检核记录'
,
value
:
'editCheckRecord'
}
{
label
:
'修改检核记录'
,
value
:
'editCheckRecord'
}
,
// { label: '查看记录', value: 'viewRecord
' }
{
label
:
'修改入账状态'
,
value
:
'setAccountedStatus
'
}
]
]
const
handleMenuConfirm
=
async
(
action
,
row
)
=>
{
const
handleMenuConfirm
=
async
(
action
,
row
)
=>
{
console
.
log
(
'点击了操作菜单'
,
action
,
row
)
console
.
log
(
'点击了操作菜单'
,
action
,
row
)
...
@@ -1031,6 +1075,13 @@ const handleSelect = (e, row) => {
...
@@ -1031,6 +1075,13 @@ const handleSelect = (e, row) => {
updateDataFormModel
.
value
=
{
...
selectedRow
.
value
}
updateDataFormModel
.
value
=
{
...
selectedRow
.
value
}
recordCheckDialogFlag
.
value
=
true
recordCheckDialogFlag
.
value
=
true
return
return
}
else
if
(
e
===
'setAccountedStatus'
)
{
accountedStatusFormModel
.
value
=
{
statusDesc
:
selectedRow
.
value
.
statusDesc
,
status
:
selectedRow
.
value
.
commissionExpectedStatus
}
accountedStatusFlag
.
value
=
true
return
}
}
}
}
const
handleAddCheckList
=
()
=>
{
const
handleAddCheckList
=
()
=>
{
...
@@ -1122,6 +1173,45 @@ const compareCommissionEntryapi = async row => {
...
@@ -1122,6 +1173,45 @@ const compareCommissionEntryapi = async row => {
ElMessage
.
error
(
'重新比对失败'
)
ElMessage
.
error
(
'重新比对失败'
)
}
}
}
}
const
confirmAccountedStatus
=
()
=>
{
const
formData
=
accountedStatusFormRef
.
value
.
getFormData
()
console
.
log
(
'===================================='
)
console
.
log
(
'formData'
,
formData
)
console
.
log
(
'===================================='
)
if
(
!
formData
.
status
)
{
return
ElMessage
.
warning
(
'请选择入账状态'
)
}
if
(
!
formData
.
statusDesc
)
{
return
ElMessage
.
warning
(
'请输入修改理由'
)
}
ElMessageBox
.
confirm
(
'确定要修改入账状态吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(
async
()
=>
{
try
{
const
res
=
await
editStatusApi
({
commissionExpectedBizId
:
selectedRow
.
value
.
commissionExpectedBizId
,
statusDesc
:
formData
.
statusDesc
,
status
:
formData
.
status
})
if
(
res
.
code
===
200
)
{
ElMessage
.
success
(
'状态修改成功'
)
accountedStatusFlag
.
value
=
false
loadTableData
()
// 重新加载表格
}
else
{
ElMessage
.
error
(
res
.
msg
||
'状态修改失败'
)
}
}
catch
(
error
)
{
console
.
error
(
'修改状态失败:'
,
error
)
ElMessage
.
error
(
'修改状态失败'
)
}
})
.
catch
(()
=>
{
ElMessage
.
info
(
'已取消修改'
)
})
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
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