Commit 66b2a489 authored by krysent's avatar krysent

new

parent ffec3b5e
......@@ -70,8 +70,9 @@ const MySelect = ({ record, value, onChange }) => {
<Select
ref={rref}
onChange={handleSelectChange}
allowClear={true}
value={inputValue}
placeholder="Select an option"
placeholder="请选择批次号"
style={{ width: "100%" }}
options={options}
/>
......@@ -607,7 +608,8 @@ function Outstore(props) {
{
title: (
<span>
批次号 <b style={{ color: "red" }}>*</b>
批次号
{/* 批次号 <b style={{ color: "red" }}>*</b> */}
</span>
),
dataIndex: "materieControlNo",
......@@ -628,13 +630,13 @@ function Outstore(props) {
allowClear: true,
showSearch: true,
},
formItemProps: () => {
return {
rules: [{ required: true, message: "此项为必填项" }],
};
},
// formItemProps: () => {
// return {
// rules: [{ required: true, message: "此项为必填项" }],
// };
// },
renderFormItem: ({ entry }) => {
if (entry?.materieControlNo) {
if (entry?.isCollect) {
return <span>{entry?.materieControlNo}</span>;
} else {
return <MySelect record={entry} />;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment