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
a6432029
Commit
a6432029
authored
Apr 03, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
7d5ece4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
125 deletions
+50
-125
add.vue
pages/aps/aps/add.vue
+50
-125
No files found.
pages/aps/aps/add.vue
View file @
a6432029
...
...
@@ -3,12 +3,12 @@
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"100"
>
<Row
:gutter=
"20"
>
<Col
span=
"12"
>
<div
class=
"
left-up
"
>
<p
class=
"title
-c
"
>
参数设置
</p>
<FormItem
:label=
"l('plan_method')"
prop=
"plan
_m
ethod"
>
<i-switch
v-model=
"entity.plan
_m
ethod"
size=
"large"
>
<span
slot=
"open"
>
On
</span>
<span
slot=
"close"
>
Off
</span>
<div
class=
"
filedset
"
>
<p
class=
"title"
>
参数设置
</p>
<FormItem
:label=
"l('plan_method')"
prop=
"plan
M
ethod"
>
<i-switch
v-model=
"entity.plan
M
ethod"
size=
"large"
>
<span
slot=
"open"
>
平行
</span>
<span
slot=
"close"
>
重叠
</span>
</i-switch>
</FormItem>
<FormItem
:label=
"l('calId')"
prop=
"calId"
>
...
...
@@ -21,22 +21,21 @@
></Option>
</Select>
</FormItem>
<Divider
/>
<FormItem
:label=
"l('overTime')"
prop=
"overTime"
>
<i-switch
v-model=
"entity.overTime"
size=
"large"
>
<span
slot=
"open"
>
On
</span>
<span
slot=
"close"
>
Off
</span>
<span
slot=
"open"
>
加班
</span>
<span
slot=
"close"
>
不加班
</span>
</i-switch>
</FormItem>
<FormItem
:label=
"l('efficiencyValue')"
prop=
"efficiencyValue"
>
<Input
v-model=
"entity.efficiencyValue"
style=
"width:150px"
></Input>
</FormItem>
<FormItem
:label=
"l('run_time')"
prop=
"run_time"
>
<InputNumber
v-model=
"entity.run_time"
></InputNumber>
</FormItem>
<InputNumber
v-model=
"entity.efficiencyValue"
:step=
"0.1"
></InputNumber
>
</FormItem>
<Divider
/>
<FormItem
:label=
"l('isDiscrete')"
prop=
"isDiscrete"
>
<i-switch
v-model=
"entity.isDiscrete"
size=
"large"
>
<span
slot=
"open"
>
On
</span>
<span
slot=
"close"
>
Off
</span>
<span
slot=
"open"
>
是
</span>
<span
slot=
"close"
>
否
</span>
</i-switch>
</FormItem>
<FormItem
:label=
"l('discrete')"
prop=
"discrete"
>
...
...
@@ -46,10 +45,10 @@
<InputNumber
v-model=
"entity.discrete_percent"
></InputNumber>
</FormItem>
</div>
<div
class=
"
left-donw
"
>
<p
class=
"title
-c
"
>
参数级别
</p>
<div
class=
"
filedset
"
>
<p
class=
"title"
>
参数级别
</p>
<div
class=
"icon"
>
<Dropdown
trigger=
"c
ustom"
:visible=
"visible"
style=
"width:150px"
>
<Dropdown
trigger=
"c
lick"
>
<a
href=
"javascript:void(0)"
@
click=
"handleOpen"
>
<Icon
type=
"md-git-compare"
/>
</a>
...
...
@@ -86,44 +85,33 @@
</Dropdown>
</div>
<div
class=
"slider"
>
<Slider
v-model=
"entity.level"
:step=
"20"
show-stops
></Slider>
<div
class=
"slow"
>
慢
</div>
<div
class=
"fast"
>
快
</div>
<Slider
v-model=
"entity.level"
:step=
"1"
:min=
"1"
:max=
"5"
:marks=
"
{1:'慢',5:'块'}" show-stops>
</Slider>
</div>
</div>
</Col>
<Col
span=
"12"
>
<div
class=
"
right-up
"
>
<p
class=
"title
-d
"
>
多台分配设置
</p>
<div
class=
"
filedset
"
>
<p
class=
"title"
>
多台分配设置
</p>
<div
class=
"duo"
>
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('multi_machine')"
prop=
"multi
_machine
"
>
<i-switch
v-model=
"entity.
switch4
"
size=
"large"
>
<span
slot=
"open"
>
On
</span>
<span
slot=
"close"
>
Off
</span>
<FormItem
:label=
"l('multi_machine')"
prop=
"multi
pleEquip
"
>
<i-switch
v-model=
"entity.
multipleEquip
"
size=
"large"
>
<span
slot=
"open"
>
是
</span>
<span
slot=
"close"
>
否
</span>
</i-switch>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"多台数量"
prop=
"
abbre
"
>
<InputNumber
v-model=
"entity.
abbre
"
></InputNumber>
<FormItem
label=
"多台数量"
prop=
"
multipleCount
"
>
<InputNumber
v-model=
"entity.
multipleCount
"
></InputNumber>
</FormItem>
</Col>
</Row>
<FormItem
label=
"班组结构"
>
<Select
v-model=
"entity.shopId"
placeholder=
"请选择"
style=
"width:150px"
prop=
"shopId"
>
<Option
v-for=
"(item,index) in list"
:key=
"index"
:value=
"item.value"
:label=
"item.title"
style=
"display:none"
></Option>
<Tree
key=
"mytree"
:data=
"data1"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
<FormItem
label=
"生产设备"
>
<EquipSelect
v-model=
"entity.multipleEquipIds"
>
</EquipSelect>
</FormItem>
<div
class=
"check-box"
>
<
!--
<
div
class=
"check-box"
>
<CheckboxGroup
v-model=
"entity.fruit"
>
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
...
...
@@ -134,17 +122,13 @@
<Checkbox
label=
"10985553333(数控车床 车工班)"
></Checkbox>
<br
/>
</CheckboxGroup>
</div>
</div>
-->
</div>
</div>
<div
class=
"
left-donw right-down
"
>
<p
class=
"title
-c
"
>
参数应用
</p>
<div
class=
"
filedset
"
>
<p
class=
"title"
>
参数应用
</p>
<div
class=
"slider"
>
<Slider
v-model=
"entity.value2"
:step=
"33.3"
show-stops
></Slider>
<div
class=
"slow"
>
工序
</div>
<div
class=
"ding"
>
订单
</div>
<div
class=
"ling"
>
零件
</div>
<div
class=
"fast"
>
所有
</div>
<Slider
v-model=
"entity.flog"
:step=
"1"
:min=
"1"
:max=
"5"
:marks=
"marks"
size=
"large"
></Slider>
</div>
</div>
</Col>
...
...
@@ -165,13 +149,19 @@ export default {
flog
:
0
,
//参数应用
planMethod
:
"转序规则"
,
// 平行 重叠
shopId
:
null
,
level
:
1
00
,
level
:
1
,
value2
:
100
,
fruit
:
[]
},
list
:
[],
data1
:
[],
marks
:{
1
:
'工序'
,
2
:
'计划'
,
3
:
'零件'
,
4
:
'批次'
,
5
:
'所有'
,
},
listCal
:
[],
visible
:
false
,
rules
:
{
...
...
@@ -256,9 +246,6 @@ export default {
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
handleOpen
()
{
this
.
visible
=
true
;
},
handle
()
{
this
.
visible
=
false
;
},
...
...
@@ -274,28 +261,13 @@ export default {
<
style
lang=
"less"
scoped
>
.parameter {
margin: 10px;
.left-up {
position: relative;
border: 1px solid #e0e0e0;
padding: 25px 0;
.title-c {
width: 68px;
padding-left: 5px;
background: #fff;
position: absolute;
top: -9px;
left: 25px;
color: #2680eb;
}
}
.left-donw {
margin-top: 15px;
.filedset {
position: relative;
border: 1px solid #e0e0e0;
padding: 25px 0;
.title
-c
{
width: 68px
;
margin-bottom: 20px;
.title {
display: inline-block
;
padding-left: 5px;
background: #fff;
position: absolute;
...
...
@@ -303,62 +275,15 @@ export default {
left: 25px;
color: #2680eb;
}
.slider {
margin: 0 50px 0 50px;
position: relative;
.slow {
position: absolute;
top: 7px;
left: -5px;
}
.fast {
position: absolute;
top: 7px;
right: -10px;
}
.ding {
position: absolute;
top: 7px;
left: 30%;
}
.ling {
position: absolute;
top: 7px;
right: 30%;
}
}
.icon {
text-align: right;
padding-right: 15px;
margin-top: -15px;
}
}
.right-up {
position: relative;
border: 1px solid #e0e0e0;
padding: 25px 0;
.title-d {
width: 95px;
padding-left: 5px;
margin-left: 10px;
background: #fff;
.icon{
position: absolute;
top: -9px;
left: 25px;
color: #2680eb;
right: -10px;
top:10px;
}
.check-box {
height: 348px;
border-top: 1px solid #e0e0e0;
padding: 15px;
padding-left: 0;
margin-left: 25px;
overflow: auto;
.slider{
padding: 0 20px;
}
}
.right-down {
height: 92px;
}
.click-btn {
text-align: right;
margin-top: 15px;
...
...
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