Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
2ab2fbcc
Commit
2ab2fbcc
authored
Sep 14, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bom
parent
be2de13a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
410 additions
and
438 deletions
+410
-438
index.vue
pages/technology/details/routingsupporting/index.vue
+410
-438
No files found.
pages/technology/details/routingsupporting/index.vue
View file @
2ab2fbcc
<
template
>
<
template
>
<div>
<div>
<DataGrid
<DataGrid
:columns=
"columns"
ref=
"grid"
:conditions=
"easySearch"
:action=
"action"
exportTitle=
"工艺Bom"
>
:columns=
"columns"
ref=
"grid"
:conditions=
"easySearch"
:action=
"action"
exportTitle=
"工艺Bom"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
...
@@ -26,26 +20,10 @@
...
@@ -26,26 +20,10 @@
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"850"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"850"
footer-hide
>
<component
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
:productBomId=
"productBomId"
:materialId=
"materialId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
:productBomId=
"productBomId"
:materialId=
"materialId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Modal>
<ImportExcel
<ImportExcel
ref=
"importExcel"
@
on-get-data=
"getData"
:modalTitle=
"temTitle"
:columns=
"columns"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
ref=
"importExcel"
</div>
@
on-get-data=
"getData"
:modalTitle=
"temTitle"
:columns=
"columns"
:open=
"ModalIm"
@
on-cancel=
"ModalImCancel"
@
on-ok=
"ok"
/>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -82,8 +60,7 @@ export default {
...
@@ -82,8 +60,7 @@ export default {
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
hid
:
0
,
hid
:
0
,
columns
:
[
columns
:
[{
{
key
:
"routingDetailNo"
,
key
:
"routingDetailNo"
,
title
:
this
.
l
(
"routingDetailNo"
),
title
:
this
.
l
(
"routingDetailNo"
),
align
:
"left"
,
align
:
"left"
,
...
@@ -91,42 +68,41 @@ export default {
...
@@ -91,42 +68,41 @@ export default {
width
:
100
,
width
:
100
,
sortable
:
true
,
sortable
:
true
,
},
},
// {
{
// key: "routingHeaderId",
key
:
"routingHeaderId"
,
// title: this.l("routingHeaderName"),
title
:
this
.
l
(
"routingHeaderName"
),
// hide: true,
hide
:
true
,
// import: true,
import
:
true
,
// techKey: "1",
techKey
:
"1"
,
// render: (h, params) => {
render
:
(
h
,
params
)
=>
{
// return h(
return
h
(
// "span",
"span"
,
{},
// {},
this
.
getRoutingHeaderName
(
params
.
row
.
routingHeaderId
)
// this.getRoutingHeaderName(params.row.routingHeaderId)
);
// );
},
// },
},
// },
{
{
key
:
"routingDetailName"
,
key
:
"routingDetailName"
,
title
:
this
.
l
(
"routingDetailName"
),
title
:
this
.
l
(
"routingDetailName"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
},
},
//
{
{
//
key: "routingDetailId",
key
:
"routingDetailId"
,
//
title: this.l("routingDetailId"),
title
:
this
.
l
(
"routingDetailId"
),
//
hide: true,
hide
:
true
,
//
import: true,
import
:
true
,
//
},
},
//
{
{
//
key: "materialType",
key
:
"materialType"
,
//
title: this.l("materialType"),
title
:
this
.
l
(
"materialType"
),
//
align: "center",
align
:
"center"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
code: "mes_xingchi_resource.material.materialReType",
code
:
"mes_xingchi_resource.material.materialReType"
,
//
width: 100,
width
:
100
,
//
},
},
{
{
key
:
"materialNumber"
,
key
:
"materialNumber"
,
title
:
this
.
l
(
"materialNumber"
),
title
:
this
.
l
(
"materialNumber"
),
...
@@ -134,13 +110,13 @@ export default {
...
@@ -134,13 +110,13 @@ export default {
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
},
},
//
{
{
//
key: "materialId",
key
:
"materialId"
,
//
title: this.l("materialId"),
title
:
this
.
l
(
"materialId"
),
//
align: "left",
align
:
"left"
,
//
hide: true,
hide
:
true
,
//
import: true,
import
:
true
,
//
},
},
{
{
key
:
"nameMaterial"
,
key
:
"nameMaterial"
,
title
:
this
.
l
(
"nameMaterial"
),
title
:
this
.
l
(
"nameMaterial"
),
...
@@ -166,71 +142,71 @@ export default {
...
@@ -166,71 +142,71 @@ export default {
high
:
true
,
high
:
true
,
width
:
80
,
width
:
80
,
},
},
//
{
{
//
key: "brand",
key
:
"brand"
,
//
title: this.l("brand"),
title
:
this
.
l
(
"brand"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "specifications",
key
:
"specifications"
,
//
title: this.l("specifications"),
title
:
this
.
l
(
"specifications"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "xhgg",
key
:
"xhgg"
,
//
title: this.l("xhgg"),
title
:
this
.
l
(
"xhgg"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
hide: true,
hide
:
true
,
//
},
},
//
{
{
//
key: "texture",
key
:
"texture"
,
//
title: this.l("texture"),
title
:
this
.
l
(
"texture"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "procurementStandards",
key
:
"procurementStandards"
,
//
title: this.l("procurementStandards"),
title
:
this
.
l
(
"procurementStandards"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "qualityGrade",
key
:
"qualityGrade"
,
//
title: this.l("qualityGrade"),
title
:
this
.
l
(
"qualityGrade"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "drawNum",
key
:
"drawNum"
,
//
title: this.l("drawNum"),
title
:
this
.
l
(
"drawNum"
),
//
align: "left",
align
:
"left"
,
//
easy: true,
easy
:
true
,
//
high: true,
high
:
true
,
//
},
},
//
{
{
//
key: "creationTime",
key
:
"creationTime"
,
//
title: this.l("creationTime"),
title
:
this
.
l
(
"creationTime"
),
//
hide: true,
hide
:
true
,
//
align: "left",
align
:
"left"
,
//
hide: true,
hide
:
true
,
//
},
},
//
{
{
//
key: "creatorUserId",
key
:
"creatorUserId"
,
//
title: this.l("creatorUserId"),
title
:
this
.
l
(
"creatorUserId"
),
//
hide: true,
hide
:
true
,
//
align: "left",
align
:
"left"
,
//
hide: true,
hide
:
true
,
//
type: "user",
type
:
"user"
,
//
},
},
// {
// {
// key: "lastModificationTime",
// key: "lastModificationTime",
// title: this.l("lastModificationTime"),
// title: this.l("lastModificationTime"),
...
@@ -253,14 +229,12 @@ export default {
...
@@ -253,14 +229,12 @@ export default {
align
:
"center"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
return
h
(
"div"
,
"div"
,
{
{
class
:
"action"
,
class
:
"action"
,
},
},
[
[
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
,
oprate
:
"detail"
,
},
},
...
@@ -272,8 +246,7 @@ export default {
...
@@ -272,8 +246,7 @@ export default {
),
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"edit"
,
oprate
:
"edit"
,
},
},
...
@@ -284,8 +257,7 @@ export default {
...
@@ -284,8 +257,7 @@ export default {
this
.
headerStatus
==
4
||
this
.
headerStatus
==
0
?
"编辑"
:
""
this
.
headerStatus
==
4
||
this
.
headerStatus
==
0
?
"编辑"
:
""
),
),
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"delete"
,
oprate
:
"delete"
,
},
},
...
@@ -322,7 +294,10 @@ export default {
...
@@ -322,7 +294,10 @@ export default {
this
.
getRoutingHeaderData
();
this
.
getRoutingHeaderData
();
this
.
search
();
this
.
search
();
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:
{
methods
:
{
...
@@ -393,12 +368,10 @@ export default {
...
@@ -393,12 +368,10 @@ export default {
tempData
.
forEach
((
ele
)
=>
{
tempData
.
forEach
((
ele
)
=>
{
let
obj
=
{
let
obj
=
{
routingHeaderId
:
Number
(
this
.
headerid
),
routingHeaderId
:
Number
(
this
.
headerid
),
routingDetailId
:
ele
.
routingDetailId
routingDetailId
:
ele
.
routingDetailId
?
?
Number
(
ele
.
routingDetailId
)
Number
(
ele
.
routingDetailId
)
:
null
,
:
null
,
routingDetailNo
:
ele
.
routingDetailNo
?
routingDetailNo
:
ele
.
routingDetailNo
Number
(
ele
.
routingDetailNo
)
:
null
,
?
Number
(
ele
.
routingDetailNo
)
:
null
,
routingDetailName
:
ele
.
routingDetailName
?
ele
.
routingDetailName
:
""
,
routingDetailName
:
ele
.
routingDetailName
?
ele
.
routingDetailName
:
""
,
routingStepId
:
0
,
routingStepId
:
0
,
quantity
:
ele
.
quantity
?
Number
(
ele
.
quantity
)
:
0
,
quantity
:
ele
.
quantity
?
Number
(
ele
.
quantity
)
:
0
,
...
@@ -410,9 +383,8 @@ export default {
...
@@ -410,9 +383,8 @@ export default {
specifications
:
ele
.
specifications
?
ele
.
specifications
:
""
,
specifications
:
ele
.
specifications
?
ele
.
specifications
:
""
,
xhgg
:
ele
.
xhgg
?
ele
.
xhgg
:
""
,
xhgg
:
ele
.
xhgg
?
ele
.
xhgg
:
""
,
texture
:
ele
.
texture
?
ele
.
texture
:
""
,
texture
:
ele
.
texture
?
ele
.
texture
:
""
,
procurementStandards
:
ele
.
procurementStandards
procurementStandards
:
ele
.
procurementStandards
?
?
ele
.
procurementStandards
ele
.
procurementStandards
:
""
,
:
""
,
qualityGrade
:
ele
.
qualityGrade
?
ele
.
qualityGrade
:
""
,
qualityGrade
:
ele
.
qualityGrade
?
ele
.
qualityGrade
:
""
,
state
:
null
,
state
:
null
,
extend
:
""
,
extend
:
""
,
...
...
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