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
0103c46e
Commit
0103c46e
authored
Jul 12, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
0ece29b2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
227 additions
and
40 deletions
+227
-40
fields.js
src/pages/insertstore/Instore/fields.js
+7
-7
index.jsx
src/pages/insertstore/Instore/index.jsx
+1
-2
fields.js
src/pages/outsetstore/Outstore/fields.js
+205
-19
index.jsx
src/pages/outsetstore/Outstore/index.jsx
+12
-2
fields.js
src/pages/platform/Sendset/fields.js
+1
-5
index.jsx
src/pages/platform/Sendset/index.jsx
+1
-5
No files found.
src/pages/insertstore/Instore/fields.js
View file @
0103c46e
...
...
@@ -5,7 +5,7 @@ import { EditableProTable } from "@ant-design/pro-table";
import
{
useEffect
,
useState
}
from
'react'
import
{
useModel
}
from
'umi'
const
EditUpload
=
({
record
})
=>
{
const
EditUpload
=
({
record
,
fid
})
=>
{
const
[
value
,
setvalue
]
=
useState
({});
const
{
initialState
,
setInitialState
}
=
useModel
(
"@@initialState"
);
...
...
@@ -16,7 +16,7 @@ const EditUpload = ({ record }) => {
setInitialState
(
s
=>
({
...
s
,
submit
:
{
id
:
record
.
id
,
id
:
f
id
,
materialList
:
Object
.
keys
(
value
)?.
map
?.(
it
=>
{
let
id
=
it
;
return
{
...
...
@@ -81,7 +81,7 @@ const EditUpload = ({ record }) => {
],
}
]}
value
=
{[...(
record
.
downloadList
??
[]),
...(
value
[
record
.
materieInstoreI
d
]
??
[])]}
value
=
{[...(
record
.
downloadList
??
[]),
...(
value
[
record
.
i
d
]
??
[])]}
recordCreatorProps
=
{{
newRecordType
:
"dataSource"
,
record
:
()
=>
({
...
...
@@ -96,7 +96,7 @@ const EditUpload = ({ record }) => {
onValuesChange
:
async
(
records
,
recordList
)
=>
{
setvalue
(
s
=>
({
...
s
,
[
record
.
materieInstoreI
d
]:
recordList
[
record
.
i
d
]:
recordList
}));
},
}}
...
...
@@ -751,7 +751,7 @@ const one = {
],
},
]
},
doinsert
=
{
},
doinsert
=
(
fid
)
=>
(
{
totalCard
:
[
//物料详情
{
...
...
@@ -836,13 +836,13 @@ const one = {
},
],
expandable
:
{
expandedRowRender
:
record
=>
<
EditUpload
record
=
{
record
}
/>
,
expandedRowRender
:
record
=>
<
EditUpload
record
=
{
record
}
fid
=
{
fid
}
/>
,
}
},
],
},
]
};
}
)
;
...
...
src/pages/insertstore/Instore/index.jsx
View file @
0103c46e
...
...
@@ -197,7 +197,7 @@ function Instore(props) {
"render"
:
(
text
,
record
,
_
,
action
)
=>
{
return
[
getPrem
(
"equipmentCustomer_save"
,
action
,
'上架采集'
,
async
()
=>
{
let
extra
=
defaultFields
.
doinsert
;
let
extra
=
defaultFields
.
doinsert
(
record
.
id
)
;
setdrawprops
(
s
=>
({
...
s
,
visible
:
true
,
...
...
@@ -208,7 +208,6 @@ function Instore(props) {
totalPath
:
"/ngic-workmanship/wmsMaterieInstore/getInStoreInfoById"
,
totalParams
:
{
id
:
record
.
id
}
}))
}),
getPrem
(
"equipmentCustomer_deleteById"
,
action
,
'关单'
,
null
,
{
title
:
"确认关单?"
,
...
...
src/pages/outsetstore/Outstore/fields.js
View file @
0103c46e
import
{
factorySelect
,
shopSelectByFactory
}
from
"@/services/system"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
Table
}
from
"antd"
;
import
{
Button
,
Table
}
from
"antd"
;
import
{
EditableProTable
}
from
"@ant-design/pro-table"
;
import
{
useEffect
,
useState
}
from
'react'
import
{
useModel
}
from
'umi'
const
EditUpload
=
({
record
,
fid
})
=>
{
const
[
value
,
setvalue
]
=
useState
({});
const
{
initialState
,
setInitialState
}
=
useModel
(
"@@initialState"
);
useEffect
(()
=>
{
if
(
!
value
)
{
return
}
setInitialState
(
s
=>
({
...
s
,
submits
:
{
id
:
fid
,
materialList
:
Object
.
keys
(
value
)?.
map
?.(
it
=>
{
let
id
=
it
;
return
{
id
,
uploadList
:
value
[
id
]?.
map
(
its
=>
{
return
{
storeId
:
its
?.
storeId
,
outstroeNum
:
its
?.
outstroeNum
,
remark
:
its
?.
remark
,
materieControlNo
:
its
?.
materieControlNo
}
})
}
})
}
}))
},
[
value
])
return
<
EditableProTable
maxLength
=
{
1000
}
style
=
{{
marginLeft
:
48
}}
columns
=
{[
{
title
:
"库位名称"
,
dataIndex
:
"storeName"
,
key
:
"storeId"
,
search
:
false
,
valueType
:
"select"
,
request
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{
factoryIdList
:
[]
}
});
return
res
?.
data
?.
dataList
},
editable
:
(
text
,
record
,
index
)
=>
{
return
!
record
.
materieOutstoreDetailId
}
},
{
title
:
"批次号/SN号"
,
dataIndex
:
"materieControlNo"
,
key
:
"materieControlNo"
,
search
:
false
,
editable
:
(
text
,
record
,
index
)
=>
{
return
!
record
.
materieOutstoreDetailId
}
},
{
title
:
"下架数量"
,
dataIndex
:
"outstroeNum"
,
key
:
"outstroeNum"
,
search
:
false
,
editable
:
(
text
,
record
,
index
)
=>
{
return
!
record
.
materieOutstoreDetailId
}
},
{
title
:
"备注"
,
dataIndex
:
"remark"
,
key
:
"remark"
,
search
:
false
,
editable
:
(
text
,
record
,
index
)
=>
{
return
!
record
.
materieOutstoreDetailId
}
},
{
title
:
"操作"
,
valueType
:
"option"
,
width
:
70
,
render
:
(
text
,
record
,
_
,
action
)
=>
[
<
a
key
=
"delete"
onClick
=
{()
=>
{
}}
>
删除
<
/a>
,
],
}
]}
value
=
{[...(
record
.
downloadList
??
[]),
...(
value
[
record
.
id
]
??
[])]}
recordCreatorProps
=
{{
newRecordType
:
"dataSource"
,
record
:
()
=>
({
id
:
Date
.
now
(),
}),
}}
editable
=
{{
type
:
"multiple"
,
actionRender
:
(
row
,
config
,
defaultDoms
)
=>
{
return
[
defaultDoms
.
delete
];
},
onValuesChange
:
async
(
records
,
recordList
)
=>
{
setvalue
(
s
=>
({
...
s
,
[
record
.
id
]:
recordList
}));
},
}}
pagination
=
{
false
}
/
>
}
const
one
=
{
"materieOutstoreNo"
:
{
...
...
@@ -61,7 +172,7 @@ const one = {
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"usableNum"
:
"usableNum"
"usableNum"
:
"usableNum"
}
}
},
...
...
@@ -182,7 +293,7 @@ const one = {
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"usableNum"
:
"usableNum"
"usableNum"
:
"usableNum"
}
}
},
...
...
@@ -303,7 +414,7 @@ const one = {
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"usableNum"
:
"usableNum"
"usableNum"
:
"usableNum"
}
}
},
...
...
@@ -424,7 +535,7 @@ const one = {
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
"productionUnitName"
:
"productionUnitName"
,
"usableNum"
:
"usableNum"
"usableNum"
:
"usableNum"
}
}
},
...
...
@@ -532,21 +643,18 @@ const one = {
col
:
{
span
:
24
},
columns
:
[
{
title
:
"物料名称"
,
title
:
"物料
编码 -
名称"
,
dataIndex
:
"materieName"
,
key
:
"materieName"
,
search
:
false
,
},
{
title
:
"物料编码"
,
dataIndex
:
"materieCode"
,
key
:
"materieCode"
,
search
:
false
,
render
:
(
dom
,
row
)
=>
{
return
(
row
.
materieCode
??
''
)
+
" - "
+
(
row
.
materieName
??
''
)
}
},
{
title
:
"出库数量"
,
dataIndex
:
"
in
stroeNum"
,
key
:
"
in
stroeNum"
,
dataIndex
:
"
out
stroeNum"
,
key
:
"
out
stroeNum"
,
search
:
false
,
},
{
...
...
@@ -567,9 +675,9 @@ const one = {
search
:
false
,
},
{
title
:
"
上
架数量"
,
dataIndex
:
"
in
stroeNum"
,
key
:
"
in
stroeNum"
,
title
:
"
下
架数量"
,
dataIndex
:
"
out
stroeNum"
,
key
:
"
out
stroeNum"
,
search
:
false
,
}
]}
...
...
@@ -581,7 +689,84 @@ const one = {
],
},
]
};
},
dooutside
=
(
fid
)
=>
({
totalCard
:
[
//物料详情
{
cardTitle
:
"基本信息"
,
itemData
:
[
{
title
:
"出库单号"
,
key
:
"materieOutstoreNo"
,
},
{
title
:
"出库类型"
,
key
:
"outstoreTypeName"
,
},
{
title
:
"出库仓库"
,
key
:
"storeName"
,
},
{
title
:
"相关单号"
,
key
:
"businessNo"
,
},
{
title
:
"备注"
,
key
:
"remark"
,
},
{
title
:
"创建人"
,
key
:
"createUserName"
,
},
{
title
:
"创建时间"
,
key
:
"createTime"
,
},
],
},
{
cardTitle
:
"物料信息列表"
,
extra
:
true
,
extrapath
:
"/ngic-workmanship/wmsMaterieOutstore/download"
,
extrakey
:
"submits"
,
//redux key
itemData
:
[
{
key
:
"materialList"
,
type
:
"table"
,
col
:
{
span
:
24
},
columns
:
[
{
title
:
"物料编码 - 名称"
,
dataIndex
:
"materieName"
,
key
:
"materieName"
,
search
:
false
,
render
:
(
dom
,
row
)
=>
{
return
(
row
.
materieCode
??
''
)
+
" - "
+
(
row
.
materieName
??
''
)
}
},
{
title
:
"出库数量"
,
dataIndex
:
"outstroeNum"
,
key
:
"outstroeNum"
,
search
:
false
,
},
{
title
:
"单位"
,
dataIndex
:
"productionUnitName"
,
key
:
"productionUnitName"
,
search
:
false
,
},
],
expandable
:
{
expandedRowRender
:
record
=>
<
EditUpload
record
=
{
record
}
fid
=
{
fid
}
/>
,
}
},
],
},
]
});
...
...
@@ -591,5 +776,6 @@ export default {
two
,
three
,
four
,
detail
detail
,
dooutside
};
src/pages/outsetstore/Outstore/index.jsx
View file @
0103c46e
...
...
@@ -196,9 +196,19 @@ function Instore(props) {
"width"
:
240
,
"render"
:
(
text
,
record
,
_
,
action
)
=>
{
return
[
getPrem
(
"equipmentCustomer_save"
,
action
,
'上架采集'
,
async
()
=>
{
getPrem
(
"equipmentCustomer_save"
,
action
,
'下架采集'
,
async
()
=>
{
let
extra
=
defaultFields
.
dooutside
(
record
.
id
);
setdrawprops
(
s
=>
({
...
s
,
visible
:
true
,
//查看详情 props
val
:
"detail"
,
title
:
`下架采集`
,
...
extra
,
totalPath
:
"/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById"
,
totalParams
:
{
id
:
record
.
id
}
}))
}),
getPrem
(
"equipmentCustomer_deleteById"
,
action
,
'关单'
,
null
,
{
...
...
src/pages/platform/Sendset/fields.js
View file @
0103c46e
...
...
@@ -52,16 +52,12 @@ const addFields = {
"value"
:
2
},
{
"label"
:
"
组织
"
,
"label"
:
"
仓库
"
,
"value"
:
3
},
{
"label"
:
"工厂"
,
"value"
:
4
},
{
"label"
:
"车间"
,
"value"
:
5
}
]
},
...
...
src/pages/platform/Sendset/index.jsx
View file @
0103c46e
...
...
@@ -237,16 +237,12 @@ const Pushdeploy = (props) => {
"value"
:
2
},
{
"label"
:
"
组织
"
,
"label"
:
"
仓库
"
,
"value"
:
3
},
{
"label"
:
"工厂"
,
"value"
:
4
},
{
"label"
:
"车间"
,
"value"
:
5
}
]
},
...
...
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