| | |
| | | :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"> |
| | |
| | | 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) { |