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
2c455fc1
Commit
2c455fc1
authored
Jul 25, 2022
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
2a0f1f81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
12 deletions
+37
-12
index.jsx
src/pages/historystore/Histore/index.jsx
+2
-2
fields.js
src/pages/outsetstore/Outstore/fields.js
+6
-7
index.jsx
src/pages/outsetstore/Outstore/index.jsx
+29
-3
No files found.
src/pages/historystore/Histore/index.jsx
View file @
2c455fc1
...
@@ -60,8 +60,8 @@ function Instore(props) {
...
@@ -60,8 +60,8 @@ function Instore(props) {
},
},
{
{
"title"
:
"操作类型"
,
"title"
:
"操作类型"
,
"dataIndex"
:
"stockTypeName"
,
"dataIndex"
:
"stockType
Detail
Name"
,
"key"
:
"stockTypeName"
,
"key"
:
"stockType
Detail
Name"
,
},
},
{
{
"title"
:
"仓库名称"
,
"title"
:
"仓库名称"
,
...
...
src/pages/outsetstore/Outstore/fields.js
View file @
2c455fc1
...
@@ -31,8 +31,6 @@ const EditUpload = ({ record, fid, storeId }) => {
...
@@ -31,8 +31,6 @@ const EditUpload = ({ record, fid, storeId }) => {
}
}
})
??
[];
})
??
[];
setInitialState
(
s
=>
{
setInitialState
(
s
=>
{
console
.
log
(
newlist
);
return
({
return
({
...
s
,
...
s
,
submits
:
{
submits
:
{
...
@@ -177,6 +175,7 @@ const one = {
...
@@ -177,6 +175,7 @@ const one = {
database
:
()
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{
factoryIdList
:
[]
}
}),
database
:
()
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{
factoryIdList
:
[]
}
}),
params
:
{}
params
:
{}
},
},
linked
:
true
},
},
"businessNo"
:
{
"businessNo"
:
{
"value"
:
null
,
"value"
:
null
,
...
@@ -208,8 +207,8 @@ const one = {
...
@@ -208,8 +207,8 @@ const one = {
required
:
true
,
required
:
true
,
linkconfig
:
{
linkconfig
:
{
urlchangeval
:
{
//根据url接口 改变某个value
urlchangeval
:
{
//根据url接口 改变某个value
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/queryUnitByMaterieId
"
,
params
}),
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
wmsMaterieStockStore/queryStoreOne
"
,
params
}),
params
:
{
"materieId"
:
"linked"
},
params
:
{
"materieId"
:
"linked"
},
effectresult
:
{
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"productionUnitName"
:
"productionUnitName"
,
...
@@ -332,7 +331,7 @@ const one = {
...
@@ -332,7 +331,7 @@ const one = {
required
:
true
,
required
:
true
,
linkconfig
:
{
linkconfig
:
{
urlchangeval
:
{
//根据url接口 改变某个value
urlchangeval
:
{
//根据url接口 改变某个value
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/queryUnitByMaterieId
"
,
params
}),
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
wmsMaterieStockStore/queryStoreOne
"
,
params
}),
params
:
{
"materieId"
:
"linked"
},
params
:
{
"materieId"
:
"linked"
},
effectresult
:
{
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
...
@@ -456,7 +455,7 @@ const one = {
...
@@ -456,7 +455,7 @@ const one = {
required
:
true
,
required
:
true
,
linkconfig
:
{
linkconfig
:
{
urlchangeval
:
{
//根据url接口 改变某个value
urlchangeval
:
{
//根据url接口 改变某个value
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/queryUnitByMaterieId
"
,
params
}),
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
wmsMaterieStockStore/queryStoreOne
"
,
params
}),
params
:
{
"materieId"
:
"linked"
},
params
:
{
"materieId"
:
"linked"
},
effectresult
:
{
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
...
@@ -580,7 +579,7 @@ const one = {
...
@@ -580,7 +579,7 @@ const one = {
required
:
true
,
required
:
true
,
linkconfig
:
{
linkconfig
:
{
urlchangeval
:
{
//根据url接口 改变某个value
urlchangeval
:
{
//根据url接口 改变某个value
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/queryUnitByMaterieId
"
,
params
}),
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/
wmsMaterieStockStore/queryStoreOne
"
,
params
}),
params
:
{
"materieId"
:
"linked"
},
params
:
{
"materieId"
:
"linked"
},
effectresult
:
{
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
...
...
src/pages/outsetstore/Outstore/index.jsx
View file @
2c455fc1
...
@@ -127,15 +127,15 @@ function Outstore(props) {
...
@@ -127,15 +127,15 @@ function Outstore(props) {
"valueType"
:
"select"
,
"valueType"
:
"select"
,
"options"
:
[
"options"
:
[
{
{
"label"
:
"
采购
出库"
,
"label"
:
"
生产领料
出库"
,
"value"
:
"1"
"value"
:
"1"
},
},
{
{
"label"
:
"
生产
出库"
,
"label"
:
"
销售
出库"
,
"value"
:
"2"
"value"
:
"2"
},
},
{
{
"label"
:
"
退料
出库"
,
"label"
:
"
报废
出库"
,
"value"
:
"3"
"value"
:
"3"
},
},
{
{
...
@@ -414,6 +414,32 @@ function Outstore(props) {
...
@@ -414,6 +414,32 @@ function Outstore(props) {
}
}
}
}
}
}
}
}
onChange=
{
(
changedValues
,
allValues
)
=>
{
for
(
let
i
in
changedValues
)
{
if
(
i
==
"storeId"
)
{
setdrawprops
(
s
=>
{
let
fields
=
s
.
fields
;
fields
[
"materialList"
].
linkconfig
=
{
urlchangeval
:
{
//根据url接口 改变某个value
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieStockStore/queryStoreOne"
,
params
}),
params
:
{
"materieId"
:
"linked"
,
storeId
:
changedValues
[
i
]
},
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"usableNum"
:
"usableNum"
,
"outstroeNum"
:
"outstroeNum"
}
}
}
return
{
...
s
,
fields
}
})
}
}
}
}
reload=
{
reload
}
/>
/>
</
div
>
</
div
>
);
);
...
...
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