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
4e51f204
Commit
4e51f204
authored
Jun 05, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量判定
parent
b1bc1b04
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
42 deletions
+63
-42
execute.less
pages/produce/execute/execute.less
+2
-1
index.vue
pages/produce/execute/judgment/index.vue
+53
-39
orderSendReview.vue
pages/produce/execute/judgment/orderSendReview.vue
+8
-2
No files found.
pages/produce/execute/execute.less
View file @
4e51f204
...
...
@@ -391,7 +391,7 @@
}
.mass_box{
h2{ height: 40px;}
.weizhix{ color: #4d5055;}
//
.weizhix{ color: #4d5055;}
.rangb{ color: #515A6E;}
.hege{ color: #2680EB;}
.fanxiu{ color: #FFA000;}
...
...
@@ -416,6 +416,7 @@
margin: 15px 0;
.btn_play{
margin: 0 0 20px 0;
color: #4d5055;
}
.list01{
min-height: 50px;
...
...
pages/produce/execute/judgment/index.vue
View file @
4e51f204
...
...
@@ -2,12 +2,11 @@
<
template
>
<div
class=
"wu_bg"
>
<div
class=
"mass_box"
>
<h2
class=
"weizhix"
>
未执行(
{{
cardlist
.
length
}}
)
</h2>
<div
class=
"mass_list"
>
<
p
class=
"btn_play"
>
<
h2
class=
"btn_play"
>
未完工(
{{
cardlist
.
length
}}
)
<Button
class=
"button"
type=
"primary"
@
click=
"allcheck"
>
全选
</Button>
<Button
class=
"button"
type=
"primary"
@
click=
"rechecked"
>
反选
</Button>
</
p
>
</
h2
>
<div
class=
"list01"
>
<Tag
type=
"dot"
:checkable=
"true"
...
...
@@ -121,8 +120,8 @@
<!-- :disabled="hegelist.length!=0&&fanlist.length!=0&&ranglist.length!=0" -->
<Button
class=
"button"
size=
"large"
@
click=
"toOrder"
>
取消
</Button>
</div>
<!--
订单
送审 -->
<Modal
v-model=
"ModalOrder"
title=
"
订单
送审"
:mask-closable=
"false"
:scrollable=
"true"
fullscreen
>
<!--
不合格品
送审 -->
<Modal
v-model=
"ModalOrder"
title=
"
不合格品
送审"
:mask-closable=
"false"
:scrollable=
"true"
fullscreen
>
<OrderSendReview
ref=
"orderSendReview"
></OrderSendReview>
<div
slot=
"footer"
>
<Button
@
click=
"ModalOrder = false"
>
取消
</Button>
...
...
@@ -424,46 +423,48 @@ export default {
},
// 提交
submit
()
{
console
.
log
(
this
.
ranglist
)
// this.feilist.cause = this.orderForm.question;
// this.feilist.reporter = this.orderForm.useroption;
let
hegeops
=
{
let
hegeops
=
{}
let
rangops
=
{}
let
fanxops
=
{}
let
feipops
=
{}
let
lists
=
[];
if
(
this
.
hegelist
.
length
>
0
){
hegeops
=
{
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
||
''
productStatus
:
this
.
hegelist
[
0
].
productStatus
};
let
rangops
=
{
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
}
if
(
this
.
ranglist
.
length
>
0
){
rangops
=
{
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
||
''
};
let
fanxops
=
{
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
}
if
(
this
.
fanlist
.
length
>
0
){
fanxops
=
{
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
||
''
productStatus
:
this
.
fanlist
[
0
].
productStatus
};
// let prodcutIds = [],productStatus=this.hegelist[0].productStatus;
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
let
lists
=
[
hegeops
,
rangops
,
fanxops
];
}
if
(
this
.
feilist
.
length
>
0
){
feipops
=
{
prodcutIds
:
[],
productStatus
:
this
.
feilist
[
0
].
productStatus
,
cause
:
this
.
orderForm
.
question
,
reporter
:
this
.
orderForm
.
useroption
,
};
this
.
feilist
.
map
(
uf
=>
{
feipops
.
prodcutIds
.
push
(
uf
.
id
)})
}
lists
=
[
hegeops
,
rangops
,
fanxops
];
console
.
log
(
lists
)
let
parmes
=
{
dispatchId
:
this
.
$route
.
query
.
id
,
orderId
:
this
.
$route
.
query
.
orderId
,
list
:
lists
// [
// this.feilist,
// this.hegelist,
// this.ranglist,
// this.fanlist,
// {
// "productStatus": 0,
// "prodcutIds": [
// 0
// ],
// "cause": "string",
// "reporter": "string"
// }
// ]
};
// let executeId = this.$route.query.executeId;
console
.
log
(
parmes
)
Api
.
submitData
(
parmes
).
then
(
res
=>
{
if
(
res
.
success
){
...
...
@@ -475,11 +476,24 @@ export default {
},
// 送审
sendOrder
()
{
let
orderse
=
[]
this
.
feilist
.
map
(
item
=>
{
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
})
let
strOder
=
orderse
.
join
(
","
)
console
.
log
(
strOder
)
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
this
.
entity
.
reporter
=
this
.
orderForm
.
useroption
;
this
.
entity
.
strOder
=
strOder
;
console
.
log
(
this
.
entity
)
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
// this.$Message.success("送审...")
let
parmeseData
=
this
.
entity
console
.
log
(
parmeseData
)
this
.
$Message
.
success
(
"送审"
)
this
.
ModalOrder
=
true
;
this
.
$refs
.
orderSendReview
.
intData
(
this
.
entity
);
this
.
$refs
.
orderSendReview
.
alertFun
(
parmeseData
);
// this.$refs.orderSendReview.intData(this.entity);
}
});
},
...
...
pages/produce/execute/judgment/orderSendReview.vue
View file @
4e51f204
<
template
>
<div
style=
"width:80%;margin:0 auto"
:style=
"
{ height: divHeight }">
1111
<OrderInfos
v-if=
"info.status"
:info=
"info"
></OrderInfos>
<!-- 批量送审展示列表 -->
<!--
<Table
:info1=
"info1"
...
...
@@ -93,10 +94,15 @@ export default {
}
},
methods
:
{
alertFun
(
parmeseData
){
console
.
warn
(
parmeseData
)
alert
(
"加载数据"
)
},
intData
(
data
)
{
//打开modal层时给订单list赋值
console
.
warn
(
data
)
//打开modal层时给orderInfo赋值
if
(
data
){
this
.
info
.
Unqualified
=
data
this
.
info
.
orderInfo
=
data
}
},
returnDataList
()
{
...
...
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