Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes-ui
Commits
ff1f94bc
Commit
ff1f94bc
authored
Dec 12, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印模板和关闭工单
parent
3f6d6d2b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
6 deletions
+67
-6
Dockerfile-prod
Dockerfile-prod
+1
-1
workorder.js
src/api/mes/pro/workorder.js
+9
-0
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+34
-4
index.vue
src/views/mes/report/index.vue
+23
-1
No files found.
Dockerfile-prod
View file @
ff1f94bc
...
@@ -7,7 +7,7 @@ RUN echo "server { \
...
@@ -7,7 +7,7 @@ RUN echo "server { \
listen 90; \
listen 90; \
client_max_body_size 50M; \
client_max_body_size 50M; \
location /prod-api/ { \
location /prod-api/ { \
proxy_pass http://192.168.3.181:8
080
/; \
proxy_pass http://192.168.3.181:8
101
/; \
proxy_redirect off; \
proxy_redirect off; \
proxy_set_header Host mes-ui; \
proxy_set_header Host mes-ui; \
proxy_set_header X-Real-IP \$remote_addr; \
proxy_set_header X-Real-IP \$remote_addr; \
...
...
src/api/mes/pro/workorder.js
View file @
ff1f94bc
...
@@ -79,6 +79,15 @@ export function closeWorkorder(data) {
...
@@ -79,6 +79,15 @@ export function closeWorkorder(data) {
})
})
}
}
// 检查关闭生产工单
export
function
closeCheck
(
data
)
{
return
request
({
url
:
'/mes/pro/workorder/closeCheck'
,
method
:
'put'
,
data
:
data
})
}
// 删除生产工单
// 删除生产工单
export
function
delWorkorder
(
workorderId
)
{
export
function
delWorkorder
(
workorderId
)
{
return
request
({
return
request
({
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
ff1f94bc
...
@@ -579,7 +579,8 @@ import {
...
@@ -579,7 +579,8 @@ import {
printInfo
,
printInfo
,
doCheckToolNum
,
doCheckToolNum
,
delComWorkorder
,
delComWorkorder
,
closeWorkorder
closeWorkorder
,
closeCheck
}
from
"@/api/mes/pro/workorder"
;
}
from
"@/api/mes/pro/workorder"
;
import
{
addProtaskList
}
from
"@/api/mes/pro/protask"
;
import
{
addProtaskList
}
from
"@/api/mes/pro/protask"
;
import
shiftSelectMixin
from
'@/utils/shiftSelectMixin'
import
shiftSelectMixin
from
'@/utils/shiftSelectMixin'
...
@@ -826,10 +827,39 @@ export default {
...
@@ -826,10 +827,39 @@ export default {
workorderId
:
v
,
workorderId
:
v
,
status
:
"CLOSE"
status
:
"CLOSE"
}
))
}
))
closeWorkorder
(
JSON
.
stringify
(
obj
)).
then
(({
data
}
)
=>
{
const
params
=
this
.
selectedRows
.
map
(
v
=>
({
this
.
$message
.
success
(
'关闭工单成功'
)
workorderId
:
v
.
workorderId
,
this
.
getList
();
workorderCode
:
v
.
workorderCode
,
checkState
:
1
}
))
closeCheck
(
params
).
then
(
res
=>
{
if
(
!
res
.
msg
)
{
params
.
forEach
(
vv
=>
{
vv
.
checkState
=
2
}
)
closeCheck
(
params
).
then
(
res
=>
{
if
(
!
res
.
msg
)
{
params
.
forEach
(
vv
=>
{
vv
.
checkState
=
3
}
)
closeCheck
(
params
).
then
(
res
=>
{
if
(
!
res
.
msg
)
{
this
.
$modal
.
confirm
(
'经检查,工单符合关闭条件,是否确认关闭工单?(注意:一经确认关闭,无法取消关闭。)'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
'请再次确认是否关闭工单?(注意:一经确认关闭,无法取消关闭。)'
).
then
(()
=>
{
closeWorkorder
(
JSON
.
stringify
(
obj
)).
then
(({
data
}
)
=>
{
this
.
$message
.
success
(
'关闭工单成功'
)
this
.
getList
();
}
)
}
)
}
)
}
}
)
}
}
)
}
}
)
}
)
}
,
}
,
showArrangDetail
(
row
,
arrangeCode
)
{
showArrangDetail
(
row
,
arrangeCode
)
{
this
.
arrangeOpen
=
true
;
this
.
arrangeOpen
=
true
;
...
...
src/views/mes/report/index.vue
View file @
ff1f94bc
...
@@ -91,6 +91,11 @@
...
@@ -91,6 +91,11 @@
<
span
>
{{
parseTime
(
scope
.
row
.
updateTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
updateTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"是否为库存模板"
align
=
"center"
prop
=
"remark"
>
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
inventoryTemplate
?
'是'
:
'否'
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remark"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remark"
/>
<
el
-
table
-
column
label
=
"操作"
v
-
if
=
"operation"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
v
-
if
=
"operation"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
...
@@ -128,7 +133,7 @@
...
@@ -128,7 +133,7 @@
<!--
添加或修改报表管理对话框
-->
<!--
添加或修改报表管理对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"
8
0px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"
11
0px"
>
<
el
-
form
-
item
label
=
"模版名称"
prop
=
"name"
>
<
el
-
form
-
item
label
=
"模版名称"
prop
=
"name"
>
<
el
-
input
v
-
model
=
"form.name"
placeholder
=
"请输入模版名称"
/>
<
el
-
input
v
-
model
=
"form.name"
placeholder
=
"请输入模版名称"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -142,6 +147,22 @@
...
@@ -142,6 +147,22 @@
><
/el-option
>
><
/el-option
>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否为库存模板"
prop
=
"inventoryTemplate"
>
<
el
-
select
v
-
model
=
"form.inventoryTemplate"
placeholder
=
"是否为库存模板"
clearable
>
<
el
-
option
label
=
"是"
:
value
=
"true"
/>
<
el
-
option
label
=
"否"
:
value
=
"false"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
el
-
input
v
-
model
=
"form.remark"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -260,6 +281,7 @@ export default {
...
@@ -260,6 +281,7 @@ export default {
this
.
form
=
{
this
.
form
=
{
id
:
null
,
id
:
null
,
filePath
:
null
,
filePath
:
null
,
inventoryTemplate
:
false
,
name
:
null
,
name
:
null
,
content
:
null
,
content
:
null
,
createTime
:
null
,
createTime
:
null
,
...
...
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