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
310a784f
Commit
310a784f
authored
Jan 23, 2021
by
yiyu.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
ad0b828a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
73 deletions
+136
-73
en-US.js
Html/src/locale/lang/en-US.js
+8
-0
zh-CN.js
Html/src/locale/lang/zh-CN.js
+12
-3
assemblyInfo.vue
Html/src/view/fms/associate/assemblyInfo.vue
+116
-70
No files found.
Html/src/locale/lang/en-US.js
View file @
310a784f
...
...
@@ -6643,5 +6643,13 @@ export default {
'120002'
:
'模具类型不能为空'
,
'120007'
:
'请上传模具清单'
,
// 上下料自动化
'300156'
:
'该任务状态已经完成'
,
'300157'
:
'产线模式未找到'
,
'300158'
:
'设备状态不可用'
,
'300159'
:
'设备正在使用中'
,
'300160'
:
'任务进行中'
,
'300161'
:
'产品工装未找到'
,
'300162'
:
'未找到工装信息'
}
Html/src/locale/lang/zh-CN.js
View file @
310a784f
...
...
@@ -1076,7 +1076,7 @@ export default {
'1235'
:
'播放'
,
'1236'
:
'视频文件名'
,
'1237'
:
'不展示'
,
'1238'
:
'展示'
,
'1238'
:
'展示'
,
'100000'
:
'部门'
,
'100001'
:
'岗位'
,
...
...
@@ -1939,7 +1939,7 @@ export default {
'300098'
:
'库存格式不正确'
,
'300099'
:
'不能再减少了'
,
'300100'
:
'已是最大库存'
,
'300101'
:
'类型名称'
,
'300101'
:
'类型名称'
,
'3000035'
:
'工单不一致'
,
'3000036'
:
'同一料框数量不一致'
,
...
...
@@ -6913,7 +6913,16 @@ export default {
'120001'
:
'模具未找到'
,
'120002'
:
'模具类型不能为空'
,
'120007'
:
'请上传模具清单'
,
'120008'
:
'请选择备模数据'
'120008'
:
'请选择备模数据'
,
// 上下料自动化
'300156'
:
'该任务状态已经完成'
,
'300157'
:
'产线模式未找到'
,
'300158'
:
'设备状态不可用'
,
'300159'
:
'设备正在使用中'
,
'300160'
:
'任务进行中'
,
'300161'
:
'产品工装未找到'
,
'300162'
:
'未找到工装信息'
...
...
Html/src/view/fms/associate/assemblyInfo.vue
View file @
310a784f
...
...
@@ -102,7 +102,12 @@
</div>
</div>
<div
class=
"divborder newTableDiv"
>
<Table
class=
"tableClass"
:columns=
"columns1"
:data=
"data1"
></Table>
<Table
class=
"tableClass"
:columns=
"columns1"
:data=
"data1"
highlight-row
></Table>
<div
class=
"pageDiv"
>
<div
class=
"pageDirection"
>
<Page
...
...
@@ -262,83 +267,85 @@ export default {
},
},
{
title
:
"工装类型"
,
title
:
"
父
工装类型"
,
key
:
"category"
,
},
{
title
:
"管理类型"
,
key
:
"managetype"
,
render
:
(
h
,
params
)
=>
{
let
str
=
""
;
if
(
params
.
row
.
managetype
===
1
)
{
str
=
"单件"
;
}
else
if
(
params
.
row
.
managetype
===
2
)
{
str
=
"批次"
;
}
return
h
(
"span"
,
str
);
},
},
{
title
:
"工装料号"
,
title
:
"父工装料号"
,
key
:
"partnumber"
,
},
{
title
:
"工装名称"
,
title
:
"
父
工装名称"
,
key
:
"name"
,
},
{
title
:
"
工装编号
"
,
key
:
"
code
"
,
title
:
"
父工装规格
"
,
key
:
"
specfication
"
,
},
{
title
:
"规格型号"
,
key
:
"specification"
,
},
{
title
:
"数量"
,
key
:
"number"
,
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
:
"status"
,
render
:
(
h
,
params
)
=>
{
let
str
=
""
;
if
(
params
.
row
.
status
===
1
)
{
str
=
"可用"
;
}
else
{
str
=
"停用"
;
}
return
h
(
"span"
,
str
);
},
},
{
title
:
"备注"
,
key
:
"remark"
,
},
//
render: (h, params) => {
//
let str = "";
//
if (params.row.status === 1) {
//
str = "可用";
//
} else {
//
str = "停用";
//
}
//
return h("span", str);
//
},
},
//
{
//
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
:
"维护人"
,
...
...
@@ -353,6 +360,28 @@ export default {
total
:
0
,
page
:
1
,
pagesize
:
10
,
columns2
:
[
{
title
:
"父工装类型"
,
key
:
"category"
,
},
{
title
:
"父工装料号"
,
key
:
"category"
,
},
{
title
:
"父工装名称"
,
key
:
"category"
,
},
{
title
:
"父工装规格"
,
key
:
"category"
,
},
{
title
:
"父工装编号"
,
key
:
"category"
,
},
],
modal
:
false
,
type
:
0
,
typeTree
:
[],
...
...
@@ -379,7 +408,7 @@ export default {
created
()
{
this
.
columns1
=
this
.
$time
.
initTableTitle
(
this
.
columns1
);
this
.
initFrockType
();
this
.
search
(
1
,
10
)
this
.
search
(
1
,
10
);
},
methods
:
{
search
(
page
,
pagesize
)
{
...
...
@@ -398,18 +427,27 @@ export default {
"get"
).
then
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
data1
=
res
.
data
.
data
;
this
.
total
=
res
.
data
.
total
;
let
arr
=
[];
arr
=
res
.
data
.
data
;
arr
.
forEach
(
ele
=>
{
ele
.
parentcate_guid
=
''
;
})
this
.
data1
=
arr
;
console
.
log
(
this
.
data1
);
// this.data1 = res.data.data;
}
});
},
add
()
{
this
.
parentType
=
[];
this
.
parentId
=
0
;
this
.
sonType
=
[];
this
.
sonType
=
[];
this
.
sonId
=
0
;
this
.
remark
=
''
;
this
.
fileurl
=
''
;
this
.
filename
=
''
;
this
.
remark
=
""
;
this
.
fileurl
=
""
;
this
.
filename
=
""
;
this
.
modal
=
true
;
this
.
type
=
1
;
},
...
...
@@ -490,11 +528,13 @@ export default {
"get"
).
then
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
let
arr
=
res
.
data
.
data
;
this
.
contentTree
(
arr
);
if
(
index
==
1
)
{
this
.
toolingList1
=
res
.
data
.
data
;
this
.
toolingList1
=
arr
;
}
if
(
index
==
2
)
{
this
.
toolingList2
=
res
.
data
.
data
;
this
.
toolingList2
=
arr
;
}
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
...
...
@@ -548,13 +588,19 @@ export default {
url
:
url
,
params
:
data
,
method
:
type
,
});
}).
then
((
res
)
=>
{
return
res
;
})
.
catch
((
error
)
=>
error
);
}
else
{
return
this
.
axios
.
request
({
url
:
url
,
data
,
method
:
type
,
});
}).
then
((
res
)
=>
{
return
res
;
})
.
catch
((
error
)
=>
error
);
}
},
},
...
...
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