diff --git a/pc4mobx/hrmSalary/apis/payroll.js b/pc4mobx/hrmSalary/apis/payroll.js
index 48fcecb2..69f3e5c2 100644
--- a/pc4mobx/hrmSalary/apis/payroll.js
+++ b/pc4mobx/hrmSalary/apis/payroll.js
@@ -206,8 +206,13 @@ export const sendMobileCode = (params) => {
return postFetch("/api/bs/hrmsalary/salaryBill/sendMobileCode", params);
};
//工资单-验证方式
-export const payrollCheckType = params => {
- return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/payrollCheckType", "GET", params);
+export const payrollCheckType = (params, header) => {
+ return fetch(`/api/bs/hrmsalary/salaryBill/payrollCheckType`, {
+ method: "GET",
+ mode: "cors",
+ headers: { "Content-Type": "application/json", ...header }
+ }).then(res => res.json());
+ // return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/payrollCheckType", "GET", params);
};
//工资单-反馈验证
export const feedBackSalaryBill = params => {
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/PCInterfaceTokenDialog.js b/pc4mobx/hrmSalary/pages/mobilePayroll/PCInterfaceTokenDialog.js
new file mode 100644
index 00000000..400ee9b5
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/PCInterfaceTokenDialog.js
@@ -0,0 +1,104 @@
+/*
+ * pc端接口token弹窗
+ *
+ * @Author: 黎永顺
+ * @Date: 2024/9/18
+ * @Wechat:
+ * @Email: 971387674@qq.com
+ * @description:
+*/
+import React, { Component } from "react";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
+import { Button, message } from "antd";
+import { getQueryString } from "../../util/url";
+import {
+ doSecondAuth,
+ getSecondAuthForm,
+ isNeedSecondPwdVerify,
+ salaryBillGetToken
+} from "../../apis/mySalaryBenefits";
+import { payrollCheckType } from "../../apis/payroll";
+import { getSearchs } from "../../util";
+import { pcConditions } from "./pwdCondtion";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class PcInterfaceTokenDialog extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ visible: false, notSetting: false, conditions: []
+ };
+ }
+
+ async componentDidMount() {
+ const { mySalaryStore: { pcForm } } = this.props;
+ this.setState({
+ conditions: _.map(pcConditions, o => ({
+ ...o, items: _.map(o.items, k => ({ ...k, label: getLabel(k.lanId, k.label) }))
+ }))
+ }, () => pcForm.initFormFields(this.state.conditions));
+ const { data: result } = await salaryBillGetToken({ uid: getQueryString("recipient") });
+ const { data, status } = await payrollCheckType({}, result);
+ this.props.onSetSalaryBillToken && this.props.onSetSalaryBillToken(result);
+ if (status && data === "PWD") {
+ isNeedSecondPwdVerify({ mouldCode: "HRM", itemCode: "SALARY" }, result)
+ .then(({ status, isNeedSecondAuth }) => {
+ if (status && isNeedSecondAuth) {
+ this.setState({ visible: true }, () => {
+ getSecondAuthForm({ mouldCode: "HRM", itemCode: "SALARY" }, result)
+ .then(({ notSetting }) => {
+ this.setState({ notSetting });
+ });
+ });
+ } else {
+ this.props.init && this.props.init();
+ }
+ });
+ } else {
+ this.props.onCaptcha && this.props.onCaptcha();
+ }
+ }
+
+ doSecondAuth = () => {
+ const { mySalaryStore: { pcForm }, salaryBillToken } = this.props;
+ pcForm.validateForm().then(f => {
+ if (f.isValid) {
+ doSecondAuth({ ...pcForm.getFormParams(), mouldCode: "HRM", itemCode: "SALARY" }, salaryBillToken)
+ .then(({ status, checkStatus, checkMsg }) => {
+ if (status && checkStatus === "1") {
+ message.success(checkMsg);
+ this.setState({ visible: false }, () => this.props.init && this.props.init());
+ } else {
+ f.showError("authCode", checkMsg);
+ this.forceUpdate();
+ }
+ });
+ } else {
+ f.showErrors();
+ this.forceUpdate();
+ }
+ });
+ };
+
+ render() {
+ const { visible, notSetting, conditions } = this.state;
+ const { mySalaryStore: { pcForm, initPcForm } } = this.props;
+ return (
+