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
8a60803f
Commit
8a60803f
authored
Aug 29, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常管理
parent
153a904e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
6 deletions
+107
-6
index.jsx
src/pages/Errormange/index.jsx
+101
-0
fields.js
src/pages/Printer/fields.js
+1
-1
Krjk.jsx
src/pages/Storeboard/Krjk.jsx
+1
-1
fields.js
src/pages/system/Reservoir/fields.js
+4
-4
No files found.
src/pages/Errormange/index.jsx
0 → 100644
View file @
8a60803f
import
React
,
{
useEffect
,
useMemo
,
useRef
,
useState
}
from
"react"
;
import
{
Dropdown
,
Menu
,
Button
,
message
}
from
"antd"
;
import
AutoTable
from
"@/components/AutoTable"
;
import
defaultFields
from
"./fields"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
getPrem
from
"@/utils/getPrem"
;
//权限判断fn
import
{
useReactToPrint
}
from
"react-to-print"
;
import
{
useModel
}
from
"umi"
;
import
PrintDom
from
"./printdom"
;
import
{
PrintQrCode
}
from
"@/components/PrintCode"
;
function
Outstore
(
props
)
{
const
{
initialState
,
setInitialState
}
=
useModel
(
"@@initialState"
);
const
[
activeTabKey
,
onTabChange
]
=
useState
(
"1"
);
const
[
selectKeys
,
setSelectKeys
]
=
useState
([]);
let
[
drawprops
,
setdrawprops
]
=
useState
({
title
:
""
,
visible
:
false
,
onClose
:
()
=>
{
setdrawprops
((
s
)
=>
({
...
s
,
visible
:
false
,
fields
:
{},
}));
},
fields
:
{},
width
:
1200
,
}),
actionRef
=
useRef
(),
ChildRef
=
null
,
printRef
=
useRef
(),
mutiPrintRef
=
useRef
();
//操作完成后刷新
function
reload
()
{
actionRef
.
current
.
reload
();
ChildRef
?.
onRefresh
();
message
.
success
(
"操作成功"
);
setdrawprops
((
s
)
=>
({
...
s
,
visible
:
false
,
fields
:
{},
}));
}
const
handlePrint
=
useReactToPrint
({
content
:
()
=>
printRef
.
current
.
dom
.
current
,
});
const
mutiPrint
=
useReactToPrint
({
content
:
()
=>
mutiPrintRef
.
current
.
dom
.
current
,
});
const
PrintButton
=
(
<
Button
disabled=
{
!
selectKeys
.
length
}
onClick=
{
()
=>
{
mutiPrint
();
}
}
>
打印
</
Button
>
);
useEffect
(()
=>
{
const
detail
=
defaultFields
.
detail
(
setSelectKeys
,
PrintButton
);
setdrawprops
((
s
)
=>
({
...
s
,
...
detail
,
}));
},
[
selectKeys
]);
const
columns
=
useMemo
(()
=>
{
},
[
activeTabKey
]);
const
tableprops
=
{
...
props
,
columns
,
path
:
""
};
return
(
<
div
>
<
div
style=
{
{
position
:
"fixed"
,
bottom
:
-
100000
}
}
>
<
PrintDom
ref=
{
printRef
}
{
...
drawprops
}
/>
</
div
>
<
div
style=
{
{
display
:
"none"
}
}
>
<
PrintQrCode
ref=
{
mutiPrintRef
}
selectedItems=
{
selectKeys
}
/>
</
div
>
<
AutoTable
{
...
tableprops
}
actionRef=
{
actionRef
}
onRef=
{
(
node
)
=>
(
ChildRef
=
node
)
}
></
AutoTable
>
</
div
>
);
}
export
default
Outstore
;
src/pages/Printer/fields.js
View file @
8a60803f
...
...
@@ -161,7 +161,7 @@ export function getColumns(setDrawer, formRef) {
},
fieldProps
:
{
mode
:
"multiple"
,
precision
:
3
,
precision
:
0
,
max
:
999999
,
},
...
...
src/pages/Storeboard/Krjk.jsx
View file @
8a60803f
...
...
@@ -201,7 +201,7 @@ export default ({ data }) => {
style=
{
{
backgroundColor
:
"#9E9E9E"
}
}
className=
"statustitle"
></
div
>
不可
用
停
用
</
div
>
</
div
>
</
div
>
...
...
src/pages/system/Reservoir/fields.js
View file @
8a60803f
...
...
@@ -112,21 +112,21 @@ export default {
type
:
"input"
,
title
:
"排"
,
name
:
[
"row"
],
required
:
fals
e
,
required
:
tru
e
,
},
line
:
{
value
:
null
,
type
:
"input"
,
title
:
"列"
,
name
:
[
"line"
],
required
:
fals
e
,
required
:
tru
e
,
},
level
:
{
value
:
null
,
type
:
"input"
,
title
:
"层"
,
name
:
[
"level"
],
required
:
fals
e
,
required
:
tru
e
,
allowHalf
:
true
,
},
roadway
:
{
...
...
@@ -134,7 +134,7 @@ export default {
type
:
"input"
,
title
:
"巷道"
,
name
:
[
"roadway"
],
required
:
fals
e
,
required
:
tru
e
,
allowHalf
:
true
,
},
...
...
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