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
2616c243
Commit
2616c243
authored
Jul 31, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asd
parent
27da8849
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
83 deletions
+98
-83
routes.js
config/routes.js
+2
-2
fields.js
src/pages/Printer/fields.js
+12
-3
index.jsx
src/pages/Printer/index.jsx
+20
-16
index.jsx
src/pages/Task/index.jsx
+2
-2
index.jsx
src/pages/findstore/Storesearch/index.jsx
+0
-2
index.jsx
src/pages/insertstore/Otherinstore/index.jsx
+60
-56
index.jsx
src/pages/outsetstore/Outstore/index.jsx
+2
-2
No files found.
config/routes.js
View file @
2616c243
...
@@ -35,7 +35,7 @@ export default [
...
@@ -35,7 +35,7 @@ export default [
routes
:
[
routes
:
[
{
{
path
:
"/wms/instore"
,
path
:
"/wms/instore"
,
name
:
"
入库管理
"
,
name
:
"
来料入库
"
,
component
:
"./insertstore/Instore"
,
component
:
"./insertstore/Instore"
,
},
},
{
{
...
@@ -50,7 +50,7 @@ export default [
...
@@ -50,7 +50,7 @@ export default [
},
},
{
{
path
:
"/wms/outstore"
,
path
:
"/wms/outstore"
,
name
:
"生产叫料
单
"
,
name
:
"生产叫料
出库
"
,
component
:
"./outsetstore/Outstore"
,
component
:
"./outsetstore/Outstore"
,
},
},
{
{
...
...
src/pages/Printer/fields.js
View file @
2616c243
...
@@ -43,6 +43,7 @@ export function getColumns(setDrawer, formRef) {
...
@@ -43,6 +43,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex
:
"specificationModel"
,
dataIndex
:
"specificationModel"
,
fieldProps
:
{
fieldProps
:
{
disabled
:
true
,
disabled
:
true
,
placeholder
:
""
,
},
},
},
},
{
{
...
@@ -51,6 +52,7 @@ export function getColumns(setDrawer, formRef) {
...
@@ -51,6 +52,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex
:
"shopSign"
,
dataIndex
:
"shopSign"
,
fieldProps
:
{
fieldProps
:
{
disabled
:
true
,
disabled
:
true
,
placeholder
:
""
,
},
},
},
},
{
{
...
@@ -59,6 +61,7 @@ export function getColumns(setDrawer, formRef) {
...
@@ -59,6 +61,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex
:
"ironLoss"
,
dataIndex
:
"ironLoss"
,
fieldProps
:
{
fieldProps
:
{
disabled
:
true
,
disabled
:
true
,
placeholder
:
""
,
},
},
},
},
{
{
...
@@ -67,6 +70,7 @@ export function getColumns(setDrawer, formRef) {
...
@@ -67,6 +70,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex
:
"sheetThickness"
,
dataIndex
:
"sheetThickness"
,
fieldProps
:
{
fieldProps
:
{
disabled
:
true
,
disabled
:
true
,
placeholder
:
""
,
},
},
},
},
{
{
...
@@ -82,14 +86,14 @@ export function getColumns(setDrawer, formRef) {
...
@@ -82,14 +86,14 @@ export function getColumns(setDrawer, formRef) {
valueType
:
"select"
,
valueType
:
"select"
,
options
:
{
options
:
{
path
:
"/ngic-auth/sysSupplier/query/selection"
,
path
:
"/ngic-auth/sysSupplier/query/selection"
,
params
:
{}
params
:
{},
},
},
},
},
{
{
title
:
"单边厚度"
,
title
:
"单边厚度"
,
key
:
"unilateralThickness"
,
key
:
"unilateralThickness"
,
dataIndex
:
"unilateralThickness"
,
dataIndex
:
"unilateralThickness"
,
valueType
:
'digit'
valueType
:
"digit"
,
},
},
{
{
title
:
"备注"
,
title
:
"备注"
,
...
@@ -98,9 +102,14 @@ export function getColumns(setDrawer, formRef) {
...
@@ -98,9 +102,14 @@ export function getColumns(setDrawer, formRef) {
valueType
:
"textarea"
,
valueType
:
"textarea"
,
},
},
{
{
title
:
"列表"
,
title
:
(
<
span
>
<
b
style
=
{{
color
:
"red"
}}
>*<
/b> 列
表
<
/span
>
),
valueType
:
"formList"
,
valueType
:
"formList"
,
dataIndex
:
"list"
,
dataIndex
:
"list"
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}]
},
initialValue
:
[
initialValue
:
[
{
{
state
:
"all"
,
state
:
"all"
,
...
...
src/pages/Printer/index.jsx
View file @
2616c243
...
@@ -120,8 +120,8 @@ const Station = (props) => {
...
@@ -120,8 +120,8 @@ const Station = (props) => {
title
:
`当前已完成信息填写,是否保存并立即打印?`
,
title
:
`当前已完成信息填写,是否保存并立即打印?`
,
icon
:
<
ExclamationCircleFilled
/>,
icon
:
<
ExclamationCircleFilled
/>,
width
:
500
,
width
:
500
,
okText
:
'确定'
,
okText
:
"确定"
,
cancelText
:
"取消"
,
cancelText
:
"取消"
,
onOk
()
{
onOk
()
{
formRef
?.
current
?.
validateFields
().
then
((
formData
)
=>
{
formRef
?.
current
?.
validateFields
().
then
((
formData
)
=>
{
start
(
"/ngic-workmanship/wmsMaterieLabel/save"
,
formData
);
start
(
"/ngic-workmanship/wmsMaterieLabel/save"
,
formData
);
...
@@ -141,6 +141,7 @@ const Station = (props) => {
...
@@ -141,6 +141,7 @@ const Station = (props) => {
const
saveData
=
(
type
)
=>
{
const
saveData
=
(
type
)
=>
{
if
(
type
===
1
)
{
if
(
type
===
1
)
{
formRef
?.
current
?.
validateFields
().
then
((
formData
)
=>
{
formRef
?.
current
?.
validateFields
().
then
((
formData
)
=>
{
if
(
formData
?.
list
&&
formData
?.
list
.
length
>
0
)
{
doFetch
({
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieLabel/save"
,
url
:
"/ngic-workmanship/wmsMaterieLabel/save"
,
params
:
formData
,
params
:
formData
,
...
@@ -151,8 +152,11 @@ const Station = (props) => {
...
@@ -151,8 +152,11 @@ const Station = (props) => {
visible
:
false
,
visible
:
false
,
}));
}));
}
}
message
.
success
(
"保存成功!"
,
2
);
});
});
}
else
{
message
.
destroy
()
message
.
warning
(
"请添加列表数据!"
,
2
);
}
});
});
}
else
{
}
else
{
saveAndPrint
();
saveAndPrint
();
...
@@ -170,8 +174,8 @@ const Station = (props) => {
...
@@ -170,8 +174,8 @@ const Station = (props) => {
title
:
`当前已选择
${
selectIds
?.
length
}
条标签数据,是否全部打印?
`,
title
:
`当前已选择
${
selectIds
?.
length
}
条标签数据,是否全部打印?
`,
icon: <ExclamationCircleFilled />,
icon: <ExclamationCircleFilled />,
width: 500,
width: 500,
okText:
'确定'
,
okText:
"确定"
,
cancelText:"取消",
cancelText:
"取消",
onOk() {
onOk() {
start("/ngic-workmanship/wmsMaterieLabel/queryByIds", {
start("/ngic-workmanship/wmsMaterieLabel/queryByIds", {
ids: selectIds,
ids: selectIds,
...
...
src/pages/Task/index.jsx
View file @
2616c243
...
@@ -183,7 +183,7 @@ function Outstore(props) {
...
@@ -183,7 +183,7 @@ function Outstore(props) {
{
{
title
:
"单据状态"
,
title
:
"单据状态"
,
dataIndex
:
"statusName"
,
dataIndex
:
"statusName"
,
key
:
"status
Name
"
,
key
:
"status"
,
valueType
:
"select"
,
valueType
:
"select"
,
options
:
[
options
:
[
{
{
...
@@ -327,7 +327,7 @@ function Outstore(props) {
...
@@ -327,7 +327,7 @@ function Outstore(props) {
{
{
title
:
"单据状态"
,
title
:
"单据状态"
,
dataIndex
:
"statusName"
,
dataIndex
:
"statusName"
,
key
:
"status
Name
"
,
key
:
"status"
,
search
:
false
,
search
:
false
,
valueType
:
"select"
,
valueType
:
"select"
,
options
:
[
options
:
[
...
...
src/pages/findstore/Storesearch/index.jsx
View file @
2616c243
...
@@ -84,7 +84,6 @@ function Instore(props) {
...
@@ -84,7 +84,6 @@ function Instore(props) {
title
:
"物料编码"
,
title
:
"物料编码"
,
dataIndex
:
"materieId"
,
dataIndex
:
"materieId"
,
key
:
"materieId"
,
key
:
"materieId"
,
search
:
false
,
},
},
{
{
title
:
"物料名称"
,
title
:
"物料名称"
,
...
@@ -101,7 +100,6 @@ function Instore(props) {
...
@@ -101,7 +100,6 @@ function Instore(props) {
title
:
"批次号"
,
title
:
"批次号"
,
dataIndex
:
"materieControlNo"
,
dataIndex
:
"materieControlNo"
,
key
:
"materieControlNo"
,
key
:
"materieControlNo"
,
search
:
false
,
},
},
{
{
title
:
"库存数量"
,
title
:
"库存数量"
,
...
...
src/pages/insertstore/Otherinstore/index.jsx
View file @
2616c243
...
@@ -60,19 +60,12 @@ const defaultFields = {
...
@@ -60,19 +60,12 @@ const defaultFields = {
options
:
{
options
:
{
database
:
()
=>
database
:
()
=>
doFetch
({
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
url
:
"/ngic-auth/sysStore/selectionBox
All
"
,
params
:
{
factoryIdList
:
[]
},
params
:
{},
}),
}),
params
:
{},
params
:
{},
},
},
},
},
businessNo
:
{
value
:
null
,
type
:
"input"
,
title
:
"相关单号"
,
name
:
[
"businessNo"
],
required
:
false
,
},
remark
:
{
remark
:
{
value
:
null
,
value
:
null
,
type
:
"textarea"
,
type
:
"textarea"
,
...
@@ -95,16 +88,20 @@ const defaultFields = {
...
@@ -95,16 +88,20 @@ const defaultFields = {
//根据url接口 改变某个value
//根据url接口 改变某个value
database
:
(
params
)
=>
database
:
(
params
)
=>
doFetch
({
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/queryUnitByMaterie
Id"
,
url
:
"/ngic-workmanship/
wmsMaterieLabel/queryBy
Id"
,
params
,
params
,
}),
}),
params
:
{
materie
Id
:
"linked"
},
params
:
{
label
Id
:
"linked"
},
effectresult
:
{
effectresult
:
{
productionUnit
:
"productionUnit"
,
//key 为列表更新值 value为response 返回值
productionUnitName
:
"productionUnitName"
,
productionUnitName
:
"productionUnitName"
,
materieControlNo
:
"materialCode"
,
materieCode
:
"materieCode"
,
instroeNum
:
"instroeNum"
,
supplierId
:
"supplierId"
,
supplierId
:
"supplierId"
,
supplierName
:
"supplierName"
,
width
:
"width"
,
ironLoss
:
"ironLoss"
,
sheetThickness
:
"sheetThickness"
,
shopSign
:
"shopSign"
,
weight
:
"weight"
,
},
},
},
},
},
},
...
@@ -112,17 +109,17 @@ const defaultFields = {
...
@@ -112,17 +109,17 @@ const defaultFields = {
{
{
title
:
(
title
:
(
<
span
>
<
span
>
物料编码-名称
<
b
style=
{
{
color
:
"red"
}
}
>
*
</
b
>
批次号
<
b
style=
{
{
color
:
"red"
}
}
>
*
</
b
>
</
span
>
</
span
>
),
),
dataIndex
:
"
materie
Id"
,
dataIndex
:
"
label
Id"
,
key
:
"
materie
Id"
,
key
:
"
label
Id"
,
valueType
:
"select"
,
valueType
:
"select"
,
width
:
300
,
width
:
300
,
request
:
async
()
=>
{
request
:
async
()
=>
{
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/
pmMaterie/query/selectbox
"
,
url
:
"/ngic-workmanship/
wmsMaterieLabel/selectionByStatus
"
,
params
:
{},
params
:
{
status
:
"1"
},
});
});
return
res
?.
data
?.
dataList
;
return
res
?.
data
?.
dataList
;
},
},
...
@@ -139,56 +136,63 @@ const defaultFields = {
...
@@ -139,56 +136,63 @@ const defaultFields = {
{
{
title
:
(
title
:
(
<
span
>
<
span
>
供应商编号
-名称
<
b
style=
{
{
color
:
"red"
}
}
>
*
</
b
>
物料编码
-名称
<
b
style=
{
{
color
:
"red"
}
}
>
*
</
b
>
</
span
>
</
span
>
),
),
dataIndex
:
"
supplierId
"
,
dataIndex
:
"
materieCode
"
,
key
:
"
supplierId
"
,
key
:
"
materieCode
"
,
valueType
:
"select"
,
valueType
:
"select"
,
width
:
300
,
width
:
300
,
request
:
async
()
=>
{
readonly
:
true
,
let
res
=
await
doFetch
({
url
:
"/ngic-auth/sysSupplier/query/selection/withNo"
,
params
:
{},
});
return
res
?.
data
?.
dataList
;
},
},
fieldProps
:
{
{
allowClear
:
true
,
title
:
"规格型号"
,
showSearch
:
true
,
dataIndex
:
"specificationModel"
,
key
:
"specificationModel"
,
readonly
:
true
,
},
},
formItemProps
:
()
=>
{
return
{
{
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}],
title
:
"供应商"
,
};
dataIndex
:
"supplierName"
,
key
:
"supplierName"
,
readonly
:
"supplierName"
,
},
},
{
title
:
"宽度"
,
dataIndex
:
"width"
,
key
:
"width"
,
readonly
:
"width"
,
},
},
{
{
title
:
"批次号/SN号"
,
title
:
"铁损"
,
dataIndex
:
"materieControlNo"
,
dataIndex
:
"ironLoss"
,
key
:
"materieControlNo"
,
key
:
"ironLoss"
,
readonly
:
"ironLoss"
,
},
},
{
{
title
:
(
title
:
"片厚"
,
<
span
>
dataIndex
:
"sheetThickness"
,
入库数量
<
b
style=
{
{
color
:
"red"
}
}
>
*
</
b
>
key
:
"sheetThickness"
,
</
span
>
readonly
:
"sheetThickness"
,
),
},
dataIndex
:
"instroeNum"
,
{
key
:
"instroeNum"
,
title
:
"牌号"
,
formItemProps
:
()
=>
{
dataIndex
:
"shopSign"
,
return
{
key
:
"shopSign"
,
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}],
readonly
:
"shopSign"
,
};
},
},
valueType
:
"digit"
,
{
title
:
"入库数量"
,
dataIndex
:
"weight"
,
key
:
"weight"
,
readonly
:
"weight"
,
},
},
{
{
title
:
"库存单位"
,
title
:
"库存单位"
,
dataIndex
:
"productionUnitName"
,
dataIndex
:
"productionUnitName"
,
key
:
"productionUnitName"
,
key
:
"productionUnitName"
,
readonly
:
"productionUnitName"
,
readonly
:
"productionUnitName"
,
width
:
88
,
},
},
{
{
title
:
"操作"
,
title
:
"操作"
,
...
@@ -1026,7 +1030,7 @@ function Instore(props) {
...
@@ -1026,7 +1030,7 @@ function Instore(props) {
if
(
drawprops
.
val
==
"add"
)
{
if
(
drawprops
.
val
==
"add"
)
{
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
"/ngic-workmanship/wmsMaterieInstore/saveInStore"
,
url
:
"/ngic-workmanship/wmsMaterieInstore/saveInStore"
,
params
:
{
...
value
,
instoreType
:
drawprops
.
instoreType
},
params
:
{
...
value
},
});
});
if
(
res
.
code
==
"0000"
)
{
if
(
res
.
code
==
"0000"
)
{
reload
();
reload
();
...
...
src/pages/outsetstore/Outstore/index.jsx
View file @
2616c243
...
@@ -212,7 +212,7 @@ function Outstore(props) {
...
@@ -212,7 +212,7 @@ function Outstore(props) {
key
:
"applyTimeList"
,
key
:
"applyTimeList"
,
valueType
:
"dateRange"
,
valueType
:
"dateRange"
,
formItemProps
:
{
formItemProps
:
{
name
:
"
create
TimeList"
,
name
:
"
apply
TimeList"
,
},
},
},
},
{
{
...
@@ -328,7 +328,7 @@ function Outstore(props) {
...
@@ -328,7 +328,7 @@ function Outstore(props) {
search
:
false
,
search
:
false
,
valueType
:
"dateRange"
,
valueType
:
"dateRange"
,
formItemProps
:
{
formItemProps
:
{
name
:
"
create
TimeList"
,
name
:
"
apply
TimeList"
,
},
},
},
},
{
{
...
...
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