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
985840cc
Commit
985840cc
authored
Jun 19, 2020
by
佟礼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of 39.98.128.195:zhouyx/mes-ui into product
parents
0116b202
eea36d8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
56 deletions
+143
-56
check.vue
pages/aps/aps/components/check.vue
+72
-0
index.vue
pages/aps/aps/index.vue
+70
-55
sendCheck.vue
pages/produce/execute/datafilling/sendCheck.vue
+1
-1
No files found.
pages/aps/aps/components/check.vue
0 → 100644
View file @
985840cc
<
template
>
<div>
<h3
class=
"tc"
v-if=
"data.res"
>
<Icon
type=
"md-checkmark-circle"
size=
"32"
color=
"green"
/>
数据检查通过
</h3>
<h3
class=
"tc"
v-else
>
<Icon
type=
"md-close-circle"
size=
"32"
color=
"red"
/>
数据检查失败
</h3>
<div>
<Tabs>
<TabPane
v-for=
"(item,key,index) in list"
:key=
"key"
:label=
"key"
:name=
"key"
>
<Table
:columns=
"init(item)"
:data=
"item"
height=
"500"
border
></Table>
</TabPane>
</Tabs>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
""
,
data
()
{
return
{
datas
:{},
};
},
props
:{
data
:
Object
,
default
:()
=>
{
return
{
res
:
true
,
datas
:{},
}
}
},
computed
:{
list
(){
var
data
=
{};
var
item
=
JSON
.
parse
(
this
.
data
.
datas
);
for
(
var
key
in
item
)
{
if
(
item
[
key
]
&&
item
[
key
].
length
>
0
){
data
[
key
]
=
item
[
key
];
}
}
return
data
;
}
},
methods
:{
init
(
items
){
var
cols
=
[];
if
(
items
.
length
>
0
){
for
(
var
key
in
items
[
0
]){
let
col
=
{
key
:
key
,
title
:
key
}
cols
.
push
(
col
);
}
}
return
cols
;
}
}
};
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
pages/aps/aps/index.vue
View file @
985840cc
...
@@ -14,31 +14,36 @@
...
@@ -14,31 +14,36 @@
:easy=
"true"
:easy=
"true"
>
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<div><Select
<div>
placeholder=
"选择排序优先级"
<Select
v-model=
"tempValue"
placeholder=
"选择排序优先级"
style=
"width: 150px;"
v-model=
"tempValue"
@
on-change=
"tempValueChange"
style=
"width: 150px;"
clearable
@
on-change=
"tempValueChange"
>
clearable
<Option
v-for=
"(item,index) in listTemp"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
></Option>
>
</Select>
<Option
<a
style=
"font-weight: bold;"
@
click=
"openaddModalTemp"
>
v-for=
"(item,index) in listTemp"
<Icon
type=
"md-color-palette"
size=
"14"
/>
自定义排序模板
:key=
"index"
</a>
:value=
"item.id"
<a
style=
"font-weight: bold;"
@
click=
"openDuration"
>
:label=
"item.name"
<Icon
type=
"md-create"
size=
"14"
/>
修改外协工期
></Option>
</a>
</Select>
<a
style=
"font-weight: bold;"
@
click=
"openaddModalTemp"
>
<Icon
type=
"md-color-palette"
size=
"14"
/>
自定义排序模板
</a>
<a
style=
"font-weight: bold;"
@
click=
"openDuration"
>
<Icon
type=
"md-create"
size=
"14"
/>
修改外协工期
</a>
<Select
placeholder=
"选择历史方案"
style=
"width: 150px;"
></Select>
<Select
placeholder=
"选择历史方案"
style=
"width: 150px;"
></Select>
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"searchBack"
>
<
template
slot=
"searchBack"
></
template
>
</
template
>
<
template
slot=
"searchForm"
>
<
template
slot=
"searchForm"
>
<Search
/>
<Search
/>
</
template
>
</
template
>
<
template
slot=
"buttons"
>
<
template
slot=
"buttons"
>
<DatePicker
<DatePicker
type=
"date"
type=
"date"
placeholder=
"设置基准日期"
placeholder=
"设置基准日期"
style=
"width: 150px;"
style=
"width: 150px;"
...
@@ -52,7 +57,8 @@
...
@@ -52,7 +57,8 @@
type=
"primary"
type=
"primary"
@
click=
"goResults"
@
click=
"goResults"
style=
"background:#515A6E;border:solid 1px #515A6E"
style=
"background:#515A6E;border:solid 1px #515A6E"
>
查看历史方案
</Button>
>
历史方案
</Button>
<Button
type=
"primary"
@
click=
"resultModal=true"
>
Result
</Button>
<Button
type=
"primary"
@
click=
"openApsModal"
>
APS排产
</Button>
<Button
type=
"primary"
@
click=
"openApsModal"
>
APS排产
</Button>
</
template
>
</
template
>
<
template
slot=
"batch"
>
<
template
slot=
"batch"
>
...
@@ -78,6 +84,9 @@
...
@@ -78,6 +84,9 @@
<Modal
v-model=
"apsModal"
title=
"确定APS排产"
@
on-ok=
"apsOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"apsModal"
title=
"确定APS排产"
@
on-ok=
"apsOk"
@
on-cancel=
"cancel"
>
<p>
确定进行APS排产?
</p>
<p>
确定进行APS排产?
</p>
</Modal>
</Modal>
<Modal
v-model=
"resultModal"
title=
"数据检查"
width=
"1500"
@
on-ok=
"checkOk"
@
on-cancel=
"cancel"
>
<CheckResult
:data=
"result"
></CheckResult>
</Modal>
<Modal
v-model=
"apsCheckModal"
title=
"确定APS排产"
@
on-ok=
"apsCheckOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"apsCheckModal"
title=
"确定APS排产"
@
on-ok=
"apsCheckOk"
@
on-cancel=
"cancel"
>
<p>
已有排产方案,是否移出排产池?
</p>
<p>
已有排产方案,是否移出排产池?
</p>
</Modal>
</Modal>
...
@@ -103,13 +112,15 @@ import Add from "./options";
...
@@ -103,13 +112,15 @@ import Add from "./options";
import
Temp
from
"./temp"
;
import
Temp
from
"./temp"
;
import
Duration
from
"./duration"
;
import
Duration
from
"./duration"
;
import
Expand
from
"./components/excute"
;
import
Expand
from
"./components/excute"
;
import
CheckResult
from
"./components/check"
;
export
default
{
export
default
{
name
:
"list"
,
name
:
"list"
,
components
:
{
components
:
{
Add
,
Add
,
Expand
,
Expand
,
Temp
,
Temp
,
Duration
Duration
,
CheckResult
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -117,6 +128,11 @@ export default {
...
@@ -117,6 +128,11 @@ export default {
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"notes"
,
value
:
null
}
keys
:
{
op
:
"notes"
,
value
:
null
}
},
},
result
:
{
res
:
true
,
datas
:
{}
},
resultModal
:
false
,
entity
:
{
entity
:
{
setTime
:
""
setTime
:
""
},
},
...
@@ -512,6 +528,7 @@ export default {
...
@@ -512,6 +528,7 @@ export default {
this
.
deletedlModal
=
false
;
this
.
deletedlModal
=
false
;
this
.
apsModal
=
false
;
this
.
apsModal
=
false
;
this
.
apsCheckModal
=
false
;
this
.
apsCheckModal
=
false
;
this
.
resultModal
=
false
;
},
},
onDragDrop
(
a
,
b
)
{
onDragDrop
(
a
,
b
)
{
//拖拽排序
//拖拽排序
...
@@ -575,41 +592,8 @@ export default {
...
@@ -575,41 +592,8 @@ export default {
Api
.
apsdatachecked
()
Api
.
apsdatachecked
()
.
then
(
res1
=>
{
.
then
(
res1
=>
{
if
(
res1
.
success
)
{
if
(
res1
.
success
)
{
if
(
res1
.
result
.
res
)
{
this
.
result
=
res1
.
result
;
// this.$Message.success("数据校验成功");
this
.
resultModal
=
true
;
//排产计算
let
paramsTime
=
{
setTime
:
this
.
entity
.
setTime
};
Api
.
apsprepareandcalc
(
paramsTime
)
.
then
(
res2
=>
{
if
(
res2
.
success
)
{
if
(
res2
.
result
.
res
)
{
this
.
$Message
.
success
(
"排产计算成功"
);
this
.
circleModal
=
false
;
this
.
$router
.
push
({
path
:
"/aps/results"
// params: { customerId: id }
});
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
res2
.
result
.
msg
);
}
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:排产计算"
);
}
})
.
catch
(
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
);
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
success
(
"数据校验失败"
);
}
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:数据校验"
);
this
.
$Message
.
error
(
"操作失败:数据校验"
);
...
@@ -637,6 +621,37 @@ export default {
...
@@ -637,6 +621,37 @@ export default {
}.
bind
(
this
)
}.
bind
(
this
)
);
);
},
},
checkOk
()
{
//排产计算
let
paramsTime
=
{
setTime
:
this
.
entity
.
setTime
};
Api
.
apsprepareandcalc
(
paramsTime
)
.
then
(
res2
=>
{
if
(
res2
.
success
)
{
if
(
res2
.
result
.
res
)
{
this
.
$Message
.
success
(
"排产计算成功"
);
this
.
circleModal
=
false
;
this
.
$router
.
push
({
path
:
"/aps/results"
// params: { customerId: id }
});
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
res2
.
result
.
msg
);
}
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:排产计算"
);
}
})
.
catch
(
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
);
},
//打开设置参数
//打开设置参数
openAddModel
(
type
,
row
)
{
openAddModel
(
type
,
row
)
{
if
(
type
==
2
)
{
if
(
type
==
2
)
{
...
...
pages/produce/execute/datafilling/sendCheck.vue
View file @
985840cc
...
@@ -63,7 +63,7 @@ export default {
...
@@ -63,7 +63,7 @@ export default {
checker
:
0
,
checker
:
0
,
check_time
:
null
check_time
:
null
},
},
isall
:
[]
,
isall
:
false
,
isMain
:
1
,
isMain
:
1
,
productisabled
:
false
,
productisabled
:
false
,
product_ID
:
[],
product_ID
:
[],
...
...
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