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
ec35a8d1
Commit
ec35a8d1
authored
Jul 13, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
0103c46e
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
107 additions
and
700 deletions
+107
-700
proxy.js
config/proxy.js
+1
-1
package.json
package.json
+1
-0
index.jsx
src/components/EditTable/index.jsx
+3
-2
fields.js
src/pages/historystore/Histore/fields.js
+0
-652
index.jsx
src/pages/historystore/Histore/index.jsx
+0
-4
fields.js
src/pages/insertstore/Instore/fields.js
+16
-3
index.jsx
src/pages/insertstore/Instore/index.jsx
+5
-1
fields.js
src/pages/outsetstore/Outstore/fields.js
+53
-25
Formpage.jsx
src/pages/platform/Sendset/Formpage.jsx
+3
-6
fields.js
src/pages/platform/Sendset/fields.js
+3
-3
index.jsx
src/pages/platform/Sendset/index.jsx
+3
-3
system.js
src/services/system.js
+19
-0
No files found.
config/proxy.js
View file @
ec35a8d1
...
...
@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
// 要代理的地址
target
:
"http://192.168.40.114:
1
8040/"
,
//39:18040 23/wms/ //60 翔 //18
target
:
"http://192.168.40.114:
2
8040/"
,
//39:18040 23/wms/ //60 翔 //18
changeOrigin
:
true
,
pathRewrite
:
{
"^/wms"
:
""
,
...
...
package.json
View file @
ec35a8d1
...
...
@@ -61,6 +61,7 @@
"
lodash
"
:
"
^4.17.0
"
,
"
moment
"
:
"
^2.29.1
"
,
"
omit.js
"
:
"
^2.0.2
"
,
"
print-js
"
:
"
^1.6.0
"
,
"
rc-menu
"
:
"
^9.1.0
"
,
"
rc-util
"
:
"
^5.16.0
"
,
"
react
"
:
"
^17.0.0
"
,
...
...
src/components/EditTable/index.jsx
View file @
ec35a8d1
...
...
@@ -11,11 +11,13 @@ const EditTable = ({
rowKey
,
recordCreatorProps
,
maxLength
,
linkconfig
linkconfig
,
style
})
=>
{
const
editorFormRef
=
useRef
()
return
(
<
EditableProTable
style=
{
{
...(
style
??
{})
}
}
columns=
{
columns
}
rowKey=
{
rowKey
}
value=
{
value
||
[]
}
...
...
@@ -84,7 +86,6 @@ const EditTable = ({
}
else
{
let
res
=
await
database
(
parames
);
console
.
log
(
newvalue
);
newvalue
=
newvalue
.
map
((
it
,
i
)
=>
{
if
(
it
[
rowKey
]
==
record
[
rowKey
])
{
Object
.
keys
(
effectresult
).
map
(
items
=>
{
...
...
src/pages/historystore/Histore/fields.js
deleted
100644 → 0
View file @
0103c46e
This diff is collapsed.
Click to expand it.
src/pages/historystore/Histore/index.jsx
View file @
ec35a8d1
...
...
@@ -6,10 +6,6 @@ import {
message
,
}
from
"antd"
;
import
AutoTable
from
"@/components/AutoTable"
;
import
defaultFields
from
"./fields"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
getPrem
from
'@/utils/getPrem'
;
//权限判断fn
function
Instore
(
props
)
{
const
actionRef
=
useRef
(),
...
...
src/pages/insertstore/Instore/fields.js
View file @
ec35a8d1
...
...
@@ -23,7 +23,7 @@ const EditUpload = ({ record, fid }) => {
id
,
uploadList
:
value
[
id
]?.
map
(
its
=>
{
return
{
store
Id
:
its
?.
store
Id
,
store
PositionId
:
its
?.
storePosition
Id
,
instroeNum
:
its
?.
instroeNum
,
remark
:
its
?.
remark
}
...
...
@@ -41,11 +41,11 @@ const EditUpload = ({ record, fid }) => {
{
title
:
"库位名称"
,
dataIndex
:
"storeName"
,
key
:
"storeId"
,
key
:
"store
Position
Id"
,
search
:
false
,
valueType
:
"select"
,
request
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStore
/selectionBox"
,
params
:
{
factoryIdList
:
[]
}
});
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStore
Position/queryByStoreId/selection"
,
params
:
{
storeId
:
record
.
storeId
}
});
return
res
?.
data
?.
dataList
},
editable
:
(
text
,
record
,
index
)
=>
{
...
...
@@ -750,6 +750,19 @@ const one = {
},
],
},
{
cardTitle
:
"强制关闭信息"
,
itemData
:
[
{
title
:
"操作人"
,
key
:
"closeUserName"
,
},
{
title
:
"操作时间"
,
key
:
"closeTime"
,
}
],
},
]
},
doinsert
=
(
fid
)
=>
({
totalCard
:
[
...
...
src/pages/insertstore/Instore/index.jsx
View file @
ec35a8d1
...
...
@@ -98,7 +98,11 @@ function Instore(props) {
title
:
`查看详情`
,
...
defaultFields
?.
detail
,
totalPath
:
"/ngic-workmanship/wmsMaterieInstore/getInStoreInfoById"
,
totalParams
:
{
id
:
record
.
id
}
totalParams
:
{
id
:
record
.
id
},
extra
:
(<
Button
>
打印
</
Button
>)
}))
}
}
>
{
dom
}
</
a
>
...
...
src/pages/outsetstore/Outstore/fields.js
View file @
ec35a8d1
import
{
factorySelect
,
shopSelectByFactory
}
from
"@/services/system"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
Button
,
Table
}
from
"antd"
;
import
{
EditableProTable
}
from
"@ant-design/pro-t
able"
;
import
EditTable
from
"@/components/EditT
able"
;
import
{
useEffect
,
useState
}
from
'react'
import
{
useModel
}
from
'umi'
...
...
@@ -21,12 +21,12 @@ const EditUpload = ({ record, fid }) => {
let
id
=
it
;
return
{
id
,
up
loadList
:
value
[
id
]?.
map
(
its
=>
{
down
loadList
:
value
[
id
]?.
map
(
its
=>
{
return
{
store
Id
:
its
?.
store
Id
,
store
PositionId
:
its
?.
storePosition
Id
,
outstroeNum
:
its
?.
outstroeNum
,
remark
:
its
?.
remark
,
materieControlNo
:
its
?.
materieControlNo
materieControlNo
:
its
?.
materieControlNo
}
})
}
...
...
@@ -35,18 +35,28 @@ const EditUpload = ({ record, fid }) => {
}))
},
[
value
])
return
<
Edit
ablePro
Table
return
<
EditTable
maxLength
=
{
1000
}
linkconfig
=
{{
urlchangeval
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieStore/queryStoreOne"
,
params
}),
params
:
{
"materieId"
:
"linked"
},
effectresult
:
{
"productionUnit"
:
"productionUnit"
,
"productionUnitName"
:
"productionUnitName"
}
}
}}
style
=
{{
marginLeft
:
48
}}
columns
=
{[
{
title
:
"库位名称"
,
dataIndex
:
"storeName"
,
key
:
"storeId"
,
key
:
"store
Position
Id"
,
search
:
false
,
valueType
:
"select"
,
request
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStore
/selectionBox"
,
params
:
{
factoryIdList
:
[]
}
});
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysStore
Position/queryByStoreId/selection"
,
params
:
{
storeId
:
record
.
storeId
}
});
return
res
?.
data
?.
dataList
},
editable
:
(
text
,
record
,
index
)
=>
{
...
...
@@ -71,6 +81,20 @@ const EditUpload = ({ record, fid }) => {
return
!
record
.
materieOutstoreDetailId
}
},
{
title
:
"供应商编号-名称"
,
dataIndex
:
"supplierNo"
,
key
:
"supplierNo"
,
search
:
false
,
"readonly"
:
true
,
},
{
title
:
"库存数量"
,
dataIndex
:
"productionNum"
,
key
:
"productionNum"
,
search
:
false
,
"readonly"
:
true
,
},
{
title
:
"备注"
,
dataIndex
:
"remark"
,
...
...
@@ -92,23 +116,11 @@ const EditUpload = ({ record, fid }) => {
}
]}
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
)
=>
{
onChange
=
{(
vals
)
=>
{
setvalue
(
s
=>
({
...
s
,
[
record
.
id
]:
recordList
[
record
.
id
]:
vals
}));
},
}}
pagination
=
{
false
}
/
>
...
...
@@ -674,14 +686,30 @@ const one = {
key
:
"storeName"
,
search
:
false
,
},
{
title
:
"批次号/SN号"
,
dataIndex
:
"materieControlNo"
,
key
:
"materieControlNo"
,
search
:
false
,
},
{
title
:
"供应商编号-名称"
,
dataIndex
:
"supplierNo"
,
key
:
"supplierNo"
,
search
:
false
,
render
:
(
dom
,
row
)
=>
{
return
(
row
?.
supplierNo
??
''
)
+
" - "
+
(
row
?.
supplierName
??
''
)
}
},
{
title
:
"下架数量"
,
dataIndex
:
"outstroeNum"
,
key
:
"outstroeNum"
,
search
:
false
,
}
]}
dataSource
=
{
record
.
up
loadList
}
dataSource
=
{
record
.
down
loadList
}
pagination
=
{
false
}
/>
,
}
...
...
src/pages/platform/Sendset/Formpage.jsx
View file @
ec35a8d1
...
...
@@ -7,7 +7,7 @@ import InitForm from '@/components/InitForm';
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
tableField
}
from
"./fields"
;
import
moment
from
"moment"
;
import
{
factory
,
allDepartment
,
allShop
,
allSection
,
roleList
,
currentUserList
}
from
"@/services/system"
;
import
{
factory
,
allDepartment
,
allShop
,
depart
,
selectionBoxAll
,
roleList
,
currentUserList
}
from
"@/services/system"
;
const
{
TextArea
}
=
Input
,
{
Paragraph
}
=
Typography
;
...
...
@@ -515,13 +515,10 @@ const Formpage = (props) => {
database
=
factory
break
;
case
3
:
database
=
allDepartmen
t
database
=
depar
t
break
;
case
4
:
database
=
allShop
break
;
case
5
:
database
=
allSection
database
=
selectionBoxAll
break
;
}
...
...
src/pages/platform/Sendset/fields.js
View file @
ec35a8d1
...
...
@@ -48,15 +48,15 @@ const addFields = {
"value"
:
1
},
{
"label"
:
"
组织
"
,
"label"
:
"
工厂
"
,
"value"
:
2
},
{
"label"
:
"
仓库
"
,
"label"
:
"
组织
"
,
"value"
:
3
},
{
"label"
:
"
工厂
"
,
"label"
:
"
仓库
"
,
"value"
:
4
}
]
...
...
src/pages/platform/Sendset/index.jsx
View file @
ec35a8d1
...
...
@@ -233,15 +233,15 @@ const Pushdeploy = (props) => {
"value"
:
1
},
{
"label"
:
"
组织
"
,
"label"
:
"
工厂
"
,
"value"
:
2
},
{
"label"
:
"
仓库
"
,
"label"
:
"
组织
"
,
"value"
:
3
},
{
"label"
:
"
工厂
"
,
"label"
:
"
仓库
"
,
"value"
:
4
}
]
...
...
src/services/system.js
View file @
ec35a8d1
...
...
@@ -189,6 +189,25 @@ export async function factory(params) {
data
:
params
,
});
}
//
// 4 :
//集团下拉框
export
async
function
depart
(
params
)
{
return
request
(
`/wms/ngic-auth/sysDepartment/query/selectbox/depart`
,
{
method
:
'POST'
,
data
:
params
,
});
}
//集团下拉框
export
async
function
selectionBoxAll
(
params
)
{
return
request
(
`/wms/ngic-auth/sysStore/selectionBoxAll`
,
{
method
:
'POST'
,
data
:
params
,
});
}
//下拉框---当前公司下
export
async
function
currentUserList
(
params
)
{
return
request
(
`/wms/ngic-auth/sysUser/query/selectbox/current/company`
,
{
...
...
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