Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
wms
Commits
66b2a489
Commit
66b2a489
authored
1 year ago
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
ffec3b5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
index.jsx
src/pages/outsetstore/Otheroutstore/index.jsx
+10
-8
No files found.
src/pages/outsetstore/Otheroutstore/index.jsx
View file @
66b2a489
...
@@ -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
}
/>;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment