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
60f33602
Commit
60f33602
authored
Jun 08, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
judgment
parent
99159c18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
53 deletions
+143
-53
execute.less
pages/produce/execute/execute.less
+1
-1
index.vue
pages/produce/execute/judgment/index.vue
+136
-40
orderInfos.vue
pages/produce/execute/judgment/orderInfos.vue
+5
-11
orderSendReview.vue
pages/produce/execute/judgment/orderSendReview.vue
+1
-1
No files found.
pages/produce/execute/execute.less
View file @
60f33602
...
@@ -374,7 +374,7 @@
...
@@ -374,7 +374,7 @@
}
}
}
}
.wu_bg{
.wu_bg{
height: calc(100vh - 1
00
px);
height: calc(100vh - 1
15
px);
.mass_box{
.mass_box{
padding: 0 50px;
padding: 0 50px;
}
}
...
...
pages/produce/execute/judgment/index.vue
View file @
60f33602
...
@@ -331,19 +331,19 @@ export default {
...
@@ -331,19 +331,19 @@ export default {
okModal
()
{
okModal
()
{
let
unmb
=
this
.
num
;
let
unmb
=
this
.
num
;
if
(
unmb
==
1
)
{
if
(
unmb
==
1
)
{
this
.
cansol
Rang
();
this
.
cansol
hege
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
2
)
{
if
(
unmb
==
2
)
{
this
.
cansolf
an
();
this
.
cansolf
ei
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
3
)
{
if
(
unmb
==
3
)
{
this
.
cansol
fei
();
this
.
cansol
Rang
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
0
)
{
if
(
unmb
==
4
)
{
this
.
cansol
hege
();
this
.
cansol
fan
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
},
},
...
@@ -423,49 +423,132 @@ export default {
...
@@ -423,49 +423,132 @@ export default {
},
},
// 提交
// 提交
submit
()
{
submit
()
{
let
hegeops
=
{}
let
hegeops
=
{};
let
rangops
=
{}
let
rangops
=
{};
let
fanxops
=
{}
let
fanxops
=
{};
let
feipops
=
{}
let
feipops
=
{};
let
cardseops
=
{};
let
lists
=
[];
let
lists
=
[];
if
(
this
.
hegelist
.
length
>
0
){
let
pass01
=
this
.
hegelist
.
length
>
0
;
let
pass02
=
this
.
ranglist
.
length
>
0
;
let
pass03
=
this
.
fanlist
.
length
>
0
;
let
pass04
=
this
.
feilist
.
length
>
0
;
cardseops
=
{
prodcutIds
:
[],
productStatus
:
this
.
cardlist
[
0
].
productStatus
}
this
.
cardlist
.
map
(
ch
=>
{
cardseops
.
prodcutIds
.
push
(
ch
.
id
)})
if
(
pass01
){
hegeops
=
{
hegeops
=
{
prodcutIds
:
[],
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
productStatus
:
this
.
hegelist
[
0
].
productStatus
};
};
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
lists
=
[
cardseops
,
hegeops
];
if
(
pass02
){
rangops
=
{
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
};
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
];
if
(
pass03
){
fanxops
=
{
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
};
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
,
fanxops
];
}
}
}
}
if
(
this
.
ranglist
.
length
>
0
){
if
(
pass02
){
rangops
=
{
rangops
=
{
prodcutIds
:
[],
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
||
''
productStatus
:
this
.
ranglist
[
0
].
productStatus
};
};
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
lists
=
[
cardseops
,
rangops
];
if
(
pass01
){
hegeops
=
{
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
};
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
];
if
(
pass03
){
fanxops
=
{
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
};
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
,
fanxops
];
}
}
}
}
if
(
this
.
fanlist
.
length
>
0
){
if
(
pass03
){
fanxops
=
{
fanxops
=
{
prodcutIds
:
[],
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
productStatus
:
this
.
fanlist
[
0
].
productStatus
};
};
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
lists
=
[
cardseops
,
fanxops
];
if
(
pass01
){
hegeops
=
{
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
};
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
lists
=
[
cardseops
,
hegeops
,
fanxops
];
if
(
pass02
){
rangops
=
{
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
};
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
,
fanxops
];
}
}
}
}
if
(
this
.
feilist
.
length
>
0
){
if
(
pass04
){
feipops
=
{
feipops
=
{
prodcutIds
:
[],
prodcutIds
:
[],
productStatus
:
this
.
feilist
[
0
].
productStatus
,
productStatus
:
this
.
feilist
[
0
].
productStatus
,
cause
:
this
.
orderForm
.
question
,
cause
:
this
.
orderForm
.
question
,
reporter
:
this
.
orderForm
.
useroption
,
reporter
:
this
.
orderForm
.
useroption
};
};
this
.
feilist
.
map
(
uf
=>
{
feipops
.
prodcutIds
.
push
(
uf
.
id
)})
this
.
feilist
.
map
(
un
=>
{
feipops
.
prodcutIds
.
push
(
un
.
id
)})
lists
=
[
cardseops
,
feipops
];
if
(
pass01
){
hegeops
=
{
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
};
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
lists
=
[
cardseops
,
hegeops
,
feipops
];
if
(
pass02
){
rangops
=
{
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
};
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
,
feipops
];
if
(
pass03
){
fanxops
=
{
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
};
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
lists
=
[
cardseops
,
hegeops
,
rangops
,
fanxops
,
feipops
];
}
}
}
}
}
lists
=
[
hegeops
,
rangops
,
fanxops
];
console
.
log
(
lists
)
let
parmes
=
{
let
parmes
=
{
dispatchId
:
this
.
$route
.
query
.
id
,
dispatchId
:
this
.
$route
.
query
.
id
,
orderId
:
this
.
$route
.
query
.
orderId
,
orderId
:
this
.
$route
.
query
.
orderId
,
list
:
lists
list
:
lists
};
};
console
.
log
(
parmes
)
Api
.
submitData
(
parmes
).
then
(
res
=>
{
Api
.
submitData
(
parmes
).
then
(
res
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
this
.
$Message
.
success
(
"提交成功!"
);
this
.
$Message
.
success
(
"提交成功!"
);
...
@@ -474,31 +557,44 @@ export default {
...
@@ -474,31 +557,44 @@ export default {
}
}
})
})
},
},
// 送审
//
打开
送审
sendOrder
()
{
sendOrder
()
{
let
orderse
=
[]
let
orderse
=
[]
this
.
feilist
.
map
(
item
=>
{
this
.
feilist
.
map
(
item
=>
{
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
})
})
let
strOder
=
orderse
.
join
(
","
)
let
strOder
=
orderse
.
join
(
","
)
// console.log(strOder)
console
.
log
(
strOder
)
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
this
.
entity
.
reporter
=
this
.
orderForm
.
useroption
;
this
.
entity
.
reporter
=
this
.
orderForm
.
useroption
;
this
.
entity
.
strOder
=
strOder
;
this
.
entity
.
strOder
=
strOder
;
// console.log(this.entity)
console
.
log
(
this
.
entity
)
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
parmeseData
=
this
.
entity
this
.
submit
()
//提交状态改变
console
.
log
(
parmeseData
)
let
parmeseData
=
this
.
entity
// console.log(parmeseData) this.$Message.success("送审")
this
.
$Message
.
success
(
"送审"
)
this
.
ModalOrder
=
true
;
this
.
ModalOrder
=
true
;
this
.
$refs
.
orderSendReview
.
alertFun
(
parmeseData
);
this
.
$refs
.
orderSendReview
.
alertFun
(
parmeseData
);
// this.$refs.orderSendReview.intData(this.entity);
}
}
});
});
},
},
// 确定送审
orderSendOk
()
{
orderSendOk
()
{
ahis
.
$Message
.
success
(
"送审中..."
);
ahis
.
$Message
.
success
(
"送审中..."
);
// let operatorIdList = this.$refs.orderSendReview.returnDataList();
// let itemCode = this.formdata.unqualified_order_code;
// this.dataListRetrunNew.code = itemCode;
// this.dataListRetrunNew.operatorIdList = operatorIdList;
// this.$http.order
// .batchOrderStart(this.dataListRetrunNew)
// .then(response => {
// if (response.success) {
// this.loadchangelist();
// this.$Message.info("送审成功!");
// this.dataListRetrunNew.idList = [];
// } else {
// this.$Message.error("送审失败!");
// }
// this.modalInfo = false;
// });
},
},
// 取消 返回工单列表
// 取消 返回工单列表
toOrder
()
{
toOrder
()
{
...
...
pages/produce/execute/judgment/orderInfos.vue
View file @
60f33602
...
@@ -3,24 +3,18 @@
...
@@ -3,24 +3,18 @@
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
info
.
orderInfo
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
info
.
orderInfo
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
info
.
orderInfo
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
info
.
orderInfo
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
info
.
orderInfo
.
projectNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
info
.
orderInfo
.
status
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
info
.
orderInfo
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
info
.
orderInfo
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
<!--
<Filed
:span=
"8"
:name=
"l('batchNumber')"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
-->
<!--
<Filed
:span=
"8"
:name=
"l('batchNumber')"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
info
.
orderInfo
.
quantity
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
info
.
orderInfo
.
quantity
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"
不合格产品数量"
>
{{
info
.
orderInfo
.
demandFinishDat
e
}}
</Filed>
<Filed
:span=
"12"
name=
"
问题原因"
>
{{
info
.
orderInfo
.
caus
e
}}
</Filed>
<Filed
:span=
"12"
name=
"
问题原因"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"
责任归属"
>
{{
info
.
orderInfo
.
reporter
}}
</Filed>
<Filed
:span=
"12"
name=
"
责任归属
"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"
不合格产品号
"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"24"
name=
"不合格产品
号"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"24"
name=
"不合格产品
"
>
{{
info
.
orderInfo
.
strOder
}}
</Filed>
<!--
<Filed
:span=
"8"
:name=
"l('stage')"
>
<!--
<Filed
:span=
"8"
:name=
"l('stage')"
>
<state
code=
"plan.order.stage"
:value=
"info.orderInfo.stage+''"
type=
"text"
></state>
<state
code=
"plan.order.stage"
:value=
"info.orderInfo.stage+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('taskType')"
>
<state
code=
"plan.order.taskType"
:value=
"info.orderInfo.taskType+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('materialId')"
>
<state
code=
"plan.order.material"
:value=
"info.orderInfo.materialId+''"
type=
"text"
></state>
</Filed>
-->
</Filed>
-->
</Row>
</Row>
</div>
</div>
...
...
pages/produce/execute/judgment/orderSendReview.vue
View file @
60f33602
<
template
>
<
template
>
<div
style=
"width:80%;margin:0 auto"
:style=
"
{ height: divHeight }">
<div
style=
"width:80%;margin:0 auto"
:style=
"
{ height: divHeight }">
1111
<OrderInfos
v-if=
"info.status"
:info=
"info"
></OrderInfos>
<OrderInfos
v-if=
"info.status"
:info=
"info"
></OrderInfos>
<!-- 批量送审展示列表 -->
<!-- 批量送审展示列表 -->
<!--
<Table
:info1=
"info1"
<!--
<Table
:info1=
"info1"
...
@@ -96,6 +95,7 @@ export default {
...
@@ -96,6 +95,7 @@ export default {
methods
:
{
methods
:
{
alertFun
(
parmeseData
){
alertFun
(
parmeseData
){
console
.
warn
(
parmeseData
)
console
.
warn
(
parmeseData
)
this
.
info
.
orderInfo
=
parmeseData
alert
(
"加载数据"
)
alert
(
"加载数据"
)
},
},
intData
(
data
)
{
intData
(
data
)
{
...
...
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