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
1ca19e20
Commit
1ca19e20
authored
Apr 23, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:隐藏完工入库、工作站改成工作中心
parent
26fd0232
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
23 deletions
+23
-23
http.api.js
common/http.api.js
+2
-2
index.vue
pages/index/index.vue
+7
-7
index.vue
pages/mes/gx/index.vue
+1
-1
index.vue
pages/mes/pro/index.vue
+1
-1
userPersonnel.vue
pages/mes/prodReport/components/userPersonnel.vue
+1
-1
workunitList.vue
pages/mes/prodReport/components/workunitList.vue
+3
-3
index.vue
pages/mes/prodReport/index.vue
+6
-6
index.js
store/index.js
+2
-2
No files found.
common/http.api.js
View file @
1ca19e20
...
...
@@ -52,7 +52,7 @@ const install = (Vue, vm) => {
/**
* 生产管理相关API
**/
//获取当前工作
站
的生产任务
//获取当前工作
中心
的生产任务
getTaskList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getTaskList'
,
params
),
//根据任务ID获取任务详情
...
...
@@ -165,7 +165,7 @@ const install = (Vue, vm) => {
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/'
+
params
.
recordId
),
//获取当前工作
站
、当前生产任务对应的投料清单
//获取当前工作
中心
、当前生产任务对应的投料清单
getTaskIssueList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/taskissue/getlist'
,
params
),
//查询可用的领料单
...
...
pages/index/index.vue
View file @
1ca19e20
...
...
@@ -36,7 +36,7 @@
<u-modal
v-model=
"showLogoutMenu"
:showConfirmButton=
"false"
:showCancelButton=
"true"
width=
"600px"
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('workunit')"
type=
"warning"
>
切换工作
站
</u-button>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('workunit')"
type=
"warning"
>
切换工作
中心
</u-button>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('print')"
type=
"error"
>
默认打印机
</u-button>
<u-button
shape=
"circle"
class=
"menu_button"
@
click=
"handleCommand('exit')"
type=
"error"
>
退出登录
</u-button>
</view>
...
...
@@ -129,8 +129,8 @@ export default {
},
materialRequestArrays
:
[],
processList
:
[],
//工序清单
workstationList
:
[],
//工作
站
清单
workUnitList
:
[],
//工作
站
清单
workstationList
:
[],
//工作
中心
清单
workUnitList
:
[],
//工作
中心
清单
curTaskInfo
:
{},
//打印机的
screenHeight
:
768
,
currentFlag
:
0
...
...
@@ -165,7 +165,7 @@ export default {
this
.
showLogoutMenu
=
true
;
},
//检查工作
站
设置情况
//检查工作
中心
设置情况
checkWorkstation
()
{
if
(
this
.
vuex_workunit
==
null
)
{
this
.
showWorkstationFlag
=
true
;
...
...
@@ -184,7 +184,7 @@ export default {
}
});
},
//获取工作
站
清单
//获取工作
中心
清单
getWorkstationList
(
item
)
{
this
.
currentFlag
=
item
.
index
;
this
.
activeProcess
=
this
.
processList
[
item
.
index
].
processCode
;
...
...
@@ -196,7 +196,7 @@ export default {
if
(
res
.
code
===
200
)
{
this
.
workstationList
=
res
.
data
;
}
else
{
this
.
$u
.
toast
(
'获取工作
站
清单异常'
+
res
.
msg
);
this
.
$u
.
toast
(
'获取工作
中心
清单异常'
+
res
.
msg
);
}
});
},
...
...
@@ -209,7 +209,7 @@ export default {
}
});
},
//设置当前触控屏的工作
站
//设置当前触控屏的工作
中心
setWorkUnit
(
station
)
{
this
.
$u
.
vuex
(
'vuex_workunit'
,
station
);
this
.
showWorkstationFlag
=
false
;
...
...
pages/mes/gx/index.vue
View file @
1ca19e20
...
...
@@ -206,7 +206,7 @@
feedbackFlag
:
'Y'
,
//是否在打印流转单的同时报工
batchCode
:
'202207191001'
,
tabList
:[{
name
:
"领用到工作
站
"
name
:
"领用到工作
中心
"
},{
name
:
"领用到生产工单"
}],
...
...
pages/mes/pro/index.vue
View file @
1ca19e20
...
...
@@ -221,7 +221,7 @@
}
})
//监听工作
站
切换事件
//监听工作
中心
切换事件
uni
.
$on
(
'switchWorkstation'
,
(
station
)
=>
{
this
.
reset
();
this
.
getTaskList
();
...
...
pages/mes/prodReport/components/userPersonnel.vue
View file @
1ca19e20
...
...
@@ -60,7 +60,7 @@ export default {
{
name
:
'workstationName'
,
label
:
'工作
站
'
,
label
:
'工作
中心
'
,
width
:
160
}
]
...
...
pages/mes/prodReport/components/workunitList.vue
View file @
1ca19e20
...
...
@@ -2,8 +2,8 @@
<view
class=
"dmodel-table"
>
<view
class=
"search"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
label=
"工作
站
"
label-width=
"60px"
name=
"workstationName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.workstationName"
placeholder=
"请输入工作
站
"
/>
<u-form-item
label=
"工作
中心
"
label-width=
"60px"
name=
"workstationName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.workstationName"
placeholder=
"请输入工作
中心
"
/>
</u-form-item>
<u-form-item
label=
"工作单元编码"
label-width=
"100px"
name=
"workunitCode"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.workunitCode"
placeholder=
"请输入工作单元编码"
/>
...
...
@@ -43,7 +43,7 @@
},
{
name
:
'workstationName'
,
label
:
'工作
站
名称'
,
label
:
'工作
中心
名称'
,
width
:
160
,
},
{
...
...
pages/mes/prodReport/index.vue
View file @
1ca19e20
...
...
@@ -4,11 +4,11 @@
<view
class=
"prod-body-left"
>
<!--
<view
class=
"prod-body-left-btns"
>
-->
<!--
<view
class=
"workstation"
>
-->
<!-- 工作
站
名称:-->
<!--
{{
this
.
vuex_workstation
==
null
?
'请选择工作
站
'
:
this
.
vuex_workstation
.
workstationName
}}
-->
<!-- 工作
中心
名称:-->
<!--
{{
this
.
vuex_workstation
==
null
?
'请选择工作
中心
'
:
this
.
vuex_workstation
.
workstationName
}}
-->
<!-- <!–
<u-icon
name=
"edit-pen-fill"
size=
"46"
color=
"#2979ff"
></u-icon>
–>
-->
<!--
</view>
-->
<!--
<u-button
type=
"primary"
@
click=
"changeWorkstation"
>
切换工作
站
</u-button>
-->
<!--
<u-button
type=
"primary"
@
click=
"changeWorkstation"
>
切换工作
中心
</u-button>
-->
<!-- <!–
<u-button
type=
"primary"
@
click=
"commonClick('')"
>
生产任务
</u-button>
–>
-->
<!-- <!–
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp')"
>
刀模上架
</u-button>
–>
-->
<!-- <!–
<u-button
type=
"primary"
@
click=
"commonClick('')"
>
生产投料
</u-button>
–>
-->
...
...
@@ -99,7 +99,7 @@
<u-button
type=
"primary"
@
click=
"commonClick('ViewPpicture')"
>
查看图片
</u-button>
<u-button
type=
"primary"
@
click=
"commonClick('jobAssignment')"
>
作业分派
</u-button>
<u-button
type=
"warning"
@
click=
"commonClick('abnormal')"
>
异常报告
</u-button>
<
u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button
>
<
!--
<u-button
type=
"primary"
@
click=
"commonClick('StockIn')"
>
完工入库申请
</u-button>
--
>
</scroll-view>
</view>
...
...
@@ -1148,7 +1148,7 @@ export default {
};
},
mounted
()
{
//监听工作
站
切换事件
//监听工作
中心
切换事件
uni
.
$on
(
'switchWorkunit'
,
(
station
)
=>
{
this
.
getTaskList
();
});
...
...
@@ -1160,7 +1160,7 @@ export default {
this
.
screenHeight
=
res
.
windowHeight
;
}
});
//监听工作
站
切换事件
//监听工作
中心
切换事件
uni
.
$on
(
'switchWorkunit'
,
(
station
)
=>
{
// this.reset();
this
.
getTaskList
();
...
...
store/index.js
View file @
1ca19e20
...
...
@@ -58,10 +58,10 @@ const store = new Vuex.Store({
// 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
vuex_config
:
config
,
//当前设备绑定的工作
站
//当前设备绑定的工作
中心
vuex_workstation
:
null
,
vuex_workunit
:
null
,
//当前工作
站
正在进行的生产任务
//当前工作
中心
正在进行的生产任务
vuex_task
:
null
,
// 打印机服务器信息
vuex_printerInfo
:
lifeData
.
vuex_printerInfo
...
...
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