custom/领悦业务线

This commit is contained in:
lys 2025-03-14 10:05:36 +08:00
parent ddbe68d72d
commit 7ceb7df124
2 changed files with 5 additions and 4 deletions

View File

@ -206,12 +206,13 @@ export const sendMobileCode = (params) => {
return postFetch("/api/bs/hrmsalary/salaryBill/sendMobileCode", params);
};
//工资单-验证方式
export const payrollCheckType = header => {
return fetch(`/api/bs/hrmsalary/salaryBill/payrollCheckType`, {
export const payrollCheckType = async header => {
const res = await fetch(`/api/bs/hrmsalary/salaryBill/payrollCheckType`, {
method: "GET",
mode: "cors",
headers: { "Content-Type": "application/json", ...header }
}).then(res => res.json());
});
return await res.json();
};
//工资单-反馈验证
export const feedBackSalaryBill = params => {

View File

@ -60,7 +60,7 @@ export default class MobilePayroll extends React.Component {
});
this.setState({ salaryBillToken: data }, () => {
//领悦二开
payrollCheckType().then(({ data, status }) => {
payrollCheckType(this.state.salaryBillToken).then(({ data, status }) => {
if (status && data === "PWD") {
API.isNeedSecondPwdVerify({ mouldCode: "HRM", itemCode: "SALARY" }, this.state.salaryBillToken)
.then(({ status, isNeedSecondAuth }) => {