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
47a22507
Commit
47a22507
authored
Oct 31, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程流程禁用后处理
parent
532eb6bc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
781 additions
and
746 deletions
+781
-746
add.vue
pages/technology/add.vue
+19
-36
details.vue
pages/technology/details.vue
+80
-81
index.vue
pages/technology/details/index.vue
+352
-341
index.vue
pages/technology/details/routingqccard/index.vue
+289
-271
index.vue
pages/technology/index.vue
+41
-17
No files found.
pages/technology/add.vue
View file @
47a22507
...
...
@@ -249,46 +249,29 @@ export default {
}
else
{
this
.
entity
.
fileId
=
""
;
}
ApiWorkflow
.
getbyid
({
id
:
"2085025d-9c38-4834-846a-8f9d2f4c8553"
,
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
wfStatus
=
res
.
result
.
status
;
if
(
wfStatus
==
0
)
{
this
.
entity
.
approvalStatus
=
4
;
}
else
{
this
.
entity
.
approvalStatus
=
1
;
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
//保存成功后直接打开主页面查看功能
let
rowInfo
=
{
id
:
null
,
//????保存成功后需要返回id
code
:
this
.
entity
.
code
,
name
:
this
.
entity
.
name
,
routingType
:
this
.
entity
.
routingType
,
version
:
this
.
entity
.
versionid
,
departmentName
:
this
.
entity
.
departmentName
,
approvalStatus
:
this
.
entity
.
approvalStatus
,
productBomId
:
this
.
entity
.
productBomId
}
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
//保存成功后直接打开主页面查看功能
let
rowInfo
=
{
id
:
null
,
//????保存成功后需要返回id
code
:
this
.
entity
.
code
,
name
:
this
.
entity
.
name
,
routingType
:
this
.
entity
.
routingType
,
version
:
this
.
entity
.
versionid
,
departmentName
:
this
.
entity
.
departmentName
,
approvalStatus
:
this
.
entity
.
approvalStatus
,
productBomId
:
this
.
entity
.
productBomId
}
// this.$emit("on-goPage", rowInfo)
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
((
err
)
=>
{
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
// this.$emit("on-goPage", rowInfo)
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
((
err
)
=>
{
this
.
$Message
.
error
(
"
操作
失败"
);
this
.
$Message
.
error
(
"
保存
失败"
);
console
.
warn
(
err
);
});
}
...
...
pages/technology/details.vue
View file @
47a22507
<
style
lang=
"less"
>
@import "./technolog.less";
.details_box {
background: #f5f7f9;
display: flex;
margin: 0 20px;
flex-direction: column;
.details_body {
flex-grow: 1;
// width: 561px;
text-align: center;
background: #f5f7f9;
display: flex;
margin: 0 20px;
flex-direction: column;
.details_body {
flex-grow: 1;
// width: 561px;
text-align: center;
background: white;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item {
width: 140px;
border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
background: rgba(243, 243, 243, 1);
}
.ivu-menu-item-active.ivu-menu-item-selected {
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
}
}
background: white;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item {
width: 140px;
border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
background: rgba(243, 243, 243, 1);
}
.ivu-menu-item-active.ivu-menu-item-selected {
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
.bottom_box {
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
}
}
.bottom_box {
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
}
}
</
style
>
<
template
>
<div
class=
"details_box"
>
<div
class=
"details_box"
>
<div
class=
"details_body"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"0"
>
<MenuItem
name=
"0"
:to=
"'/technology/details?id='+headerId+'&headerStatus='+headerStatus"
>
工序
</MenuItem>
<!--
<MenuItem
name=
"1"
:to=
"'/technology/details/routingStep?id='+headerId"
>
工步
</MenuItem>
-->
<MenuItem
name=
"2"
:to=
"'/technology/details/routingqccard?id='+headerId+'&headerStatus='+headerStatus"
>
质控卡
</MenuItem>
<MenuItem
name=
"3"
:to=
"'/technology/details/routingsupporting?id='+headerId+'&headerStatus='+headerStatus+'&productBomId='+productBomId"
>
工艺BOM
</MenuItem>
<!--
<MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem>
-->
<MenuItem
name=
"4"
:to=
"'/technology/details/setup?id='+headerId"
>
生产准备
</MenuItem>
<MenuItem
name=
"5"
:to=
"'/technology/details/routinghcorder?id='+headerId"
v-show=
"headerStatus==1"
>
工艺更改单
</MenuItem>
<MenuItem
name=
"6"
:to=
"'/technology/details/remind?id='+headerId"
>
工艺提醒
</MenuItem>
</Menu>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"0"
>
<MenuItem
name=
"0"
:to=
"'/technology/details?id='+headerId+'&headerStatus='+headerStatus"
>
工序
</MenuItem>
<!--
<MenuItem
name=
"1"
:to=
"'/technology/details/routingStep?id='+headerId"
>
工步
</MenuItem>
-->
<MenuItem
name=
"2"
:to=
"'/technology/details/routingqccard?id='+headerId+'&headerStatus='+headerStatus"
>
质控卡
</MenuItem>
<MenuItem
name=
"3"
:to=
"'/technology/details/routingsupporting?id='+headerId+'&headerStatus='+headerStatus+'&productBomId='+productBomId"
>
工艺BOM
</MenuItem>
<!--
<MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem>
-->
<MenuItem
name=
"4"
:to=
"'/technology/details/setup?id='+headerId"
>
生产准备
</MenuItem>
<MenuItem
name=
"5"
:to=
"'/technology/details/routinghcorder?id='+headerId"
v-show=
"headerStatus==1"
>
工艺更改单
</MenuItem>
<MenuItem
name=
"6"
:to=
"'/technology/details/remind?id='+headerId"
>
工艺提醒
</MenuItem>
</Menu>
</div>
<div
class=
"bottom_box"
>
<nuxt-child
keep-alive
:headerid=
"headerId"
></nuxt-child>
<nuxt-child
keep-alive
:headerid=
"headerId"
></nuxt-child>
</div>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
layout
:
"empty"
,
components
:
{},
data
()
{
return
{
showMenu
:
true
,
treeHeight
:
""
,
actNum
:
"1"
,
headerId
:
-
1
,
headerStatus
:
-
1
,
productBomId
:
-
1
,
};
},
created
()
{
this
.
headerId
=
this
.
$route
.
query
.
id
;
this
.
headerStatus
=
this
.
$route
.
query
.
headerStatus
;
this
.
productBomId
=
this
.
$route
.
query
.
productBomId
;
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{},
computed
:
{},
methods
:
{},
watch
:
{},
layout
:
"empty"
,
components
:
{},
data
()
{
return
{
showMenu
:
true
,
treeHeight
:
""
,
actNum
:
"1"
,
headerId
:
-
1
,
headerStatus
:
-
1
,
productBomId
:
-
1
,
};
},
created
()
{
this
.
headerId
=
this
.
$route
.
query
.
id
;
this
.
headerStatus
=
this
.
$route
.
query
.
headerStatus
;
this
.
productBomId
=
this
.
$route
.
query
.
productBomId
;
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{},
computed
:
{},
methods
:
{},
watch
:
{},
};
</
script
>
pages/technology/details/index.vue
View file @
47a22507
This diff is collapsed.
Click to expand it.
pages/technology/details/routingqccard/index.vue
View file @
47a22507
This diff is collapsed.
Click to expand it.
pages/technology/index.vue
View file @
47a22507
...
...
@@ -105,6 +105,7 @@ import ProductTree from "@/components/page/productTree.vue";
import
sendAudit
from
"./sendAudit.vue"
;
import
routingchangeorder
from
"../processDesign/Process/routingchangeorder.vue"
;
import
changelist
from
"../processDesign/Process/changelist.vue"
;
import
ApiWorkflow
from
"../workflow/process/api"
;
export
default
{
components
:
{
ProductTree
,
...
...
@@ -236,21 +237,6 @@ export default {
high
:
true
,
code
:
"Process.Status"
},
//{ key: "id", title: this.$t("id"), hide: true, align: "left" },
// { key:"upId",title:this.l("upId") ,align:"left" ,high:true },
// { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true },
//{ key: "classId", title: this.l("classId"), align: "left", hide: true },
//{ key: "unicode", title: this.l("unicode"),align: "left",easy: false,hide: true},
// { key:"approvalStatus",title:this.l("approvalStatus") ,align:"left" ,high:true ,code:'process.RoutingStatus' },
// { key:"approvalStatusRemark",title:this.l("approvalStatusRemark") ,align:"left" ,high:true },
// { key:"auditUserId1",title:this.l("auditUserId1") ,align:"left" ,high:true },
// { key:"auditUserId2",title:this.l("auditUserId2") ,align:"left" ,high:true },
// { key:"platesnum",title:this.l("platesnum") ,align:"left" ,high:true },
// { key: "isMain", title: this.l("isMain"),align: "center",width: 80,high: true,code: "Process.state"},
//{key: "creatorUserId",title: this.l("author"),align: "left", high: true,type: "user",hide: true},
//{key: "versionnotes",title: this.l("versionnotes"),align: "left", high: true,hide: true},
//{key: "versionid", title: this.l("versionid"), align: "left", hide: true, code: "Process.Routing.version"},
{
key
:
"creationTime"
,
title
:
this
.
$t
(
"creationTime"
),
...
...
@@ -351,7 +337,7 @@ export default {
click
:
()
=>
this
.
TechnologyChange
(
params
.
row
)
}
},
params
.
row
.
approvalStatus
==
1
?
"新增更改单"
:
""
this
.
processStatus
==
0
&&
params
.
row
.
approvalStatus
==
1
?
"新增更改单"
:
""
),
h
(
"op"
,
{
...
...
@@ -362,7 +348,18 @@ export default {
click
:
()
=>
this
.
sendAuditFun
(
params
.
row
)
}
},
params
.
row
.
approvalStatus
==
4
?
"送审"
:
""
this
.
processStatus
==
0
&&
params
.
row
.
approvalStatus
==
4
?
"送审"
:
""
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
changeStatus
(
params
.
row
)
}
},
this
.
processStatus
==
1
&&
params
.
row
.
approvalStatus
==
4
?
"启用"
:
""
)
]);
}
...
...
@@ -378,6 +375,7 @@ export default {
processviewModal
:
false
,
ModalIm
:
false
,
temTitle
:
"工艺规程"
,
processStatus
:
0
,
//工艺规程审核流程停启用状态 0:启用 1:禁用
};
},
created
()
{
...
...
@@ -396,6 +394,14 @@ export default {
this
.
treeHeight
=
window
.
innerHeight
-
120
;
})();
};
ApiWorkflow
.
getbyid
({
id
:
"2085025d-9c38-4834-846a-8f9d2f4c8553"
,
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
processStatus
=
res
.
result
.
status
;
}
})
},
computed
:
{},
methods
:
{
...
...
@@ -549,6 +555,24 @@ export default {
this
.
$refs
.
changelist
.
show3
=
true
;
});
},
//修改工艺规程状态
changeStatus
(
row
)
{
let
params
=
row
params
.
approvalStatus
=
1
Api
.
update
(
params
)
.
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"操作成功"
);
this
.
$refs
.
grid
.
load
();
}
else
{
this
.
$Message
.
error
(
"操作失败"
);
}
})
.
catch
((
err
)
=>
{
this
.
$Message
.
error
(
"操作失败"
);
console
.
warn
(
err
);
});
},
//批量导入start
//导入功能
openModalIm
()
{
...
...
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