custom-联特

This commit is contained in:
lys 2025-04-28 11:12:07 +08:00
parent 8d1511159a
commit 68663087ee
2 changed files with 27 additions and 1 deletions

View File

@ -232,7 +232,8 @@ const CustomSelect = (props) => {
const { key, options = [] } = item;
return <Col span={6}>
<WeaSelect value={baseInfo[key]} options={options} viewAttr={3}
disabled={!admin} onChange={(v) => onChange(key, v)}/>
disabled={!admin || (key === "attendCycleFromDay" && (baseInfo["attendCycleType"] === "10" || baseInfo["attendCycleType"] === "11"))}
onChange={(v) => onChange(key, v)}/>
</Col>;
})
}
@ -303,6 +304,21 @@ const buildEditBasicInfo = (editBasicInfo) => {
case "4" :
tmpV["attendCycleInfo"] = buildAttendanceInfo(editBasicInfo, 1, nowYear, nowMonth);
break;
//联特二开本季度10/上季度11
case "10" :
tmpV["attendCycleInfo"] = {
attendancePeriodEnd: "本季度",
attendancePeriodStart: "",
attendancePeriodTip: "至本季度最后一天"
};
break;
case "11" :
tmpV["attendCycleInfo"] = {
attendancePeriodEnd: "上季度",
attendancePeriodStart: "",
attendancePeriodTip: "至上季度最后一天"
};
break;
}
return tmpV;
};

View File

@ -361,6 +361,16 @@ export const baseSettingFormItem = [
key: "4",
selected: false,
showname: "下月"
},
{
key: "10",
selected: true,
showname: "本季度"
},
{
key: "11",
selected: false,
showname: "上季度"
}
]
},