| | |
| | | :name="item.name" |
| | | :gender="item.gender" |
| | | :isReal="item.isReal" |
| | | :totalWorkHours="item.totalWorkHours" |
| | | :totalWorkHours="item.timeoutHours" |
| | | :settlementAmount="item.settlementAmount" |
| | | /> |
| | | > |
| | | <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> |
| | | </PayrollManageDetailCard> |
| | | </template> |
| | | </InfiniteLoading> |
| | | <PageFooter v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait"> |
| | |
| | | auditStatus: 0, |
| | | billingMethod: 0, |
| | | settlementStatus: 0, |
| | | rosters: [] as API.AuditTaskSettlementCommandRoster[], |
| | | }); |
| | | |
| | | const { |
| | |
| | | form.auditStatus = res.detail?.auditStatus; |
| | | form.settlementStatus = res.detail?.settlementStatus; |
| | | form.billingMethod = res.detail?.billingMethod; |
| | | form.rosters = res.data?.map((x) => ({ |
| | | id: x.id, |
| | | name: x.name, |
| | | gender: x.gender, |
| | | isReal: x.isReal, |
| | | timeoutHours: x.timeoutHours, |
| | | settlementAmount: x.settlementAmount, |
| | | })); |
| | | } |
| | | return res; |
| | | }, |
| | |
| | | id: id, |
| | | operatorToken: operatorToken, |
| | | auditStatus: auditStatus, |
| | | rosters: form.rosters, |
| | | }; |
| | | let res = await taskServices.auditTaskSettlement(params); |
| | | if (res) { |
| | |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function goPayrollChange(item: API.GetSettlementTaskUsersQueryResultItem) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.payrollChange}?orderRosterId=${item.id}&settleId=${id}&operatorToken=${operatorToken}`, |
| | | events: { |
| | | update: function () { |
| | | refetch(); |
| | | }, |
| | | }, |
| | | }); |
| | | } |
| | | </script> |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .payroll-manage-detail-card-actions { |
| | | --nut-button-default-height: 24px; |
| | | |
| | | text-align: right; |
| | | } |
| | | } |
| | | </style> |