wupengfei
6 天以前 bf2a0dc5dade6614ce6d403bc90a833408047797
apps/bMiniApp/src/subpackages/payrollManage/payrollManageDetail/InnerPage.vue
@@ -58,12 +58,18 @@
          :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.">
    <PageFooter v-if="form.auditStatus === EnumTaskSettlementAuditStatus.Wait">
      <PageFooterBtn type="primary" @click="auditTaskSettlement(EnumTaskSettlementAuditStatus.Pass)"
        >审核通过</PageFooterBtn
      >
@@ -111,6 +117,7 @@
  auditStatus: 0,
  billingMethod: 0,
  settlementStatus: 0,
  rosters: [] as API.AuditTaskSettlementCommandRoster[],
});
const {
@@ -137,6 +144,14 @@
      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;
  },
@@ -172,6 +187,7 @@
      id: id,
      operatorToken: operatorToken,
      auditStatus: auditStatus,
      rosters: form.rosters,
    };
    let res = await taskServices.auditTaskSettlement(params);
    if (res) {
@@ -182,6 +198,17 @@
      });
    }
  } catch (error) {}
}
function goPayrollChange(item: API.GetSettlementTaskUsersQueryResultItem) {
  Taro.navigateTo({
    url: `${RouterPath.payrollChange}?orderRosterId=${item.id}&settleId=${id}&operatorToken=${operatorToken}`,
    events: {
      update: function () {
        refetch();
      },
    },
  });
}
</script>
@@ -218,5 +245,11 @@
      }
    }
  }
  .payroll-manage-detail-card-actions {
    --nut-button-default-height: 24px;
    text-align: right;
  }
}
</style>