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
4f5c7fb1
Commit
4f5c7fb1
authored
Jun 20, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
killer
parent
281248ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
99 deletions
+2
-99
Index.jsx
src/pages/craft/Materiel/Index.jsx
+1
-45
detailTotalCard.js
src/utils/detailTotalCard.js
+1
-54
No files found.
src/pages/craft/Materiel/Index.jsx
View file @
4f5c7fb1
...
...
@@ -582,51 +582,7 @@ const Materiel = (props) => {
style=
{
{
position
:
"absolute"
}
}
width=
{
"100%"
}
>
{
iftype
.
val
==
"bom"
?
(
<>
<
Row
gutter=
{
[
16
,
10
]
}
>
{
Object
.
keys
(
otherBasic
).
map
((
it
)
=>
{
return
(
<
Coltext
label=
{
otherBasic
[
it
]
}
value=
{
curitem
[
it
]
}
key=
{
it
}
/>
);
})
}
</
Row
>
<
Divider
/>
<
Button
type=
"primary"
style=
{
{
marginBottom
:
15
}
}
onClick=
{
()
=>
{
let
fieldsData
=
formRef
.
getFieldValue
(
"materieBomList"
)
??
[],
leftData
=
formRef
.
getFieldValue
(
"materieList"
)
??
[];
fieldsData
=
JSON
.
parse
(
JSON
.
stringify
(
fieldsData
));
leftData
=
JSON
.
parse
(
JSON
.
stringify
(
leftData
));
let
newDatas
=
[...
fieldsData
,
...
leftData
].
map
((
it
,
i
)
=>
{
it
.
rowKey
=
String
(
i
);
return
it
;
})
??
[];
formRef
.
setFieldsValue
({
materieBomList
:
[...
newDatas
],
materieList
:
[],
});
}
}
>
添加至Bom信息
</
Button
>
<
InitForm
formRef=
{
formRef
}
fields=
{
fields
}
onChange=
{
(
changedValues
,
allValues
)
=>
{
}
}
actions=
{
()
=>
{
return
null
;
}
}
></
InitForm
>
</>
)
:
(
{
(
<>
<
InitForm
formRef=
{
formRef
}
...
...
src/utils/detailTotalCard.js
View file @
4f5c7fb1
...
...
@@ -651,60 +651,7 @@ const materielDetail = [
},
],
},
{
cardTitle
:
"BOM信息"
,
itemData
:
[
{
key
:
"materieBomTreeList"
,
type
:
"table"
,
col
:
{
span
:
24
},
columns
:
[
{
title
:
"物料编号"
,
dataIndex
:
"title"
,
key
:
"title"
,
search
:
false
,
},
{
title
:
"物料名称"
,
dataIndex
:
"materieName"
,
key
:
"materieName"
,
search
:
false
,
},
{
title
:
"生产单位(主)"
,
dataIndex
:
"productionUnitName"
,
key
:
"productionUnitName"
,
search
:
false
,
},
{
title
:
"物料类别"
,
dataIndex
:
"materieTypeName"
,
key
:
"materieTypeName"
,
search
:
false
,
},
{
title
:
"台份量"
,
dataIndex
:
"numberUnits"
,
key
:
"numberUnits"
,
search
:
false
,
},
{
title
:
"产出工序"
,
dataIndex
:
"workingProduceName"
,
key
:
"workingProduceName"
,
search
:
false
,
},
{
title
:
"投料工序"
,
dataIndex
:
"workingFeedingName"
,
key
:
"workingFeedingName"
,
search
:
false
,
},
],
},
],
},
];
const
shiftgroupDetail
=
[
//班组信息详情
...
...
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