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
10eb0d8e
Commit
10eb0d8e
authored
Apr 09, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
e2b29d32
b7502324
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
16 deletions
+59
-16
add.vue
pages/aps/aps/add.vue
+57
-16
excute.vue
pages/aps/aps/components/excute.vue
+2
-0
No files found.
pages/aps/aps/add.vue
View file @
10eb0d8e
...
...
@@ -119,15 +119,15 @@
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('run_time')"
prop=
"run_time"
>
<span
v-text=
"run_time"
></span>
</FormItem>
<FormItem
:label=
"l('run_time')"
prop=
"run_time"
>
<span
v-text=
"run_time"
></span>
</FormItem>
</Col>
</Row>
<Divider
/>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
lisan
"
>
<i-switch
v-model=
"entity.
lisan
"
size=
"large"
>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
isDiscrete
"
>
<i-switch
v-model=
"entity.
isDiscrete
"
size=
"large"
>
<span
slot=
"open"
>
是
</span>
<span
slot=
"close"
>
否
</span>
</i-switch>
...
...
@@ -171,7 +171,7 @@ export default {
overTime
:
"不加班"
,
//"六日加班", 不加班 加班
efficiencyValue
:
11
,
// 效率系数, 必须大于 0
shopId
:
null
,
lisan
:
true
,
isDiscrete
:
true
,
isDiscrete
:
"否"
,
discrete
:
1
,
//离散数值 必须大于 1
multiple
:
true
,
...
...
@@ -231,9 +231,15 @@ export default {
type
:
Number
,
default
:
0
},
run_time
:{
run_time
:
{
type
:
Number
,
default
:
0
default
:
0
},
row
:
{
type
:
Object
,
default
:
()
=>
{
return
null
;
}
}
},
created
()
{
...
...
@@ -272,26 +278,37 @@ export default {
this
.
entity
.
over
=
u
.
OverTime
==
"不加班"
;
this
.
entity
.
overTime
=
u
.
parameterValue
;
}
else
if
(
u
.
parametersCode
==
"Discrete"
)
{
this
.
entity
.
lisan
=
u
.
parameterValue
==
"是"
;
this
.
entity
.
isDiscrete
=
u
.
parameterValue
==
"是"
;
this
.
entity
.
isDiscrete
=
u
.
parameterValue
;
}
});
},
handleSubmit
()
{
alert
(
2
)
this
.
$refs
.
form
.
validate
(
valid
=>
{
alert
(
3
)
if
(
valid
)
{
if
(
this
.
opTaskPk
==
0
&&
this
.
partTaskPk
>
0
&&
this
.
entity
.
flog
<
1
){
this
.
$Message
.
error
(
"计划参数调整参数应用范围不能是工序级的"
)
this
.
entity
.
flog
=
1
;
alert
(
4
)
if
(
this
.
opTaskPk
==
0
&&
this
.
partTaskPk
>
0
&&
this
.
entity
.
flog
<
1
)
{
this
.
$Message
.
error
(
"计划参数调整参数应用范围不能是工序级的"
);
this
.
entity
.
flog
=
1
;
return
;
}
this
.
entity
.
multipleEquipIds
=
this
.
entity
.
multipleEquipPks
.
join
();
if
(
this
.
entity
.
multipleEquipPks
){
this
.
entity
.
multipleEquipIds
=
this
.
entity
.
multipleEquipPks
.
join
();
}
//
this
.
entity
.
planMethod
=
this
.
entity
.
planState
?
"重叠"
:
"平行"
;
this
.
entity
.
overTime
=
this
.
entity
.
over
?
"不加班"
:
"加班"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
lisan
?
"是"
:
"否"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
isDiscrete
?
"是"
:
"否"
;
this
.
entity
.
multipleEquip
=
this
.
entity
.
multiple
?
"是"
:
"否"
;
Api
.
apsschedulupdateparameter
(
this
.
entity
)
.
then
(
res
=>
{
alert
(
5
)
if
(
res
.
result
.
state
)
{
this
.
$Message
.
success
(
res
.
result
.
msg
);
this
.
$emit
(
"on-parameter-ok"
);
...
...
@@ -336,11 +353,35 @@ export default {
},
opTaskPk
(
v
,
n
)
{
this
.
entity
.
opTaskPk
=
v
;
if
(
v
>
0
){
let
entity
=
{
partTaskPk
:
this
.
row
.
part_task_pk
,
opTaskPk
:
this
.
row
.
op_task_pk
,
taskSeq
:
this
.
row
.
task_seq
,
flog
:
5
,
//参数应用范围
calId
:
null
,
planState
:
true
,
planMethod
:
this
.
row
.
plan_method
,
// 平行 重叠
over
:
false
,
overTime
:
this
.
row
.
over_time
,
//"六日加班", 不加班 加班
efficiencyValue
:
this
.
row
.
efficiency_value
,
// 效率系数, 必须大于 0
shopId
:
null
,
isDiscrete
:
this
.
row
.
isdiscrete
,
isDiscrete
:
"否"
,
discrete
:
this
.
row
.
discrete_value
,
//离散数值 必须大于 1
multiple
:
true
,
multipleEquip
:
this
.
row
.
multi_machine
,
//"是否多台安排设备", 否 是
multipleCount
:
1
,
//多台数量
multipleEquipPks
:
[],
multipleEquipIds
:
""
,
//"设备id", 用英文逗号分隔
}
this
.
entity
=
entity
}
this
.
entity
.
taskSeq
=
this
.
taskSeq
;
},
count
(
v
,
n
)
{
this
.
entity
.
discrete
=
1
;
}
}
,
}
};
</
script
>
...
...
@@ -375,7 +416,7 @@ export default {
}
}
}
.h50{
.h50
{
height: 115px;
}
.click-btn {
...
...
pages/aps/aps/components/excute.vue
View file @
10eb0d8e
...
...
@@ -27,6 +27,7 @@
:partTaskPk=
"setParams.partTaskPk"
:taskSeq=
"setParams.taskSeq"
:count=
"setParams.count"
:row=
"rowData"
/>
</Modal>
</div>
...
...
@@ -429,6 +430,7 @@ export default {
taskSeq
:
row
.
task_seq
,
count
:
row
.
put_into_qty
};
this
.
rowData
=
row
this
.
setParsModal
=
true
;
},
//单个工序进行参数设置end----
...
...
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