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
1b957ba3
Commit
1b957ba3
authored
Aug 11, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
helo
parent
f4cb1546
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
24 deletions
+33
-24
index.jsx
src/pages/Printer/index.jsx
+1
-0
index.jsx
src/pages/craft/Materiel/index.jsx
+4
-3
index.jsx
src/pages/insertstore/Otherinstore/index.jsx
+28
-21
No files found.
src/pages/Printer/index.jsx
View file @
1b957ba3
...
@@ -172,6 +172,7 @@ const Station = (props) => {
...
@@ -172,6 +172,7 @@ const Station = (props) => {
// url: "/ngic-auth/sysStation/save",
// url: "/ngic-auth/sysStation/save",
// params: { ...newfields, ...difrid },
// params: { ...newfields, ...difrid },
// });
// });
reload
()
};
};
const
showConfirm
=
()
=>
{
const
showConfirm
=
()
=>
{
...
...
src/pages/craft/Materiel/index.jsx
View file @
1b957ba3
...
@@ -371,10 +371,10 @@ const Materiel = (props) => {
...
@@ -371,10 +371,10 @@ const Materiel = (props) => {
formRefs
formRefs
.
validateFields
()
.
validateFields
()
.
then
((
secondFields
)
=>
{
.
then
((
secondFields
)
=>
{
console
.
log
(
secondFields
);
console
.
log
(
"表单的fields"
,
secondFields
);
let
secondFieldsKeys
=
Object
.
keys
(
secondFields
);
let
secondFieldsKeys
=
Object
.
keys
(
secondFields
);
console
.
log
(
"defaultSpecificFileds"
,
defaultSpecificFileds
);
console
.
log
(
"defaultSpecificFileds"
,
defaultSpecificFileds
);
let
materieCharList
=
default
SpecificFile
ds
.
map
((
it
)
=>
{
let
materieCharList
=
default
CommonFiel
ds
.
map
((
it
)
=>
{
if
(
secondFieldsKeys
.
indexOf
(
it
.
fieldsKey
)
!=
-
1
)
{
if
(
secondFieldsKeys
.
indexOf
(
it
.
fieldsKey
)
!=
-
1
)
{
it
.
fieldRealValue
=
secondFields
[
it
.
fieldsKey
];
it
.
fieldRealValue
=
secondFields
[
it
.
fieldsKey
];
}
}
...
@@ -395,6 +395,7 @@ const Materiel = (props) => {
...
@@ -395,6 +395,7 @@ const Materiel = (props) => {
};
};
return
el
;
return
el
;
});
});
console
.
log
(
"materieCharList:"
,
materieCharList
);
let
materieProductUnitList
=
let
materieProductUnitList
=
firstValues
?.
materieProductUnitList
?.
map
((
it
)
=>
{
firstValues
?.
materieProductUnitList
?.
map
((
it
)
=>
{
return
{
return
{
...
...
src/pages/insertstore/Otherinstore/index.jsx
View file @
1b957ba3
...
@@ -236,18 +236,6 @@ function Instore(props) {
...
@@ -236,18 +236,6 @@ function Instore(props) {
}));
}));
}
}
const
getPCHlist
=
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieLabel/selectionByStatus"
,
params
:
{
status
:
"1"
},
});
return
res
?.
data
?.
dataList
;
};
useEffect
(()
=>
{
getPCHlist
();
},
[
drawprops
?.
visible
]);
const
handlePrint
=
useReactToPrint
({
const
handlePrint
=
useReactToPrint
({
content
:
()
=>
printRef
.
current
.
dom
.
current
,
content
:
()
=>
printRef
.
current
.
dom
.
current
,
});
});
...
@@ -255,8 +243,26 @@ function Instore(props) {
...
@@ -255,8 +243,26 @@ function Instore(props) {
const
mutiPrint
=
useReactToPrint
({
const
mutiPrint
=
useReactToPrint
({
content
:
()
=>
mutiPrintRef
.
current
.
dom
.
current
,
content
:
()
=>
mutiPrintRef
.
current
.
dom
.
current
,
});
});
const
[
PchList
,
setPchList
]
=
useState
();
useEffect
(()
=>
{
if
(
drawprops
?.
visible
)
{
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieLabel/selectionByStatus"
,
params
:
{
status
:
"1"
},
}).
then
((
res
)
=>
{
setPchList
(
res
?.
data
?.
dataList
);
});
}
},
[
drawprops
?.
visible
]);
const
defaultFields
=
useMemo
(()
=>
{
const
defaultFields
=
useMemo
(()
=>
{
console
.
log
(
1
);
let
option
=
{
options
:
PchList
,
allowClear
:
true
,
showSearch
:
true
,
};
console
.
log
(
"pchlist:"
,
option
);
return
{
return
{
four
:
{
four
:
{
materieInstoreNo
:
{
materieInstoreNo
:
{
...
@@ -333,19 +339,14 @@ function Instore(props) {
...
@@ -333,19 +339,14 @@ function Instore(props) {
key
:
"labelId"
,
key
:
"labelId"
,
valueType
:
"select"
,
valueType
:
"select"
,
width
:
180
,
width
:
180
,
request
:
async
()
=>
{
fieldProps
:
option
,
return
await
getPCHlist
();
},
fieldProps
:
{
allowClear
:
true
,
showSearch
:
true
,
},
formItemProps
:
()
=>
{
formItemProps
:
()
=>
{
return
{
return
{
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}],
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}],
};
};
},
},
},
},
{
{
title
:
(
title
:
(
<
span
>
<
span
>
...
@@ -828,7 +829,13 @@ function Instore(props) {
...
@@ -828,7 +829,13 @@ function Instore(props) {
],
],
}),
}),
};
};
},
[
drawprops
.
visible
]);
},
[
PchList
]);
// const defaultFields = useMemo(() => {
// console.log(PchList);
// return
// }, [PchList]);
const
PrintButton
=
(
const
PrintButton
=
(
<
Button
<
Button
disabled=
{
!
selectKeys
.
length
}
disabled=
{
!
selectKeys
.
length
}
...
...
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