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
09ea4669
Commit
09ea4669
authored
Apr 09, 2020
by
佟礼
Browse files
Options
Browse Files
Download
Plain Diff
配套
parents
ff9387a2
85a46678
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
392 additions
and
253 deletions
+392
-253
dataGrid.vue
components/page/dataGrid.vue
+1
-1
zh-CN.js
i18n/locale/zh-CN.js
+6
-0
product.vue
layouts/basic-layout/product.vue
+101
-56
add.vue
pages/aps/aps/add.vue
+54
-17
api.js
pages/aps/aps/api.js
+14
-5
edit.vue
pages/aps/aps/components/edit.vue
+71
-61
excute.vue
pages/aps/aps/components/excute.vue
+2
-0
index.vue
pages/aps/aps/index.vue
+45
-10
index.vue
pages/aps/results/index.vue
+0
-2
index.vue
pages/mesPlan/index.vue
+5
-4
treeType.vue
pages/order/quotation/components/treeType.vue
+2
-4
index.vue
pages/order/quotation/index.vue
+6
-20
processMain.vue
pages/processManage/Process/processMain.vue
+3
-3
orderMaterial.vue
pages/processManage/setProcess/components/orderMaterial.vue
+10
-9
index.vue
pages/processManage/setProcess/index.vue
+4
-0
index.vue
pages/qc/certificate/endIssued/index.vue
+67
-60
index.vue
pages/qc/certificate/waitOpened/index.vue
+1
-1
No files found.
components/page/dataGrid.vue
View file @
09ea4669
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
},
},
size
:
{
size
:
{
type
:
String
,
type
:
String
,
default
:
"default
"
default
:
"default"
},
},
height
:
{
height
:
{
type
:
Number
,
type
:
Number
,
...
...
i18n/locale/zh-CN.js
View file @
09ea4669
...
@@ -927,6 +927,12 @@ export default {
...
@@ -927,6 +927,12 @@ export default {
mes_part_task_plan_simulate
:
{
mes_part_task_plan_simulate
:
{
id
:
''
,
id
:
''
,
part_task_pk
:
'计划编号'
,
part_task_pk
:
'计划编号'
,
mes_code
:
'计划编号'
,
urgency_level
:
'紧急程度'
,
batchnum
:
'批次号'
,
drawingnum
:
'图号'
,
project_no
:
'项目号'
,
product_name
:
'产品名称'
,
priority
:
'优先级'
,
priority
:
'优先级'
,
plan_qty
:
'排产数量'
,
plan_qty
:
'排产数量'
,
spare_qty
:
'备件数量'
,
spare_qty
:
'备件数量'
,
...
...
layouts/basic-layout/product.vue
View file @
09ea4669
...
@@ -9,37 +9,59 @@
...
@@ -9,37 +9,59 @@
<table
class=
"t_table_box"
>
<table
class=
"t_table_box"
>
<tr>
<tr>
<td
class=
"t_title"
>
<td
class=
"t_title"
>
<a
class=
"a_goIndex"
@
click=
"goIndex"
>
<a
class=
"a_goIndex"
>
<b
class=
"title"
>
首页
</b>
<b
class=
"title"
>
首页
</b>
</a>
</a>
</td>
</td>
</tr>
<td>
<tr>
<ul
class=
"table_row_ul"
>
<td
class=
"t_title"
>
<li>
<a
class=
"a_goIndex"
@
click=
"goIndexTwo"
>
<a
class=
"a_goIndex"
@
click=
"goIndex"
>
<b
class=
"title"
>
首页二
</b>
首页一
</a>
</a>
</li>
<li>
<a
class=
"a_goIndex"
@
click=
"goIndexTwo"
>
首页二
</a>
</li>
</ul>
</td>
</td>
</tr>
</tr>
<tr
v-for=
"(item,i) in filterSider"
>
<tr
v-for=
"(item,i) in filterSider"
>
<td
class=
"t_title"
>
<td
class=
"t_title"
>
<b
class=
"title"
<b
class=
"title"
>
{{
item
.
title
}}
</b>
>
{{
item
.
title
}}
</b>
</td>
</td>
<td>
<td>
<ul
class=
"table_row_ul"
>
<ul
class=
"table_row_ul"
>
<li
v-for=
"(li
,j
) in item.children"
>
<li
v-for=
"(li) in item.children"
>
<a
@
click=
"goPage(
li,j
)"
:class=
"
{'active': li.id === isActive}">
{{
li
.
title
}}
</a>
<a
@
click=
"goPage(
item,li
)"
:class=
"
{'active': li.id === isActive}">
{{
li
.
title
}}
</a>
</li>
</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
</span>
</span>
</a>
</a>
<i-header-breadcrumb
v-if=
"showBreadcrumb && !headerMenu && !isMobile"
ref=
"breadcrumb"
/>
<!--
<i-header-breadcrumb
v-if=
"showBreadcrumb && !headerMenu && !isMobile"
ref=
"breadcrumb"
/>
-->
<!--
{{}}
-->
<Breadcrumb
class=
"i-layout-header-breadcrumb"
v-if=
"homeMenuItem==''"
>
<BreadcrumbItem
to=
"/"
class=
"white"
>
<Icon
type=
"ios-home"
/>
首页
</BreadcrumbItem>
</Breadcrumb>
<Breadcrumb
class=
"i-layout-header-breadcrumb"
v-else-if=
"homeMenuItem!=''"
separator=
">"
>
<BreadcrumbItem
to=
"/"
class=
"white"
>
<Icon
type=
"ios-home"
/>
首页
</BreadcrumbItem>
<BreadcrumbItem>
{{
homeMenu
}}
</BreadcrumbItem>
<BreadcrumbItem
:to=
"parthto"
class=
"white"
>
{{
homeMenuItem
}}
</BreadcrumbItem>
</Breadcrumb>
<i-header-search
v-if=
"showSearch && !headerMenu && !isMobile && !showBreadcrumb"
/>
<i-header-search
v-if=
"showSearch && !headerMenu && !isMobile && !showBreadcrumb"
/>
<div
class=
"header_right"
>
<div
class=
"header_right"
>
<i-header-search
<i-header-search
...
@@ -52,7 +74,7 @@
...
@@ -52,7 +74,7 @@
<i-header-notice
v-if=
"showNotice"
/>
<i-header-notice
v-if=
"showNotice"
/>
<i-header-user
/>
<i-header-user
/>
<!--
<i-header-i18n
v-if=
"showI18n"
/>
<!--
<i-header-i18n
v-if=
"showI18n"
/>
<i-header-setting
v-if=
"enableSetting && !isMobile"
/>
-->
<i-header-setting
v-if=
"enableSetting && !isMobile"
/>
-->
</div>
</div>
</Header>
</Header>
<Content
class=
"i-layout-content"
>
<Content
class=
"i-layout-content"
>
...
@@ -107,13 +129,17 @@ export default {
...
@@ -107,13 +129,17 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isActive
:
0
,
isActive
:
0
,
showDrawer
:
false
,
showDrawer
:
false
,
ticking
:
false
,
ticking
:
false
,
headerVisible
:
true
,
headerVisible
:
true
,
oldScrollTop
:
0
,
oldScrollTop
:
0
,
isDelayHideSider
:
false
,
// hack,当从隐藏侧边栏的 header 切换到正常 header 时,防止 Logo 抖动
isDelayHideSider
:
false
,
// hack,当从隐藏侧边栏的 header 切换到正常 header 时,防止 Logo 抖动
loadRouter
:
true
loadRouter
:
true
,
homeMenu
:
''
,
homeMenuItem
:
""
,
parthto
:
''
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -222,8 +248,7 @@ export default {
...
@@ -222,8 +248,7 @@ export default {
},
0
);
},
0
);
},
},
$route
(
to
,
from
)
{
$route
(
to
,
from
)
{
if
(
to
.
name
===
from
.
name
)
{
if
(
to
.
name
===
from
.
name
)
{
// 相同路由,不同参数,跳转时,重载页面
// 相同路由,不同参数,跳转时,重载页面
if
(
Setting
.
sameRouteForceUpdate
)
{
if
(
Setting
.
sameRouteForceUpdate
)
{
this
.
handleReload
();
this
.
handleReload
();
}
}
...
@@ -242,10 +267,7 @@ export default {
...
@@ -242,10 +267,7 @@ export default {
},
},
handleScroll
()
{
handleScroll
()
{
if
(
!
this
.
headerHide
)
return
;
if
(
!
this
.
headerHide
)
return
;
const
scrollTop
=
document
.
body
.
scrollTop
+
document
.
documentElement
.
scrollTop
;
const
scrollTop
=
document
.
body
.
scrollTop
+
document
.
documentElement
.
scrollTop
;
if
(
!
this
.
ticking
)
{
if
(
!
this
.
ticking
)
{
this
.
ticking
=
true
;
this
.
ticking
=
true
;
requestAnimation
(()
=>
{
requestAnimation
(()
=>
{
...
@@ -272,8 +294,7 @@ export default {
...
@@ -272,8 +294,7 @@ export default {
// todo $menuHead.handleGetMenuHeight();
// todo $menuHead.handleGetMenuHeight();
}
}
},
},
handleReload
()
{
handleReload
()
{
// 针对缓存的页面也生效
// 针对缓存的页面也生效
const
isCurrentPageCache
=
this
.
keepAlive
.
indexOf
(
this
.
$route
.
name
)
>
-
1
;
const
isCurrentPageCache
=
this
.
keepAlive
.
indexOf
(
this
.
$route
.
name
)
>
-
1
;
const
pageName
=
this
.
$route
.
name
;
const
pageName
=
this
.
$route
.
name
;
if
(
isCurrentPageCache
)
{
if
(
isCurrentPageCache
)
{
...
@@ -287,15 +308,24 @@ export default {
...
@@ -287,15 +308,24 @@ export default {
}
}
});
});
},
},
goPage
(
u
)
{
goPage
(
u
,
li
)
{
this
.
$router
.
push
(
u
.
path
)
this
.
$router
.
push
(
li
.
path
)
this
.
isActive
=
u
.
id
this
.
isActive
=
li
.
id
this
.
homeMenu
=
u
.
title
this
.
homeMenuItem
=
li
.
title
this
.
parthto
=
li
.
path
},
},
goIndex
(){
goIndex
(){
this
.
$router
.
push
(
"/"
)
this
.
$router
.
push
(
"/"
)
this
.
homeMenu
=
''
this
.
homeMenuItem
=
''
this
.
isActive
=
0
},
},
goIndexTwo
(){
goIndexTwo
(){
this
.
$router
.
push
(
"/home"
)
this
.
$router
.
push
(
"/home"
)
this
.
homeMenu
=
''
this
.
homeMenuItem
=
''
this
.
isActive
=
0
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -311,7 +341,22 @@ export default {
...
@@ -311,7 +341,22 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.i-layout-header-breadcrumb {
color: #A7B8CC!important;//wheat
}
.i-layout-header-breadcrumb .white .ivu-breadcrumb-item-link {
color: #ffffff!important;//wheat
}
.ivu-icon-ios-home{
font-size: 20px;
}
.white{
color: #ffffff!important;
}
.product-layout {
.product-layout {
.i-layout-content {
padding: 5px 10px;
}
.ivu-layout-header {
.ivu-layout-header {
height: 50px;
height: 50px;
line-height: 50px;
line-height: 50px;
...
@@ -335,7 +380,8 @@ export default {
...
@@ -335,7 +380,8 @@ export default {
-webkit-transition: width 0.5s, height 0.5s, -webkit-transform 0.5s; /* Safari */
-webkit-transition: width 0.5s, height 0.5s, -webkit-transform 0.5s; /* Safari */
transition: width 0.5s, height 0.5s, transform 0.5s;
transition: width 0.5s, height 0.5s, transform 0.5s;
i {
i {
-webkit-transition: font-size 0.5s, margin 0.5s, -webkit-transform 0.5s; /* Safari */
-webkit-transition: font-size 0.5s, margin 0.5s,
-webkit-transform 0.5s; /* Safari */
transition: font-size 0.5s, margin 0.5s, transform 0.5s;
transition: font-size 0.5s, margin 0.5s, transform 0.5s;
}
}
}
}
...
@@ -348,10 +394,10 @@ export default {
...
@@ -348,10 +394,10 @@ export default {
top: 57%;
top: 57%;
min-width: 1084px;
min-width: 1084px;
min-height: 300px;
min-height: 300px;
box-shadow: 0px 5px 17px 5px rgba(0,
0,0,
0.28);
box-shadow: 0px 5px 17px 5px rgba(0,
0, 0,
0.28);
background: #f5f6fa;
background: #f5f6fa;
.t_table_box{
.t_table_box
{
border-collapse:collapse;
border-collapse:
collapse;
border-radius: 5px;
border-radius: 5px;
tr:first-of-type {
tr:first-of-type {
border-top-right-radius: 5px;
border-top-right-radius: 5px;
...
@@ -365,15 +411,14 @@ export default {
...
@@ -365,15 +411,14 @@ export default {
border-bottom-left-radius: 5px;
border-bottom-left-radius: 5px;
}
}
}
}
tr{
tr {
// line-height: 35px;
td {
td{
padding: 9px 10px 0px;
padding: 9px 10px 0px;
.table_row_ul{
.table_row_ul
{
list-style: none;
list-style: none;
border-bottom: 1px solid #
E0E0E
0;
border-bottom: 1px solid #
e0e0e
0;
text-align: left;
text-align: left;
li{
li
{
list-style: none;
list-style: none;
display: inline-block;
display: inline-block;
a {
a {
...
@@ -383,15 +428,15 @@ export default {
...
@@ -383,15 +428,15 @@ export default {
margin: 0px 6px;
margin: 0px 6px;
border-radius: 4px;
border-radius: 4px;
}
}
a:hover{
a:hover
{
background: #2680eb;
background: #2680eb;
color: white;
color: white;
}
}
a:visited{
a:visited
{
background: #2680eb;
background: #2680eb;
color: white;
color: white;
}
}
a.active{
a.active
{
background: #2680eb;
background: #2680eb;
color: white;
color: white;
}
}
...
@@ -399,32 +444,32 @@ export default {
...
@@ -399,32 +444,32 @@ export default {
}
}
}
}
}
}
.t_title{
.t_title
{
min-width: 120px;
min-width: 120px;
background: #515a6e;
background: #515a6e;
.a_goIndex{
.a_goIndex
{
color: #fff;
color: #fff;
}
}
.title{
.title
{
padding: 5px 10px;
padding: 5px 10px;
}
}
}
}
}
}
}
}
}
}
.menu:hover .home {
.menu:hover .home {
margin-top: 10px;
margin-top: 10px;
height: 60px;
height: 60px;
width: 60px;
width: 60px;
z-index: 88888;
z-index: 88888;
}
}
.menu:hover .home .top_menu_box {
.menu:hover .home .top_menu_box {
display: block;
display: block;
}
}
.menu:hover .home i {
.menu:hover .home i {
font-size: 33px;
font-size: 33px;
margin: 13px 0 0;
margin: 13px 0 0;
}
}
.ivu-breadcrumb {
.ivu-breadcrumb {
height: 50px;
height: 50px;
line-height: 50px;
line-height: 50px;
...
...
pages/aps/aps/add.vue
View file @
09ea4669
...
@@ -118,16 +118,16 @@
...
@@ -118,16 +118,16 @@
<InputNumber
v-model=
"entity.efficiencyValue"
:step=
"0.01"
></InputNumber>
<InputNumber
v-model=
"entity.efficiencyValue"
:step=
"0.01"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
v-if=
"opTaskPk>0"
>
<FormItem
:label=
"l('run_time')"
prop=
"run_time"
>
<FormItem
:label=
"l('run_time')"
prop=
"run_time"
>
<span
v-text=
"
run_time"
></span>
<span
v-text=
"row.
run_time"
></span>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
<Divider
/>
<Divider
/>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
lisan
"
>
<FormItem
:label=
"l('isDiscrete')"
prop=
"
isDiscrete
"
>
<i-switch
v-model=
"entity.
lisan
"
size=
"large"
>
<i-switch
v-model=
"entity.
isDiscrete
"
size=
"large"
>
<span
slot=
"open"
>
是
</span>
<span
slot=
"open"
>
是
</span>
<span
slot=
"close"
>
否
</span>
<span
slot=
"close"
>
否
</span>
</i-switch>
</i-switch>
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
overTime
:
"不加班"
,
//"六日加班", 不加班 加班
overTime
:
"不加班"
,
//"六日加班", 不加班 加班
efficiencyValue
:
11
,
// 效率系数, 必须大于 0
efficiencyValue
:
11
,
// 效率系数, 必须大于 0
shopId
:
null
,
shopId
:
null
,
lisan
:
true
,
isDiscrete
:
true
,
isDiscrete
:
"否"
,
isDiscrete
:
"否"
,
discrete
:
1
,
//离散数值 必须大于 1
discrete
:
1
,
//离散数值 必须大于 1
multiple
:
true
,
multiple
:
true
,
...
@@ -231,9 +231,15 @@ export default {
...
@@ -231,9 +231,15 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
0
default
:
0
},
},
run_time
:{
run_time
:
{
type
:
Number
,
type
:
Number
,
default
:
0
default
:
0
},
row
:
{
type
:
Object
,
default
:
()
=>
{
return
null
;
}
}
}
},
},
created
()
{
created
()
{
...
@@ -272,7 +278,7 @@ export default {
...
@@ -272,7 +278,7 @@ export default {
this
.
entity
.
over
=
u
.
OverTime
==
"不加班"
;
this
.
entity
.
over
=
u
.
OverTime
==
"不加班"
;
this
.
entity
.
overTime
=
u
.
parameterValue
;
this
.
entity
.
overTime
=
u
.
parameterValue
;
}
else
if
(
u
.
parametersCode
==
"Discrete"
)
{
}
else
if
(
u
.
parametersCode
==
"Discrete"
)
{
this
.
entity
.
lisan
=
u
.
parameterValue
==
"是"
;
this
.
entity
.
isDiscrete
=
u
.
parameterValue
==
"是"
;
this
.
entity
.
isDiscrete
=
u
.
parameterValue
;
this
.
entity
.
isDiscrete
=
u
.
parameterValue
;
}
}
});
});
...
@@ -280,15 +286,22 @@ export default {
...
@@ -280,15 +286,22 @@ export default {
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
opTaskPk
==
0
&&
this
.
partTaskPk
>
0
&&
this
.
entity
.
flog
<
1
){
if
(
this
.
$Message
.
error
(
"计划参数调整参数应用范围不能是工序级的"
)
this
.
opTaskPk
==
0
&&
this
.
entity
.
flog
=
1
;
this
.
partTaskPk
>
0
&&
this
.
entity
.
flog
<
1
)
{
this
.
$Message
.
error
(
"计划参数调整参数应用范围不能是工序级的"
);
this
.
entity
.
flog
=
1
;
return
;
return
;
}
}
this
.
entity
.
multipleEquipIds
=
this
.
entity
.
multipleEquipPks
.
join
();
if
(
this
.
entity
.
multipleEquipPks
){
this
.
entity
.
multipleEquipIds
=
this
.
entity
.
multipleEquipPks
.
join
();
}
//
this
.
entity
.
planMethod
=
this
.
entity
.
planState
?
"重叠"
:
"平行"
;
this
.
entity
.
planMethod
=
this
.
entity
.
planState
?
"重叠"
:
"平行"
;
this
.
entity
.
overTime
=
this
.
entity
.
over
?
"不加班"
:
"加班"
;
this
.
entity
.
overTime
=
this
.
entity
.
over
?
"不加班"
:
"加班"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
lisan
?
"是"
:
"否"
;
this
.
entity
.
isDiscrete
=
this
.
entity
.
isDiscrete
?
"是"
:
"否"
;
this
.
entity
.
multipleEquip
=
this
.
entity
.
multiple
?
"是"
:
"否"
;
this
.
entity
.
multipleEquip
=
this
.
entity
.
multiple
?
"是"
:
"否"
;
Api
.
apsschedulupdateparameter
(
this
.
entity
)
Api
.
apsschedulupdateparameter
(
this
.
entity
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -336,11 +349,35 @@ export default {
...
@@ -336,11 +349,35 @@ export default {
},
},
opTaskPk
(
v
,
n
)
{
opTaskPk
(
v
,
n
)
{
this
.
entity
.
opTaskPk
=
v
;
this
.
entity
.
opTaskPk
=
v
;
if
(
v
>
0
){
let
entity
=
{
partTaskPk
:
this
.
row
.
part_task_pk
,
opTaskPk
:
this
.
row
.
op_task_pk
,
taskSeq
:
this
.
row
.
task_seq
,
flog
:
5
,
//参数应用范围
calId
:
null
,
planState
:
true
,
planMethod
:
this
.
row
.
plan_method
,
// 平行 重叠
over
:
false
,
overTime
:
this
.
row
.
over_time
,
//"六日加班", 不加班 加班
efficiencyValue
:
this
.
row
.
efficiency_value
,
// 效率系数, 必须大于 0
shopId
:
null
,
isDiscrete
:
this
.
row
.
isdiscrete
,
isDiscrete
:
"否"
,
discrete
:
this
.
row
.
discrete_value
,
//离散数值 必须大于 1
multiple
:
true
,
multipleEquip
:
this
.
row
.
multi_machine
,
//"是否多台安排设备", 否 是
multipleCount
:
1
,
//多台数量
multipleEquipPks
:
[],
multipleEquipIds
:
""
,
//"设备id", 用英文逗号分隔
}
this
.
entity
=
entity
}
this
.
entity
.
taskSeq
=
this
.
taskSeq
;
this
.
entity
.
taskSeq
=
this
.
taskSeq
;
},
},
count
(
v
,
n
)
{
count
(
v
,
n
)
{
this
.
entity
.
discrete
=
1
;
this
.
entity
.
discrete
=
1
;
}
}
,
}
}
};
};
</
script
>
</
script
>
...
@@ -375,7 +412,7 @@ export default {
...
@@ -375,7 +412,7 @@ export default {
}
}
}
}
}
}
.h50{
.h50
{
height: 115px;
height: 115px;
}
}
.click-btn {
.click-btn {
...
...
pages/aps/aps/api.js
View file @
09ea4669
...
@@ -2,20 +2,20 @@ import Api from '@/plugins/request'
...
@@ -2,20 +2,20 @@ 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`
,
{
return
Api
.
delete
(
`
${
resourceUrl
}
/
mesparttaskplansimulate/delete`
,
{
params
:
params
params
:
params
});
});
},
},
...
@@ -76,4 +76,13 @@ export default {
...
@@ -76,4 +76,13 @@ export default {
userdepartmentsofworkshop
(
params
)
{
userdepartmentsofworkshop
(
params
)
{
return
Api
.
get
(
`
${
systemUrl
}
/user/userdepartmentsofworkshop`
,
params
);
return
Api
.
get
(
`
${
systemUrl
}
/user/userdepartmentsofworkshop`
,
params
);
},
},
//工时修改
updatesetuptimeandfirstequip
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/mes_op_task_plan_simulate/updatesetuptimeandfirstequip`
,
params
);
},
//工时同步到原始工艺
apsupdate
(
params
)
{
return
Api
.
post
(
`
${
designUrl
}
/routingdetail/apsupdate `
,
params
);
},
}
}
pages/aps/aps/components/edit.vue
View file @
09ea4669
...
@@ -2,44 +2,25 @@
...
@@ -2,44 +2,25 @@
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"100"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"100"
>
<Row>
<Row>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('tASKSEQ')"
prop=
"tASKSEQ"
>
<FormItem
:label=
"l('tASKSEQ')"
prop=
"tASKSEQ"
>
{{
this
.
entity
.
task_seq
}}
</FormItem>
<Input
v-model=
"entity.task_seq"
></Input>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('tASKNAME')"
prop=
"tASKNAME"
>
<FormItem
:label=
"l('tASKNAME')"
prop=
"tASKNAME"
>
{{
this
.
entity
.
task_name
}}
</FormItem>
<Input
v-model=
"entity.task_name"
></Input>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('sHOPID')"
prop=
"sHOPID"
>
<FormItem
label=
"生产设备"
>
<!-- v-model="orderSearchForm.orderCat" -->
<EquipSelect
v-model=
"entity.eQUIPID"
></EquipSelect>
<Select
v-model=
"entity.sHOPID"
>
<Option
value=
""
class=
"option-text"
>
请选择
</Option>
<Option
v-for=
"item in orderCatList"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('eQUIPID')"
prop=
"eQUIPID"
>
<Col
:span=
"12"
v-model=
"entity.rUNTIME"
>
<Select
v-model=
"entity.eQUIPID"
>
<FormItem
:label=
"l('rUNTIME')"
prop=
"rUNTIME"
>
<Option
value=
""
class=
"option-text"
>
请选择
</Option>
<InputNumber
v-model=
"entity.run_time"
:max=
"100"
:min=
"1"
></InputNumber>
<Option
v-for=
"item in orderCatList"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
label=
"关重资源名称"
prop=
"rUNTIME"
>
<FormItem
label=
" "
>
<Select
v-model=
"entity.run_time"
>
<Checkbox
v-model=
"single"
>
是否同步到原始工艺
</Checkbox>
<Option
value=
""
class=
"option-text"
>
请选择
</Option>
<Option
v-for=
"item in orderCatList"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"12"
v-model=
"entity.rUNTIME"
>
<FormItem
:label=
"l('rUNTIME')"
prop=
"rUNTIME"
>
<!-- v-model="value1" -->
<InputNumber
v-model=
"entity.run_time"
:max=
"100"
:min=
"1"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
@@ -50,70 +31,99 @@
...
@@ -50,70 +31,99 @@
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
"../api"
;
export
default
{
export
default
{
name
:
'Edit'
,
name
:
"Edit"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
disabled
:
false
,
entity
:
{},
entity
:
{},
orderCatList
:[
orderCatList
:
[],
],
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
}
single
:
false
};
},
},
props
:
{
props
:
{
row
:
{
row
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{
return
null
return
null
;
}
}
}
}
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
this
.
entity
=
v
this
.
entity
=
v
;
},
},
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
(
v
)
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
)
let
parmsUp
=
{
.
then
((
r
)
=>
{
run_time
:
this
.
entity
.
run_time
,
this
.
disabled
=
false
first_equip
:
this
.
entity
.
eQUIPID
,
if
(
r
.
success
)
{
id
:
this
.
entity
.
id
this
.
$Message
.
success
(
'保存成功'
)
};
this
.
$emit
(
'on-option-ok'
)
Api
.
updatesetuptimeandfirstequip
(
parmsUp
)
.
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
!
this
.
single
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-option-ok"
);
}
else
{
let
parms
=
{
id
:
this
.
entity
.
routing_detail_id
,
//工序ID
name
:
this
.
entity
.
task_name
,
//工序名
task_seq
:
this
.
entity
.
task_seq
,
//工序号
resource_id
:
this
.
entity
.
eQUIPID
,
//设备id
runtime
:
this
.
entity
.
run_time
,
//单件工时
department_id
:
0
//班组ID
};
Api
.
apsupdate
(
parms
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-option-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
}
else
{
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
this
.
$Message
.
error
(
"保存失败"
);
}
}
})
})
.
catch
(
(
err
)
=>
{
.
catch
(
err
=>
{
this
.
disabled
=
false
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
)
console
.
warn
(
err
)
;
})
})
;
}
}
})
})
;
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
'mes_op_task_execute'
+
'.'
+
key
key
=
"mes_op_task_execute"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
;
}
}
},
},
watch
:
{
watch
:
{
row
(
v
)
{
row
(
v
)
{
if
(
v
!=
{})
{
if
(
v
!=
{})
{
//alert(JSON.stringify(v))
//alert(JSON.stringify(v))
this
.
entity
=
v
this
.
entity
=
v
;
}
}
}
}
}
}
}
}
;
</
script
>
</
script
>
pages/aps/aps/components/excute.vue
View file @
09ea4669
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
:partTaskPk=
"setParams.partTaskPk"
:partTaskPk=
"setParams.partTaskPk"
:taskSeq=
"setParams.taskSeq"
:taskSeq=
"setParams.taskSeq"
:count=
"setParams.count"
:count=
"setParams.count"
:row=
"rowData"
/>
/>
</Modal>
</Modal>
</div>
</div>
...
@@ -429,6 +430,7 @@ export default {
...
@@ -429,6 +430,7 @@ export default {
taskSeq
:
row
.
task_seq
,
taskSeq
:
row
.
task_seq
,
count
:
row
.
put_into_qty
count
:
row
.
put_into_qty
};
};
this
.
rowData
=
row
this
.
setParsModal
=
true
;
this
.
setParsModal
=
true
;
},
},
//单个工序进行参数设置end----
//单个工序进行参数设置end----
...
...
pages/aps/aps/index.vue
View file @
09ea4669
...
@@ -146,16 +146,50 @@ export default {
...
@@ -146,16 +146,50 @@ export default {
category
:
"icon"
category
:
"icon"
},
},
{
{
key
:
"part_task_pk"
,
key
:
"mesCode"
,
title
:
this
.
l
(
"part_task_pk"
),
title
:
this
.
l
(
"mes_code"
),
align
:
"left"
,
high
:
true
,
width
:
240
,
},
{
key
:
"product_name"
,
title
:
this
.
l
(
"product_name"
),
align
:
"left"
,
high
:
true
},
{
key
:
"drawingnum"
,
title
:
this
.
l
(
"drawingnum"
),
align
:
"left"
,
high
:
true
},
{
key
:
"project_no"
,
title
:
this
.
l
(
"project_no"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
high
:
true
},
},
{
key
:
"batchnum"
,
title
:
this
.
l
(
"batchnum"
),
align
:
"left"
,
high
:
true
},
{
key
:
"urgency_level"
,
title
:
this
.
l
(
"urgency_level"
),
align
:
"left"
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
,
width
:
100
,
},
{
{
key
:
"priority"
,
key
:
"priority"
,
title
:
this
.
l
(
"priority"
),
title
:
this
.
l
(
"priority"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
hide
:
true
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{},
params
.
index
+
1
);
return
h
(
"span"
,
{},
params
.
index
+
1
);
}
}
...
@@ -163,14 +197,15 @@ export default {
...
@@ -163,14 +197,15 @@ export default {
{
{
key
:
"plan_qty"
,
key
:
"plan_qty"
,
title
:
this
.
l
(
"plan_qty"
),
title
:
this
.
l
(
"plan_qty"
),
align
:
"left"
,
align
:
"right"
,
width
:
100
,
high
:
true
,
high
:
true
,
sortable
:
true
},
},
{
{
key
:
"spare_qty"
,
key
:
"spare_qty"
,
title
:
this
.
l
(
"spare_qty"
),
title
:
this
.
l
(
"spare_qty"
),
align
:
"left"
,
align
:
"right"
,
width
:
100
,
high
:
true
high
:
true
},
},
{
{
...
@@ -180,7 +215,7 @@ export default {
...
@@ -180,7 +215,7 @@ export default {
high
:
true
,
high
:
true
,
hide
:
true
,
hide
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
1
4
0
width
:
1
5
0
},
},
{
{
key
:
"plan_finish"
,
key
:
"plan_finish"
,
...
@@ -190,7 +225,7 @@ export default {
...
@@ -190,7 +225,7 @@ export default {
hide
:
true
,
hide
:
true
,
sortable
:
true
,
sortable
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
1
4
0
width
:
1
5
0
},
},
{
{
key
:
"notes"
,
key
:
"notes"
,
...
@@ -205,7 +240,7 @@ export default {
...
@@ -205,7 +240,7 @@ export default {
title
:
this
.
l
(
"demand_start"
),
title
:
this
.
l
(
"demand_start"
),
align
:
"center"
,
align
:
"center"
,
resizable
:
true
,
resizable
:
true
,
width
:
1
4
0
width
:
1
5
0
},
},
{
{
key
:
"demand_finish"
,
key
:
"demand_finish"
,
...
@@ -213,7 +248,7 @@ export default {
...
@@ -213,7 +248,7 @@ export default {
align
:
"center"
,
align
:
"center"
,
high
:
true
,
high
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
1
4
0
width
:
1
5
0
},
},
{
{
key
:
"badjustflag"
,
key
:
"badjustflag"
,
...
@@ -235,7 +270,7 @@ export default {
...
@@ -235,7 +270,7 @@ export default {
icon
:
"md-options"
,
icon
:
"md-options"
,
type
:
"icon"
,
type
:
"icon"
,
title
:
"工序参数设置"
,
title
:
"工序参数设置"
,
oprate
:
"edit"
,
oprate
:
"edit"
},
},
on
:
{
click
:
()
=>
this
.
openAddModel
(
2
,
params
.
row
)
}
on
:
{
click
:
()
=>
this
.
openAddModel
(
2
,
params
.
row
)
}
}),
}),
...
...
pages/aps/results/index.vue
View file @
09ea4669
...
@@ -240,7 +240,6 @@ export default {
...
@@ -240,7 +240,6 @@ export default {
line-height: 38px;
line-height: 38px;
border-bottom: 1px solid #e4e6ed;
border-bottom: 1px solid #e4e6ed;
margin-bottom: 15px;
margin-bottom: 15px;
margin-right: 15px;
}
}
.left-body:hover {
.left-body:hover {
cursor: pointer;
cursor: pointer;
...
@@ -269,7 +268,6 @@ export default {
...
@@ -269,7 +268,6 @@ export default {
.btn {
.btn {
float: right;
float: right;
margin-top: -52px;
margin-top: -52px;
margin-right: 15px;
}
}
}
}
}
}
...
...
pages/mesPlan/index.vue
View file @
09ea4669
...
@@ -33,16 +33,17 @@
...
@@ -33,16 +33,17 @@
<Search
/>
<Search
/>
</
template
>
</
template
>
<
template
slot=
"buttons"
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"addModal=true"
>
新增
</Button>
<Button
type=
"primary"
@
click=
"addModal=true"
>
创建
</Button>
<Button
type=
"primary"
>
修改
</Button>
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"addModal"
title=
"新增"
footer-hide
>
<Modal
v-model=
"addModal"
title=
"新增"
footer-hide
width=
"1000"
>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"1000"
>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<Modal
v-model=
"detailModal"
title=
"详情"
>
<Modal
v-model=
"detailModal"
title=
"详情"
width=
"1000"
>
<Detail
:eid=
"curId"
/>
<Detail
:eid=
"curId"
/>
</Modal>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
...
...
pages/order/quotation/components/treeType.vue
View file @
09ea4669
<
template
>
<
template
>
<div
class=
"
tree-typ
e"
>
<div
class=
"
zh-tre
e"
>
<h3
class=
"zh-title"
>
产品结构
</h3>
<h3
class=
"zh-title"
>
产品结构
</h3>
<div
class=
"zh-box"
>
<div
class=
"zh-box"
>
<Input
placeholder=
"输入内容"
style=
"width: auto"
v-model=
"treeInputSearch"
>
<Input
placeholder=
"输入内容"
style=
"width: auto"
v-model=
"treeInputSearch"
>
...
@@ -81,7 +81,5 @@ export default {
...
@@ -81,7 +81,5 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.tree-content {
margin-top: 15px;
}
</
style
>
</
style
>
pages/order/quotation/index.vue
View file @
09ea4669
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
<Layout
class=
"quotation"
>
<Layout
class=
"quotation"
>
<!-- 左侧树 -->
<!-- 左侧树 -->
<Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<div
class=
"zh-tree"
:style=
"
{ height: treeHeight + 'px' }">
<Tree-Type
@
func=
"getMsgFormSon"
:style=
"
{ height: treeHeight + 'px' }">
</Tree-Type>
<Tree-Type
@
func=
"getMsgFormSon"
></Tree-Type>
</div>
</Sider>
</Sider>
<!-- 右侧内容 -->
<!-- 右侧内容 -->
<Content
class=
"content"
>
<Content
class=
"content"
>
...
@@ -364,8 +362,8 @@ export default {
...
@@ -364,8 +362,8 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
treeHeight
=
window
.
innerHeight
-
1
5
0
;
this
.
treeHeight
=
window
.
innerHeight
-
1
4
0
;
this
.
tableHeight
=
window
.
innerHeight
-
2
8
0
;
this
.
tableHeight
=
window
.
innerHeight
-
2
1
0
;
this
.
newColumn
=
this
.
column
;
this
.
newColumn
=
this
.
column
;
this
.
tableTata
(
this
.
selectName
);
this
.
tableTata
(
this
.
selectName
);
},
},
...
@@ -377,8 +375,8 @@ export default {
...
@@ -377,8 +375,8 @@ export default {
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
window
.
screenHeight
=
window
.
innerHeight
;
window
.
screenHeight
=
window
.
innerHeight
;
this
.
treeHeight
=
window
.
screenHeight
-
1
5
0
;
this
.
treeHeight
=
window
.
screenHeight
-
1
4
0
;
this
.
tableHeight
=
window
.
innerHeight
-
2
8
0
;
this
.
tableHeight
=
window
.
innerHeight
-
2
1
0
;
})();
})();
};
};
},
},
...
@@ -816,17 +814,5 @@ export default {
...
@@ -816,17 +814,5 @@ export default {
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
.table {
margin-top: 15px;
}
.seach {
margin-top: 15px;
}
</
style
>
<
style
>
.ivu-layout.ivu-layout-has-sider
>
.ivu-layout
{
overflow-y
:
hidden
!important
;
}
</
style
>
pages/processManage/Process/processMain.vue
View file @
09ea4669
...
@@ -183,9 +183,9 @@ export default {
...
@@ -183,9 +183,9 @@ export default {
RoutingList
:
{},
RoutingList
:
{},
components
:
{},
components
:
{},
ruleValidate
:
{
ruleValidate
:
{
//
code: [
code
:
[
//
{ required: true, message: '工艺文件编号不能为空', trigger: 'blur' }
{
required
:
true
,
message
:
'工艺文件编号不能为空'
,
trigger
:
'blur'
}
//
],
],
// number:[{required: true,type:'number'}],
// number:[{required: true,type:'number'}],
name
:
[
name
:
[
{
required
:
true
,
message
:
'工艺文件名称不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'工艺文件名称不能为空'
,
trigger
:
'blur'
}
...
...
pages/processManage/setProcess/components/orderMaterial.vue
View file @
09ea4669
...
@@ -460,13 +460,14 @@ export default {
...
@@ -460,13 +460,14 @@ export default {
}
else
{
}
else
{
this
.
isview
=
false
;
this
.
isview
=
false
;
}
}
if
(
this
.
formValidate
.
status
==
1
)
{
this
.
isview
=
false
;
}
this
.
codeisview
=
true
;
this
.
codeisview
=
true
;
this
.
formValidate1
=
response
.
result
.
orderMaterialList
;
this
.
formValidate1
=
response
.
result
.
orderMaterialList
;
for
(
let
i
=
0
;
i
<
this
.
formValidate1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
formValidate1
.
length
;
i
++
)
{
let
obj
=
this
.
formValidate1
[
i
];
let
obj
=
this
.
formValidate1
[
i
];
}
}
});
});
}
else
{
}
else
{
...
@@ -481,9 +482,9 @@ export default {
...
@@ -481,9 +482,9 @@ export default {
this
.
isview
=
false
;
this
.
isview
=
false
;
this
.
formValidate1
=
response
.
result
.
orderMaterialList
;
this
.
formValidate1
=
response
.
result
.
orderMaterialList
;
for
(
let
i
=
0
;
i
<
this
.
formValidate1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
formValidate1
.
length
;
i
++
)
{
let
obj
=
this
.
formValidate1
[
i
];
let
obj
=
this
.
formValidate1
[
i
];
obj
.
quantity
=
obj
.
quantity
*
this
.
dataTop
[
0
].
quantity
;
obj
.
quantity
=
obj
.
quantity
*
this
.
dataTop
[
0
].
quantity
;
}
}
});
});
...
@@ -588,17 +589,17 @@ export default {
...
@@ -588,17 +589,17 @@ export default {
},
5
);
},
5
);
return
;
return
;
}
}
this
.
formprocessValidate
.
quantity
=
this
.
formprocessValidate
.
singlequantity
*
this
.
dataTop
[
0
].
quantity
;
this
.
formprocessValidate
.
quantity
=
this
.
formprocessValidate
.
singlequantity
*
this
.
dataTop
[
0
].
quantity
;
if
(
this
.
formValidate
.
id
==
0
)
{
if
(
this
.
formValidate
.
id
==
0
)
{
if
(
this
.
editindex
==
-
1
)
{
if
(
this
.
editindex
==
-
1
)
{
let
curData
=
{};
let
curData
=
{};
curData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formprocessValidate
));
curData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formprocessValidate
));
this
.
formValidate1
.
push
(
curData
);
this
.
formValidate1
.
push
(
curData
);
}
else
{
}
else
{
let
curData
=
{};
let
curData
=
{};
curData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formprocessValidate
));
curData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formprocessValidate
));
this
.
formValidate1
[
this
.
editindex
]
=
curData
;
this
.
formValidate1
[
this
.
editindex
]
=
curData
;
...
...
pages/processManage/setProcess/index.vue
View file @
09ea4669
...
@@ -633,9 +633,13 @@ export default {
...
@@ -633,9 +633,13 @@ export default {
});
});
}
}
}
}
if
(
gh
!=
null
&&
gh
.
length
>
0
)
{
if
(
gh
!=
null
&&
gh
.
length
>
0
)
{
content1
=
gh
[
0
].
name
;
content1
=
gh
[
0
].
name
;
editColor1
=
gh
[
0
].
color
;
editColor1
=
gh
[
0
].
color
;
}
if
(
params
.
row
.
materialbillStatus
>
1
)
{
content1
=
"查看"
;
}
}
return
h
(
"div"
,
[
return
h
(
"div"
,
[
h
(
h
(
...
...
pages/qc/certificate/endIssued/index.vue
View file @
09ea4669
<
template
>
<
template
>
<div
class=
"end-issued"
>
<div
class=
"end-issued"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<Modal
v-model=
"detailModal"
title=
"查看合格证"
footer-hide
width=
"1000"
:mask-closable=
"false"
>
<Modal
v-model=
"detailModal"
title=
"查看合格证"
footer-hide
width=
"1000"
:mask-closable=
"false"
>
<Detail
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
/>
<Detail
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
/>
</Modal>
</Modal>
...
@@ -8,10 +15,10 @@
...
@@ -8,10 +15,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
"../api"
;
import
Detail
from
'./detail'
import
Detail
from
"./detail"
;
export
default
{
export
default
{
name
:
'index'
,
name
:
"index"
,
components
:
{
components
:
{
Detail
Detail
},
},
...
@@ -21,145 +28,145 @@ export default {
...
@@ -21,145 +28,145 @@ export default {
detailModal
:
false
,
detailModal
:
false
,
curId
:
0
,
curId
:
0
,
modalInfo
:
false
,
modalInfo
:
false
,
tdHeight
:
''
,
tdHeight
:
""
,
rules
:
{
rules
:
{
approveUser
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
approveUser
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
},
columns
:
[
columns
:
[
{
key
:
'id'
,
title
:
this
.
l
(
'id'
),
hide
:
true
,
align
:
'left'
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
// {
// {
// type: 'selection',
// type: 'selection',
// width: 60,
// width: 60,
// align: 'center'
// align: 'center'
// },
// },
{
{
key
:
'mesCode'
,
key
:
"mesCode"
,
title
:
this
.
l
(
'mesCode'
),
title
:
this
.
l
(
"mesCode"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'productName'
,
key
:
"productName"
,
title
:
this
.
l
(
'productName'
),
title
:
this
.
l
(
"productName"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'drawnNumber'
,
key
:
"drawnNumber"
,
title
:
this
.
l
(
'drawnNumber'
),
title
:
this
.
l
(
"drawnNumber"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'quantity'
,
key
:
"quantity"
,
title
:
this
.
l
(
'quantity'
),
title
:
this
.
l
(
"quantity"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'productQuantity'
,
key
:
"productQuantity"
,
title
:
this
.
l
(
'productQuantity'
),
title
:
this
.
l
(
"productQuantity"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'uncertificateQuantity'
,
key
:
"uncertificateQuantity"
,
title
:
this
.
l
(
'uncertificateQuantity'
),
title
:
this
.
l
(
"uncertificateQuantity"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'actualFinishDate'
,
key
:
"actualFinishDate"
,
title
:
this
.
l
(
'actualFinishDate'
),
title
:
this
.
l
(
"actualFinishDate"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
return
h
(
'span'
,
"span"
,
params
.
row
.
actualFinishDate
==
'0001-01-01 00:00:00'
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
''
?
""
:
params
.
row
.
actualFinishDate
:
params
.
row
.
actualFinishDate
)
)
;
}
}
},
},
{
{
key
:
'productingPreparationPeople'
,
key
:
"productingPreparationPeople"
,
title
:
this
.
l
(
'productingPreparationPeople'
),
title
:
this
.
l
(
"productingPreparationPeople"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
},
},
{
{
key
:
'status'
,
key
:
"status"
,
title
:
this
.
l
(
'status'
),
title
:
this
.
l
(
"status"
),
align
:
'left'
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
code
:
'plan.order.status'
code
:
"plan.order.status"
},
},
{
{
title
:
'操作'
,
title
:
"操作"
,
key
:
'id'
,
key
:
"id"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
'action'
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
h
(
'op'
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
'detail'
oprate
:
"detail"
},
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
},
},
'查看合格证'
"查看合格证"
)
)
])
])
;
}
}
}
}
],
],
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
'mesCode'
,
value
:
''
,
default
:
true
},
keys
:
{
op
:
"mesCode"
,
value
:
""
,
default
:
true
},
type
:
{
op
:
'Equal'
,
value
:
2
}
type
:
{
op
:
"Equal"
,
value
:
2
}
}
}
}
}
;
},
},
mounted
()
{},
mounted
()
{},
created
()
{
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
2
60
this
.
tdHeight
=
window
.
innerHeight
-
2
00
;
},
},
methods
:
{
methods
:
{
addOk
()
{
addOk
()
{
// this.$refs.grid.load()
// this.$refs.grid.load()
this
.
detailModal
=
false
this
.
detailModal
=
false
;
this
.
curId
=
0
this
.
curId
=
0
;
},
},
cancel
()
{
cancel
()
{
this
.
curId
=
0
this
.
curId
=
0
;
this
.
detailModal
=
false
this
.
detailModal
=
false
;
},
},
reload
()
{
reload
()
{
this
.
$refs
.
grid
.
load
()
this
.
$refs
.
grid
.
load
()
;
},
},
detail
(
id
)
{
detail
(
id
)
{
this
.
detailModal
=
true
this
.
detailModal
=
true
;
this
.
curId
=
id
this
.
curId
=
id
;
},
},
// 列表title
// 列表title
l
(
key
)
{
l
(
key
)
{
let
vkey
=
'waitOpened'
+
'.'
+
key
let
vkey
=
"waitOpened"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
pages/qc/certificate/waitOpened/index.vue
View file @
09ea4669
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
created
()
{
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
2
6
0
this
.
tdHeight
=
window
.
innerHeight
-
2
0
0
},
},
methods
:
{
methods
:
{
addOk
()
{
addOk
()
{
...
...
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