-
- 如果:调薪生效日期在
- this.setState({ dayOfMonth })}
- />
- (含)之前
-
-
- 计薪规则为:
- this.setState({ beforeAdjustmentType: e.target.value })}
- value={beforeAdjustmentType}>
- 取调整后薪资
- 分段计薪
- 取平均
-
-
-
-
否则:调薪生效日期在{dayOfMonth}号之后
-
-
计薪规则为:
-
this.setState({ afterAdjustmentType: e.target.value })}
- value={afterAdjustmentType}>
- 取调整前薪资
- 分段计薪
- 取平均
-
-
+ const { title, visible, ledgerStore: { ruleForm } } = this.props;
+ const buttons = [
];
+ const itemRender = {
+ salaryItemId: (field, textAreaProps, form, formParams) => {
+ return (
);
+ },
+ dayOfMonth: () => null
+ };
+ const childrenComponents = {
+ salaryItemId: () => {
+ const coms = [], { fieldMap } = ruleForm;
+ coms.push(
+
+
+
+
{fieldMap["dayOfMonth"].label}
-
+ );
+ return [
+ {
+ com: {coms}
,
+ col: 1
+ }
+ ];
+ }
+ };
+ return (
+
+
+ {/**/}
+ {/* */}
+ {/* this.setState({ salaryItemId, salaryItemName })}*/}
+ {/* />*/}
+ {/* */}
+ {/* } labelCol={{ span: 4 }} wrapperCol={{ span: 20 }} colon={false}>*/}
+ {/* */}
+ {/*
*/}
+ {/* 如果:调薪生效日期在*/}
+ {/* this.setState({ dayOfMonth })}*/}
+ {/* />*/}
+ {/* (含)之前*/}
+ {/*
*/}
+ {/*
*/}
+ {/* 计薪规则为:*/}
+ {/* this.setState({ beforeAdjustmentType: e.target.value })}*/}
+ {/* value={beforeAdjustmentType}>*/}
+ {/* 取调整后薪资*/}
+ {/* 分段计薪*/}
+ {/* 取平均*/}
+ {/* */}
+ {/* */}
+ {/*
*/}
+ {/*
否则:调薪生效日期在{dayOfMonth}号之后
*/}
+ {/*
*/}
+ {/* 计薪规则为:*/}
+ {/* this.setState({ afterAdjustmentType: e.target.value })}*/}
+ {/* value={afterAdjustmentType}>*/}
+ {/* 取调整前薪资*/}
+ {/* 分段计薪*/}
+ {/* 取平均*/}
+ {/* */}
+ {/* */}
+ {/*
*/}
+ {/*
*/}
+ {/* */}
+ {/**/}
);
}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/config.js b/pc4mobx/hrmSalary/pages/ledgerPage/config.js
index 214982ed..e6726805 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/config.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/config.js
@@ -859,3 +859,32 @@ export const classifyConditions = [
defaultshow: true
}
];
+export const ruleConditions = [//调薪计薪规则项表单
+ {
+ items: [
+ {
+ conditionType: "SELECT",
+ domkey: ["salaryItemId"],
+ fieldcol: 8,
+ rules: "required|string",
+ label: "薪资项目",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ multiple: true,
+ viewAttr: 3
+ },
+ {
+ conditionType: "SELECT",
+ domkey: ["dayOfMonth"],
+ fieldcol: 6,
+ label: "如果:调薪生效日期在",
+ lanId: 111,
+ labelcol: 0,
+ value: "",
+ viewAttr: 2
+ }
+ ],
+ defaultshow: true
+ }
+];
diff --git a/pc4mobx/hrmSalary/stores/ledger.js b/pc4mobx/hrmSalary/stores/ledger.js
index 0411826d..6aaff1b8 100644
--- a/pc4mobx/hrmSalary/stores/ledger.js
+++ b/pc4mobx/hrmSalary/stores/ledger.js
@@ -17,7 +17,8 @@ export class LedgerStore {
@action initAARForm = (v) => this.AARForm = new WeaForm();//重置核算审批规则form
@action initAARClassifyForm = (v) => this.AARClassifyForm = new WeaForm();//重置审批规则分类编辑form
-
+ @observable ruleForm = new WeaForm(); // 调薪计薪规则项form
+ @action initRuleForm = (v) => this.ruleForm = new WeaForm();//重置调薪计薪规则项form
/*******************************************************/
@observable tableStore = new TableStore(); // new table