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
9335a317
Commit
9335a317
authored
Aug 02, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出库
parent
932cd13d
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2119 additions
and
328 deletions
+2119
-328
routes.js
config/routes.js
+5
-0
index.jsx
src/components/EditTable/index.jsx
+0
-1
index.jsx
src/components/InitForm/index.jsx
+32
-2
fields.js
src/pages/Movestore/fields.js
+1095
-0
index.jsx
src/pages/Movestore/index.jsx
+537
-0
index.less
src/pages/Movestore/index.less
+10
-0
printdom.jsx
src/pages/Movestore/printdom.jsx
+209
-0
index.jsx
src/pages/outsetstore/Otheroutstore/index.jsx
+230
-324
index.jsx
src/pages/system/Reservoir/index.jsx
+1
-1
No files found.
config/routes.js
View file @
9335a317
...
...
@@ -73,6 +73,11 @@ export default [
name
:
"任务单管理"
,
component
:
"./Task"
,
},
{
path
:
"/wms/move"
,
name
:
"移库单管理"
,
component
:
"./Movestore"
,
},
{
component
:
"./404"
,
},
...
...
src/components/EditTable/index.jsx
View file @
9335a317
...
...
@@ -21,7 +21,6 @@ const EditTable = ({
update
()
}
},[
value
])
console
.
log
(
columns
[
0
]);
return
(
<
EditableProTable
...
...
src/components/InitForm/index.jsx
View file @
9335a317
...
...
@@ -144,8 +144,6 @@ let InitForm = ({
form
=
formRef
?
formRef
:
form
;
useEffect
(()
=>
{
let
Doms
=
[],
klink
=
{},
...
...
@@ -1261,6 +1259,38 @@ let InitForm = ({
</
Divider
>
</
Col
>
)
:
null
;
}
else
if
(
item
.
type
==
"Linktable"
)
{
let
extraparams
=
getTableLinked
(
item
);
//声明需要被联动
return
!
extraprops
.
hides
?
(
<
Col
key=
{
i
}
{
...
getCol
(
item
.
col
)}
>
<
Form
.
Item
style=
{
{}
}
label=
{
item
.
title
}
name=
{
item
.
name
[
0
]
}
rules=
{
[
{
required
:
item
.
required
,
message
:
`请输入${item.title}`
,
},
]
}
>
<
EditTable
columns=
{
item
.
columns
}
extraparams=
{
extraparams
}
path=
{
item
.
path
}
editable=
{
item
.
editable
}
rowKey=
{
item
.
rowKey
}
rowName=
{
item
.
rowName
}
defaultdataSource=
{
item
.
dataSource
}
pagination=
{
item
.
pagination
}
recordCreatorProps=
{
item
.
recordCreatorProps
}
value=
{
item
.
value
}
maxLength=
{
item
.
maxLength
}
linkconfig=
{
item
.
linkconfig
}
></
EditTable
>
</
Form
.
Item
>
</
Col
>
)
:
null
;
}
})
}
{
bottomNode
&&
<
Col
span=
{
24
}
>
{
bottomNode
}
</
Col
>
}
...
...
src/pages/Movestore/fields.js
0 → 100644
View file @
9335a317
This diff is collapsed.
Click to expand it.
src/pages/Movestore/index.jsx
0 → 100644
View file @
9335a317
This diff is collapsed.
Click to expand it.
src/pages/Movestore/index.less
0 → 100644
View file @
9335a317
.sitelayout {
min-height: calc(100vh - 98px) !important;
.sitelayoutbackground {
background: #fff;
}
}
.title{
margin: 0px;
}
\ No newline at end of file
src/pages/Movestore/printdom.jsx
0 → 100644
View file @
9335a317
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
React
,
{
useState
,
useImperativeHandle
,
forwardRef
,
useRef
,
}
from
"react"
;
import
{
useEffect
}
from
"react"
;
import
{
ScrollBoard
}
from
"@jiaminghi/data-view-react"
;
import
{
useWindowSize
}
from
"@/utils/windowsize"
;
const
pageStyle
=
`
@media all {
.page-break {
display: none;
}
}
@media print {
html, body {
height: initial !important;
overflow: initial !important;
position:relative;
-webkit-print-color-adjust: exact;
word-break: break-all;
}
}
@media print {
.page-break {
margin-top:0;
display: block;
page-break-before: auto;
}
}
@media print {
.page-noprint {
display: none !important;
}
}
@page {
size: auto;
margin: 0px;
}
`
;
let
columns
=
[
{
title
:
"物料编码 - 名称"
,
dataIndex
:
"materieName"
,
key
:
"materieName"
,
search
:
false
,
render
:
(
dom
,
row
)
=>
{
return
(
row
.
materieCode
??
""
)
+
" - "
+
(
row
.
materieName
??
""
);
},
},
{
title
:
"出库数量"
,
dataIndex
:
"outstroeNum"
,
key
:
"outstroeNum"
,
search
:
false
,
},
{
title
:
"库存单位"
,
dataIndex
:
"productionUnitName"
,
key
:
"productionUnitName"
,
search
:
false
,
width
:
60
,
},
];
function
PrintDom
({
totalPath
,
val
,
totalParams
,
totalCard
},
ref
)
{
console
.
log
(
totalCard
);
let
printRef
=
useRef
();
const
[
data
,
setdata
]
=
useState
({});
useImperativeHandle
(
ref
,
()
=>
({
dom
:
printRef
,
}));
useEffect
(()
=>
{
if
(
val
==
"detail"
)
{
doFetch
({
url
:
totalPath
,
params
:
totalParams
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"0000"
)
{
setdata
(
res
?.
data
?.
data
);
}
});
}
else
{
}
},
[
val
]);
let
datas
=
data
?.
materialList
?
data
?.
materialList
.
map
((
it
)
=>
{
return
columns
.
map
((
item
)
=>
{
if
(
item
.
render
)
{
return
item
.
render
(
it
,
it
);
}
else
{
return
it
[
item
.
dataIndex
];
}
});
})
:
[];
return
(
<>
<
style
type=
"text/css"
media=
"print"
>
{
pageStyle
}
</
style
>
{
val
==
"detail"
&&
(
<
div
ref=
{
printRef
}
style=
{
{
width
:
"100%"
,
minHeight
:
"100%"
,
overflow
:
"inherit"
,
position
:
"relative"
,
}
}
>
<
div
style=
{
{
display
:
"flex"
,
justifyContent
:
"space-between"
,
alignItems
:
"center"
,
padding
:
"0 2%"
,
paddingBottom
:
12
,
}
}
>
<
h1
style=
{
{
width
:
"100%"
,
fontSize
:
40
,
marginTop
:
"-6px"
,
}
}
>
出库工单
</
h1
>
<
img
style=
{
{
width
:
300
,
height
:
"auto"
,
}
}
src=
{
data
?.
qrCodeUrl
}
alt=
""
/>
</
div
>
<
div
style=
{
{
display
:
"flex"
,
flexWrap
:
"wrap"
,
paddingLeft
:
"2%"
,
marginTop
:
24
,
}
}
>
{
totalCard
&&
totalCard
[
0
].
itemData
.
filter
((
it
)
=>
!
(
it
.
noshow
===
true
))
.
map
((
it
)
=>
{
return
(
<
div
style=
{
{
width
:
it
.
noshow
??
"32%"
,
backgroundColor
:
"#f9f9f9"
,
marginRight
:
"1%"
,
marginBottom
:
10
,
padding
:
"4px"
,
fontSize
:
20
,
overflow
:
"hidden"
,
}
}
>
<
b
>
{
it
.
title
}
:
</
b
>
<
span
>
{
data
[
it
.
key
]
||
"-"
}
</
span
>
</
div
>
);
})
}
</
div
>
<
div
style=
{
{
padding
:
"4px 2%"
,
position
:
"relative"
,
width
:
"100%"
,
overflow
:
"hidden"
,
}
}
id=
"large"
>
<
div
style=
{
{
marginBottom
:
18
,
}
}
>
<
b
>
{
totalCard
&&
totalCard
[
1
].
cardTitle
}
</
b
>
</
div
>
<
ScrollBoard
config=
{
{
header
:
columns
.
map
((
it
)
=>
it
.
title
),
data
:
datas
,
rowNum
:
datas
.
length
,
hoverPause
:
false
,
}
}
/>
</
div
>
</
div
>
)
}
</>
);
}
export
default
forwardRef
(
PrintDom
);
src/pages/outsetstore/Otheroutstore/index.jsx
View file @
9335a317
This diff is collapsed.
Click to expand it.
src/pages/system/Reservoir/index.jsx
View file @
9335a317
...
...
@@ -394,7 +394,7 @@ const Materiel = (props) => {
title
:
"确认删除该库位?"
,
onConfirm
:
()
=>
{
run
({
url
:
"/ngic-
workmanship/pmMaterie
/deleteById"
,
url
:
"/ngic-
auth/sysStorePosition
/deleteById"
,
params
:
{
id
:
record
.
id
},
});
},
...
...
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