custom/常州光阳摩托车有限公司-聚才林
This commit is contained in:
parent
e1738e7fd5
commit
394fd3abc6
|
|
@ -5,7 +5,7 @@
|
|||
* Date: 2022/12/9
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaCheckbox, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect, WeaTextarea } from "ecCom";
|
||||
import { WeaCheckbox, WeaFormItem, WeaHelpfulTip, WeaInput, WeaLocaleProvider, WeaSelect, WeaTextarea } from "ecCom";
|
||||
import { Col, Radio, Row } from "antd";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { baseSettingFormItem } from "../config";
|
||||
|
|
@ -23,6 +23,7 @@ import moment from "moment";
|
|||
import "./index.less";
|
||||
|
||||
const RadioGroup = Radio.Group;
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
@inject("taxAgentStore")
|
||||
@observer
|
||||
|
|
@ -222,7 +223,8 @@ export default LedgerBaseSetting;
|
|||
|
||||
const CustomSelect = (props) => {
|
||||
const { list, baseInfo, onChange, inputStr } = props;
|
||||
const { canEdit, attendType, attendCycleType2, attendCycleEndDay } = baseInfo;
|
||||
const { canEdit, attendType = "1", attendCycleType2 = "3", attendCycleEndDay = "25" } = baseInfo;
|
||||
console.log(baseInfo,attendType, attendCycleType2, attendCycleEndDay)
|
||||
const selectInfo = buildEditBasicInfo(baseInfo);
|
||||
return <React.Fragment>
|
||||
{
|
||||
|
|
@ -251,7 +253,7 @@ const CustomSelect = (props) => {
|
|||
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>}
|
||||
style={{ marginRight: 8 }}>至{attendCycleType2 ? _.find(list[0].options, o => o.key === attendCycleType2).showname : getLabel(111, "本月")}</span>}
|
||||
<WeaSelect options={options} viewAttr={3} disabled={canEdit !== "true"}
|
||||
value={o === 0 ? attendCycleType2 : attendCycleEndDay}
|
||||
onChange={v => onChange(o === 0 ? "attendCycleType2" : "attendCycleEndDay", v)}/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue