Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
74bd2a9b
Commit
74bd2a9b
authored
Apr 01, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.mes123.com/zhouyx/mes-ui
parents
f50dd120
cdc5aad4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
347 additions
and
286 deletions
+347
-286
api.js
pages/aps/aps/api.js
+57
-18
excute.vue
pages/aps/aps/components/excute.vue
+272
-262
index.vue
pages/aps/aps/index.vue
+12
-4
index.vue
pages/aps/plan/index.vue
+5
-1
config.js
static/config.js
+1
-1
No files found.
pages/aps/aps/api.js
View file @
74bd2a9b
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
index
:
`
${
resourceUrl
}
mesparttaskplansimulate/paged`
,
index
:
`
${
resourceUrl
}
mesparttaskplansimulate/paged`
,
paged
(
params
){
paged
(
params
)
{
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/paged`
,
params
);
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/paged`
,
params
);
},
},
get
(
params
){
get
(
params
)
{
return
Api
.
get
(
`
${
resourceUrl
}
mesparttaskplansimulate/get`
,
params
);
return
Api
.
get
(
`
${
resourceUrl
}
mesparttaskplansimulate/get`
,
params
);
},
},
create
(
params
){
create
(
params
)
{
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/create`
,
params
);
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/create`
,
params
);
},
},
update
(
params
){
update
(
params
)
{
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/update`
,
params
);
return
Api
.
post
(
`
${
resourceUrl
}
mesparttaskplansimulate/update`
,
params
);
},
},
//删除:
//删除:
delete
(
params
)
{
delete
(
params
)
{
return
Api
.
delete
(
`
${
resourceUrl
}
mesparttaskplansimulate/delete`
,{
params
:
params
});
return
Api
.
delete
(
`
${
resourceUrl
}
mesparttaskplansimulate/delete`
,
{
},
params
:
params
}
});
\ No newline at end of file
},
//获取排产池数据列表
getall
()
{
return
Api
.
get
(
`
${
aps
}
/Mes_part_task_plan_simulate/getall`
);
},
//点开排产池列表查看对应的工序
getbyorderid
(
params
)
{
return
Api
.
get
(
`
${
aps
}
/mes_op_task_plan_simulate/getbyorderid`
,
params
);
},
//订单优先级
orderpriority
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/orderpriority`
,
params
);
},
//删除工序
removeoptasksimluate
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/removeoptasksimluate`
,
params
);
},
//恢复工艺
recoveryoptasksimluate
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/recoveryoptasksimluate`
,
params
);
},
//移出排产池
shiftoutapspool
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/shiftoutapspool`
,
params
);
},
//排产计算
apsprepareandcalc
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/apsprepareandcalc`
,
params
);
},
//排产方案下发
processschemedispatch
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/processschemedispatch`
,
params
);
},
//APS排产前数据合法性校验
recoveryoptasksimluate
(
params
)
{
return
Api
.
post
(
`
${
aps
}
/apspoolappservices/apsdatachecked`
,
params
);
},
}
pages/aps/aps/components/excute.vue
View file @
74bd2a9b
This diff is collapsed.
Click to expand it.
pages/aps/aps/index.vue
View file @
74bd2a9b
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
Expand
,
{
return
h
(
Expand
,
{
props
:
{
props
:
{
row
:
params
.
row
.
id
row
Id
:
params
.
row
.
id
}
}
})
})
}
}
...
@@ -272,11 +272,22 @@ export default {
...
@@ -272,11 +272,22 @@ export default {
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
)
console
.
log
(
this
)
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
methods
:
{
methods
:
{
//排产池加载数据列表
loadList
()
{
Api
.
getall
().
then
((
res
)
=>
{
if
(
res
.
success
)
{
// this.list=res.result
}
})
},
addOk
()
{
addOk
()
{
this
.
$refs
.
grid
.
load
()
this
.
$refs
.
grid
.
load
()
this
.
addModal
=
false
this
.
addModal
=
false
...
@@ -284,9 +295,6 @@ export default {
...
@@ -284,9 +295,6 @@ export default {
this
.
editModal
=
false
this
.
editModal
=
false
this
.
curId
=
0
this
.
curId
=
0
},
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
detail
(
id
)
{
detail
(
id
)
{
this
.
detailModal
=
true
this
.
detailModal
=
true
this
.
curId
=
id
this
.
curId
=
id
...
...
pages/aps/plan/index.vue
View file @
74bd2a9b
...
@@ -444,7 +444,7 @@ export default {
...
@@ -444,7 +444,7 @@ export default {
},
},
//跳转到aps排产池(有判断)
//跳转到aps排产池(有判断)
goAps
()
{
goAps
()
{
Api
.
moveintoaps
().
then
(
(
res
)
=>
{
Api
.
moveintoaps
().
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
if
(
res
.
result
.
res
)
{
if
(
res
.
result
.
res
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -456,6 +456,10 @@ export default {
...
@@ -456,6 +456,10 @@ export default {
}
}
}
}
});
});
this
.
$router
.
push
({
name
:
"aps-aps"
// params: { customerId: id }
});
},
},
addOk
()
{
addOk
()
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
...
...
static/config.js
View file @
74bd2a9b
...
@@ -47,7 +47,7 @@ const systemApi = {
...
@@ -47,7 +47,7 @@ const systemApi = {
window
.
certificateUrl
=
`http://
${
address
}
:10090/api/services/app`
;
//Process-api
window
.
certificateUrl
=
`http://
${
address
}
:10090/api/services/app`
;
//Process-api
window
.
crmUrl
=
`http://
${
address
}
:10100/api/services/app`
;
//crm客户、合同、项目管理
window
.
crmUrl
=
`http://
${
address
}
:10100/api/services/app`
;
//crm客户、合同、项目管理
window
.
iconImg
=
`http://
${
hostAddress
}
:3000/imgicon/`
;
//待办任务图标路径
window
.
iconImg
=
`http://
${
hostAddress
}
:3000/imgicon/`
;
//待办任务图标路径
window
.
aps
=
`http://
${
apsUrl
}
:10
091
/api/services/app`
;
//aps手工排产
window
.
aps
=
`http://
${
apsUrl
}
:10
110
/api/services/app`
;
//aps手工排产
//oidc配置:
//oidc配置:
window
.
authConfig
=
{
window
.
authConfig
=
{
authority
:
`http://
${
address
}
:10010`
,
authority
:
`http://
${
address
}
:10010`
,
...
...
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