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
e9eaefa9
Commit
e9eaefa9
authored
Nov 11, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
637f96b3
43a40006
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
447 additions
and
581 deletions
+447
-581
index.vue
layouts/basic-layout/tabs/index.vue
+40
-29
excute.vue
pages/aps/ai/components/excute.vue
+406
-378
index.vue
pages/index.vue
+1
-1
index.vue
pages/welcome/index.vue
+0
-173
No files found.
layouts/basic-layout/tabs/index.vue
View file @
e9eaefa9
...
...
@@ -9,6 +9,8 @@
@
on-click=
"handleClickTab"
@
on-tab-remove=
"handleClickClose"
>
<TabPane
key=
"welcome"
label=
"首页"
name=
"/"
:closable=
"false"
/>
<TabPane
key=
"/home"
label=
"个人中心"
name=
"/home"
:closable=
"false"
/>
<TabPane
v-for=
"page in opened"
:key=
"page.fullPath"
...
...
@@ -17,26 +19,30 @@
:closable=
"page.meta && page.meta.closable"
/>
</Tabs>
<Dropdown
class=
"i-layout-tabs-close"
@
on-click=
"handleClose"
placement=
"bottom-end"
>
<Dropdown
class=
"i-layout-tabs-close"
@
on-click=
"handleClose"
placement=
"bottom-end"
>
<div
class=
"i-layout-tabs-close-main"
>
<Icon
type=
"ios-arrow-down"
/>
</div>
<DropdownMenu
slot=
"list"
>
<DropdownItem
name=
"left"
>
<Icon
type=
"md-arrow-back"
/>
{{
$t
(
'basicLayout.tabs.left'
)
}}
{{
$t
(
"basicLayout.tabs.left"
)
}}
</DropdownItem>
<DropdownItem
name=
"right"
>
<Icon
type=
"md-arrow-forward"
/>
{{
$t
(
'basicLayout.tabs.right'
)
}}
{{
$t
(
"basicLayout.tabs.right"
)
}}
</DropdownItem>
<DropdownItem
name=
"other"
>
<Icon
type=
"md-close"
/>
{{
$t
(
'basicLayout.tabs.other'
)
}}
{{
$t
(
"basicLayout.tabs.other"
)
}}
</DropdownItem>
<DropdownItem
name=
"all"
>
<Icon
type=
"md-close-circle"
/>
{{
$t
(
'basicLayout.tabs.all'
)
}}
{{
$t
(
"basicLayout.tabs.all"
)
}}
</DropdownItem>
</DropdownMenu>
</Dropdown>
...
...
@@ -64,13 +70,13 @@ export default {
"headerFix"
,
"headerStick"
,
"isMobile"
,
"menuCollapse"
"menuCollapse"
,
]),
...
mapGetters
(
"admin/menu"
,
[
"hideSider"
]),
classes
()
{
// return {
// "i-layout-tabs-fix": this.tabsFix
// };
// return {
// "i-layout-tabs-fix": this.tabsFix
// };
},
isHeaderStick
()
{
return
this
.
hideSider
;
...
...
@@ -92,13 +98,13 @@ export default {
// }
return
style
;
}
}
,
},
data
()
{
return
{
// 得到所有侧边菜单,并转为平级,查询图标用
allSiderMenu
:
getAllSiderMenu
(
menuSider
),
scrollTop
:
0
scrollTop
:
0
,
};
},
methods
:
{
...
...
@@ -107,7 +113,7 @@ export default {
"closeLeft"
,
"closeRight"
,
"closeOther"
,
"closeAll"
"closeAll"
,
]),
tabLabel
(
h
,
page
)
{
const
title
=
h
(
"span"
,
this
.
tTitle
(
page
.
meta
.
title
)
||
"未命名"
);
...
...
@@ -119,27 +125,28 @@ export default {
?
page
.
fullPath
.
split
(
"?"
)[
0
]
:
page
.
fullPath
;
const
currentMenu
=
this
.
allSiderMenu
.
find
(
menu
=>
menu
.
path
===
fullPathWithoutQuery
)
||
{};
this
.
allSiderMenu
.
find
(
(
menu
)
=>
menu
.
path
===
fullPathWithoutQuery
)
||
{};
let
icon
;
if
(
currentMenu
.
icon
)
{
icon
=
h
(
"Icon"
,
{
props
:
{
type
:
currentMenu
.
icon
}
type
:
currentMenu
.
icon
,
}
,
});
}
else
if
(
currentMenu
.
custom
)
{
icon
=
h
(
"Icon"
,
{
props
:
{
custom
:
currentMenu
.
custom
}
custom
:
currentMenu
.
custom
,
}
,
});
}
else
if
(
currentMenu
.
img
)
{
icon
=
h
(
"img"
,
{
attrs
:
{
src
:
currentMenu
.
img
}
src
:
currentMenu
.
img
,
}
,
});
}
...
...
@@ -152,26 +159,30 @@ export default {
return
h
(
"div"
,
{
class
:
"i-layout-tabs-title"
class
:
"i-layout-tabs-title"
,
},
slot
);
},
handleClickTab
(
tabName
)
{
if
(
tabName
===
this
.
current
)
{
if
(
this
.
tabsReload
)
{
this
.
$emit
(
"on-reload"
);
}
}
else
{
const
page
=
this
.
opened
.
find
(
page
=>
page
.
fullPath
===
tabName
);
const
{
name
,
params
,
query
}
=
page
;
if
(
page
)
this
.
$router
.
push
({
name
,
params
,
query
},
()
=>
{});
const
page
=
this
.
opened
.
find
((
page
)
=>
page
.
fullPath
===
tabName
);
if
(
page
)
{
const
{
name
,
params
,
query
}
=
page
;
this
.
$router
.
push
({
name
,
params
,
query
},
()
=>
{});
}
else
{
this
.
$router
.
push
(
tabName
,
()
=>
{});
}
}
},
handleClickClose
(
tagName
)
{
this
.
close
({
tagName
tagName
,
});
},
handleScroll
()
{
...
...
@@ -182,7 +193,7 @@ export default {
},
handleClose
(
name
)
{
const
params
=
{
pageSelect
:
this
.
current
pageSelect
:
this
.
current
,
};
switch
(
name
)
{
case
"left"
:
...
...
@@ -198,7 +209,7 @@ export default {
this
.
closeAll
();
break
;
}
}
}
,
},
mounted
()
{
document
.
addEventListener
(
"scroll"
,
this
.
handleScroll
,
{
passive
:
true
});
...
...
@@ -206,6 +217,6 @@ export default {
},
beforeDestroy
()
{
document
.
removeEventListener
(
"scroll"
,
this
.
handleScroll
);
}
}
,
};
</
script
>
pages/aps/ai/components/excute.vue
View file @
e9eaefa9
<
template
>
<div
style=
"padding: 0;"
class=
"excute"
>
<DataGrid
style=
"margin-top:2px; margin-bottom: -5px;"
:columns=
"columns"
ref=
"grid"
:easy=
"false"
:high=
"false"
:set=
"false"
:border=
"false"
:data=
"data1"
:height=
"gridHeight"
:page=
"false"
:size=
"size"
></DataGrid>
<div
style=
"padding: 0"
class=
"excute"
>
<DataGrid
style=
"margin-top: 2px; margin-bottom: -5px"
:columns=
"columns"
ref=
"grid"
:easy=
"false"
:high=
"false"
:set=
"false"
:border=
"false"
:data=
"data1"
:height=
"gridHeight"
:page=
"false"
:size=
"size"
></DataGrid>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"800"
>
<Edit
:row=
"rowData"
@
on-close=
"cancel"
@
on-option-ok=
"addOk"
/>
<Edit
:row=
"rowData"
@
on-close=
"cancel"
@
on-option-ok=
"addOk"
/>
</Modal>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -12,392 +24,408 @@ import Api from "../../aps/api";
import
Edit
from
"./edit"
;
import
Add
from
"../options"
;
export
default
{
name
:
"list"
,
components
:
{
Edit
,
Add
name
:
"list"
,
components
:
{
Edit
,
Add
,
},
props
:
{
rowId
:
{
type
:
Number
,
},
props
:
{
rowId
:
{
type
:
Number
},
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"task_seq"
,
value
:
null
,
},
},
setParsModal
:
false
,
editModal
:
false
,
detailModal
:
false
,
rowIndex
:
null
,
curId
:
0
,
gridHeight
:
150
,
size
:
"small"
,
columns
:
[
{
title
:
" "
,
width
:
130
,
},
{
key
:
"task_seq"
,
title
:
this
.
l
(
"task_seq"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"op_task_pk"
,
title
:
this
.
l
(
"op_task_pk"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"task_name"
,
title
:
this
.
l
(
"task_name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"taskseq_des"
,
title
:
this
.
l
(
"task_name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"routingHeaderCode"
,
title
:
this
.
l
(
"routingHeaderCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"routingHeaderName"
,
title
:
this
.
l
(
"routingHeaderName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"part_task_pk"
,
title
:
this
.
l
(
"part_task_pk"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"put_into_qty"
,
title
:
this
.
l
(
"put_into_qty"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"plan_start"
,
title
:
this
.
l
(
"plan_start"
),
align
:
"center"
,
high
:
true
,
width
:
140
,
hide
:
true
,
},
{
key
:
"plan_finish"
,
title
:
this
.
l
(
"plan_finish"
),
align
:
"center"
,
high
:
true
,
width
:
140
,
hide
:
true
,
},
{
key
:
"equip_type"
,
title
:
this
.
l
(
"equip_type"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"firsT_EQUIP_CODE"
,
title
:
this
.
l
(
"first_equip"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"setup_time"
,
title
:
this
.
l
(
"setup_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
,
},
{
key
:
"run_time"
,
title
:
this
.
l
(
"run_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
,
},
{
key
:
"outside_time"
,
title
:
this
.
l
(
"outside_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
,
},
{
key
:
"transport_time"
,
title
:
this
.
l
(
"transport_time"
),
align
:
"right"
,
high
:
true
,
hide
:
true
,
type
:
"outputTime"
,
},
{
key
:
"check_time"
,
title
:
this
.
l
(
"check_time"
),
align
:
"right"
,
high
:
true
,
hide
:
true
,
type
:
"outputTime"
,
},
{
key
:
"efficiency_value"
,
title
:
this
.
l
(
"efficiency_value"
),
align
:
"right"
,
high
:
true
,
},
{
key
:
"machine_rule"
,
title
:
this
.
l
(
"machine_rule"
),
align
:
"center"
,
easy
:
true
,
high
:
true
,
width
:
140
,
},
{
key
:
"singleout"
,
title
:
this
.
l
(
"singleout"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"equip_type"
,
title
:
this
.
l
(
"equip_type"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"first_equip"
,
title
:
this
.
l
(
"first_equip"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"cal_id"
,
title
:
this
.
l
(
"cal_id"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"plan_method"
,
title
:
this
.
l
(
"plan_method"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"over_time"
,
title
:
this
.
l
(
"over_time"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"isdiscrete"
,
title
:
this
.
l
(
"isdiscrete"
),
align
:
"center"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"discrete_value"
,
title
:
this
.
l
(
"discrete_value"
),
align
:
"right"
,
high
:
true
,
},
{
key
:
"multi_machine"
,
title
:
this
.
l
(
"multi_machine"
),
align
:
"center"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"notes"
,
title
:
this
.
l
(
"notes"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"workshopcode"
,
title
:
this
.
l
(
"workshopcode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"routing_detail_id"
,
title
:
this
.
l
(
"routing_detail_id"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"routing_header_id"
,
title
:
this
.
l
(
"routing_header_id"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"comb_param"
,
title
:
this
.
l
(
"comb_param"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
,
},
{
key
:
"rule_qty"
,
title
:
this
.
l
(
"rule_qty"
),
align
:
"left"
,
high
:
true
,
hide
:
true
,
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
140
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
,
},
[
h
(
"op"
,
{
attrs
:
{
icon
:
"md-create"
,
type
:
"icon"
,
title
:
"編輯工序"
,
oprate
:
"edit"
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
),
},
}),
h
(
"op"
,
{
attrs
:
{
icon
:
"ios-trash"
,
type
:
"icon"
,
title
:
"删除工序"
,
oprate
:
"delete"
,
msg
:
"确认要刪除工序吗?"
,
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
,
params
.
index
),
},
}),
]
);
},
},
],
data1
:
[],
insertTItle
:
"插单"
,
selectRoutingDetail
:
{},
//需那种工序
//设置参数开始
setParams
:
{
opTaskPk
:
0
,
//工单ID
partTaskPk
:
0
,
//生产计划ID
taskSeq
:
""
,
//工序编号
count
:
0
,
//生产计划数量
},
//设置参数结束
rowData
:
{},
//编辑时传入行数据
};
},
mounted
()
{
this
.
loadData
(
this
.
rowId
);
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
//根据点击副组件传过来id进行加载数据
loadData
(
expendId
)
{
let
params
=
{
id
:
expendId
,
};
Api
.
getbyorderid
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
gridHeight
=
50
;
this
.
gridHeight
=
(
res
.
result
.
length
+
1
)
*
47
;
this
.
data1
=
res
.
result
;
}
});
},
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"task_seq"
,
value
:
null
}
},
setParsModal
:
false
,
editModal
:
false
,
detailModal
:
false
,
rowIndex
:
null
,
curId
:
0
,
gridHeight
:
150
,
size
:
"small"
,
columns
:
[{
title
:
" "
,
width
:
130
},
{
key
:
"task_seq"
,
title
:
this
.
l
(
"task_seq"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"op_task_pk"
,
title
:
this
.
l
(
"op_task_pk"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"task_name"
,
title
:
this
.
l
(
"task_name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"taskseq_des"
,
title
:
this
.
l
(
"task_name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"part_task_pk"
,
title
:
this
.
l
(
"part_task_pk"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"put_into_qty"
,
title
:
this
.
l
(
"put_into_qty"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"plan_start"
,
title
:
this
.
l
(
"plan_start"
),
align
:
"center"
,
high
:
true
,
width
:
140
,
hide
:
true
},
{
key
:
"plan_finish"
,
title
:
this
.
l
(
"plan_finish"
),
align
:
"center"
,
high
:
true
,
width
:
140
,
hide
:
true
},
{
key
:
"equip_type"
,
title
:
this
.
l
(
"equip_type"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"firsT_EQUIP_CODE"
,
title
:
this
.
l
(
"first_equip"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"setup_time"
,
title
:
this
.
l
(
"setup_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
},
{
key
:
"run_time"
,
title
:
this
.
l
(
"run_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
},
{
key
:
"outside_time"
,
title
:
this
.
l
(
"outside_time"
),
align
:
"right"
,
high
:
true
,
type
:
"outputTime"
},
{
key
:
"transport_time"
,
title
:
this
.
l
(
"transport_time"
),
align
:
"right"
,
high
:
true
,
hide
:
true
,
type
:
"outputTime"
},
{
key
:
"check_time"
,
title
:
this
.
l
(
"check_time"
),
align
:
"right"
,
high
:
true
,
hide
:
true
,
type
:
"outputTime"
},
{
key
:
"efficiency_value"
,
title
:
this
.
l
(
"efficiency_value"
),
align
:
"right"
,
high
:
true
},
{
key
:
"machine_rule"
,
title
:
this
.
l
(
"machine_rule"
),
align
:
"center"
,
easy
:
true
,
high
:
true
,
width
:
140
},
{
key
:
"singleout"
,
title
:
this
.
l
(
"singleout"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"equip_type"
,
title
:
this
.
l
(
"equip_type"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"first_equip"
,
title
:
this
.
l
(
"first_equip"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"cal_id"
,
title
:
this
.
l
(
"cal_id"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"plan_method"
,
title
:
this
.
l
(
"plan_method"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"over_time"
,
title
:
this
.
l
(
"over_time"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"isdiscrete"
,
title
:
this
.
l
(
"isdiscrete"
),
align
:
"center"
,
easy
:
true
,
high
:
true
},
{
key
:
"discrete_value"
,
title
:
this
.
l
(
"discrete_value"
),
align
:
"right"
,
high
:
true
},
{
key
:
"multi_machine"
,
title
:
this
.
l
(
"multi_machine"
),
align
:
"center"
,
easy
:
true
,
high
:
true
},
{
key
:
"notes"
,
title
:
this
.
l
(
"notes"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"workshopcode"
,
title
:
this
.
l
(
"workshopcode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"routing_detail_id"
,
title
:
this
.
l
(
"routing_detail_id"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"routing_header_id"
,
title
:
this
.
l
(
"routing_header_id"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
key
:
"comb_param"
,
title
:
this
.
l
(
"comb_param"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"rule_qty"
,
title
:
this
.
l
(
"rule_qty"
),
align
:
"left"
,
high
:
true
,
hide
:
true
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
140
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
icon
:
"md-create"
,
type
:
"icon"
,
title
:
"編輯工序"
,
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
}),
h
(
"op"
,
{
attrs
:
{
icon
:
"ios-trash"
,
type
:
"icon"
,
title
:
"删除工序"
,
oprate
:
"delete"
,
msg
:
"确认要刪除工序吗?"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
,
params
.
index
)
}
})
]);
}
}
],
data1
:
[],
insertTItle
:
"插单"
,
selectRoutingDetail
:
{},
//需那种工序
//设置参数开始
setParams
:
{
opTaskPk
:
0
,
//工单ID
partTaskPk
:
0
,
//生产计划ID
taskSeq
:
""
,
//工序编号
count
:
0
//生产计划数量
},
//设置参数结束
rowData
:
{}
//编辑时传入行数据
};
},
mounted
()
{
this
.
loadData
(
this
.
rowId
);
//编辑工序start----
edit
(
row
)
{
this
.
editModal
=
true
;
this
.
rowData
=
row
;
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
//根据点击副组件传过来id进行加载数据
loadData
(
expendId
)
{
let
params
=
{
id
:
expendId
};
Api
.
getbyorderid
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
gridHeight
=
50
;
this
.
gridHeight
=
(
res
.
result
.
length
+
1
)
*
47
;
this
.
data1
=
res
.
result
;
}
});
},
//编辑工序end----
//编辑工序start----
edit
(
row
)
{
this
.
editModal
=
true
;
this
.
rowData
=
row
;
},
//编辑工序end----
//删除工序事件start-----
remove
(
row
,
index
)
{
//this.curId = Number(id);
this
.
rowIndex
=
index
;
this
.
selectRoutingDetail
=
row
;
let
params
=
{
partPk
:
this
.
selectRoutingDetail
.
part_task_pk
,
detailIdstr
:
this
.
selectRoutingDetail
.
routing_detail_id
};
Api
.
removeoptasksimluate
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
data1
.
splice
(
this
.
rowIndex
,
1
);
}
});
},
addOk
()
{
this
.
data1
=
[];
this
.
loadData
(
this
.
rowId
);
this
.
setParsModal
=
false
;
this
.
editModal
=
false
;
},
//删除工序时间end-----
cancel
()
{
this
.
curId
=
0
;
this
.
setParsModal
=
false
;
this
.
detailModal
=
false
;
this
.
editModal
=
false
;
this
.
deletedlModal
=
false
;
},
l
(
key
)
{
let
vkey
=
"mes_op_task_plan_simulate"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
//删除工序事件start-----
remove
(
row
,
index
)
{
//this.curId = Number(id);
this
.
rowIndex
=
index
;
this
.
selectRoutingDetail
=
row
;
let
params
=
{
partPk
:
this
.
selectRoutingDetail
.
part_task_pk
,
detailIdstr
:
this
.
selectRoutingDetail
.
routing_detail_id
,
};
Api
.
removeoptasksimluate
(
params
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
data1
.
splice
(
this
.
rowIndex
,
1
);
}
}
});
},
addOk
()
{
this
.
data1
=
[];
this
.
loadData
(
this
.
rowId
);
this
.
setParsModal
=
false
;
this
.
editModal
=
false
;
},
//删除工序时间end-----
cancel
()
{
this
.
curId
=
0
;
this
.
setParsModal
=
false
;
this
.
detailModal
=
false
;
this
.
editModal
=
false
;
this
.
deletedlModal
=
false
;
},
l
(
key
)
{
let
vkey
=
"mes_op_task_plan_simulate"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
};
</
script
>
<
style
lang=
"less"
>
.excute table tr th span,
.excute table tr td {
font-size: 10px;
font-size: 10px;
}
</
style
>
pages/index.vue
View file @
e9eaefa9
...
...
@@ -5,7 +5,7 @@
</
template
>
<
script
>
import
iview
from
"./
h
ome/index.vue"
;
import
iview
from
"./
welc
ome/index.vue"
;
export
default
{
components
:
{
iview
...
...
pages/welcome/index.vue
View file @
e9eaefa9
...
...
@@ -28,183 +28,10 @@
<
script
>
import
{
isInteger
}
from
"lodash"
;
export
default
{
layout
:
"empty"
,
data
()
{
return
{
list
:
[],
arrList
:
[],
// arrList: [
// {
// name: "设计区",
// style: {
// top: "247px",
// left: "280px",
// height: "40px",
// width: "80px",
// // border: " 1px solid red",
// transform: " rotate(-13deg) skew(-74deg, 42deg)",
// },
// list: [
// { name: "物料编码" },
// { name: "物料分类" },
// { name: "物料管理" },
// ],
// },
// {
// name: "工艺区",
// style: {
// top: "319px",
// left: "405px",
// height: "40px",
// width: "80px",
// // border: " 1px solid red",
// transform: " rotate(-13deg) skew(-74deg, 42deg)",
// },
// list: [
// { name: "产品管理" },
// { name: "工艺规程" },
// { name: "工艺设置" },
// ],
// },
// {
// name: "市场处",
// style: {
// top: "570px",
// left: "293px",
// height: "40px",
// width: "80px",
// // border: " 1px solid red",
// transform: " rotate(-13deg) skew(-74deg, 42deg)",
// },
// list: [
// { name: "客户管理" },
// { name: "项目管理" },
// { name: "销售管理" },
// { name: "合同管理" },
// ],
// },
// // {
// // name: "管理区",
// // style: {
// // top: "677px",
// // left: "102px",
// // height: "40px",
// // width: "80px",
// // // border: " 1px solid red",
// // transform: " rotate(-13deg) skew(-74deg, 42deg)",
// // },
// // list: [
// // { name: "设备类型" },
// // { name: "设备管理" },
// // { name: "排产资源" },
// // ],
// // },
// {
// name: "综合生产处",
// style: {
// top: "467px",
// left: "440px",
// height: "33px",
// width: "75px",
// // border: " 1px solid red",
// transform: " rotate(197deg) skew(77deg,134deg)",
// },
// list: [
// { name: "订单管理" },
// { name: "订单监控" },
// { name: "订单报价" },
// ],
// },
// {
// name: "生产班组派工",
// style: {
// top: "513px",
// left: "757px",
// height: "33px",
// width: "75px",
// // border: " 1px solid red",
// transform: " rotate(197deg) skew(77deg,134deg)",
// },
// list: [{ name: "班组派工" }],
// },
// {
// name: "设备管理",
// style: {
// top: "638px",
// left: "947px",
// height: "33px",
// width: "75px",
// // border: " 1px solid red",
// transform: " rotate(197deg) skew(77deg,134deg)",
// },
// list: [
// { name: "设备类型" },
// { name: "设备管理" },
// { name: "排产资源" },
// ],
// },
// {
// name: "质检",
// style: {
// top: "186px",
// left: "1304px",
// height: "33px",
// width: "75px",
// // border: " 1px solid red",
// transform: " rotate(197deg) skew(77deg,134deg)",
// },
// list: [
// { name: "原材料复检" },
// { name: "质量检验" },
// { name: "数据包追溯" },
// { name: "产品合格证" },
// ],
// },
// {
// name: "原料仓库",
// style: {
// top: "216px",
// left: "646px",
// height: "79px",
// width: "175px",
// // border: " 1px solid red",
// transform: " rotate(-11deg) skew(-72deg, 41deg)",
// },
// list: [
// { name: "库房位置" },
// { name: "物料管理" },
// { name: "料单配套" },
// { name: "制造资源" },
// ],
// },
// {
// name: "车间计调",
// style: {
// top: "380px",
// left: "553px",
// height: "33px",
// width: "81px",
// // border: " 1px solid red",
// transform: " rotate(-12deg) skew(-72deg, 41deg)",
// },
// list: [
// { name: "计划管理" },
// { name: "排产结果" },
// ],
// },
// {
// name: "组件区",
// style: {
// top: "293px",
// left: "949px",
// height: "144px",
// width: "232px",
// // border: " 1px solid red",
// transform: " rotate(-11deg) skew(-71deg, 40deg)",
// },
// list: [{ name: "工单执行" }, { name: "转序交接" }],
// },
// ],
isIndex
:
-
1
,
oneShow
:
false
,
menu
:
false
,
...
...
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