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
9a63c3ad
Commit
9a63c3ad
authored
Aug 06, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺设置
parent
160e7667
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
246 additions
and
139 deletions
+246
-139
index.vue
pages/processManage/setProcess/index.vue
+0
-1
api.js
pages/technology/setProcess/api.js
+4
-3
index.vue
pages/technology/setProcess/index.vue
+53
-47
set.vue
pages/technology/setProcess/set.vue
+189
-88
No files found.
pages/processManage/setProcess/index.vue
View file @
9a63c3ad
...
...
@@ -490,7 +490,6 @@ export default {
organizType
:
0
,
organizName
:
""
},
newColumn
:
[],
value
:
""
,
column
:
[],
...
...
pages/technology/setProcess/api.js
View file @
9a63c3ad
...
...
@@ -8,9 +8,10 @@ export default {
paged1
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/paged`
,
params
);
},
// get(params) {
// return Api.get(`${technologyUrl}routingheader/get`, params);
// },
routingset
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
orderrouting/routingset`
,
params
);
},
// create(params) {
// return Api.post(`${technologyUrl}routingheader/create`, params);
// },
...
...
pages/technology/setProcess/index.vue
View file @
9a63c3ad
...
...
@@ -17,16 +17,11 @@
<departmentSelect
v-model=
"easySearch.productingpreparationpeople.value"
:type=
"3"
></departmentSelect>
</FormItem>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入订单编号/产品名称"
v-model=
"easySearch.keys.value"
clearable
/>
<Input
placeholder=
"请输入订单编号/产品名称"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
<!--
<FormItem>
<Button
@
click=
"search2"
type=
"text"
>
<Icon
type=
"md-search"
/>
高级
</Button>
</FormItem>
-->
</Form>
</
template
>
<
template
slot=
"searchForm"
>
...
...
@@ -43,7 +38,7 @@
fullscreen
:mask-closable=
"false"
>
<component
:is=
"detail"
:eid=
"c
urI
d"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"c
hil
d"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
</template>
...
...
@@ -60,9 +55,13 @@ export default {
return
{
action
:
Api
.
index
,
showMenu
:
true
,
showMenu
:
true
,
title
:
""
,
curId
:
0
,
child
:
{
curId
:
0
,
productingPreparationPeople
:
0
,
orderIds
:
0
,
},
detail
:
null
,
modal
:
false
,
...
...
@@ -74,7 +73,8 @@ export default {
// { type: "selection", width: 70, align: "center" },
{
title
:
"序号"
,
type
:
"index"
,
key
:
"id"
,
// type: "index",
width
:
80
,
align
:
"center"
,
},
...
...
@@ -102,40 +102,38 @@ export default {
title
:
"工艺规程"
,
key
:
"mainRoutingStatus"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"state"
,
{
props
:
{
code
:
"process.RoutingStatus"
,
type
:
"text"
,
value
:
params
.
row
.
mainRoutingStatus
!=
4
?
params
.
row
.
mainRoutingStatus
:
""
,
return
h
(
"a"
,
[
h
(
"state"
,
{
props
:
{
code
:
"process.RoutingStatus"
,
type
:
"text"
,
value
:
params
.
row
.
mainRoutingStatus
,
},
nativeOn
:
{
click
:
()
=>
{
this
.
record
(
params
.
row
);
},
}),
h
(
"a"
,
{
on
:
{
click
:
()
=>
{
this
.
record
(
params
.
row
);
},
},
},
params
.
row
.
mainRoutingStatus
==
4
?
"未设置"
:
""
),
],
{}
);
},
}),
// h(
// "a",
// {
// on: {
// click: () => {
// this.record(params.row);
// },
// },
// },
// params.row.mainRoutingStatus == 4 ? "未设置" : ""
// ),
]);
},
},
{
title
:
"料单"
,
key
:
"materialbillStatus"
,
code
:
"process.RoutingStatus"
,
},
//
{
//
title: "料单",
//
key: "materialbillStatus",
//
code: "process.RoutingStatus",
//
},
],
};
},
...
...
@@ -144,10 +142,18 @@ export default {
},
methods
:
{
record
(
row
)
{
this
.
curId
=
0
;
this
.
title
=
"设置"
;
this
.
detail
=
()
=>
import
(
"./set"
);
this
.
modal
=
true
;
if
(
row
.
mainRoutingStatus
==
-
1
)
{
//未设置
this
.
child
.
curId
=
row
.
productId
;
this
.
child
.
productingPreparationPeople
=
row
.
productingPreparationPeople
;
this
.
child
.
orderIds
=
row
.
id
;
this
.
title
=
"设置"
;
this
.
detail
=
()
=>
import
(
"./set"
);
this
.
modal
=
true
;
}
else
if
(
row
.
mainRoutingStatus
==
1
)
{
//受控中,查看
}
},
onHide
()
{
this
.
showMenu
=
false
;
...
...
@@ -168,10 +174,10 @@ export default {
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
modal
=
false
;
this
.
curId
=
0
;
this
.
c
hild
.
c
urId
=
0
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
c
hild
.
c
urId
=
0
;
this
.
modal
=
false
;
},
},
...
...
pages/technology/setProcess/set.vue
View file @
9a63c3ad
<
template
>
<div
class=
"set"
>
<!--
{{
eid
.
curId
}}
-->
<Layout>
<Sider
hide-trigger
v-if=
"showMenu"
width=
"300"
>
<Sider
v-if=
"showMenu"
width=
"300"
>
<ProductTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
</Sider>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
...
...
@@ -10,31 +11,34 @@
</a>
</div>
<Content
:class=
"!showMenu?'con_bord':''"
>
<DataGrid
<div
class=
"row-form"
>
<Input
search
enter-button
placeholder=
"请输入产品名称/工艺名称/工艺编号"
v-model=
"value"
v-width=
"300"
@
on-search=
"search"
/>
</div>
<Table
border
ref=
"selection"
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:set=
"false"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入工艺名称/工艺编号"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
</DataGrid>
:data=
"data1"
@
on-selection-change=
"selectInfo"
></Table>
</Content>
</Layout>
<FooterToolbar
extra
v-if=
"footerBar"
>
<Row
class=
"footer"
>
<Checkbox
@
on-change=
"handleSelectAll(single)"
v-model=
"single"
>
全选
</Checkbox>
<span
class=
"footerSpan"
>
已选
{{
selectCount
}}
项
</span>
<Button
type=
"primary"
@
click=
"modalDispatch"
>
设置工艺
</Button>
<Button
@
click=
"canselFooter"
>
取消
</Button>
</Row>
</FooterToolbar>
</div>
</
template
>
<
script
>
...
...
@@ -44,83 +48,120 @@ export default {
components
:
{
ProductTree
,
},
props
:
{
eid
:
{
curId
:
Number
,
productingPreparationPeople
:
Number
,
orderIds
:
Number
,
},
},
data
()
{
return
{
action
:
Api
.
index1
,
showMenu
:
true
,
showMenu
:
true
,
value
:
""
,
footerBar
:
false
,
single
:
false
,
selectCount
:
0
,
selectList
:
[],
showMenu
:
false
,
title
:
""
,
easySearch
:
{
keys
:
{
op
:
"unicode,name,code"
,
value
:
null
},
},
name
:
""
,
data1
:
[],
routingList
:
[],
// easySearch: {
// keys: { op: "unicode,name,code", value: null },
// },
columns
:
[
{
type
:
"selection"
,
width
:
70
,
align
:
"center"
},
{
title
:
"#"
,
type
:
"index"
,
width
:
50
,
align
:
"center"
,
},
{
key
:
"code"
,
title
:
this
.
l
(
"code"
),
align
:
"left"
,
width
:
200
,
easy
:
true
,
high
:
true
,
},
{
key
:
"name"
,
title
:
this
.
l
(
"name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
tooltip
:
true
,
},
{
key
:
"phase"
,
title
:
this
.
l
(
"phase"
),
align
:
"center"
,
high
:
true
,
width
:
100
,
code
:
"Process.Routing.phase"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"state"
,
{
attrs
:
{
value
:
params
.
row
.
phase
,
code
:
"Process.Routing.phase"
,
},
});
},
},
{
key
:
"versionid"
,
title
:
this
.
l
(
"version"
),
align
:
"center"
,
high
:
true
,
width
:
100
,
code
:
"Process.Routing.version"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"state"
,
{
attrs
:
{
value
:
params
.
row
.
versionid
,
code
:
"Process.Routing.version"
,
},
});
},
},
{
title
:
this
.
l
(
"approvalStatus"
),
key
:
"approvalStatus"
,
align
:
"center"
,
width
:
"120"
,
code
:
"process.RoutingStatus"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"state"
,
{
attrs
:
{
value
:
params
.
row
.
approvalStatus
,
code
:
"process.RoutingStatus"
,
},
});
},
},
{
key
:
"routingType"
,
title
:
this
.
l
(
"routingType"
),
align
:
"center"
,
width
:
100
,
high
:
true
,
code
:
"Process.Routing.routingType"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"state"
,
{
attrs
:
{
value
:
params
.
row
.
routingType
,
code
:
"Process.Routing.routingType"
,
},
});
},
},
{
key
:
"drawingNo"
,
title
:
this
.
l
(
"drawingNo"
),
align
:
"left"
,
high
:
true
,
width
:
100
,
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
high
:
true
,
tooltip
:
true
,
},
{
key
:
"departmentName"
,
title
:
this
.
l
(
"departmentName"
),
width
:
100
,
align
:
"left"
,
high
:
true
,
tooltip
:
true
,
},
{
...
...
@@ -128,44 +169,25 @@ export default {
title
:
this
.
l
(
"isEffect"
),
align
:
"center"
,
width
:
80
,
high
:
true
,
code
:
"Process.Status"
,
},
{
key
:
"creationTime"
,
title
:
this
.
$t
(
"creationTime"
),
align
:
"left"
,
hide
:
true
,
},
{
key
:
"creatorUserId"
,
title
:
this
.
$t
(
"creatorUserId"
),
align
:
"left"
,
hide
:
true
,
type
:
"user"
,
},
{
key
:
"lastModificationTime"
,
title
:
this
.
$t
(
"lastModificationTime"
),
align
:
"left"
,
hide
:
true
,
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
$t
(
"lastModifierUserId"
),
align
:
"left"
,
hide
:
true
,
type
:
"user"
,
},
],
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
// let where = { productId: { op: "In", value: this.eid.curId } };
// this.$refs.grid.reload(where);
this
.
getData
();
},
methods
:
{
record
(
row
)
{
alert
(
1
);
getData
()
{
let
conditions
=
[];
Api
.
paged1
({
conditions
:
conditions
}).
then
((
r
)
=>
{
this
.
data1
=
r
.
result
.
items
;
});
},
onHide
()
{
this
.
showMenu
=
false
;
...
...
@@ -178,7 +200,68 @@ export default {
this
.
$refs
.
grid
.
reload
(
where
);
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
let
conditions
=
[
{
conditionalType
:
"code,name,productName"
,
fieldName
:
"keys"
,
fieldValue
:
this
.
value
,
},
];
let
data
=
{
conditions
:
conditions
,
};
Api
.
paged1
(
data
).
then
((
r
)
=>
{
this
.
data1
=
r
.
result
.
items
;
});
},
selectInfo
(
value
)
{
console
.
log
(
value
);
if
(
value
.
length
>
0
)
{
this
.
footerBar
=
true
;
}
else
{
this
.
footerBar
=
false
;
}
this
.
selectList
=
[];
this
.
routingList
=
[];
this
.
selectList
=
value
;
let
name
=
[];
this
.
selectList
.
map
((
e
,
index
)
=>
{
name
.
push
(
e
.
code
);
this
.
routingList
.
push
({
routingHeaderId
:
e
.
id
,
priority
:
index
,
});
});
this
.
name
=
name
;
this
.
selectCount
=
this
.
selectList
.
length
;
// console.log(this.routingList);
},
handleSelectAll
(
status
)
{
this
.
$refs
.
selection
.
selectAll
(
status
);
},
canselFooter
()
{
this
.
footerBar
=
false
;
this
.
handleSelectAll
(
false
);
},
modalDispatch
()
{
this
.
$Modal
.
confirm
({
title
:
"设置工艺"
,
content
:
this
.
name
.
join
(
" , "
),
onOk
:
()
=>
{
let
data
=
{
routingType
:
1
,
productingPreparationPeople
:
this
.
eid
.
productingPreparationPeople
,
orderIds
:
this
.
eid
.
orderIds
,
routingList
:
this
.
routingList
,
};
Api
.
routingset
(
data
).
then
((
r
)
=>
{
this
.
$Message
.
success
(
"工艺设置成功"
);
});
},
onCancel
:
()
=>
{
this
.
$Message
.
error
(
"取消工艺设置"
);
},
});
},
l
(
key
)
{
let
vkey
=
"routingHeader"
+
"."
+
key
;
...
...
@@ -191,20 +274,38 @@ export default {
.set {
font-family: Microsoft YaHei;
padding-top: 3px;
.ivu-layout-sider {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 91vh;
overflow: auto;
width: 100%;
.ivu-layout {
width: 100%;
// display: flex;
// display: -webkit-flex;
.ivu-layout-sider {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 89vh;
overflow: auto;
}
.ivu-layout-content {
// margin-left: 5px;
background: rgba(255, 255, 255, 1);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
overflow: auto;
padding: 10px;
height: 89vh;
}
.row-form {
margin-bottom: 10px;
}
}
.ivu-footer-toolbar-right {
margin-right: 72% !important;
}
.ivu-layout-content {
// margin-left: 5px;
background: rgba(255, 255, 255, 1);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
overflow: auto;
padding: 10px;
height: 91vh;
.ivu-footer-toolbar {
background: rgba(0, 0, 0, 0.7) !important;
.footer {
color: #fff !important;
}
}
}
</
style
>
\ No newline at end of file
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