| | |
| | | }); |
| | | |
| | | async function handleAddOrEdit() { |
| | | goDetail(editForm.id, editForm.settlementUrl[0]?.url); |
| | | console.log('editForm: ', editForm); |
| | | goDetail(editForm.id, editForm.settlementUrl[0]?.path); |
| | | } |
| | | |
| | | const { |
| | |
| | | id: row.id, |
| | | name: row.name, |
| | | code: row.code, |
| | | settlementUserCount: row.settlementUserCount, |
| | | settlementAmount: row.settlementAmount, |
| | | settlementUserCount: row.settlementUserCount ?? 0, |
| | | settlementAmount: row.settlementAmount ?? 0, |
| | | }); |
| | | } |
| | | |
| | |
| | | response: UploadUserFile & { file: File & { uid: number } }, |
| | | row: API.GetSettlementTasksQueryResultItem |
| | | ) { |
| | | if (response.url) { |
| | | goDetail(row.id, response.url); |
| | | if (response.path) { |
| | | goDetail(row.id, response.path); |
| | | } |
| | | } |
| | | |
| | | function goDetail(id: string, url?: string) { |
| | | router.push({ |
| | | name: 'ServiceChargeDetail', |
| | | query: { |
| | | params: { |
| | | id: id, |
| | | }, |
| | | query: { |
| | | url: url ? url : '', |
| | | }, |
| | | }); |