custom/陕西万众
This commit is contained in:
parent
c221ce3a23
commit
637e98f0e8
|
|
@ -40,7 +40,9 @@ class LedgerBaseSetting extends Component {
|
|||
attendCycleFromDay: "1",
|
||||
socialSecurityCycleType: "3",
|
||||
description: "",
|
||||
canEdit: false
|
||||
canEdit: false,
|
||||
// 陕西万众二开: 工资单审批流程地址
|
||||
wzApprovalUrl: ""
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -79,7 +81,8 @@ class LedgerBaseSetting extends Component {
|
|||
attendCycleFromDay: "1",
|
||||
socialSecurityCycleType: "3",
|
||||
description: "",
|
||||
canEdit: "true"
|
||||
canEdit: "true",
|
||||
wzApprovalUrl: ""
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
@ -176,8 +179,8 @@ class LedgerBaseSetting extends Component {
|
|||
>
|
||||
{
|
||||
type === "INPUT" ?
|
||||
<WeaInput value={settingBaseInfo[key]} viewAttr={3} disabled={canEdit !== "true"}
|
||||
onChange={(v) => this.handleChangeField(key, v)}/> :
|
||||
<WeaInput value={settingBaseInfo[key]} viewAttr={key !== "wzApprovalUrl" ? 3 : 2}
|
||||
disabled={canEdit !== "true"} onChange={(v) => this.handleChangeField(key, v)}/> :
|
||||
type === "TEXTAREA" ?
|
||||
<WeaTextarea value={settingBaseInfo[key]} disabled={canEdit !== "true"}
|
||||
onChange={(v) => this.handleChangeField(key, v)}/> :
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class LedgerSlide extends Component {
|
|||
saveLedgerBasic = () => {
|
||||
const { baseSettingInfo, current } = this.state;
|
||||
const { editId } = this.props;
|
||||
const { description, canEdit, ...extra } = baseSettingInfo;
|
||||
const { description, canEdit, wzApprovalUrl, ...extra } = baseSettingInfo;
|
||||
const bool = _.every(Object.keys(extra), key => !!extra[key]);
|
||||
if (!bool || _.isEmpty(baseSettingInfo)) {
|
||||
Modal.warning({
|
||||
|
|
|
|||
|
|
@ -556,6 +556,11 @@ export const baseSettingFormItem = [
|
|||
key: "description",
|
||||
label: "备注",
|
||||
type: "TEXTAREA"
|
||||
},
|
||||
{
|
||||
key: "wzApprovalUrl",
|
||||
label: "发放审批流程地址",
|
||||
type: "INPUT"
|
||||
}
|
||||
];
|
||||
export const monthDays = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue