Commit 66b2a489 authored by krysent's avatar krysent

new

parent ffec3b5e
...@@ -70,8 +70,9 @@ const MySelect = ({ record, value, onChange }) => { ...@@ -70,8 +70,9 @@ const MySelect = ({ record, value, onChange }) => {
<Select <Select
ref={rref} ref={rref}
onChange={handleSelectChange} onChange={handleSelectChange}
allowClear={true}
value={inputValue} value={inputValue}
placeholder="Select an option" placeholder="请选择批次号"
style={{ width: "100%" }} style={{ width: "100%" }}
options={options} options={options}
/> />
...@@ -607,7 +608,8 @@ function Outstore(props) { ...@@ -607,7 +608,8 @@ function Outstore(props) {
{ {
title: ( title: (
<span> <span>
批次号 <b style={{ color: "red" }}>*</b> 批次号
{/* 批次号 <b style={{ color: "red" }}>*</b> */}
</span> </span>
), ),
dataIndex: "materieControlNo", dataIndex: "materieControlNo",
...@@ -628,13 +630,13 @@ function Outstore(props) { ...@@ -628,13 +630,13 @@ function Outstore(props) {
allowClear: true, allowClear: true,
showSearch: true, showSearch: true,
}, },
formItemProps: () => { // formItemProps: () => {
return { // return {
rules: [{ required: true, message: "此项为必填项" }], // rules: [{ required: true, message: "此项为必填项" }],
}; // };
}, // },
renderFormItem: ({ entry }) => { renderFormItem: ({ entry }) => {
if (entry?.materieControlNo) { if (entry?.isCollect) {
return <span>{entry?.materieControlNo}</span>; return <span>{entry?.materieControlNo}</span>;
} else { } else {
return <MySelect record={entry} />; 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