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
0804c1f0
Commit
0804c1f0
authored
Nov 19, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示全部的工作单元
parent
dfbd643a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
12 deletions
+60
-12
http.api.js
common/http.api.js
+8
-0
index.vue
pages/index/index.vue
+12
-1
index.vue
pages/mes/prodReport/index.vue
+40
-11
No files found.
common/http.api.js
View file @
0804c1f0
...
...
@@ -38,6 +38,11 @@ const install = (Vue, vm) => {
/**
* 系统设置API
*/
getTaskConfig
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/config/configKey/pda.all.task.state'
,
params
),
//获取工序清单
getProcessList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
...
...
@@ -57,6 +62,9 @@ const install = (Vue, vm) => {
/**
* 生产管理相关API
**/
//获取所有工作中心的生产任务
getAllTaskList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getAllTaskList'
,
params
),
//获取当前工作中心的生产任务
getTaskList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getTaskList'
,
params
),
...
...
pages/index/index.vue
View file @
0804c1f0
...
...
@@ -149,7 +149,18 @@ export default {
});
// this.checkWorkstation();
await
this
.
getWorkUnitList
();
this
.
$u
.
api
.
getTaskConfig
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
)
{
this
.
setWorkUnit
(
null
)
}
else
{
this
.
setWorkUnit
(
this
.
workUnitList
[
0
])
}
}
uni
.
$emit
(
'getTaskConfig'
)
})
},
destroyed
()
{
uni
.
$off
(
'switchTab'
);
...
...
pages/mes/prodReport/index.vue
View file @
0804c1f0
...
...
@@ -68,7 +68,7 @@
>
{{
this
.
vuex_workunit
==
null
?
$t
(
'请选择工作单元'
)
?
''
:
this
.
vuex_workunit
.
workunitName
}}
<
/view
>
...
...
@@ -989,19 +989,31 @@ export default {
name
:
'arrangeCode'
,
label
:
i18n
.
t
(
'工单编号'
),
align
:
'center'
,
width
:
20
0
,
width
:
18
0
,
}
,
{
name
:
'scheduleStartDateStr'
,
label
:
i18n
.
t
(
'计划开始时间'
),
align
:
'center'
,
width
:
95
,
width
:
140
,
}
,
{
name
:
'scheduleEndDateStr'
,
label
:
i18n
.
t
(
'计划结束时间'
),
align
:
'center'
,
width
:
95
,
width
:
140
,
}
,
{
name
:
'workstationName'
,
label
:
i18n
.
t
(
'工作中心名称'
),
align
:
'center'
,
width
:
140
,
}
,
{
name
:
'workunitName'
,
label
:
i18n
.
t
(
'工作单元名称'
),
align
:
'center'
,
width
:
140
,
}
,
{
name
:
'quantity'
,
...
...
@@ -1250,6 +1262,11 @@ export default {
this
.
screenHeight
=
res
.
windowHeight
}
,
}
)
// 获取所有工作单元的任务
uni
.
$on
(
'getTaskConfig'
,
(
station
)
=>
{
this
.
getTaskList
()
}
)
//监听工作中心切换事件
uni
.
$on
(
'switchWorkunit'
,
(
station
)
=>
{
// this.reset();
...
...
@@ -1327,6 +1344,18 @@ export default {
align
:
'center'
,
width
:
140
,
}
,
{
name
:
'workstationName'
,
label
:
i18n
.
t
(
'工作中心名称'
),
align
:
'center'
,
width
:
140
,
}
,
{
name
:
'workunitName'
,
label
:
i18n
.
t
(
'工作单元名称'
),
align
:
'center'
,
width
:
140
,
}
,
{
name
:
'quantity'
,
label
:
i18n
.
t
(
'任务数量'
),
...
...
@@ -1385,15 +1414,10 @@ export default {
this
.
getTaskList
()
//刷新任务状态
}
)
if
(
this
.
vuex_workunit
!=
null
)
{
this
.
getTaskList
()
}
// if (this.vuex_task != null)
{
// this.shiftTask(this.vuex_task.taskId);
//
}
}
,
destroyed
()
{
uni
.
$off
(
'switchWorkunit'
)
uni
.
$off
(
'getTaskConfig'
)
uni
.
$off
(
'taskStatusChanged'
)
}
,
computed
:
{
...
...
@@ -2041,7 +2065,12 @@ export default {
}
)
this
.
tableSelectData
=
[]
let
apires
if
(
this
.
isWaiXie
)
{
if
(
!
this
.
vuex_workunit
)
{
apires
=
this
.
$u
.
api
.
getAllTaskList
({
...
this
.
tableParams
,
...
params
,
}
)
}
else
if
(
this
.
isWaiXie
)
{
apires
=
this
.
$u
.
api
.
getTaskList
({
outsourced
:
1
,
workunitId
:
t
.
vuex_workunit
.
workunitId
,
...
...
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