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
4d797c24
Commit
4d797c24
authored
Jun 12, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product
parents
ecdd97b7
6b37f7da
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
88 additions
and
24 deletions
+88
-24
api.js
pages/materiel/classification/api.js
+4
-0
index.vue
pages/materiel/classification/index.vue
+22
-2
api.js
pages/materiel/masterData/api.js
+3
-0
index.vue
pages/materiel/masterData/index.vue
+19
-5
orderlist.vue
pages/produce/execute/components/orderlist.vue
+10
-2
index.vue
pages/produce/execute/datafilling/index.vue
+18
-11
index.vue
pages/produce/execute/index.vue
+12
-4
No files found.
pages/materiel/classification/api.js
View file @
4d797c24
...
@@ -4,6 +4,10 @@ export default {
...
@@ -4,6 +4,10 @@ export default {
paged
(
params
){
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/category/paged`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/category/paged`
,
params
);
},
},
// indexSlecet:`${systemUrl}/coderule/paged`,
pagedSlecet
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/coderule/paged`
,
params
);
},
listTable
(
params
){
listTable
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/custompropertydefinition/list`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/custompropertydefinition/list`
,
params
);
},
},
...
...
pages/materiel/classification/index.vue
View file @
4d797c24
...
@@ -4,7 +4,14 @@
...
@@ -4,7 +4,14 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<div
class=
"p-list"
>
<h3>
<h3>
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<Select
v-model=
"model8"
clearable
style=
"width:130px;float:left;margin-top:8px"
@
on-change=
"chnangeClick"
>
<Option
v-for=
"item in cityList"
:value=
"item.id"
:key=
"item.id"
>
{{
item
.
name
}}
</Option>
</Select>
<div
class=
"fr mr10 mt10"
>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
...
@@ -83,6 +90,7 @@ export default {
...
@@ -83,6 +90,7 @@ export default {
id
:
0
,
id
:
0
,
ids
:
[]
ids
:
[]
},
},
cityList
:
[],
keys
:
""
,
keys
:
""
,
expand
:
false
,
expand
:
false
,
list
:
[],
list
:
[],
...
@@ -100,8 +108,20 @@ export default {
...
@@ -100,8 +108,20 @@ export default {
},
},
created
()
{
created
()
{
this
.
loadTree
();
this
.
loadTree
();
this
.
listSlecet
();
},
},
methods
:
{
methods
:
{
listSlecet
()
{
let
data
=
{
conditions
:
[]
};
Api
.
pagedSlecet
(
data
).
then
(
r
=>
{
this
.
cityList
=
r
.
result
.
items
;
});
},
chnangeClick
(
val
)
{
this
.
loadTree
(
val
);
},
showMenuFn
()
{
showMenuFn
()
{
//this.$Message.info("展开左侧树")
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
...
@@ -224,7 +244,7 @@ export default {
...
@@ -224,7 +244,7 @@ export default {
// this.$refs.dataTable.dataColumns = tableData;
// this.$refs.dataTable.dataColumns = tableData;
// }
// }
},
},
loadTree
()
{
loadTree
(
id
)
{
let
conditions
=
[];
let
conditions
=
[];
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
var
data
=
this
.
$u
.
toTree
(
var
data
=
this
.
$u
.
toTree
(
...
...
pages/materiel/masterData/api.js
View file @
4d797c24
...
@@ -5,6 +5,9 @@ export default {
...
@@ -5,6 +5,9 @@ export default {
paged
(
params
){
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/material/paged`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/material/paged`
,
params
);
},
},
pagedSlecet
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/coderule/paged`
,
params
);
},
list
(
params
){
list
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/category/list`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/category/list`
,
params
);
},
},
...
...
pages/materiel/masterData/index.vue
View file @
4d797c24
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<div
class=
"p-list"
>
<h3>
<h3>
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<Select
v-model=
"model8"
clearable
style=
"width:130px;float:left;margin-top:8px"
@
on-change=
'chnangeClick'
>
<Option
v-for=
"item in cityList"
:value=
"item.id"
:key=
"item.id"
>
{{
item
.
name
}}
</Option>
</Select>
</Select>
<div
class=
"fr mr10 mt10"
>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr ddi"
size=
"small"
>
<ButtonGroup
class=
"fr ddi"
size=
"small"
>
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
...
@@ -52,6 +55,7 @@ export default {
...
@@ -52,6 +55,7 @@ export default {
return
{
return
{
type
:
""
,
type
:
""
,
keys
:
""
,
keys
:
""
,
cityList
:[],
expand
:
false
,
expand
:
false
,
list
:
[],
list
:
[],
nodeInfo
:
{
nodeInfo
:
{
...
@@ -72,8 +76,20 @@ export default {
...
@@ -72,8 +76,20 @@ export default {
},
},
created
()
{
created
()
{
this
.
loadTree
();
this
.
loadTree
();
this
.
listSlecet
();
},
},
methods
:
{
methods
:
{
listSlecet
()
{
let
data
=
{
conditions
:
[]
};
Api
.
pagedSlecet
(
data
).
then
(
r
=>
{
this
.
cityList
=
r
.
result
.
items
;
});
},
chnangeClick
(
val
){
this
.
loadTree
(
val
);
},
showMenuFn
()
{
showMenuFn
()
{
//this.$Message.info("展开左侧树")
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
...
@@ -136,7 +152,7 @@ export default {
...
@@ -136,7 +152,7 @@ export default {
this
.
nodeInfo
.
rootCategoryId
=
pid
;
this
.
nodeInfo
.
rootCategoryId
=
pid
;
}
}
},
},
loadTree
()
{
loadTree
(
id
)
{
let
conditions
=
[];
let
conditions
=
[];
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
var
data
=
this
.
$u
.
toTree
(
var
data
=
this
.
$u
.
toTree
(
...
@@ -228,9 +244,7 @@ export default {
...
@@ -228,9 +244,7 @@ export default {
background: rgba(245, 246, 250, 1);
background: rgba(245, 246, 250, 1);
opacity: 1;
opacity: 1;
padding-left: 10px;
padding-left: 10px;
.ddi {
margin-top: 3px;
}
}
}
.search {
.search {
height: 50px;
height: 50px;
...
...
pages/produce/execute/components/orderlist.vue
View file @
4d797c24
...
@@ -51,6 +51,10 @@ export default {
...
@@ -51,6 +51,10 @@ export default {
statu
:
{
statu
:
{
type
:
Number
,
type
:
Number
,
default
:
-
9
default
:
-
9
},
refresh
:
{
type
:
Boolean
,
default
:
true
}
}
},
},
created
()
{
created
()
{
...
@@ -80,7 +84,7 @@ export default {
...
@@ -80,7 +84,7 @@ export default {
orderId
:
item
.
orderId
,
orderId
:
item
.
orderId
,
executeId
:
item
.
executeId
,
executeId
:
item
.
executeId
,
headid
:
item
.
routingHeaderId
,
headid
:
item
.
routingHeaderId
,
routid
:
item
.
routingDetailId
,
//工序ID
routid
:
item
.
routingDetailId
,
//工序ID
quantity
:
item
.
quantity
,
//派工数量
quantity
:
item
.
quantity
,
//派工数量
dispatchStatus
:
item
.
status
dispatchStatus
:
item
.
status
}
}
...
@@ -96,7 +100,11 @@ export default {
...
@@ -96,7 +100,11 @@ export default {
this
.
loadTree
();
this
.
loadTree
();
},
},
statu
(
v
)
{
statu
(
v
)
{
this
.
statu
=
v
this
.
statu
=
v
;
this
.
loadTree
();
},
refresh
(
v
)
{
this
.
refresh
=
v
;
this
.
loadTree
();
this
.
loadTree
();
}
}
}
}
...
...
pages/produce/execute/datafilling/index.vue
View file @
4d797c24
<
template
>
<
template
>
<div
class=
"data-filling"
>
<div
class=
"data-filling"
>
<div
class=
"data-title"
>
<div
class=
"data-title flex"
>
<span
class=
"ml20"
>
产品号
</span>
<div
class=
"fg"
>
<ProductNumberSelect
<span
class=
"ml20"
>
产品号
</span>
v-model=
"product_ID"
<ProductNumberSelect
:eid=
"row.orderId"
v-model=
"product_ID"
ref=
"codes"
:eid=
"row.orderId"
@
on-change=
"change"
ref=
"codes"
class=
"select-produt-name"
@
on-change=
"change"
/>
:multiple=
"false"
class=
"select-produt-name"
/>
</div>
<!--
<template
v-if=
"datasearch.isMain!=1"
>
<!--
<template
v-if=
"datasearch.isMain!=1"
>
<span
class=
"ml20"
>
汇报板次
</span>
<span
class=
"ml20"
>
汇报板次
</span>
<Select
@
on-change=
"boardonchange"
v-model=
"board_ID"
class=
"w200"
>
<Select
@
on-change=
"boardonchange"
v-model=
"board_ID"
class=
"w200"
>
...
@@ -20,7 +24,8 @@
...
@@ -20,7 +24,8 @@
>
{{
item
.
boardNumber
}}
</Option>
>
{{
item
.
boardNumber
}}
</Option>
</Select>
</Select>
</
template
>
-->
</
template
>
-->
<Button
type=
"primary"
@
click=
"QcCardChecker(1)"
class=
"title_btn ml10"
>
自检
</Button>
<div
class=
"tr"
>
<Button
type=
"primary"
@
click=
"QcCardChecker(1)"
class=
"title_btn ml10"
>
自检
</Button>
<Button
type=
"primary"
:disabled=
"ishavhj"
@
click=
"QcCardChecker(2)"
class=
"title_btn ml10"
>
互检
</Button>
<Button
type=
"primary"
:disabled=
"ishavhj"
@
click=
"QcCardChecker(2)"
class=
"title_btn ml10"
>
互检
</Button>
<Button
type=
"primary"
:disabled=
"ishavzj"
@
click=
"SendCheck()"
class=
"title_btn ml10"
>
送检
</Button>
<Button
type=
"primary"
:disabled=
"ishavzj"
@
click=
"SendCheck()"
class=
"title_btn ml10"
>
送检
</Button>
<Button
<Button
...
@@ -29,6 +34,8 @@
...
@@ -29,6 +34,8 @@
@
click=
"SendCheckRecord()"
@
click=
"SendCheckRecord()"
class=
"title_btn ml10"
class=
"title_btn ml10"
>
送检记录
</Button>
>
送检记录
</Button>
</div>
</div>
</div>
<div
class=
"table-i"
>
<div
class=
"table-i"
>
<Table
border
:columns=
"columns12"
:data=
"recorddata"
>
<Table
border
:columns=
"columns12"
:data=
"recorddata"
>
...
@@ -413,7 +420,7 @@ export default {
...
@@ -413,7 +420,7 @@ export default {
});
});
},
},
change
(
v
)
{
change
(
v
)
{
this
.
datasearch
.
productcode
=
v
.
join
(
","
)
;
this
.
datasearch
.
productcode
=
v
;
this
.
loaddata
();
this
.
loaddata
();
},
},
showrecordData
(
params
,
fill_in_user_type
,
isedit
)
{
showrecordData
(
params
,
fill_in_user_type
,
isedit
)
{
...
...
pages/produce/execute/index.vue
View file @
4d797c24
...
@@ -31,12 +31,13 @@
...
@@ -31,12 +31,13 @@
@
on-change=
"searchOrder"
@
on-change=
"searchOrder"
></Dictionary>
></Dictionary>
</div>
</div>
<div
class=
"select_t"
>
<div
class=
"select_t"
style=
"height:40px"
>
<Button
@
click=
"changeAsc"
>
{{
ascTitle
}}
</Button>
<Button
@
click=
"changeFresh"
class=
"fl"
shape=
"circle"
icon=
"md-refresh"
>
刷新
</Button>
<Button
@
click=
"changeAsc"
class=
"fr"
shape=
"circle"
icon=
"md-calendar"
>
{{
ascTitle
}}
</Button>
</div>
</div>
</div>
</div>
<!-- 列表卡片主内容 -->
<!-- 列表卡片主内容 -->
<orderlist
ref=
"orderlistref"
:asc=
"asc"
:statu=
"statu"
:order=
"inputId"
/>
<orderlist
ref=
"orderlistref"
:asc=
"asc"
:statu=
"statu"
:
refresh=
"refresh"
:
order=
"inputId"
/>
</Drawer>
</Drawer>
<!-- 功能区 -->
<!-- 功能区 -->
<Drawer
<Drawer
...
@@ -72,7 +73,8 @@ export default {
...
@@ -72,7 +73,8 @@ export default {
inputId
:
null
,
inputId
:
null
,
asc
:
true
,
asc
:
true
,
ascTitle
:
"时间正序排序"
,
ascTitle
:
"时间正序排序"
,
statu
:
-
9
statu
:
-
9
,
refresh
:
true
,
};
};
},
},
created
()
{
created
()
{
...
@@ -140,6 +142,7 @@ export default {
...
@@ -140,6 +142,7 @@ export default {
// this.detail = () => import("./testdata/index");
// this.detail = () => import("./testdata/index");
}
//测试数据
}
//测试数据
},
},
//按时间排序按钮
changeAsc
()
{
changeAsc
()
{
this
.
asc
=
!
this
.
asc
;
this
.
asc
=
!
this
.
asc
;
if
(
this
.
asc
)
{
if
(
this
.
asc
)
{
...
@@ -147,6 +150,11 @@ export default {
...
@@ -147,6 +150,11 @@ export default {
}
else
{
}
else
{
this
.
ascTitle
=
"时间倒序排序"
;
this
.
ascTitle
=
"时间倒序排序"
;
}
}
},
//刷新orderlist列表
changeFresh
()
{
this
.
refresh
=!
this
.
refresh
}
}
},
},
watch
:
{
watch
:
{
...
...
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