| | |
| | | <template> |
| | | <LoadingLayout :loading="isLoading"> |
| | | <AppContainer> |
| | | <AppScrollContainer> |
| | | <ChunkCell title="结算单详情"> |
| | | <ProForm :model="form" ref="formRef" label-width="120px" :is-read="true"> |
| | | <ProFormCol> |
| | |
| | | :auto-height="false" |
| | | ref="proTable" |
| | | :tableProps="{ |
| | | maxHeight: '250px', |
| | | maxHeight: '400px', |
| | | }" |
| | | > |
| | | </ProTableV2> |
| | |
| | | <el-button |
| | | v-if=" |
| | | isSettlement && |
| | | (!!form.auditStatus || form.auditStatus === EnumTaskSettlementAuditStatus.Fail) |
| | | (!form.auditStatus || form.auditStatus !== EnumTaskSettlementAuditStatus.Pass) |
| | | " |
| | | class="chuck-add-or-edit-actions" |
| | | type="primary" |
| | |
| | | > |
| | | </div> |
| | | </ChunkCell> |
| | | </AppContainer> |
| | | </AppScrollContainer> |
| | | <EditAccountInfoDialog v-bind="dialogProps"></EditAccountInfoDialog> |
| | | <SettleDetailDialog v-bind="dialogSettleProps" /> |
| | | </LoadingLayout> |
| | |
| | | import { |
| | | LoadingLayout, |
| | | AppContainer, |
| | | AppScrollContainer, |
| | | ChunkCell, |
| | | ProForm, |
| | | ProFormItemV2, |
| | |
| | | isSettlement: isSettlement.value, |
| | | |
| | | auditStatus: '' as any as EnumTaskSettlementAuditStatus, |
| | | |
| | | timeoutServiceFee: 0, |
| | | }); |
| | | |
| | | const BaseState = { |
| | |
| | | form.code = res?.detail?.code; |
| | | form.settlementAccess = res?.detail?.settlementAccess; |
| | | form.auditStatus = res?.detail?.auditStatus; |
| | | form.timeoutServiceFee = res?.detail?.timeoutServiceFee ?? 0; |
| | | // form.settlementOrderName = setOssFileName(res?.detail?.settlementOrderName); |
| | | // form.settlementOrderTime = res?.detail?.settlementOrderTime ?? ''; |
| | | } |
| | |
| | | settlementAmount: { type: 'money' }, |
| | | actualSettlementAmount: { type: 'money' }, |
| | | settlementReceiveStatus: { type: 'enum', valueEnum: SettlementReceiveStatusText }, |
| | | serviceFee: { type: 'money' }, |
| | | timeoutHours: { |
| | | formatter: (row: API.GetSettlementTaskUsersQueryResultItem) => |
| | | row.timeoutHours ? `${row.timeoutHours}小时` : '', |
| | | }, |
| | | timeoutFee: { type: 'money' }, |
| | | otherFee: { type: 'money' }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | actualSettlementAmount: null as number, |
| | | receiveAccount: '', |
| | | bank: '', |
| | | totalWorkHours: null as number, |
| | | // totalWorkHours: null as number, |
| | | settlementAccess: form.settlementAccess, |
| | | // bankBranch: '', |
| | | timeoutServiceFee: 0, |
| | | serviceFee: null as number, |
| | | timeoutHours: null as number, |
| | | timeoutFee: null as number, |
| | | otherFee: null as number, |
| | | remark: '', |
| | | }, |
| | | }); |
| | | |
| | |
| | | actualSettlementAmount: row?.actualSettlementAmount ?? null, |
| | | receiveAccount: row?.receiveAccount ?? '', |
| | | bank: row?.bank ?? '', |
| | | totalWorkHours: null as number, |
| | | // totalWorkHours: row?.totalWorkHours ?? null, |
| | | settlementAccess: form.settlementAccess, |
| | | // bankBranch: row?.bankBranch ?? '', |
| | | timeoutServiceFee: form.timeoutServiceFee, |
| | | serviceFee: row?.serviceFee ?? 0, |
| | | timeoutHours: row?.timeoutHours ?? null, |
| | | timeoutFee: row?.timeoutFee ?? null, |
| | | otherFee: row?.otherFee ?? null, |
| | | remark: row?.remark ?? '', |
| | | }); |
| | | } |
| | | } |
| | | |
| | | async function handleAddOrEdit() { |
| | | try { |
| | | const settlementAmount = |
| | | (editForm.timeoutFee ?? 0) + (editForm.serviceFee ?? 0) + (editForm.otherFee ?? 0); |
| | | let params: API.EditTaskSettlementOrderRosterCommand = { |
| | | id: editForm.id, |
| | | settlementAmount: editForm.settlementAmount, |
| | | settlementAmount: settlementAmount, |
| | | actualSettlementAmount: editForm.actualSettlementAmount, |
| | | receiveAccount: editForm.receiveAccount, |
| | | bank: editForm.bank, |
| | | totalWorkHours: editForm.totalWorkHours, |
| | | // totalWorkHours: editForm.totalWorkHours, |
| | | // bankBranch: editForm.bankBranch, |
| | | serviceFee: editForm.serviceFee, |
| | | timeoutHours: editForm.timeoutHours, |
| | | timeoutFee: editForm.timeoutFee, |
| | | otherFee: editForm.otherFee, |
| | | remark: editForm.remark, |
| | | }; |
| | | let res = await taskServices.editTaskSettlementOrderRoster(params); |
| | | if (res) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .chuck-add-or-edit-actions { |
| | | margin-bottom: 20px; |
| | | } |
| | | </style> |
| | | <style lang="scss"> |
| | | .text-over-tooltip-content { |