| | |
| | | <div class="payroll-manage-detail-top-content-item"> |
| | | <div class="payroll-manage-detail-top-content-item-label">服务费金额:</div> |
| | | <div class="payroll-manage-detail-top-content-item-text"> |
| | | {{ `${form.serviceFee ?? 0}${BillingMethodEnumUnit[form.billingMethod]}` }} |
| | | {{ OrderUtils.getServiceFeeText(form.serviceFee, form.billingMethod) }} |
| | | </div> |
| | | </div> |
| | | <div class="payroll-manage-detail-top-content-item"> |
| | |
| | | :name="item.name" |
| | | :gender="item.gender" |
| | | :isReal="item.isReal" |
| | | :totalWorkHours="item.timeoutHours" |
| | | :totalWorkHours="item.timeoutHours ?? 0" |
| | | :settlementAmount="item.settlementAmount" |
| | | > |
| | | <template #actions v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait"> |
| | | <!-- <template #actions v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait"> |
| | | <div class="payroll-manage-detail-card-actions"> |
| | | <nut-button type="primary" plain @click="goPayrollChange(item)">修改</nut-button> |
| | | </div> |
| | | </template> |
| | | </template> --> |
| | | </PayrollManageDetailCard> |
| | | </template> |
| | | </InfiniteLoading> |
| | | <PageFooter v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait"> |
| | | <PageFooter v-if="form.settlementStatus === EnumTaskSettlementStatus.Wait"> |
| | | <!-- <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | >审核通过</PageFooterBtn |
| | | > |
| | |
| | | @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Fail)" |
| | | >驳回</PageFooterBtn |
| | | > --> |
| | | <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | <!-- <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)" |
| | | >确认</PageFooterBtn |
| | | > |
| | | > --> |
| | | <PageFooterBtn type="primary" @click="settlementTask()">结算</PageFooterBtn> |
| | | <PageFooterBtn type="primary" plain @click="goBack">取消</PageFooterBtn> |
| | | </PageFooter> |
| | | </LoadingLayout> |
| | |
| | | BillingMethodEnumUnit, |
| | | } from '@12333/constants'; |
| | | import PayrollManageDetailCard from '../components/PayrollManageDetailCard.vue'; |
| | | import { Message, paginateList, setOSSLink, toThousand } from '@12333/utils'; |
| | | import { Message, paginateList, setOSSLink, toThousand, OrderUtils } from '@12333/utils'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import dayjs from 'dayjs'; |
| | | import { goBack } from '@/utils'; |
| | | import { ChunkTitle } from '@12333/components'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | } |
| | | ); |
| | | |
| | | async function settlementTask() { |
| | | try { |
| | | let params: API.SureTaskSettlementCommand = { |
| | | taskInfoId: id, |
| | | operatorToken: operatorToken, |
| | | }; |
| | | let res = await taskServices.sureTaskSettlement(params); |
| | | if (res) { |
| | | Message.success('操作成功', { |
| | | onClosed() { |
| | | goBack(); |
| | | }, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function auditTaskSettlement(auditStatus: EnumTaskSettlementAuditStatus) { |
| | | try { |
| | | let params: API.AuditTaskSettlementCommand = { |