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
8c29991e
Commit
8c29991e
authored
Aug 10, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
7daae505
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
56 deletions
+77
-56
index.jsx
src/pages/Movestore/index.jsx
+18
-6
fields.js
src/pages/Printer/fields.js
+5
-1
index.jsx
src/pages/Task/index.jsx
+38
-38
index.jsx
src/pages/insertstore/Otherinstore/index.jsx
+4
-0
index.jsx
src/pages/outsetstore/Otheroutstore/index.jsx
+10
-10
mymodelhtml.js
src/utils/mymodelhtml.js
+1
-1
request.js
src/utils/request.js
+1
-0
No files found.
src/pages/Movestore/index.jsx
View file @
8c29991e
...
...
@@ -125,12 +125,12 @@ function Outstore(props) {
dataIndex
:
"operateUserName"
,
key
:
"operateUserName"
,
},
{
title
:
"单据类型"
,
dataIndex
:
"instoreTypeName"
,
search
:
false
,
key
:
"instoreType"
,
},
//
{
//
title: "单据类型",
//
dataIndex: "instoreTypeName",
//
search: false,
//
key: "instoreType",
//
},
{
title
:
"物料编码"
,
dataIndex
:
"materieCode"
,
...
...
@@ -171,6 +171,15 @@ function Outstore(props) {
dataIndex
:
"documentsState"
,
key
:
"documentsState"
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
if
(
row
?.
documentsState
==
"0"
)
{
return
"待执行"
;
}
else
if
(
row
?.
documentsState
==
"1"
)
{
return
"执行中"
;
}
else
if
(
row
?.
documentsState
==
"2"
)
{
return
"已执行"
;
}
},
},
];
}
else
{
...
...
@@ -236,6 +245,9 @@ function Outstore(props) {
dataIndex
:
"documentsState"
,
key
:
"documentsState"
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
return
"已完成"
;
},
},
];
}
...
...
src/pages/Printer/fields.js
View file @
8c29991e
...
...
@@ -94,6 +94,10 @@ export function getColumns(setDrawer, formRef) {
key
:
"unilateralThickness"
,
dataIndex
:
"unilateralThickness"
,
valueType
:
"digit"
,
fieldProps
:
{
precision
:
3
,
max
:
999999
,
},
},
{
title
:
"备注"
,
...
...
@@ -122,7 +126,7 @@ export function getColumns(setDrawer, formRef) {
},
columns
:
[
{
title
:
"
重
量"
,
title
:
"
数
量"
,
dataIndex
:
"weight"
,
key
:
"weight"
,
valueType
:
"digit"
,
...
...
src/pages/Task/index.jsx
View file @
8c29991e
...
...
@@ -79,40 +79,40 @@ function Outstore(props) {
dataIndex
:
"taskNo"
,
key
:
"taskNo"
,
search
:
false
,
render
:
(
dom
,
record
)
=>
{
return
(
<
a
onClick=
{
()
=>
{
const
detail
=
defaultFields
.
detail
(
setSelectKeys
,
PrintButton
);
setdrawprops
((
s
)
=>
({
...
s
,
visible
:
true
,
//查看详情 props
val
:
"detail"
,
title
:
`查看详情`
,
...
detail
,
totalPath
:
"/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById"
,
totalParams
:
{
id
:
record
.
id
},
extra
:
(
<
Button
onClick=
{
async
()
=>
{
handlePrint
();
}
}
>
打印
</
Button
>
),
}));
}
}
>
{
dom
}
</
a
>
);
},
//
render: (dom, record) => {
//
return (
//
<a
//
onClick={() => {
//
const detail = defaultFields.detail(
//
setSelectKeys,
//
PrintButton
//
);
//
setdrawprops((s) => ({
//
...s,
//
visible: true,
//
//查看详情 props
//
val: "detail",
//
title: `查看详情`,
//
...detail,
//
totalPath:
//
"/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById",
//
totalParams: { id: record.id },
//
extra: (
//
<Button
//
onClick={async () => {
//
handlePrint();
//
}}
//
>
//
打印
//
</Button>
//
),
//
}));
//
}}
//
>
//
{dom}
//
</a>
//
);
//
},
},
{
title
:
"物料名称"
,
...
...
@@ -145,13 +145,13 @@ function Outstore(props) {
search
:
false
,
},
{
title
:
"来源
库位
"
,
title
:
"来源
位置
"
,
dataIndex
:
"sourceStorePositionName"
,
key
:
"sourceStorePositionName"
,
search
:
false
,
},
{
title
:
"目标
库位
"
,
title
:
"目标
位置
"
,
dataIndex
:
"targetStorePositionName"
,
key
:
"targetStorePositionName"
,
search
:
false
,
...
...
@@ -307,13 +307,13 @@ function Outstore(props) {
key
:
"materieControlNo"
,
},
{
title
:
"来源
库位
"
,
title
:
"来源
位置
"
,
dataIndex
:
"sourceStorePositionName"
,
key
:
"sourceStorePositionName"
,
search
:
false
,
},
{
title
:
"目标
库位
"
,
title
:
"目标
位置
"
,
dataIndex
:
"targetStorePositionName"
,
key
:
"targetStorePositionName"
,
search
:
false
,
...
...
src/pages/insertstore/Otherinstore/index.jsx
View file @
8c29991e
...
...
@@ -40,7 +40,9 @@ const keytoval = {
three
:
"退料入库"
,
four
:
"其他入库"
,
};
const
EditUpload
=
({
record
,
fid
,
storeId
})
=>
{
console
.
log
(
123
);
const
[
value
,
setvalue
]
=
useState
({
[
record
.
id
]:
record
.
uploadList
,
});
...
...
@@ -99,6 +101,7 @@ const EditUpload = ({ record, fid, storeId }) => {
search
:
false
,
valueType
:
"select"
,
request
:
async
(
params
)
=>
{
console
.
log
(
5555
);
let
newParams
=
JSON
.
parse
(
JSON
.
stringify
(
params
));
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStorePosition/queryUseAbleSelection"
,
...
...
@@ -226,6 +229,7 @@ function Instore(props) {
content
:
()
=>
mutiPrintRef
.
current
.
dom
.
current
,
});
const
defaultFields
=
useMemo
(()
=>
{
console
.
log
(
1
);
return
{
four
:
{
materieInstoreNo
:
{
...
...
src/pages/outsetstore/Otheroutstore/index.jsx
View file @
8c29991e
...
...
@@ -799,16 +799,16 @@ function Outstore(props) {
},
{
title
:
"创建人"
,
dataIndex
:
"
create
UserName"
,
key
:
"
create
UserName"
,
dataIndex
:
"
apply
UserName"
,
key
:
"
apply
UserName"
,
},
{
title
:
"创建时间"
,
dataIndex
:
"
create
Time"
,
key
:
"
create
Time"
,
dataIndex
:
"
apply
Time"
,
key
:
"
apply
Time"
,
valueType
:
"dateRange"
,
formItemProps
:
{
name
:
"
create
TimeList"
,
name
:
"
apply
TimeList"
,
},
},
{
...
...
@@ -981,16 +981,16 @@ function Outstore(props) {
},
{
title
:
"创建人"
,
dataIndex
:
"
create
UserName"
,
key
:
"
create
UserName"
,
dataIndex
:
"
apply
UserName"
,
key
:
"
apply
UserName"
,
},
{
title
:
"创建时间"
,
dataIndex
:
"
create
Time"
,
key
:
"
create
Time"
,
dataIndex
:
"
apply
Time"
,
key
:
"
apply
Time"
,
valueType
:
"dateRange"
,
formItemProps
:
{
name
:
"
create
TimeList"
,
name
:
"
apply
TimeList"
,
},
},
{
...
...
src/utils/mymodelhtml.js
View file @
8c29991e
...
...
@@ -70,7 +70,7 @@ export function str(data) {
<
div
style
=
"flex:3"
>
片厚:
$
{
data
?.
sheetThickness
??
"--"
}
mm
<
/div
>
<
/div
>
<
div
style
=
"display:flex; flex-direction: row;flex:1;"
>
<
div
style
=
"flex:2"
>
重
量:
$
{
data
?.
weight
??
"--"
}
KG
<
/div
>
<
div
style
=
"flex:2"
>
数
量:
$
{
data
?.
weight
??
"--"
}
KG
<
/div
>
<
div
style
=
"flex:3"
>
米数:
$
{
data
?.
length
??
"--"
}
M
<
/div
>
<
/div
>
...
...
src/utils/request.js
View file @
8c29991e
...
...
@@ -106,6 +106,7 @@ request.interceptors.response.use(async (response, options) => {
message
.
destroy
();
message
.
warn
(
data
?.
msg
);
if
(
data
?.
code
==
"0001"
&&
window
.
location
.
href
.
indexOf
(
"login"
)
==
-
1
)
{
console
.
log
(
"跳转"
);
localStorage
.
clear
();
history
.
replace
(
"/user/login"
);
}
...
...
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