工资单反馈功能新增
This commit is contained in:
parent
a3e9a6e733
commit
aff963b5c6
|
|
@ -118,8 +118,8 @@ export default class MobilePayroll extends React.Component {
|
|||
};
|
||||
handleGoFeedback = () => {
|
||||
const { mySalaryBillData } = this.state;
|
||||
const { feedbackWorkflowId } = mySalaryBillData;
|
||||
window.open(`${window.ecologyContentPath || ""}${feedbackWorkflowId}`);
|
||||
const { feedbackUrl } = mySalaryBillData;
|
||||
window.open(`${window.ecologyContentPath || ""}${feedbackUrl}`);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ class MySalaryView extends Component {
|
|||
};
|
||||
handleGoFeedback = () => {
|
||||
const { mySalaryStore } = this.state;
|
||||
const { feedbackWorkflowId } = mySalaryStore;
|
||||
window.open(`${window.ecologyContentPath || ""}${feedbackWorkflowId}`);
|
||||
const { feedbackUrl } = mySalaryStore;
|
||||
window.open(`${window.ecologyContentPath || ""}${feedbackUrl}`);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ export default class SalarySendList extends React.Component {
|
|||
|
||||
// 发放回调
|
||||
handleGrant(record) {
|
||||
window.open(
|
||||
"/spa/hrmSalary/static/index.html#/main/hrmSalary/payrollGrant?id=" +
|
||||
record.id
|
||||
);
|
||||
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/payrollGrant?id=${record.id}&ackFeedbackStatus=${record.ackFeedbackStatus}`);
|
||||
}
|
||||
|
||||
// 查看详情
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import { getSearchs, renderLoading } from "../../../util";
|
|||
import CustomPaginationTable from "../../../components/customPaginationTable";
|
||||
import PayrollPartTable from "./payrollPartTable";
|
||||
import { getPayrollIssuanceProgressBar } from "../../../apis/payroll";
|
||||
import { sysConfCodeRule } from "../../../apis/ruleconfig";
|
||||
import ProgressModal from "../../../components/progressModal";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
|
@ -41,7 +40,10 @@ export default class PayrollGrant extends React.Component {
|
|||
componentWillMount() {
|
||||
const { selectedKey } = this.state;
|
||||
let id = getQueryString("id");
|
||||
this.setState({ currentId: id });
|
||||
this.setState({
|
||||
currentId: id,
|
||||
showFeedbackColumn: getQueryString("ackFeedbackStatus") === "1"
|
||||
});
|
||||
const {
|
||||
payrollStore: { getPayrollInfo, getInfoList, getPaySa }
|
||||
} = this.props;
|
||||
|
|
@ -51,15 +53,8 @@ export default class PayrollGrant extends React.Component {
|
|||
isGranted: selectedKey !== "0"
|
||||
});
|
||||
getPaySa();
|
||||
this.sysConfCodeRule();
|
||||
}
|
||||
|
||||
sysConfCodeRule = () => {
|
||||
sysConfCodeRule({ code: "SALARY_SEND_FEEDBACK" }).then(({ status, data }) => {
|
||||
if (status && data === "1") this.setState({ showFeedbackColumn: data === "1" });
|
||||
});
|
||||
};
|
||||
|
||||
// 撤回
|
||||
handleWithdraw = (record) => {
|
||||
const { payrollStore } = this.props;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,13 @@
|
|||
import React from "react";
|
||||
import { WeaCheckbox, WeaFormItem, WeaInput, WeaLocaleProvider, WeaSearchGroup, WeaSelect } from "ecCom";
|
||||
import {
|
||||
WeaCheckbox,
|
||||
WeaFormItem,
|
||||
WeaInput,
|
||||
WeaInputNumber,
|
||||
WeaLocaleProvider,
|
||||
WeaSearchGroup,
|
||||
WeaSelect
|
||||
} from "ecCom";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { getReplenishRuleSetOptions } from "../../../apis/payroll";
|
||||
import { toJS } from "mobx";
|
||||
|
|
@ -73,7 +81,10 @@ export default class BaseInformForm extends React.Component {
|
|||
|
||||
render() {
|
||||
const { request, options, replenishRuleOptions } = this.state;
|
||||
const { salarySob, name, description, replenishName, replenishRule, reissueRule, msgStatus, emailStatus } = request;
|
||||
const {
|
||||
salarySob, name, description, replenishName, replenishRule, reissueRule, msgStatus, emailStatus,
|
||||
ackFeedbackStatus, autoAckDays, feedbackUrl
|
||||
} = request;
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
|
|
@ -165,6 +176,34 @@ export default class BaseInformForm extends React.Component {
|
|||
onChange={value => this.hanldeChange({ emailStatus: value === "1" })}/>
|
||||
</WeaFormItem>
|
||||
</WeaSearchGroup>
|
||||
<WeaSearchGroup title={getLabel(111, "工资单确认反馈设置")} showGroup needTigger col={1}
|
||||
className="payrollBaseInfoWrapper">
|
||||
<WeaFormItem label={getLabel(111, "启用工资单确认")} labelCol={{ span: 6 }} wrapperCol={{ span: 18 }}>
|
||||
<WeaCheckbox value={ackFeedbackStatus ? "1" : "0"} display="switch"
|
||||
onChange={value => this.hanldeChange({
|
||||
ackFeedbackStatus: value === "1",
|
||||
autoAckDays: 7,
|
||||
feedbackUrl: "/"
|
||||
})}/>
|
||||
</WeaFormItem>
|
||||
{
|
||||
ackFeedbackStatus &&
|
||||
<React.Fragment>
|
||||
<WeaFormItem label={getLabel(111, "自动确认超时天数")} labelCol={{ span: 6 }} wrapperCol={{ span: 18 }}>
|
||||
<WeaInputNumber
|
||||
min={1} value={autoAckDays} viewAttr={3}
|
||||
onChange={autoAckDays => this.hanldeChange({ autoAckDays })}
|
||||
/>
|
||||
</WeaFormItem>
|
||||
<WeaFormItem label={getLabel(111, "反馈流程地址")} labelCol={{ span: 6 }} wrapperCol={{ span: 18 }}>
|
||||
<WeaInput
|
||||
value={feedbackUrl} viewAttr={3}
|
||||
onChange={feedbackUrl => this.hanldeChange({ feedbackUrl })}
|
||||
/>
|
||||
</WeaFormItem>
|
||||
</React.Fragment>
|
||||
}
|
||||
</WeaSearchGroup>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue