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
695863e3
Commit
695863e3
authored
Nov 13, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on-selection-change
parent
d97107be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
726 additions
and
744 deletions
+726
-744
index.vue
pages/aps/aps/index.vue
+726
-744
No files found.
pages/aps/aps/index.vue
View file @
695863e3
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:draggable=
"true"
:data=
"list"
:high=
"false"
@
on-drag-drop=
"onDragDrop"
:page=
"false"
@
on-change=
"onSelect"
:batch=
"true"
:border=
"true"
:easy=
"true"
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:draggable=
"true"
:data=
"list"
:high=
"false"
@
on-drag-drop=
"onDragDrop"
:page=
"false"
@
on-selection-change=
"onSelect"
:batch=
"true"
:border=
"true"
:easy=
"true"
>
<template
slot=
"easySearch"
>
<div>
<Select
placeholder=
"选择排序优先级"
v-model=
"tempValue"
style=
"width: 150px;"
@
on-change=
"tempValueChange"
clearable
>
<Option
v-for=
"(item,index) in listTemp"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
></Option>
<Select
placeholder=
"选择排序优先级"
v-model=
"tempValue"
style=
"width: 150px;"
@
on-change=
"tempValueChange"
clearable
>
<Option
v-for=
"(item,index) in listTemp"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
></Option>
</Select>
<a
style=
"font-weight: bold;"
@
click=
"openaddModalTemp"
>
<Icon
type=
"md-color-palette"
size=
"14"
/>
自定义排序模板
...
...
@@ -43,21 +20,11 @@
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<DatePicker
type=
"date"
placeholder=
"设置基准日期"
style=
"width: 150px;"
v-model=
"entity.setTime"
@
on-change=
"getTime"
></DatePicker>
<DatePicker
type=
"date"
placeholder=
"设置基准日期"
style=
"width: 150px;"
v-model=
"entity.setTime"
@
on-change=
"getTime"
></DatePicker>
<a
style=
"font-weight: bold;"
@
click=
"openAddModel(1)"
>
<Icon
type=
"ios-options"
size=
"14"
/>
工序参数调整
</a>
<Button
type=
"primary"
@
click=
"goResults"
style=
"background:#515A6E;border:solid 1px #515A6E"
>
历史方案
</Button>
<Button
type=
"primary"
@
click=
"goResults"
style=
"background:#515A6E;border:solid 1px #515A6E"
>
历史方案
</Button>
<Button
type=
"primary"
@
click=
"openApsModal"
>
APS排产
</Button>
</
template
>
<
template
slot=
"batch"
>
...
...
@@ -71,14 +38,7 @@
<Duration
ref=
"durationRef"
></Duration>
</Modal>
<Modal
v-model=
"addModal"
title=
"工序参数设置"
footer-hide
width=
"1000"
>
<Add
@
on-close=
"cancel"
@
on-parameter-ok=
"addOk"
:opTaskPk=
"setParams.opTaskPk"
:partTaskPk=
"setParams.partTaskPk"
:taskSeq=
"setParams.taskSeq"
:count=
"setParams.count"
/>
<Add
@
on-close=
"cancel"
@
on-parameter-ok=
"addOk"
:opTaskPk=
"setParams.opTaskPk"
:partTaskPk=
"setParams.partTaskPk"
:taskSeq=
"setParams.taskSeq"
:count=
"setParams.count"
/>
</Modal>
<Modal
v-model=
"apsModal"
title=
"确定APS排产"
@
on-ok=
"apsOk"
@
on-cancel=
"cancel"
>
<p>
确定进行APS排产?
</p>
...
...
@@ -106,8 +66,9 @@
<Modal
v-model=
"insertlModal1"
:title=
"insertTItle1"
@
on-ok=
"insertOk1"
@
on-cancel=
"cancel"
>
<p>
确定进行 {{ insertTItle1 }} 操作?
</p>
</Modal>
</div>
</div>
</template>
<
script
>
var
myDate
=
new
Date
();
var
nowDate
=
myDate
.
getFullYear
()
+
"-"
+
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
myDate
.
getDate
();
...
...
@@ -130,7 +91,10 @@ export default {
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"notes"
,
value
:
null
}
keys
:
{
op
:
"notes"
,
value
:
null
}
},
result
:
{
res
:
true
,
...
...
@@ -138,7 +102,7 @@ export default {
},
resultModal
:
false
,
entity
:
{
setTime
:
this
.
getFormatDate
(
nowDate
)
setTime
:
this
.
getFormatDate
(
nowDate
)
},
addModal
:
false
,
editModal
:
false
,
...
...
@@ -154,8 +118,7 @@ export default {
rowIndex1
:
null
,
list
:
[],
curId
:
0
,
columns
:
[
{
columns
:
[{
key
:
"move"
,
title
:
" "
,
hide
:
false
,
...
...
@@ -204,11 +167,9 @@ export default {
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"Tooltip"
,
{
"Tooltip"
,
{
props
:
{
content
:
params
.
row
.
insert_flag
==
1
?
"取消插单"
:
"进行插单"
,
content
:
params
.
row
.
insert_flag
==
1
?
"取消插单"
:
"进行插单"
,
placement
:
"top"
},
class
:
"ico"
...
...
@@ -216,10 +177,9 @@ export default {
[
h
(
"Icon"
,
{
attrs
:
{
type
:
params
.
row
.
insert_flag
==
1
?
"ios-water"
:
"ios-water-outline"
,
type
:
params
.
row
.
insert_flag
==
1
?
"ios-water"
:
"ios-water-outline"
,
size
:
20
,
color
:
params
.
row
.
insert_flag
==
1
?
"#2680EB"
:
"#aaa"
},
...
...
@@ -354,7 +314,9 @@ export default {
align
:
"center"
,
// fixed:"right",
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
icon
:
"md-options"
,
...
...
@@ -362,7 +324,9 @@ export default {
title
:
"工序参数设置"
,
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
openAddModel
(
2
,
params
.
row
)
}
on
:
{
click
:
()
=>
this
.
openAddModel
(
2
,
params
.
row
)
}
}),
h
(
"op"
,
{
attrs
:
{
...
...
@@ -372,7 +336,9 @@ export default {
oprate
:
"edit"
,
msg
:
"确认要恢复工序吗?"
},
on
:
{
click
:
()
=>
this
.
refresh
(
params
.
row
.
part_task_pk
)
}
on
:
{
click
:
()
=>
this
.
refresh
(
params
.
row
.
part_task_pk
)
}
}),
h
(
"op"
,
{
attrs
:
{
...
...
@@ -382,7 +348,9 @@ export default {
oprate
:
"delete"
,
msg
:
"确认要移出排产吗?"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
part_task_pk
)
}
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
part_task_pk
)
}
})
]);
}
...
...
@@ -407,7 +375,10 @@ export default {
this
.
loadList
();
this
.
loadTemp
();
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
...
...
@@ -577,7 +548,9 @@ export default {
apsOk
()
{
this
.
circleModal
=
true
;
//APS排产前订单优先级功能
let
parmsOrderpriority
=
{
alls
:
[]
};
let
parmsOrderpriority
=
{
alls
:
[]
};
let
arryIds
=
[];
this
.
list
.
forEach
((
e
,
index
)
=>
{
let
objIds
=
{};
...
...
@@ -601,12 +574,12 @@ export default {
}
else
{
// this.circleModal = false;
// this.$Message.error("操作失败:数据校验");
this
.
result
=
res1
.
result
;
this
.
resultModal
=
true
;
this
.
result
=
res1
.
result
;
this
.
resultModal
=
true
;
}
})
.
catch
(
function
(
err
)
{
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
...
...
@@ -621,7 +594,7 @@ export default {
}
})
.
catch
(
function
(
err
)
{
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
...
...
@@ -652,7 +625,7 @@ export default {
}
})
.
catch
(
function
(
err
)
{
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
...
...
@@ -776,29 +749,36 @@ export default {
}
};
</
script
>
<
style
lang=
"less"
>
.drag {
cursor: move;
}
.demo-spin-icon-load {
animation: ani-demo-spin 1s linear infinite;
}
@keyframes ani-demo-spin {
from {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
to {
transform: rotate(360deg);
}
}
.demo-spin-col {
height: 100px;
position: relative;
border: 0px solid #eee;
}
.vertical-center-modal {
display: flex;
align-items: center;
...
...
@@ -808,6 +788,7 @@ export default {
top: 0;
}
}
.tempModal {
.ivu-modal-body {
padding: 16px;
...
...
@@ -816,6 +797,7 @@ export default {
padding-top: 2px;
padding-bottom: 0px;
}
.ivu-modal-footer {
border-top: none;
padding: 12px 18px 12px 18px;
...
...
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