Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
b46a1d0f
Commit
b46a1d0f
authored
Feb 25, 2024
by
jzc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-pad
into dev
parents
b88f621b
cc932db8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
354 additions
and
294 deletions
+354
-294
README.en.md
README.en.md
+1
-1
README.md
README.md
+1
-1
config.js
common/config.js
+10
-10
http.api.js
common/http.api.js
+23
-1
http.interceptor.js
common/http.interceptor.js
+1
-0
index.vue
pages/index/index.vue
+205
-199
index.vue
pages/mes/prodReport/index.vue
+109
-79
index.js
store/index.js
+4
-3
No files found.
README.en.md
View file @
b46a1d0f
#
ktg-
mes-pad
# mes-pad
#### Description
MES系统触控屏端
...
...
README.md
View file @
b46a1d0f
#
ktg-
mes-pad
# mes-pad
#### 介绍
MES系统触控屏端
...
...
common/config.js
View file @
b46a1d0f
const
config
=
{
// 产品名称
productName
:
'
ktg-
mes-pad'
,
productName
:
'mes-pad'
,
// 公司名称
companyName
:
'
ktg
'
,
companyName
:
''
,
// 产品版本号
productVersion
:
'V0.1.0'
,
...
...
common/http.api.js
View file @
b46a1d0f
...
...
@@ -26,6 +26,8 @@ const install = (Vue, vm) => {
params
),
getWorkstationList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/md/workstation/getWorkstationList'
,
params
),
getWorkUnitList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/md/workunit/getListByUser'
,
params
),
/**
* 生产管理相关API
**/
...
...
@@ -90,6 +92,26 @@ const install = (Vue, vm) => {
'/mobile/pro/taskissue/getReserveIssueList'
,
params
),
//打印流转单
//投料验证
listFeedingInspection
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listIssueLine'
,
params
),
validateFeedingInspection
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/validateFeedingInspection'
,
params
),
validateFeedingInspectionById
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/validateFeedingInspectionById'
,
params
),
//查询反冲料列表
recoilMaterialList
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/getRecoilMaterial'
,
params
),
//增加反冲料
addRecoilMaterial
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addRecoilMaterial'
,
params
),
//删除反冲料
deleteRecoilMaterial
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/deleteRecoilMaterial'
,
params
),
//领料申请
listMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listMaterialRequest'
,
params
),
addMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialRequest'
,
params
),
//退料申请
listMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listIssueLine'
,
params
),
addMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialReturn'
,
params
),
//质量相关api
//获取当前产品、当前质检类型的质检模板行信息
...
...
common/http.interceptor.js
View file @
b46a1d0f
...
...
@@ -79,6 +79,7 @@ const install = (Vue, vm) => {
// 错误
if
(
data
.
msg
!==
null
)
{
uni
.
showToast
({
icon
:
'none'
,
title
:
data
.
msg
,
duration
:
3000
})
...
...
pages/index/index.vue
View file @
b46a1d0f
...
...
@@ -17,22 +17,17 @@
<ProContent
v-if=
"tabIndex === 'DV'"
></ProContent>
</view>
<u-modal
width=
"90%"
v-model=
"showWorkstationFlag"
:showConfirmButton=
"false"
:showCancelButton=
"true"
title=
"请选择工作站"
content=
"操作内容"
>
<!--
<u-tabs
:list=
"processList"
:is-scroll=
"true"
:current=
"currentFlag"
name=
"processName"
@
change=
"getWorkstationList"
>
</u-tabs>
-->
<uv-tabs
:list=
"processList"
:current=
"currentFlag"
keyName=
"processName"
@
change=
"getWorkstationList"
v-if=
"showWorkstationFlag"
></uv-tabs>
title=
"请选择工作单元"
content=
"操作内容"
>
<view
class=
"station_list"
>
<u-empty
text=
"暂无工作
站"
mode=
"list"
v-if=
"workstation
List.length==0"
<u-empty
text=
"暂无工作
单元"
mode=
"list"
v-if=
"workUnit
List.length==0"
style=
"margin: 0 auto;display: block;height: 360rpx;padding: 100rpx 0;"
></u-empty>
<template
v-else
>
<u-card
class=
"station_card"
:show-foot=
"false"
:title=
"'工作
站'+card.workstationCode"
:key=
"index
"
v-for=
"(card,index) in work
station
List"
>
<u-card
class=
"station_card"
:show-foot=
"false"
:title=
"'工作
单元'+card.workunitCode
"
v-for=
"(card,index) in work
Unit
List"
>
<view
class=
"station_card_text"
slot=
"body"
>
{{
'工作
站名称:'
+
card
.
workstation
Name
}}
<u-button
type=
"primary"
@
click=
"setWork
station
(card)"
{{
'工作
单元名称:'
+
card
.
workunit
Name
}}
<u-button
type=
"primary"
@
click=
"setWork
Unit
(card)"
style=
"margin-top: 30rpx;"
>
选择
</u-button>
</view>
...
...
@@ -45,7 +40,7 @@
title=
"请选择操作"
>
<view
class=
"logoutmenu"
>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
""
type=
"primary"
>
更改密码
</u-button>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('work
station
')"
type=
"warning"
>
切换工作站
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('work
unit
')"
type=
"warning"
>
切换工作站
</u-button>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('exit')"
type=
"error"
>
退出登录
</u-button>
</view>
...
...
@@ -54,14 +49,14 @@
</template>
<
script
>
import
TabHeader
from
"./TabHeader.vue"
import
ProContent
from
"../mes/pro/index.vue"
import
GxContent
from
"../mes/gx/index.vue"
import
QcContent
from
"../mes/qc/index.vue"
import
ProdReport
from
"../mes/prodReport/index.vue"
import
DictData
from
'@/components/DictData'
import
TabHeader
from
"./TabHeader.vue"
import
ProContent
from
"../mes/pro/index.vue"
import
GxContent
from
"../mes/gx/index.vue"
import
QcContent
from
"../mes/qc/index.vue"
import
ProdReport
from
"../mes/prodReport/index.vue"
import
DictData
from
'@/components/DictData'
export
default
{
export
default
{
name
:
'HomePage'
,
components
:
{
TabHeader
,
...
...
@@ -82,6 +77,7 @@ export default {
},
processList
:
[],
//工序清单
workstationList
:
[],
//工作站清单
workUnitList
:[],
//工作站清单
currentFlag
:
0
}
},
...
...
@@ -89,16 +85,16 @@ export default {
uni
.
$on
(
'switchTab'
,
(
indexCode
)
=>
{
this
.
tabIndex
=
indexCode
;
})
uni
.
$on
(
'changeWorkstation
'
,
(
indexCode
)
=>
{
this
.
handleCommand
(
'workstation
'
);
uni
.
$on
(
'changeWorkunit
'
,
(
indexCode
)
=>
{
this
.
handleCommand
(
'workunit
'
);
})
this
.
checkWorkstation
();
this
.
getProcess
List
();
this
.
getWorkUnit
List
();
},
destroyed
()
{
uni
.
$off
(
'switchTab'
);
uni
.
$off
(
'changeWorkstation
'
);
uni
.
$off
(
'changeWorkunit
'
);
},
methods
:
{
//用户部分点击
...
...
@@ -110,9 +106,9 @@ export default {
//检查工作站设置情况
checkWorkstation
()
{
if
(
this
.
vuex_workstation
==
null
)
{
if
(
this
.
vuex_workunit
==
null
)
{
this
.
showWorkstationFlag
=
true
;
this
.
$u
.
toast
(
"请设置当前触控屏的工作站
!"
);
this
.
$u
.
toast
(
"请设置当前触控屏的工作单元
!"
);
}
},
//获取工序清单
...
...
@@ -142,11 +138,21 @@ export default {
}
});
},
getWorkUnitList
(
item
)
{
this
.
$u
.
api
.
getWorkUnitList
({
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
workUnitList
=
res
.
rows
;
}
else
{
this
.
$u
.
toast
(
"获取工作单元清单异常"
+
res
.
msg
);
}
});
},
//设置当前触控屏的工作站
setWorkstation
(
station
)
{
this
.
$u
.
vuex
(
'vuex_workstation
'
,
station
);
setWorkUnit
(
station
)
{
this
.
$u
.
vuex
(
'vuex_workunit
'
,
station
);
this
.
showWorkstationFlag
=
false
;
uni
.
$emit
(
'switchWorkstation
'
,
station
);
uni
.
$emit
(
'switchWorkunit
'
,
station
);
},
handleCommand
(
command
)
{
if
(
command
===
'exit'
)
{
...
...
@@ -166,32 +172,32 @@ export default {
},
500
);
}
})
}
else
if
(
command
==
'workstation
'
)
{
}
else
if
(
command
==
'workunit
'
)
{
this
.
showLogoutMenu
=
false
;
this
.
showWorkstationFlag
=
true
;
}
}
}
}
}
</
script
>
<
style
>
.common-container
{
.common-container
{
width
:
100vw
;
height
:
100vh
;
display
:
flex
;
}
}
.common-head
{
.common-head
{
height
:
40px
;
background-color
:
rgb
(
3
,
26
,
60
);
display
:
flex
;
align-items
:
center
;
padding
:
0
15px
;
box-sizing
:
border-box
;
}
}
.header
{
.header
{
width
:
120px
;
background-color
:
#132138
;
color
:
aliceblue
;
...
...
@@ -206,63 +212,63 @@ export default {
margin
:
40
rpx
auto
;
display
:
block
;
}
}
}
.header
.divItem
{
.header
.divItem
{
height
:
100%
;
align-items
:
center
;
}
}
.header
.workstation
{
.header
.workstation
{
text-align
:
center
;
flex-grow
:
1
;
}
}
.header
.user
{
.header
.user
{
width
:
30%
;
}
}
.header
.user
.user-icon
{
.header
.user
.user-icon
{
float
:
right
;
}
}
img
{
img
{
width
:
40px
;
height
:
40px
;
border-radius
:
20px
;
margin-left
:
10px
;
}
}
.header
.user
.user-text
{
.header
.user
.user-text
{
float
:
right
;
}
}
.logoutmenu
{
.logoutmenu
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
}
}
.menu_button
{
.menu_button
{
width
:
100px
;
margin
:
10px
;
}
}
.station_modal
{
}
.station_modal
{
}
.station_list
{
.station_list
{
display
:
flex
;
flex-wrap
:
wrap
;
}
}
.station_card
{
.station_card
{
width
:
250px
;
height
:
150px
;
}
}
.common-main
{
.common-main
{
flex
:
1
;
height
:
100%
;
padding
:
6px
6px
6px
0
;
...
...
@@ -270,9 +276,9 @@ img {
width
:
100%
;
overflow
:
auto
;
background-image
:
linear-gradient
(
to
top
right
,
rgb
(
19
26
56
),
rgb
(
33
64
128
));
}
}
.setting-body
{
.setting-body
{
position
:
absolute
;
bottom
:
20
rpx
;
width
:
200
rpx
;
...
...
@@ -284,5 +290,5 @@ img {
.setting-icon
{
margin
:
10
rpx
10
rpx
;
}
}
}
</
style
>
pages/mes/prodReport/index.vue
View file @
b46a1d0f
This diff is collapsed.
Click to expand it.
store/index.js
View file @
b46a1d0f
...
...
@@ -46,6 +46,7 @@ const store = new Vuex.Store({
vuex_config
:
config
,
//当前设备绑定的工作站
vuex_workstation
:
null
,
vuex_workunit
:
null
,
//当前工作站正在进行的生产任务
vuex_task
:
null
,
...
...
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