Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dakong-digital-management
Project
Project
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
耿迪迪
dakong-digital-management
Commits
7009dd2f
Commit
7009dd2f
authored
Sep 21, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装配进度
parent
1430fc7a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
TProductDevice.java
...n/java/com/zehong/system/domain/track/TProductDevice.java
+10
-0
TProductDeviceMapper.xml
.../src/main/resources/mapper/track/TProductDeviceMapper.xml
+12
-1
MarkInfo.vue
...gement-web/src/views/track/device/components/MarkInfo.vue
+5
-3
index.vue
digital-management-web/src/views/track/device/index.vue
+1
-0
No files found.
digital-management-system/src/main/java/com/zehong/system/domain/track/TProductDevice.java
View file @
7009dd2f
...
@@ -42,6 +42,8 @@ public class TProductDevice extends BaseEntity
...
@@ -42,6 +42,8 @@ public class TProductDevice extends BaseEntity
/** 创建人 */
/** 创建人 */
private
Long
createId
;
private
Long
createId
;
private
String
speed
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -115,6 +117,14 @@ public class TProductDevice extends BaseEntity
...
@@ -115,6 +117,14 @@ public class TProductDevice extends BaseEntity
return
createId
;
return
createId
;
}
}
public
String
getSpeed
()
{
return
speed
;
}
public
void
setSpeed
(
String
speed
)
{
this
.
speed
=
speed
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
digital-management-system/src/main/resources/mapper/track/TProductDeviceMapper.xml
View file @
7009dd2f
...
@@ -28,7 +28,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -28,7 +28,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
device.create_time,
device.create_time,
device.create_id,
device.create_id,
ins.batch_no as batchNo,
ins.batch_no as batchNo,
(select nick_name from sys_user us where us.user_id = device.create_id) as createBy
(select nick_name from sys_user us where us.user_id = device.create_id) as createBy,
(
select
concat(
if(count(md.id)=0,0,
round((select count(dm.id) from t_product_device_mark dm where dm.device_id = device.id)/count(md.id))*100
)
,'%')
from
t_product_inspect_detail ind,t_product_mark_detail md
where ind.type_id = md.mark_id and ind.type = 3 and ind.inspect_id = device.inspect_id
)as speed
FROM
FROM
t_product_device device
t_product_device device
LEFT JOIN t_product_inspect ins ON ins.id = device.inspect_id
LEFT JOIN t_product_inspect ins ON ins.id = device.inspect_id
...
...
digital-management-web/src/views/track/device/components/MarkInfo.vue
View file @
7009dd2f
...
@@ -131,9 +131,11 @@
...
@@ -131,9 +131,11 @@
methods
:{
methods
:{
getExecuteDetail
(){
getExecuteDetail
(){
listDetail
({
inspectId
:
this
.
inspectId
,
type
:
3
}).
then
(
res
=>
{
listDetail
({
inspectId
:
this
.
inspectId
,
type
:
3
}).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
rows
.
length
>
0
){
this
.
getMarkInfo
(
res
.
rows
[
0
].
typeId
);
this
.
getMarkInfo
(
res
.
rows
[
0
].
typeId
);
this
.
queryParams
.
markId
=
res
.
rows
[
0
].
typeId
;
this
.
queryParams
.
markId
=
res
.
rows
[
0
].
typeId
;
this
.
getMarkDetail
();
this
.
getMarkDetail
();
}
})
})
},
},
//模版信息
//模版信息
...
...
digital-management-web/src/views/track/device/index.vue
View file @
7009dd2f
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceNo"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"deviceNo"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"设备状态"
align=
"center"
prop=
"status"
:formatter=
"statusFormat"
/>
<el-table-column
label=
"设备状态"
align=
"center"
prop=
"status"
:formatter=
"statusFormat"
/>
<el-table-column
label=
"装配进度"
align=
"center"
prop=
"speed"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
...
...
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