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
81b5493b
Commit
81b5493b
authored
Nov 13, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计划管理-->配套派发 cancel
parent
9dc1f424
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
773 additions
and
841 deletions
+773
-841
index.vue
pages/aps/plan/index.vue
+773
-841
No files found.
pages/aps/plan/index.vue
View file @
81b5493b
<
template
>
<div
class=
"h100"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
@
on-selection-change=
"selectInfo"
:batch=
"false"
>
<div
class=
"h100"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
@
on-selection-change=
"selectInfo"
:batch=
"false"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
search
enter-button
placeholder=
"请输入关键字订单编号/项目名称"
v-model=
"easySearch.keys.value"
v-width=
"300"
@
on-search=
"search"
/>
<Input
search
enter-button
placeholder=
"请输入关键字订单编号/项目名称"
v-model=
"easySearch.keys.value"
v-width=
"300"
@
on-search=
"search"
/>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchBack"
>
<Badge
:count=
"this.$store.state.countAps"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAps"
>
<Badge
:count=
"this.$store.state.countAps"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAps"
>
<a
href=
"javascript:;"
@
click=
"goAps"
>
APS排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countAi"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAi"
>
<Badge
:count=
"this.$store.state.countAi"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAi"
>
<a
href=
"javascript:;"
@
click=
"goAi"
>
智能排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countAll"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAll"
>
<Badge
:count=
"this.$store.state.countAll"
overflow-count=
"99"
style=
"margin-right: 15px"
type=
"info"
v-if=
"showAll"
>
<a
@
click=
"goCemplate"
>
整机排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countRun"
overflow-count=
"99"
type=
"info"
v-if=
"showRun"
>
<Badge
:count=
"this.$store.state.countRun"
overflow-count=
"99"
type=
"info"
v-if=
"showRun"
>
<a
@
click=
"goStream"
>
流水排产
</a>
</Badge>
</
template
>
...
...
@@ -65,15 +29,11 @@
</DataGrid>
<FooterToolbar
extra
v-if=
"footerBar"
class=
"ftball"
>
<Row>
<Checkbox
@
on-change=
"handleSelectAll(single)"
v-model=
"single"
>
全选
</Checkbox
>
<Checkbox
@
on-change=
"handleSelectAll(single)"
v-model=
"single"
>
全选
</Checkbox>
<span
class=
"footerSpan"
>
已选 {{ selectCount }} 项
</span>
<Button
type=
"primary"
@
click=
"modalDispatch"
>
工艺派发
</Button
>
<Button
type=
"primary"
@
click=
"modalSchedule"
>
移入排产
</Button
>
<Button
type=
"primary"
@
click=
"modalDispatch"
>
工艺派发
</Button>
<Button
type=
"primary"
@
click=
"modalSchedule"
>
移入排产
</Button>
<Button
@
click=
"canselFooter"
>
取消
</Button>
</Row>
</FooterToolbar>
...
...
@@ -86,12 +46,7 @@
<Modal
v-model=
"detailModal"
title=
"详情"
>
<Detail
:eid=
"curId"
/>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<p>
确定删除?
</p>
</Modal>
<Modal
v-model=
"dispatchModal"
title=
"工艺派发"
footer-hide
width=
"800"
>
...
...
@@ -110,11 +65,7 @@
@on-change="onchangeScheduleType"
></Dictionary>
-->
<RadioGroup
v-model=
"scheduleType"
class=
"radioList"
@
on-change=
"onchangeScheduleType"
>
<RadioGroup
v-model=
"scheduleType"
class=
"radioList"
@
on-change=
"onchangeScheduleType"
>
<Radio
:label=
"1"
border
:disabled=
"this.$store.state.countAi > 0"
>
<span>
Aps排产
</span>
</Radio>
...
...
@@ -131,8 +82,7 @@
<p
class=
"pl30 pt10"
v-show=
"scheduleType != null"
>
确定将订单
<span
class=
"fwBold"
>
{{ resultsOrderList }}
</span>
移入
<span
class=
"red fwBold"
>
{{ scheduleTypeName }}
</span
>
?
<span
class=
"red fwBold"
>
{{ scheduleTypeName }}
</span>
?
</p>
<p>
</p>
<p>
</p>
...
...
@@ -141,28 +91,13 @@
<Button
type=
"primary"
@
click=
"scheduleOk"
>
确定
</Button>
</div>
</Modal>
<Modal
v-model=
"orderSupportModal"
title=
"配套下发"
footer-hide
width=
"1300"
>
<Modal
v-model=
"orderSupportModal"
title=
"配套下发"
footer-hide
width=
"1300"
>
<orderSupport
ref=
"orderSupport"
></orderSupport>
</Modal>
<Modal
v-model=
"modalAccessory"
:title=
"title"
fullscreen
footer-hide
>
<component
:is=
"details"
:eid=
"orderId"
:mesCode=
"mesCode"
:productName=
"productName"
:drawnNumber=
"drawnNumber"
:productingPreparationPeople=
"productingPreparationPeople"
:count=
"count"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<component
:is=
"details"
:eid=
"orderId"
:mesCode=
"mesCode"
:productName=
"productName"
:drawnNumber=
"drawnNumber"
:productingPreparationPeople=
"productingPreparationPeople"
:count=
"count"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</div>
</div>
</template>
<
script
>
...
...
@@ -201,8 +136,7 @@ export default {
scheduleModal
:
false
,
orderSupportModal
:
false
,
curId
:
0
,
statuList
:
this
.
$store
.
getters
.
dictionaryByKey
(
"aps.plan.supportingStatus"
)
||
[],
statuList
:
this
.
$store
.
getters
.
dictionaryByKey
(
"aps.plan.supportingStatus"
)
||
[],
name
:
""
,
items
:
null
,
title
:
""
,
...
...
@@ -215,8 +149,7 @@ export default {
drawnNumber
:
""
,
count
:
0
,
modalAccessory
:
false
,
columns
:
[
{
columns
:
[{
key
:
"selection"
,
title
:
"多选"
,
type
:
"selection"
,
...
...
@@ -258,8 +191,7 @@ export default {
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"op"
,
{
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
},
...
...
@@ -426,20 +358,17 @@ export default {
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
"div"
,
{
class
:
"action"
,
},
[
h
(
"op"
,
{
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"工艺派发"
:
"移入排产"
,
title
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"工艺派发"
:
"移入排产"
,
},
style
:
{
color
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"red"
:
""
,
...
...
@@ -447,46 +376,46 @@ export default {
on
:
{
click
:
()
=>
params
.
row
.
mainRoutingSetStatus
==
0
||
params
.
row
.
mainRoutingSetStatus
==
1
?
this
.
goMethod
(
params
.
row
)
:
null
,
params
.
row
.
mainRoutingSetStatus
==
1
?
this
.
goMethod
(
params
.
row
)
:
null
,
},
},
params
.
row
.
mainRoutingSetStatus
==
0
&&
params
.
row
.
isPreschedule
==
0
?
"工艺派发"
:
params
.
row
.
mainRoutingSetStatus
==
1
&&
params
.
row
.
isPreschedule
==
0
?
"移入排产"
:
""
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
"配套派发"
:
""
,
},
style
:
{
color
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"red"
:
""
,
},
on
:
{
click
:
()
=>
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
this
.
supportDis
(
params
.
row
)
:
null
,
},
},
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
"配套派发"
:
""
params
.
row
.
isPreschedule
==
0
?
"工艺派发"
:
params
.
row
.
mainRoutingSetStatus
==
1
&&
params
.
row
.
isPreschedule
==
0
?
"移入排产"
:
""
),
// h(
// "op",
// {
// attrs: {
// oprate: "detail",
// title:
// params.row.isSupportingFinish == 2 ||
// params.row.isSupportingFinish == 3
// ? "配套派发"
// : "",
// },
// style: {
// color: params.row.mainRoutingSetStatus == 0 ? "red" : "",
// },
// on: {
// click: () =>
// params.row.isSupportingFinish == 2 ||
// params.row.isSupportingFinish == 3
// ? this.supportDis(params.row)
// : null,
// },
// },
// params.row.isSupportingFinish == 2 ||
// params.row.isSupportingFinish == 3
// ? "配套派发"
// : ""
// ),
]
);
},
...
...
@@ -516,7 +445,10 @@ export default {
mounted
()
{
this
.
loadInitCount
();
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
...
...
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