custom/常州光阳摩托车有限公司-聚才林
This commit is contained in:
parent
ef1c529941
commit
725ad320cb
|
|
@ -54,6 +54,25 @@
|
|||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-radio-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
& > label:first-child {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
& > label {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
& > span:last-child {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.baseSettingRight {
|
||||
|
|
@ -249,7 +268,7 @@
|
|||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 20px!important;
|
||||
font-size: 20px !important;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaCheckbox, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect, WeaTextarea } from "ecCom";
|
||||
import { Col, Row } from "antd";
|
||||
import { Col, Radio, Row } from "antd";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { baseSettingFormItem } from "../config";
|
||||
import { getLedgerBasicForm } from "../../../apis/ledger";
|
||||
|
|
@ -22,6 +22,8 @@ import { commonEnumList } from "../../../apis/ruleconfig";
|
|||
import moment from "moment";
|
||||
import "./index.less";
|
||||
|
||||
const RadioGroup = Radio.Group;
|
||||
|
||||
@inject("taxAgentStore")
|
||||
@observer
|
||||
class LedgerBaseSetting extends Component {
|
||||
|
|
@ -40,7 +42,11 @@ class LedgerBaseSetting extends Component {
|
|||
attendCycleFromDay: "1",
|
||||
socialSecurityCycleType: "3",
|
||||
description: "",
|
||||
canEdit: false
|
||||
canEdit: false,
|
||||
// 二开:常州光阳相关
|
||||
attendType: "0",
|
||||
attendCycleType2: "3",
|
||||
attendCycleEndDay: "25"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -79,7 +85,11 @@ class LedgerBaseSetting extends Component {
|
|||
attendCycleFromDay: "1",
|
||||
socialSecurityCycleType: "3",
|
||||
description: "",
|
||||
canEdit: "true"
|
||||
canEdit: "true",
|
||||
// 二开:常州光阳相关
|
||||
attendType: "0",
|
||||
attendCycleType2: "3",
|
||||
attendCycleEndDay: "25"
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
@ -212,22 +222,62 @@ export default LedgerBaseSetting;
|
|||
|
||||
const CustomSelect = (props) => {
|
||||
const { list, baseInfo, onChange, inputStr } = props;
|
||||
const { canEdit } = baseInfo;
|
||||
const { canEdit, attendType, attendCycleType2, attendCycleEndDay } = baseInfo;
|
||||
const selectInfo = buildEditBasicInfo(baseInfo);
|
||||
return <Row gutter={10} key={inputStr}>
|
||||
return <React.Fragment>
|
||||
{
|
||||
_.map(list, item => {
|
||||
const { key, options = [] } = item;
|
||||
return <Col span={6}>
|
||||
<WeaSelect value={baseInfo[key]} options={options} viewAttr={3}
|
||||
disabled={canEdit !== "true"}
|
||||
onChange={(v) => onChange(key, v)}/>
|
||||
</Col>;
|
||||
})
|
||||
inputStr === "attendCycleStrObj" ?
|
||||
<RadioGroup value={attendType} onChange={(e) => onChange("attendType", e.target.value)}>
|
||||
<Radio key="0" value="0">
|
||||
<Row gutter={10} key={inputStr}>
|
||||
{
|
||||
_.map(list, item => {
|
||||
const { key, options = [] } = item;
|
||||
return <Col span={6}>
|
||||
<WeaSelect value={baseInfo[key]} options={options} viewAttr={3}
|
||||
disabled={canEdit !== "true"}
|
||||
onChange={(v) => onChange(key, v)}/>
|
||||
</Col>;
|
||||
})
|
||||
}
|
||||
<Col span={12}
|
||||
className="desc">{inputStr === "salaryCycleStrObj" ? selectInfo.salaryCycleInfo.salaryPeriodTip : selectInfo.attendCycleInfo.attendancePeriodTip}</Col>
|
||||
</Row>
|
||||
</Radio>
|
||||
<Radio key="1" value="1">
|
||||
<Row gutter={10}>
|
||||
{
|
||||
_.map(list, (item, o) => {
|
||||
const { options = [] } = item;
|
||||
return <Col span={6} offset={o === 1 && 1}>
|
||||
{o === 1 && <span
|
||||
style={{ marginRight: 8 }}>至{_.find(list[0].options, o => o.key === attendCycleType2).showname}</span>}
|
||||
<WeaSelect options={options} viewAttr={3} disabled={canEdit !== "true"}
|
||||
value={o === 0 ? attendCycleType2 : attendCycleEndDay}
|
||||
onChange={v => onChange(o === 0 ? "attendCycleType2" : "attendCycleEndDay", v)}/>
|
||||
{o === 0 && <span style={{ marginLeft: 8 }}>1号</span>}
|
||||
</Col>;
|
||||
})
|
||||
}
|
||||
</Row>
|
||||
</Radio>
|
||||
</RadioGroup> :
|
||||
<Row gutter={10} key={inputStr}>
|
||||
{
|
||||
_.map(list, item => {
|
||||
const { key, options = [] } = item;
|
||||
return <Col span={6}>
|
||||
<WeaSelect value={baseInfo[key]} options={options} viewAttr={3}
|
||||
disabled={canEdit !== "true"}
|
||||
onChange={(v) => onChange(key, v)}/>
|
||||
</Col>;
|
||||
})
|
||||
}
|
||||
<Col span={12}
|
||||
className="desc">{inputStr === "salaryCycleStrObj" ? selectInfo.salaryCycleInfo.salaryPeriodTip : selectInfo.attendCycleInfo.attendancePeriodTip}</Col>
|
||||
</Row>
|
||||
}
|
||||
<Col span={12}
|
||||
className="desc">{inputStr === "salaryCycleStrObj" ? selectInfo.salaryCycleInfo.salaryPeriodTip : selectInfo.attendCycleInfo.attendancePeriodTip}</Col>
|
||||
</Row>;
|
||||
</React.Fragment>;
|
||||
};
|
||||
const MonthCycleDesc = (props) => {
|
||||
const { taxCycleType, socialSecurityCycleType } = props;
|
||||
|
|
|
|||
Loading…
Reference in New Issue