Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
Details
Activity
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
jiawei.su
Laisi_AutoMES2
Commits
6780ffcc
Commit
6780ffcc
authored
Jan 25, 2021
by
yiyu.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
66e4fc02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
170 additions
and
72 deletions
+170
-72
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+96
-12
assemblyInfo.vue
Html/src/view/fms/associate/assemblyInfo.vue
+74
-60
No files found.
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
6780ffcc
...
...
@@ -35,8 +35,8 @@
</div>
<div
class=
"choose"
>
<p
class=
"selectTitle"
>
3.操作
</p>
<Tabs
type=
"card"
>
<TabPane
label=
"上料"
:disabled=
"attr1"
>
<Tabs
type=
"card"
:value=
"tabindex"
>
<TabPane
label=
"上料"
:disabled=
"attr1"
name=
"1"
>
<div
class=
"filter"
>
<label
style=
"font-size: 16px"
>
上料信息:
</label
...
...
@@ -106,7 +106,7 @@
<Button
type=
"primary"
>
安装完成
</Button>
</div>
</TabPane>
<TabPane
label=
"下料"
:disabled=
"attr2"
<TabPane
label=
"下料"
:disabled=
"attr2"
name=
"2"
><div
class=
"flex"
>
<div>
<Table
...
...
@@ -158,7 +158,11 @@
>
状态:
</span
>
<span
class=
"info"
>
{{
orderDetail
.
code
orderDetail
.
status
==
1
?
"待上料"
:
orderDetail
.
status
==
2
?
"运行中"
:
"待下料"
}}
</span>
</p>
<p
class=
"flex"
>
...
...
@@ -181,12 +185,12 @@
<div>
<Button
type=
"primary"
@
click=
"
feed
Ready()"
@
click=
"
blank
Ready()"
>
准备下料
</Button
>
<Button
type=
"primary"
@
click=
"installOver()"
@
click=
"
un
installOver()"
>
拆卸完成
</Button
>
</div>
...
...
@@ -297,6 +301,7 @@ export default {
orderDetail
:
{},
detailobj
:
{},
sectionid
:
0
,
tabindex
:
"1"
,
};
},
created
()
{
...
...
@@ -349,6 +354,10 @@ export default {
this
.
sectionid
=
this
.
stationList
[
index
].
section
;
if
(
status
==
1
)
{
this
.
attr2
=
true
;
}
else
{
this
.
attr1
=
true
;
this
.
tabindex
=
"2"
;
this
.
getRunningDetail
(
index
);
}
},
//获取储位
...
...
@@ -388,22 +397,48 @@ export default {
console
.
log
(
err
);
});
},
getRunningDetail
(
i
)
{
// /acc/AutomationOperate/GetLoadingState?section=4861
// 获取已上料的信息
this
.
request
(
"/acc/AutomationOperate/GetLoadingState?section="
+
this
.
stationList
[
i
].
section
,
""
,
"get"
)
.
then
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
let
obj
=
res
.
data
.
data
;
this
.
orderDetail
=
Object
.
assign
(
{},
this
.
orderDetail
,
obj
);
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
,
msg
));
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
feedReady
()
{
// 准备上料
if
(
this
.
sectionid
==
0
)
{
this
.
$Message
.
error
(
"请选择工位"
);
return
false
;
}
let
data
=
{
section
:
this
.
sectionid
,
code
:
this
.
orderDetail
.
orderNumber
,
guid
:
this
.
orderDetail
.
fixtureGuid
,
locationid
:
this
.
orderDetail
.
location
guid
:
this
.
orderDetail
.
fixtureGuid
,
locationid
:
this
.
orderDetail
.
location
,
};
this
.
request
(
"/acc/AutomationOperate/Loading"
,
data
,
"post"
).
then
(
(
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
console
.
log
(
res
.
data
.
data
);
this
.
$Message
.
success
(
this
.
$t
(
res
.
data
.
msg
));
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
}
...
...
@@ -412,12 +447,62 @@ export default {
},
installOver
()
{
// 安装完成
if
(
this
.
sectionid
==
0
)
{
this
.
$Message
.
error
(
"请选择工位"
);
return
false
;
}
let
data
=
{
section
:
13
,
};
this
.
request
(
""
,
data
,
"post"
).
thne
((
res
)
=>
{
this
.
request
(
"/acc/AutomationOperate/CompalateAssemble"
,
data
,
"post"
).
thne
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
$Message
.
success
(
this
.
$t
(
res
.
data
.
msg
));
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
}
});
},
blankReady
()
{
// 准备下料
if
(
this
.
sectionid
==
0
)
{
this
.
$Message
.
error
(
"请选择工位"
);
return
false
;
}
let
data
=
{
section
:
this
.
sectionid
,
};
this
.
request
(
"/acc/AutomationOperate/Unloading"
,
data
,
"post"
).
thne
(
(
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
$Message
.
success
(
this
.
$t
(
res
.
data
.
msg
));
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
}
}
);
},
uninstallOver
()
{
// 拆卸完成
if
(
this
.
sectionid
==
0
)
{
this
.
$Message
.
error
(
"请选择工位"
);
return
false
;
}
let
data
=
{
section
:
this
.
sectionid
,
};
this
.
request
(
"/acc/AutomationOperate/Disassemble"
,
data
,
"post"
).
thne
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
$Message
.
success
(
this
.
$t
(
res
.
data
.
msg
));
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
}
});
},
...
...
@@ -425,7 +510,6 @@ export default {
this
.
detailobj
=
currentRow
;
this
.
orderDetail
.
fixtureGuid
=
this
.
detailobj
.
fixtureguid
;
this
.
orderDetail
.
location
=
this
.
detailobj
.
locationid
;
},
request
(
url
,
data
,
type
)
{
if
(
type
==
"get"
)
{
...
...
Html/src/view/fms/associate/assemblyInfo.vue
View file @
6780ffcc
...
...
@@ -256,6 +256,25 @@ export default {
},
columns1
:
[
{
type
:
"expand"
,
// title: "装配详情",
width
:
"50"
,
render
:
(
h
,
params
)
=>
{
// let str = "";
// if (params.row.managetype === 1) {
// str = "单件";
// } else if (params.row.managetype === 2) {
// str = "批次";
// }
return
h
(
Table
,
{
props
:{
data
:
params
.
row
.
childrens
,
columns
:
this
.
columns2
}
});
},
},
{
type
:
"index2"
,
title
:
this
.
$t
(
"1008"
),
key
:
"xuhao"
,
...
...
@@ -286,66 +305,61 @@ export default {
title
:
"父工装编号"
,
key
:
"code"
,
},
// {
// // type: "expand",
// title: "装配详情",
// key: "children",
// render: (h, params) => {
// // let str = "";
// // if (params.row.managetype === 1) {
// // str = "单件";
// // } else if (params.row.managetype === 2) {
// // str = "批次";
// // }
// // return h(Table, {
// // props:{
// // data:params.row.children,
// // columns:this.columns2
// // }
// // });
// },
// },
{
title
:
"装配详情"
,
key
:
"s"
,
render
:
(
h
,
params
)
=>
{
// let str = "";
// if (params.row.managetype === 1) {
// str = "单件";
// } else if (params.row.managetype === 2) {
// str = "批次";
// }
return
h
(
'div'
,
'详情'
);
},
},
{
title
:
"状态"
,
key
:
"status"
,
// render: (h, params) => {
// let str = "";
// if (params.row.status === 1) {
// str = "可用";
// } else {
// str = "停用";
// }
// return h("span", str);
// },
render
:
(
h
,
params
)
=>
{
let
str
=
""
;
if
(
params
.
row
.
status
===
1
)
{
str
=
"可用"
;
}
else
{
str
=
"停用"
;
}
return
h
(
"span"
,
str
);
},
},
{
title
:
"备注"
,
key
:
"remark"
,
},
// {
// title: "备注",
// key: "remark",
// },
{
title
:
"附件"
,
key
:
"filename"
,
//
render: (h, params) => {
//
return h(
//
"span",
//
{
//
style: {
//
color: "#2b85e4",
//
cursor: "pointer",
//
},
//
on: {
//
click: () => {
//
let name = params.row.filename;
//
let url = params.row.fileurl;
//
if (url) {
//
this.downFile(url, name);
//
}
//
},
//
},
//
},
//
params.row.filename
//
);
//
},
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{
style
:
{
color
:
"#2b85e4"
,
cursor
:
"pointer"
,
},
on
:
{
click
:
()
=>
{
let
name
=
params
.
row
.
filename
;
let
url
=
params
.
row
.
fileurl
;
if
(
url
)
{
this
.
downFile
(
url
,
name
);
}
},
},
},
params
.
row
.
filename
);
},
},
{
title
:
"维护人"
,
...
...
@@ -428,14 +442,14 @@ export default {
).
then
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
total
=
res
.
data
.
total
;
let
arr
=
[];
arr
=
res
.
data
.
data
;
arr
.
forEach
(
ele
=>
{
ele
.
parentcate_guid
=
''
;
})
this
.
data1
=
arr
;
//
let arr = [];
//
arr = res.data.data;
//
arr.forEach(ele=>{
//
ele.parentcate_guid = '';
//
})
//
this.data1 = arr;
console
.
log
(
this
.
data1
);
//
this.data1 = res.data.data;
this
.
data1
=
res
.
data
.
data
;
}
});
...
...
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