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
35a08557
Commit
35a08557
authored
Jun 11, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vk31
parent
ebc06c43
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
56 deletions
+45
-56
excute.vue
pages/aps/aps/components/excute.vue
+1
-1
index.vue
pages/aps/aps/index.vue
+14
-12
options.vue
pages/aps/aps/options.vue
+26
-39
index.js
plugins/request/index.js
+4
-4
No files found.
pages/aps/aps/components/excute.vue
View file @
35a08557
<
template
>
<div
style=
"padding: 0;"
class=
"excute"
>
<DataGrid
style=
"margin-top:
-25px; margin-bottom: -25
px;"
style=
"margin-top:
2px; margin-bottom: -20
px;"
:columns=
"columns"
ref=
"grid"
:easy=
"false"
...
...
pages/aps/aps/index.vue
View file @
35a08557
...
...
@@ -11,11 +11,10 @@
@
on-selection-change=
"onSelect"
:batch=
"true"
:border=
"true"
:easy=
"
fals
e"
:easy=
"
tru
e"
>
<template
slot=
"easySearch"
></
template
>
<
template
slot=
"searchBack"
>
<Select
<template
slot=
"easySearch"
>
<div><Select
placeholder=
"选择排序优先级"
v-model=
"tempValue"
style=
"width: 150px;"
...
...
@@ -29,9 +28,17 @@
</a>
<a
style=
"font-weight: bold;"
@
click=
"openDuration"
>
<Icon
type=
"md-create"
size=
"14"
/>
修改外协工期
</a>
<Select
placeholder=
"选择历史方案"
style=
"width: 150px;"
></Select>
<DatePicker
</a>
<Select
placeholder=
"选择历史方案"
style=
"width: 150px;"
></Select>
</div>
</
template
>
<
template
slot=
"searchBack"
>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<DatePicker
type=
"date"
placeholder=
"设置基准日期"
style=
"width: 150px;"
...
...
@@ -41,11 +48,6 @@
<a
style=
"font-weight: bold;"
@
click=
"openAddModel(1)"
>
<Icon
type=
"ios-options"
size=
"14"
/>
工序参数调整
</a>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"goResults"
...
...
pages/aps/aps/options.vue
View file @
35a08557
...
...
@@ -28,34 +28,13 @@
<Icon
type=
"md-git-compare"
/>
</a>
<DropdownMenu
slot=
"list"
style=
"text-align: center;"
>
<DropdownItem>
<DropdownItem
v-for=
"li in items"
:key=
"li"
v-dragging=
"
{ item: li, list: items}"
>
<a
href=
"#"
>
<Icon
type=
"md-apps"
/>
</a>
<span>
转序规则
</span>
</DropdownItem>
<DropdownItem>
<a
href=
"#"
>
<Icon
type=
"md-apps"
/>
</a>
<span>
加班策略
</span>
</DropdownItem>
<DropdownItem>
<a
href=
"#"
>
<Icon
type=
"md-apps"
/>
</a>
<span>
任务平衡
</span>
</DropdownItem>
<DropdownItem>
<a
href=
"#"
>
<Icon
type=
"md-apps"
/>
</a>
<span>
是否离散
</span>
</DropdownItem>
<!--
<div>
<Button
type=
"text"
class=
"ib"
@
click=
"handleOk"
>
确定
</Button><Button
type=
"text"
class=
"ib"
@
click=
"handle"
>
关闭
</Button>
</div>
-->
</DropdownMenu>
<span>
{{
li
}}
</span>
</DropdownItem>
</DropdownMenu>
</Dropdown>
</div>
<div
class=
"slider"
>
...
...
@@ -126,8 +105,8 @@
</Row>
<Divider
/>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
isDiscrete
"
>
<i-switch
v-model=
"entity.
isDiscrete
"
size=
"large"
>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
dis
"
>
<i-switch
v-model=
"entity.
dis
"
size=
"large"
>
<span
slot=
"open"
>
是
</span>
<span
slot=
"close"
>
否
</span>
</i-switch>
...
...
@@ -159,22 +138,24 @@ import Api from "./api";
export
default
{
data
()
{
return
{
items
:[
"是否多台"
,
"转序规则"
,
"加班策略"
,
"是否离散"
],
entity
:
{
partTaskPk
:
0
,
opTaskPk
:
0
,
taskSeq
:
""
,
flog
:
5
,
//参数应用范围
calId
:
null
,
planState
:
tru
e
,
calId
:
-
1
,
planState
:
fals
e
,
planMethod
:
"重叠"
,
// 平行 重叠
over
:
false
,
overTime
:
"不加班"
,
//"六日加班", 不加班 加班
efficiencyValue
:
11
,
// 效率系数, 必须大于 0
shopId
:
null
,
isDiscrete
:
true
,
//是否离散 是否
shopId
:
-
1
,
dis
:
false
,
isDiscrete
:
"否"
,
//是否离散 是否
discrete
:
1
,
//离散数值 必须大于 1
multiple
:
tru
e
,
multipleEquip
:
"
是
"
,
//"是否多台安排设备", 否 是
multiple
:
fals
e
,
multipleEquip
:
"
否
"
,
//"是否多台安排设备", 否 是
multipleCount
:
1
,
//多台数量
multipleEquipPks
:
[],
multipleEquipIds
:
""
//"设备id", 用英文逗号分隔
...
...
@@ -245,7 +226,13 @@ export default {
this
.
getCal
();
//获取连班策略
this
.
apsGet
();
//获取参数级别和转序等的关系
},
mounted
()
{},
mounted
()
{
this
.
$dragging
.
$on
(
'dragged'
,
({
value
})
=>
{
console
.
log
(
value
.
item
)
console
.
log
(
value
.
list
)
console
.
log
(
value
.
otherData
)
})
},
methods
:
{
getCal
()
{
Api
.
getallcal
().
then
(
res
=>
{
...
...
@@ -298,9 +285,9 @@ export default {
this
.
entity
.
multipleEquipIds
=
this
.
entity
.
multipleEquipPks
.
join
();
}
//
this
.
entity
.
planMethod
=
this
.
entity
.
planState
?
"重叠"
:
"平行"
;
this
.
entity
.
overTime
=
this
.
entity
.
over
?
"不加班"
:
"加班"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
isDiscrete
?
"是"
:
"否"
;
this
.
entity
.
planMethod
=
!
this
.
entity
.
planState
?
"重叠"
:
"平行"
;
this
.
entity
.
overTime
=
!
this
.
entity
.
over
?
"不加班"
:
"加班"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
dis
?
"是"
:
"否"
;
this
.
entity
.
multipleEquip
=
this
.
entity
.
multiple
?
"是"
:
"否"
;
Api
.
apsschedulupdateparameter
(
this
.
entity
)
.
then
(
res
=>
{
...
...
@@ -356,13 +343,13 @@ export default {
opTaskPk
:
this
.
row
.
op_task_pk
,
taskSeq
:
this
.
row
.
task_seq
,
flog
:
5
,
//参数应用范围
calId
:
null
,
calId
:
-
1
,
planState
:
this
.
row
.
plan_method
==
"平行"
,
planMethod
:
this
.
row
.
plan_method
,
// 平行 重叠
over
:
this
.
row
.
over_time
==
"加班"
,
overTime
:
this
.
row
.
over_time
,
//"六日加班", 不加班 加班
efficiencyValue
:
this
.
row
.
efficiency_value
|
1
,
// 效率系数, 必须大于 0
shopId
:
null
,
shopId
:
-
1
,
isDiscrete
:
this
.
row
.
isdiscrete
==
"是"
,
discrete
:
this
.
row
.
discrete_value
|
1
,
//离散数值 必须大于 1
multiple
:
this
.
row
.
multi_machine
==
"是"
,
...
...
plugins/request/index.js
View file @
35a08557
...
...
@@ -126,10 +126,10 @@ service.interceptors.response.use(
},
error
=>
{
if
(
error
&&
error
.
response
)
{
//
if(error.response.status=="401"){
//
window.location.href = '/account/login';
//
return;
//
}
if
(
error
.
response
.
status
==
"401"
){
window
.
location
.
href
=
'/account/login'
;
return
;
}
switch
(
error
.
response
.
status
)
{
case
400
:
error
.
message
=
'请求错误'
;
break
;
case
401
:
error
.
message
=
'未授权,请登录'
;
break
;
...
...
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