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
d7450fbd
Commit
d7450fbd
authored
Jul 27, 2022
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
37633e16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
24 deletions
+15
-24
fields.js
src/pages/outsetstore/Outstore/fields.js
+11
-21
index.jsx
src/pages/outsetstore/Outstore/index.jsx
+4
-3
No files found.
src/pages/outsetstore/Outstore/fields.js
View file @
d7450fbd
...
...
@@ -224,7 +224,6 @@ const one = {
"dataIndex"
:
"materieId"
,
"key"
:
"materieId"
,
"valueType"
:
"select"
,
"width"
:
300
,
"request"
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/pmMaterie/query/selectbox"
,
params
:
{}
})
return
res
?.
data
?.
dataList
...
...
@@ -238,6 +237,7 @@ const one = {
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}],
};
},
editable
:
true
},
{
"title"
:
<
span
>
出库数量
<
b
style
=
{{
color
:
"red"
}}
>*<
/b></
span
>
,
...
...
@@ -248,21 +248,20 @@ const one = {
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}],
};
},
valueType
:
"digit"
valueType
:
"digit"
,
editable
:
true
},
{
"title"
:
"可用库存"
,
"dataIndex"
:
"usableNum"
,
"key"
:
"usableNum"
,
"readonly"
:
'usableNum'
,
"width"
:
88
"readonly"
:
'usableNum'
},
{
"title"
:
"单位"
,
"dataIndex"
:
"productionUnitName"
,
"key"
:
"productionUnitName"
,
"readonly"
:
'productionUnitName'
,
"width"
:
60
"readonly"
:
'productionUnitName'
},
{
title
:
"操作"
,
...
...
@@ -348,7 +347,6 @@ const one = {
"dataIndex"
:
"materieId"
,
"key"
:
"materieId"
,
"valueType"
:
"select"
,
"width"
:
300
,
"request"
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/pmMaterie/query/selectbox"
,
params
:
{}
})
return
res
?.
data
?.
dataList
...
...
@@ -378,15 +376,13 @@ const one = {
"title"
:
"可用库存"
,
"dataIndex"
:
"usableNum"
,
"key"
:
"usableNum"
,
"readonly"
:
'usableNum'
,
"width"
:
88
"readonly"
:
'usableNum'
},
{
"title"
:
"单位"
,
"dataIndex"
:
"productionUnitName"
,
"key"
:
"productionUnitName"
,
"readonly"
:
'productionUnitName'
,
"width"
:
60
"readonly"
:
'productionUnitName'
},
{
title
:
"操作"
,
...
...
@@ -472,7 +468,6 @@ const one = {
"dataIndex"
:
"materieId"
,
"key"
:
"materieId"
,
"valueType"
:
"select"
,
"width"
:
300
,
"request"
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/pmMaterie/query/selectbox"
,
params
:
{}
})
return
res
?.
data
?.
dataList
...
...
@@ -502,15 +497,13 @@ const one = {
"title"
:
"可用库存"
,
"dataIndex"
:
"usableNum"
,
"key"
:
"usableNum"
,
"readonly"
:
'usableNum'
,
"width"
:
88
"readonly"
:
'usableNum'
},
{
"title"
:
"单位"
,
"dataIndex"
:
"productionUnitName"
,
"key"
:
"productionUnitName"
,
"readonly"
:
'productionUnitName'
,
"width"
:
60
"readonly"
:
'productionUnitName'
},
{
title
:
"操作"
,
...
...
@@ -596,7 +589,6 @@ const one = {
"dataIndex"
:
"materieId"
,
"key"
:
"materieId"
,
"valueType"
:
"select"
,
"width"
:
300
,
"request"
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/pmMaterie/query/selectbox"
,
params
:
{}
})
return
res
?.
data
?.
dataList
...
...
@@ -626,15 +618,13 @@ const one = {
"title"
:
"可用库存"
,
"dataIndex"
:
"usableNum"
,
"key"
:
"usableNum"
,
"readonly"
:
'usableNum'
,
"width"
:
88
"readonly"
:
'usableNum'
},
{
"title"
:
"单位"
,
"dataIndex"
:
"productionUnitName"
,
"key"
:
"productionUnitName"
,
"readonly"
:
'productionUnitName'
,
"width"
:
60
"readonly"
:
'productionUnitName'
},
{
title
:
"操作"
,
...
...
src/pages/outsetstore/Outstore/index.jsx
View file @
d7450fbd
...
...
@@ -405,12 +405,13 @@ function Outstore(props) {
{
...
drawprops
}
submitData=
{
async
(
value
)
=>
{
if
(
drawprops
.
val
==
"add"
)
{
value
.
materialList
=
value
.
materialList
?.
map
(
it
=>
{
let
newfileds
=
JSON
.
parse
(
JSON
.
stringify
(
value
));
newfileds
.
materialList
=
newfileds
?.
materialList
?.
map
(
it
=>
{
delete
it
.
usableNum
;
delete
it
.
id
;
return
it
})
//usableNum
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieOutstore/saveOutStore"
,
params
:
{
...
value
,
outstoreType
:
drawprops
.
outstoreType
}
})
})
;
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieOutstore/saveOutStore"
,
params
:
{
...
newfileds
,
outstoreType
:
drawprops
.
outstoreType
}
})
if
(
res
.
code
==
"0000"
)
{
reload
();
}
...
...
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