@@ -246,6 +248,12 @@ class Index extends Component {
salaryImpDialog: { ...salaryImpDialog, visible: false }
}, () => isFresh && this.calc.onAdSearch(false));
}}/>
+ {/* 金华交投流程审批薪资核算二开*/}
+
{
+ this.setState({
+ JHDialog: { ...JHDialog, visible: false, salaryAcctRecordId: "" }
+ });
+ }}/>
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/jinhuajiaotou/approvalSelectionDialog.js b/pc4mobx/hrmSalary/pages/custom-pages/jinhuajiaotou/approvalSelectionDialog.js
new file mode 100644
index 00000000..3271580a
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/custom-pages/jinhuajiaotou/approvalSelectionDialog.js
@@ -0,0 +1,86 @@
+/*
+ *
+ * 金华交投-发起流程审批薪资核算记录选择弹框
+ * @Author: 黎永顺
+ * @Date: 2024/6/11
+ * @Wechat:
+ * @Email: 971387674@qq.com
+ * @description:
+*/
+import React, { Component } from "react";
+import { inject, observer } from "mobx-react";
+import { WeaDialog, WeaLocaleProvider, WeaTools } from "ecCom";
+import { Button } from "antd";
+import { getSearchs } from "../../../util";
+import { convertToUrlString } from "../../../util/url";
+import { jhjtSelectList } from "../../../apis/custom-apis/jinhuajiaotou";
+import { accountConditions } from "./condition";
+
+const getKey = WeaTools.getKey;
+const getLabel = WeaLocaleProvider.getLabel;
+
+@inject("jhStore")
+@observer
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ conditions: [], loading: false
+ };
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.jhjtSelectList(nextProps);
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) this.props.jhStore.initForm();
+ }
+
+ jhjtSelectList = (props) => {
+ const { jhStore: { form }, salaryAcctRecordId } = props;
+ jhjtSelectList({ salaryAcctRecordId }).then(({ status, data }) => {
+ if (status) {
+ this.setState({
+ conditions: _.map(accountConditions, item => ({
+ ...item,
+ items: _.map(item.items, o => {
+ if (getKey(o) === "salaryAcctRecordId") {
+ return {
+ ...o, label: getLabel(o.lanId, o.label), value: salaryAcctRecordId,
+ options: _.map(data, g => ({ key: g.id.toString(), showname: g.salarySobName }))
+ };
+ }
+ return { ...o };
+ })
+ }))
+ }, () => form.initFormFields(this.state.conditions));
+ }
+ });
+ };
+ save = () => {
+ const { jhStore: { form }, approvalWorkflowUrl } = this.props;
+ form.validateForm().then(f => {
+ if (f.isValid) {
+ const payload = form.getFormParams();
+ window.open(`${approvalWorkflowUrl}&${convertToUrlString(payload)}`, "_blank");
+ } else {
+ f.showErrors();
+ }
+ });
+ };
+
+ render() {
+ const { conditions, loading } = this.state;
+ const { jhStore: { form } } = this.props;
+ return (
+