|
|
@@ -103,7 +103,8 @@
|
|
|
remark: '',
|
|
|
serialNo: '',
|
|
|
type: '',
|
|
|
- unit: ''
|
|
|
+ unit: '',
|
|
|
+ status: '', // 10 待认领 20 已认领
|
|
|
}
|
|
|
})
|
|
|
const getDict = () => {
|
|
|
@@ -130,6 +131,15 @@
|
|
|
state.fundDetail = res.data
|
|
|
state.form = { ...state.form, ...res.data }
|
|
|
state.form.unAmount = state.form.amount - state.form.manageAmount - state.form.taxAmount
|
|
|
+ if (state.form.status == '20') {
|
|
|
+ // 跳转到已认领页面
|
|
|
+ router.push({
|
|
|
+ path: '/fund/claim/detail',
|
|
|
+ query: {
|
|
|
+ id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
// state.form.projectName = res.data.projectName
|
|
|
// state.form.amount = res.data.amount
|
|
|
// state.form.manageAmount = res.data.manageAmount
|
|
|
@@ -145,16 +155,6 @@
|
|
|
})
|
|
|
}
|
|
|
const onClickButton = async () => {
|
|
|
- const totalAmount = state.detail.reduce((acc, current) => {
|
|
|
- return acc + Number(current.amount * 100)
|
|
|
- }, 0)
|
|
|
- if (Number(state.form.amount * 100) / 100 != totalAmount / 100) {
|
|
|
- showNotify({
|
|
|
- type: 'warning',
|
|
|
- message: '认领金额必须等于本次到款总计金额'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
state.loading = true
|
|
|
const params = JSON.parse(JSON.stringify(state.form))
|
|
|
params.fundId = state.form.id
|
|
|
@@ -162,7 +162,7 @@
|
|
|
params.amount = Number(params.amount)
|
|
|
params.detail = params.detail.map((item: any) => ({
|
|
|
...item,
|
|
|
- amount: Number(item.amount * 100)
|
|
|
+ amount: Number(item.amount)
|
|
|
}))
|
|
|
params.externalAmount = Number(params.externalAmount)
|
|
|
params.internalAmount = Number(params.internalAmount)
|