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
5075c95d
Commit
5075c95d
authored
Aug 14, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsade
parent
facee4fe
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1374 additions
and
248 deletions
+1374
-248
index.jsx
src/components/DrawInitForm/index.jsx
+11
-1
index.jsx
src/components/EditTable/index.jsx
+100
-91
index.jsx
src/pages/insertstore/Otherinstore/index.jsx
+1262
-156
index_c.jsx
src/pages/insertstore/Otherinstore/index_c.jsx
+1
-0
No files found.
src/components/DrawInitForm/index.jsx
View file @
5075c95d
/*
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-14 15:27:40
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-14 15:43:08
* @FilePath: /wms/src/components/DrawInitForm/index.jsx
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
*/
import
InitForm
from
"../InitForm"
;
import
InitForm
from
"../InitForm"
;
import
{
Drawer
}
from
"antd"
;
import
{
Drawer
}
from
"antd"
;
import
React
,
{
useState
,
memo
}
from
"react"
;
import
React
,
{
useState
,
memo
}
from
"react"
;
...
@@ -40,7 +50,7 @@ function DrawInitForm(props) {
...
@@ -40,7 +50,7 @@ function DrawInitForm(props) {
style=
{
{
position
:
"absolute"
,
transform
:
"translateX(0)"
,
maxWidth
:
"100%"
}
}
style=
{
{
position
:
"absolute"
,
transform
:
"translateX(0)"
,
maxWidth
:
"100%"
}
}
width=
{
props
.
val
==
"detail"
?
1000
:
props
.
width
}
width=
{
props
.
val
==
"detail"
?
1000
:
props
.
width
}
{
...
props
}
{
...
props
}
destroyOnClose=
{
tru
e
}
destroyOnClose=
{
fals
e
}
>
>
{
props
.
val
==
"only"
&&
props
.
children
}
{
props
.
val
==
"only"
&&
props
.
children
}
{
props
.
val
==
"only"
?
null
:
props
.
val
==
"detail"
?
<
Details
{
...
detailprops
}
></
Details
>
:
<
InitForm
{
...
newProps
}
></
InitForm
>
}
{
props
.
val
==
"only"
?
null
:
props
.
val
==
"detail"
?
<
Details
{
...
detailprops
}
></
Details
>
:
<
InitForm
{
...
newProps
}
></
InitForm
>
}
...
...
src/components/EditTable/index.jsx
View file @
5075c95d
import
React
,
{
useEffect
,
use
Ref
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
use
Memo
,
useRef
,
useState
}
from
"react"
;
import
{
EditableProTable
}
from
"@ant-design/pro-table"
;
import
{
EditableProTable
}
from
"@ant-design/pro-table"
;
import
{
useUpdate
}
from
"ahooks"
;
import
{
useUpdate
}
from
"ahooks"
;
...
@@ -13,20 +13,29 @@ const EditTable = ({
...
@@ -13,20 +13,29 @@ const EditTable = ({
style
,
style
,
})
=>
{
})
=>
{
const
editorFormRef
=
useRef
();
const
editorFormRef
=
useRef
();
console
.
log
(
columns
);
//console.log(columns);
const
[
show
,
setshow
]
=
useState
(
true
);
const
[
addon
,
setaddon
]
=
useState
(
0
);
useEffect
(()
=>
{
setshow
(
false
);
const
newcolumns
=
useMemo
(()
=>
{
setTimeout
(()
=>
{
return
columns
?.
map
((
item
)
=>
{
setshow
(
true
);
return
item
?.
params
},
1200
);
?
{
},
[]);
...
item
,
params
:
{
...
item
.
params
,
addon
,
},
}
:
{
...
item
,
};
});
},
[
addon
]);
return
(
return
(
show
&&
(
<
EditableProTable
<
EditableProTable
style=
{
{
...(
style
??
{})
}
}
style=
{
{
...(
style
??
{})
}
}
columns=
{
columns
}
columns=
{
new
columns
}
rowKey=
{
rowKey
}
rowKey=
{
rowKey
}
value=
{
value
||
[]
}
value=
{
value
||
[]
}
onChange=
{
onChange
}
onChange=
{
onChange
}
...
@@ -48,6 +57,7 @@ const EditTable = ({
...
@@ -48,6 +57,7 @@ const EditTable = ({
return
[
defaultDoms
.
delete
];
return
[
defaultDoms
.
delete
];
},
},
onValuesChange
:
async
(
record
,
recordList
)
=>
{
onValuesChange
:
async
(
record
,
recordList
)
=>
{
setaddon
(
s
=>
Math
.
random
()
*
1000000
);
let
{
urlchangeval
}
=
linkconfig
??
{};
let
{
urlchangeval
}
=
linkconfig
??
{};
let
newvalue
=
[...
recordList
];
let
newvalue
=
[...
recordList
];
if
(
urlchangeval
&&
record
)
{
if
(
urlchangeval
&&
record
)
{
...
@@ -114,7 +124,6 @@ const EditTable = ({
...
@@ -114,7 +124,6 @@ const EditTable = ({
}
}
}
}
maxLength=
{
maxLength
??
1000
}
maxLength=
{
maxLength
??
1000
}
/>
/>
)
);
);
};
};
...
...
src/pages/insertstore/Otherinstore/index.jsx
View file @
5075c95d
This diff is collapsed.
Click to expand it.
src/pages/insertstore/Otherinstore/index_c.jsx
View file @
5075c95d
...
@@ -340,6 +340,7 @@ function Instore(props) {
...
@@ -340,6 +340,7 @@ function Instore(props) {
key
:
"labelId"
,
key
:
"labelId"
,
valueType
:
"select"
,
valueType
:
"select"
,
width
:
180
,
width
:
180
,
params
:
{},
request
:
async
(
params
)
=>
{
request
:
async
(
params
)
=>
{
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieLabel/selectionByStatus"
,
url
:
"/ngic-workmanship/wmsMaterieLabel/selectionByStatus"
,
...
...
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