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
c6a38f8d
Commit
c6a38f8d
authored
Apr 02, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.mes123.com/zhouyx/mes-ui
parents
fdc3e4bc
fe898a56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
25 deletions
+43
-25
api.js
pages/aps/aps/api.js
+8
-0
edit.vue
pages/aps/aps/components/edit.vue
+17
-9
excute.vue
pages/aps/aps/components/excute.vue
+18
-16
No files found.
pages/aps/aps/api.js
View file @
c6a38f8d
...
...
@@ -84,6 +84,14 @@ export default {
getEquiptypeList
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/mes_equip_info/getequiptypelist`
,
params
);
},
// 行内编辑保存 /mes_op_task_plan_simulate/updatesetuptimeandfirstequip
subupdate
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/mes_op_task_plan_simulate/updatesetuptimeandfirstequip`
,
params
);
},
// 选中是否同步到原始工艺 保存
apsupdate
(
params
)
{
return
Api
.
post
(
`
${
designUrl
}
/routingdetail/apsupdate`
,
params
);
},
//获取任务工单相关设备
gettaskequips
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/ser/gettaskequips`
,
params
);
...
...
pages/aps/aps/components/edit.vue
View file @
c6a38f8d
...
...
@@ -3,12 +3,12 @@
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('tASKSEQ')"
prop=
"tASKSEQ"
>
<
Input></Input
>
<
span>
{{
entity
.
task_seq
}}
</span
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('tASKNAME')"
prop=
"tASKNAME"
>
<
Input></Input
>
<
span>
{{
entity
.
task_name
}}
</span
>
</FormItem>
</Col>
<Col
:span=
"12"
>
...
...
@@ -83,22 +83,24 @@ export default {
},
props
:
{
eid
:
Number
,
parmse
:
String
,
},
created
()
{
// this.getUserDepart()
},
methods
:
{
load
()
{
// Api.get({ id: v }).then((r) => {
// this.entity = r.result
// this.$emit('on-load')
// })
},
// load(v) {
// Api.get({ id: v }).then((r) => {
// console.log(r)
// // this.entity = r.result
// // this.$emit('on-load')
// })
// },
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
Api
.
update
(
this
.
entity
)
Api
.
sub
update
(
this
.
entity
)
.
then
((
r
)
=>
{
this
.
disabled
=
false
if
(
r
.
success
)
{
...
...
@@ -164,6 +166,12 @@ export default {
if
(
v
!=
0
)
{
this
.
load
(
v
)
}
},
parmse
(
u
){
console
.
log
(
u
)
if
(
u
){
this
.
entity
=
u
}
}
}
}
...
...
pages/aps/aps/components/excute.vue
View file @
c6a38f8d
...
...
@@ -14,7 +14,7 @@
></DataGrid>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"800"
>
<Edit
ref=
"editPart"
:eid=
"curId"
@
on-close=
"cancel"
/>
<Edit
ref=
"editPart"
:eid=
"curId"
:parmse=
"formData"
@
on-close=
"cancel"
/>
</Modal>
<Modal
v-model=
"insertlModal"
title=
"插单"
@
on-ok=
"insertOk"
@
on-cancel=
"cancel"
>
<p>
确定进行
{{
insertTItle
}}
操作?
</p>
...
...
@@ -52,6 +52,7 @@ export default {
detailModal
:
false
,
insertlModal
:
false
,
rowIndex
:
null
,
formData
:
{},
//编辑行数据
curId
:
0
,
gridHeight
:
50
,
columns
:
[
...
...
@@ -316,7 +317,7 @@ export default {
msg
:
"确认要移出排产吗?"
},
class
:
"icons-h"
,
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
}),
h
(
"op"
,
{
attrs
:
{
...
...
@@ -393,25 +394,26 @@ export default {
//单个工序进行参数设置end----
//编辑工序start----
edit
(
id
)
{
edit
(
dataForm
)
{
this
.
editModal
=
true
;
this
.
curId
=
Number
(
id
);
this
.
getUserDepart
();
this
.
getEquiptypeList
();
this
.
formData
=
dataForm
// this.curId = Number(id);
this
.
getUserDepart
()
this
.
getEquiptypeList
()
},
// 获取班组
getUserDepart
()
{
Api
.
getUserDepart
().
then
(
res
=>
{
console
.
log
(
res
.
result
);
this
.
$refs
.
editPart
.
orderCatList
=
res
.
result
;
})
;
getUserDepart
(){
Api
.
getUserDepart
().
then
(
res
=>
{
// console.log(res.result)
this
.
$refs
.
editPart
.
orderCatList
=
res
.
result
})
},
// 获取设备
getEquiptypeList
()
{
Api
.
getEquiptypeList
().
then
(
res
=>
{
console
.
log
(
"设备"
,
res
.
result
);
this
.
$refs
.
editPart
.
equiptypeList
=
res
.
result
;
})
;
getEquiptypeList
(){
Api
.
getEquiptypeList
().
then
(
res
=>
{
// console.log("设备",res.result)
this
.
$refs
.
editPart
.
equiptypeList
=
res
.
result
})
},
//编辑工序end----
...
...
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