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
a4bd4a28
Commit
a4bd4a28
authored
May 15, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程样试修改
parent
cded697f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
85 deletions
+88
-85
details.vue
pages/technology/details.vue
+72
-71
add.vue
pages/technology/details/add.vue
+8
-7
edit.vue
pages/technology/details/edit.vue
+7
-6
index.vue
pages/technology/details/index.vue
+1
-1
No files found.
pages/technology/details.vue
View file @
a4bd4a28
<
style
lang=
"less"
>
@import './technolog.less';
.details_box{
background: #f5f7f9;
display: flex;
margin: 0 20px;
flex-direction: column;
.details_body{
flex-grow: 1;
// width: 561px;
text-align: center;
background: white;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item{
width: 140px;
border-right: 1px solid #E0E0E0;
border-bottom: 1px solid #E0E0E0;
border-top: 1px solid #E0E0E0;
background: rgba(243,243,243,1);
}
.ivu-menu-item-active.ivu-menu-item-selected{
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
}
}
.bottom_box{
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
@import "./technolog.less";
.details_box {
background: #f5f7f9;
display: flex;
margin: 0 20px;
flex-direction: column;
.details_body {
flex-grow: 1;
// width: 561px;
text-align: center;
background: white;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item {
width: 140px;
border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
background: rgba(243, 243, 243, 1);
}
.ivu-menu-item-active.ivu-menu-item-selected {
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
}
}
.bottom_box {
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
}
}
</
style
>
<
template
>
<div
class=
"details_box"
>
<div
class=
"details_body"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"0"
>
<MenuItem
name=
"0"
:to=
"'/technology/details?id='+headerId"
>
工序
</MenuItem>
<!--
<MenuItem
name=
"1"
:to=
"'/technology/details/routingStep?id='+headerId"
>
工步
</MenuItem>
-->
<MenuItem
name=
"2"
:to=
"'/technology/details/routingqccard?id='+headerId"
>
质控卡
</MenuItem>
<MenuItem
name=
"3"
:to=
"'/technology/details/routingsupporting?id='+headerId"
>
工艺BOM
</MenuItem>
<!--
<MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem>
-->
<MenuItem
name=
"5"
:to=
"'/technology/details/routinghcorder?id='+headerId"
>
工艺更改单
</MenuItem>
</Menu>
</div>
<div
class=
"bottom_box"
>
<nuxt-child
keep-alive
:headerid=
"headerId"
></nuxt-child>
</div>
<div
class=
"details_box"
>
<div
class=
"details_body"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"0"
>
<MenuItem
name=
"0"
:to=
"'/technology/details?id='+headerId"
>
工序
</MenuItem>
<!--
<MenuItem
name=
"1"
:to=
"'/technology/details/routingStep?id='+headerId"
>
工步
</MenuItem>
-->
<MenuItem
name=
"2"
:to=
"'/technology/details/routingqccard?id='+headerId"
>
质控卡
</MenuItem>
<MenuItem
name=
"3"
:to=
"'/technology/details/routingsupporting?id='+headerId"
>
工艺BOM
</MenuItem>
<!--
<MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem>
-->
<MenuItem
name=
"5"
:to=
"'/technology/details/routinghcorder?id='+headerId"
>
工艺更改单
</MenuItem>
</Menu>
</div>
<div
class=
"bottom_box"
>
<nuxt-child
keep-alive
:headerid=
"headerId"
></nuxt-child>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
layout
:
"empty"
,
layout
:
"empty"
,
components
:
{},
data
()
{
return
{
showMenu
:
true
,
treeHeight
:
''
,
actNum
:
'1'
,
headerId
:
-
1
}
showMenu
:
true
,
treeHeight
:
""
,
actNum
:
"1"
,
headerId
:
-
1
}
;
},
created
()
{
console
.
log
(
"xiang"
,
this
.
$route
,
this
.
router
)
this
.
headerId
=
this
.
$route
.
query
.
id
;
created
()
{
console
.
log
(
"xiang"
,
this
.
$route
,
this
.
router
);
this
.
headerId
=
this
.
$route
.
query
.
id
;
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
mounted
()
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
computed
:
{
},
methods
:
{
},
watch
:{
}
}
mounted
()
{},
computed
:
{},
methods
:
{},
watch
:
{}
};
</
script
>
<
style
>
/* 弹框title */
.ivu-modal-header-inner
{
color
:
#2680eb
!important
;
}
</
style
>
pages/technology/details/add.vue
View file @
a4bd4a28
<
template
>
<div
class=
"details"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"1
1
0"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"1
2
0"
>
<Row>
<!--
<Col
:span=
"12"
>
...
...
@@ -75,23 +75,23 @@
-->
<Col
:span=
"8"
>
<FormItem
:label=
"l('taskSeq')"
prop=
"taskSeq"
>
<InputNumber
v-model=
"maxNum"
style=
"width:
100%
"
></InputNumber>
<InputNumber
v-model=
"maxNum"
style=
"width:
235px
"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
></Input>
<Input
v-model=
"entity.name"
style=
"width:235px"
></Input>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('equipType')"
prop=
"equipTypeId"
>
<EquipSelect
v-model=
"entity.equipTypeId"
@
on-change=
"equipChange"
></EquipSelect>
<EquipSelect
v-model=
"entity.equipTypeId"
@
on-change=
"equipChange"
style=
"width:235px"
></EquipSelect>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('resourceType')"
prop=
"resourceType"
>
<!--
<Dictionary
code=
"Process.routing_detail.resource_type"
v-model=
"entity.resourceType"
></Dictionary>
-->
<ResourceSelect
v-model=
"entity.resourceId"
@
on-change=
"resourceChange"
></ResourceSelect>
<ResourceSelect
v-model=
"entity.resourceId"
@
on-change=
"resourceChange"
style=
"width:235px"
></ResourceSelect>
</FormItem>
</Col>
<Col
:span=
"8"
>
...
...
@@ -147,14 +147,15 @@
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('efficiencyValue')"
prop=
"efficiencyValue"
>
<InputNumber
v-model=
"entity.efficiencyValue"
style=
"width:
100%
"
></InputNumber>
<InputNumber
v-model=
"entity.efficiencyValue"
style=
"width:
235px
"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('singleOut')"
prop=
"singleOut"
>
<InputNumber
v-model=
"entity.singleOut"
style=
"width:
100%
"
></InputNumber>
<InputNumber
v-model=
"entity.singleOut"
style=
"width:
235px
"
></InputNumber>
</FormItem>
</Col>
<Divider
/>
<Col
:span=
"24"
>
<FormItem
:label=
"l('taskContent')"
prop=
"taskContent"
>
<i-quill
v-model=
"entity.taskContent"
:height=
"200"
v-paste=
"handleImg"
border
/>
...
...
pages/technology/details/edit.vue
View file @
a4bd4a28
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"1
00
"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"1
20"
class=
"eid-form
"
>
<Row>
<Col
:span=
"8"
>
<FormItem
:label=
"l('taskSeq')"
prop=
"taskSeq"
>
<InputNumber
v-model=
"entity.taskSeq"
></InputNumber
>
<InputNumber
v-model=
"entity.taskSeq"
style=
"width:235px"
></InputNumber
>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
></Input>
<Input
v-model=
"entity.name"
style=
"width:235px"
></Input>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('equipType')"
prop=
"equipTypeId"
>
<EquipSelect
v-model=
"entity.equipTypeId"
@
on-change=
"equipChange"
></EquipSelect>
<EquipSelect
v-model=
"entity.equipTypeId"
@
on-change=
"equipChange"
style=
"width:235px"
></EquipSelect>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('resourceType')"
prop=
"resourceType"
>
<ResourceSelect
v-model=
"entity.resourceId"
@
on-change=
"resourceChange"
></ResourceSelect>
<ResourceSelect
v-model=
"entity.resourceId"
@
on-change=
"resourceChange"
style=
"width:235px"
></ResourceSelect>
</FormItem>
</Col>
<Col
:span=
"8"
>
...
...
@@ -82,6 +82,7 @@
<InputNumber
v-model=
"entity.singleOut"
></InputNumber>
</FormItem>
</Col>
<Divider
/>
<Col
:span=
"24"
>
<FormItem
:label=
"l('taskContent')"
prop=
"taskContent"
>
<i-quill
v-model=
"entity.taskContent"
:height=
"200"
border
v-paste=
"handleImg"
/>
...
...
@@ -199,4 +200,4 @@ export default {
}
}
};
</
script
>
\ No newline at end of file
</
script
>
pages/technology/details/index.vue
View file @
a4bd4a28
...
...
@@ -5,7 +5,7 @@
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1
2
00"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1
3
00"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
...
...
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