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
54aabd35
Commit
54aabd35
authored
Apr 01, 2020
by
佟礼
Browse files
Options
Browse Files
Download
Plain Diff
工单执行
parents
b26f1992
3a549d53
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
209 additions
and
200 deletions
+209
-200
productReport.vue
pages/implement/components/productReport.vue
+199
-194
sendCheck.vue
pages/implement/components/sendCheck.vue
+3
-2
usercard.vue
pages/implement/components/usercard.vue
+2
-2
orderMaterial.vue
pages/processManage/setProcess/components/orderMaterial.vue
+1
-0
index.vue
pages/processManage/setProcess/index.vue
+4
-2
No files found.
pages/implement/components/productReport.vue
View file @
54aabd35
...
...
@@ -25,7 +25,15 @@
<Button
type=
"primary"
@
click=
"save()"
class=
"title_btn ml10"
>
汇报
</Button>
</div>
<div
class=
"table01"
>
<Table
stripe
ref=
"table"
border
:columns=
"moviecolumn"
:height=
"taHeight"
:data=
"data1"
class=
"tableCommon"
>
<Table
stripe
ref=
"table"
border
:columns=
"moviecolumn"
:height=
"taHeight"
:data=
"data1"
class=
"tableCommon"
>
<
template
slot-scope=
"{ row,index }"
slot=
"hg"
>
<template
v-if=
"row.status==0"
>
<template
v-if=
"row.productstatus1==0"
>
...
...
@@ -92,10 +100,10 @@
</div>
</template>
<
script
>
import
service
from
'@/plugins/request'
import
QS
from
'querystring'
import
service
from
"@/plugins/request"
;
import
QS
from
"querystring"
;
export
default
{
name
:
'productReport'
,
name
:
"productReport"
,
components
:
{},
data
()
{
return
{
...
...
@@ -105,20 +113,20 @@ export default {
datasearch
:
{
isMain
:
0
,
entryID
:
0
,
order_id
:
''
,
product_code
:
''
,
board_code
:
''
,
order_id
:
""
,
product_code
:
""
,
board_code
:
""
,
productstatus
:
null
,
MaxResultCount
:
10
,
SkipCount
:
0
},
taHeight
:
''
,
taHeight
:
""
,
checked
:
true
,
newModel
:
false
,
ids
:
[],
isedit
:
false
,
productobj
:
0
,
product_ID
:
''
,
product_ID
:
""
,
board_ID
:
0
,
product_List
:
[],
board_List
:
[],
...
...
@@ -127,16 +135,16 @@ export default {
record_id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
order_id
:
''
,
order_id
:
""
,
qc_card_id
:
0
,
fill_in_user_type
:
0
,
data_type
:
3
,
data_content1
:
''
,
data_content2
:
''
,
data_content3
:
''
,
data_content4
:
''
,
product_code
:
''
,
board_code
:
''
data_content1
:
""
,
data_content2
:
""
,
data_content3
:
""
,
data_content4
:
""
,
product_code
:
""
,
board_code
:
""
},
ishgCheckAll
:
false
,
isbfCheckAll
:
false
,
...
...
@@ -147,390 +155,387 @@ export default {
// { title: '序号', type: 'index', width: '100', align: 'center' },
{
title
:
'产品号'
,
width
:
'90'
,
align
:
'center'
,
key
:
'product_str'
title
:
"产品号"
,
width
:
"90"
,
align
:
"center"
,
key
:
"product_str"
},
{
title
:
'板号'
,
width
:
'90'
,
align
:
'center'
,
key
:
'board_code'
title
:
"板号"
,
width
:
"90"
,
align
:
"center"
,
key
:
"board_code"
},
{
title
:
'检验结果'
,
width
:
'100'
,
align
:
'center'
,
key
:
'status'
,
title
:
"检验结果"
,
width
:
"100"
,
align
:
"center"
,
key
:
"status"
,
render
:
(
h
,
params
)
=>
{
let
content
=
''
let
content
=
""
;
if
(
params
.
row
.
status
==
-
1
)
{
content
=
'待自检'
content
=
"待自检"
;
}
else
if
(
params
.
row
.
status
==
2
)
{
content
=
'待互检'
content
=
"待互检"
;
}
else
if
(
params
.
row
.
status
==
3
||
params
.
row
.
status
==
4
)
{
content
=
'待检验'
content
=
"待检验"
;
}
else
{
content
=
'完成'
content
=
"完成"
;
}
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'span'
,
"span"
,
{
props
:
{
type
:
'text'
,
type
:
"text"
,
ghost
:
true
}
},
content
)
])
])
;
}
},
{
title
:
'汇报结果'
,
width
:
'100'
,
align
:
'center'
,
key
:
'productstatus'
,
title
:
"汇报结果"
,
width
:
"100"
,
align
:
"center"
,
key
:
"productstatus"
,
render
:
(
h
,
params
)
=>
{
let
content
=
''
let
content
=
""
;
if
(
params
.
row
.
productstatus1
==
1
)
{
content
=
'合格'
content
=
"合格"
;
}
else
if
(
params
.
row
.
productstatus1
==
2
)
{
content
=
'报废'
content
=
"报废"
;
}
else
if
(
params
.
row
.
productstatus1
==
3
)
{
content
=
'让步'
content
=
"让步"
;
}
else
{
content
=
'待汇报'
content
=
"待汇报"
;
}
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'span'
,
"span"
,
{
props
:
{
type
:
'text'
,
type
:
"text"
,
ghost
:
true
}
},
content
)
])
])
;
}
},
{
title
:
'合格'
,
key
:
'productstatus'
,
width
:
'95'
,
align
:
'center'
,
title
:
"合格"
,
key
:
"productstatus"
,
width
:
"95"
,
align
:
"center"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'Checkbox'
,
"Checkbox"
,
{
props
:
{
value
:
this
.
ishgCheckAll
},
on
:
{
'on-change'
:
()
=>
{
this
.
handlehgCheckAll
()
//点击修改下面Checkbox的状态
"on-change"
:
()
=>
{
this
.
handlehgCheckAll
()
;
//点击修改下面Checkbox的状态
}
}
},
'合格'
"合格"
)
])
])
;
},
slot
:
'hg'
slot
:
"hg"
},
{
title
:
'报废'
,
key
:
'productstatus'
,
width
:
'95'
,
align
:
'center'
,
title
:
"报废"
,
key
:
"productstatus"
,
width
:
"95"
,
align
:
"center"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'Checkbox'
,
"Checkbox"
,
{
props
:
{
value
:
this
.
isbfCheckAll
},
on
:
{
'on-change'
:
()
=>
{
this
.
handlebfCheckAll
()
//点击修改下面Checkbox的状态
"on-change"
:
()
=>
{
this
.
handlebfCheckAll
()
;
//点击修改下面Checkbox的状态
}
}
},
'报废'
"报废"
)
])
])
;
},
slot
:
'bf'
slot
:
"bf"
},
{
title
:
'让步'
,
key
:
'productstatus'
,
width
:
'95'
,
align
:
'center'
,
title
:
"让步"
,
key
:
"productstatus"
,
width
:
"95"
,
align
:
"center"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'Checkbox'
,
"Checkbox"
,
{
props
:
{
value
:
this
.
isrbCheckAll
},
on
:
{
'on-change'
:
()
=>
{
this
.
handlerbCheckAll
()
//点击修改下面Checkbox的状态
"on-change"
:
()
=>
{
this
.
handlerbCheckAll
()
;
//点击修改下面Checkbox的状态
}
}
},
'让步'
"让步"
)
])
])
;
},
slot
:
'rb'
slot
:
"rb"
},
{
title
:
'审理单编号'
,
key
:
'docket_number'
,
slot
:
'docket'
title
:
"审理单编号"
,
key
:
"docket_number"
,
slot
:
"docket"
},
{
title
:
'问题原因'
,
key
:
'cause'
,
slot
:
'cause'
title
:
"问题原因"
,
key
:
"cause"
,
slot
:
"cause"
},
{
title
:
'汇报人'
,
key
:
'report_user_name'
,
width
:
'100'
,
align
:
'center'
title
:
"汇报人"
,
key
:
"report_user_name"
,
width
:
"100"
,
align
:
"center"
},
{
title
:
'汇报时间'
,
key
:
'report_time'
,
width
:
'180'
,
align
:
'center'
,
title
:
"汇报时间"
,
key
:
"report_time"
,
width
:
"180"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
let
content
=
params
.
row
.
report_time
.
indexOf
(
'0001'
)
>
-
1
?
''
:
params
.
row
.
report_time
return
h
(
'div'
,
[
params
.
row
.
report_time
.
indexOf
(
"0001"
)
>
-
1
?
""
:
params
.
row
.
report_time
;
return
h
(
"div"
,
[
h
(
'span'
,
"span"
,
{
props
:
{
type
:
'text'
,
type
:
"text"
,
ghost
:
true
}
},
content
)
])
])
;
}
}
]
}
}
;
},
created
()
{
this
.
taHeight
=
window
.
innerHeight
-
375
this
.
taHeight
=
window
.
innerHeight
-
375
;
},
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
taHeight
=
window
.
innerHeight
-
375
})()
}
this
.
taHeight
=
window
.
innerHeight
-
375
;
})()
;
}
;
},
methods
:
{
loadpage
(
dispatch_id
,
order_id
,
isMain
)
{
this
.
datasearch
.
entryID
=
dispatch_id
this
.
datasearch
.
entryID
=
dispatch_id
;
this
.
datasearch
.
order_id
=
order_id
this
.
datasearch
.
isMain
=
isMain
this
.
datasearch
.
order_id
=
order_id
;
this
.
datasearch
.
isMain
=
isMain
;
this
.
loaddata
()
this
.
loadproduct
()
this
.
loaddata
()
;
this
.
loadproduct
()
;
},
onPageChanged
(
page_index
)
{
this
.
pageindex
=
page_index
this
.
loaddata
()
this
.
pageindex
=
page_index
;
this
.
loaddata
()
;
},
onPagesizeChanged
(
page_size
)
{
this
.
datasearch
.
MaxResultCount
=
page_size
this
.
loaddata
()
this
.
datasearch
.
MaxResultCount
=
page_size
;
this
.
loaddata
()
;
},
loaddata
()
{
this
.
data1
=
[]
this
.
data1
=
[]
;
this
.
datasearch
.
SkipCount
=
(
this
.
pageindex
-
1
)
*
this
.
datasearch
.
MaxResultCount
(
this
.
pageindex
-
1
)
*
this
.
datasearch
.
MaxResultCount
;
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductlist?`
+
QS
.
stringify
(
this
.
datasearch
)
QS
.
stringify
(
this
.
datasearch
)
;
service
.
get
(
`
${
url
}
`
).
then
(
(
response
)
=>
{
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
if
(
response
.
result
!=
null
)
{
this
.
data1
=
response
.
result
.
items
this
.
datatotal
=
response
.
result
.
totalCount
this
.
data1
=
response
.
result
.
items
;
this
.
datatotal
=
response
.
result
.
totalCount
;
}
})
})
;
},
loadproduct
()
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductcode?entryID=`
+
this
.
datasearch
.
entryID
this
.
datasearch
.
entryID
;
service
.
get
(
`
${
url
}
`
).
then
(
(
response
)
=>
{
this
.
product_List
=
response
.
result
this
.
board_List
=
response
.
result
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
this
.
product_List
=
response
.
result
;
this
.
board_List
=
response
.
result
;
if
(
this
.
datasearch
.
isMain
==
1
)
{
this
.
product_List
=
[]
this
.
product_List
=
[]
;
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
let
productids
=
obj
.
productids
.
split
(
','
)
let
productcodes
=
obj
.
productcodes
.
split
(
','
)
let
obj
=
this
.
board_List
[
i
]
;
let
productids
=
obj
.
productids
.
split
(
","
);
let
productcodes
=
obj
.
productcodes
.
split
(
","
);
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
let
p
=
{}
p
.
productids
=
productids
[
j
]
p
.
productcodes
=
productcodes
[
j
]
this
.
product_List
.
push
(
p
)
let
p
=
{}
;
p
.
productids
=
productids
[
j
]
;
p
.
productcodes
=
productcodes
[
j
]
;
this
.
product_List
.
push
(
p
)
;
}
}
}
})
})
;
},
productonchange
(
e
)
{
this
.
datasearch
.
product_code
=
e
this
.
datasearch
.
product_code
=
e
;
this
.
loaddata
()
this
.
loaddata
()
;
},
boardonchange
(
e
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
let
obj
=
this
.
board_List
[
i
]
;
if
(
obj
.
boardNumber
==
e
)
{
this
.
product_List
=
[]
let
productids
=
obj
.
productids
.
split
(
','
)
let
productcodes
=
obj
.
productcodes
.
split
(
','
)
this
.
product_List
=
[]
;
let
productids
=
obj
.
productids
.
split
(
","
);
let
productcodes
=
obj
.
productcodes
.
split
(
","
);
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
let
p
=
{}
p
.
productids
=
productids
[
j
]
p
.
productcodes
=
productcodes
[
j
]
this
.
product_List
.
push
(
p
)
let
p
=
{}
;
p
.
productids
=
productids
[
j
]
;
p
.
productcodes
=
productcodes
[
j
]
;
this
.
product_List
.
push
(
p
)
;
}
}
}
this
.
datasearch
.
board_code
=
e
this
.
datasearch
.
board_code
=
e
;
this
.
loaddata
()
this
.
loaddata
()
;
},
handlehgCheckAll
()
{
this
.
ishgCheckAll
=
!
this
.
ishgCheckAll
this
.
ishgCheckAll
=
!
this
.
ishgCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
ishgCheckAll
?
1
:
0
this
.
data1
[
i
].
productstatus
=
this
.
ishgCheckAll
?
1
:
0
;
}
}
},
handlebfCheckAll
()
{
this
.
isbfCheckAll
=
!
this
.
isbfCheckAll
this
.
isbfCheckAll
=
!
this
.
isbfCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
isbfCheckAll
?
2
:
0
this
.
data1
[
i
].
productstatus
=
this
.
isbfCheckAll
?
2
:
0
;
}
}
},
handlerbCheckAll
()
{
this
.
isrbCheckAll
=
!
this
.
isrbCheckAll
this
.
isrbCheckAll
=
!
this
.
isrbCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
isrbCheckAll
?
3
:
0
this
.
data1
[
i
].
productstatus
=
this
.
isrbCheckAll
?
3
:
0
;
}
}
},
hgcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
1
:
0
this
.
data1
[
index
].
productstatus
=
e
?
1
:
0
;
},
bfcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
2
:
0
this
.
data1
[
index
].
productstatus
=
e
?
2
:
0
;
},
rbcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
3
:
0
this
.
data1
[
index
].
productstatus
=
e
?
3
:
0
;
},
docketinput
(
index
,
e
)
{
this
.
data1
[
index
].
docket_number
=
e
.
target
.
value
this
.
data1
[
index
].
docket_number
=
e
.
target
.
value
;
},
causeinput
(
index
,
e
)
{
this
.
data1
[
index
].
cause
=
e
.
target
.
value
this
.
data1
[
index
].
cause
=
e
.
target
.
value
;
},
save
()
{
// this.$parent.$parent.loadproduct()
let
datalist
=
[];
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
let
datalist
=
[]
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
let
obj
=
this
.
data1
[
i
]
let
obj
=
this
.
data1
[
i
]
;
if
(
obj
.
productstatus1
==
0
&&
obj
.
productstatus
!=
0
)
{
obj
.
report_user_name
=
localStorage
.
getItem
(
'userName'
)
datalist
.
push
(
obj
)
obj
.
report_user_name
=
userInfo
.
name
;
datalist
.
push
(
obj
)
;
}
}
if
(
datalist
.
length
==
0
)
{
this
.
$Message
.
success
(
'请进行填报'
)
return
this
.
$Message
.
success
(
"请进行填报"
);
return
;
}
console
.
log
(
datalist
)
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/saveentryproduct`
console
.
log
(
datalist
)
;
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/saveentryproduct`
;
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
dispatch_id
:
this
.
datasearch
.
entryID
,
order_id
:
this
.
datasearch
.
order_id
,
list
:
datalist
}
)
.
then
((
response
)
=>
{
})
.
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$Message
.
success
(
"保存成功"
);
this
.
loaddata
()
this
.
loaddata
()
;
this
.
$parent
.
$parent
.
$parent
.
loadEntry
(
this
.
$parent
.
$parent
.
$parent
.
data
.
id
);
this
.
$parent
.
$parent
.
$parent
.
loadEntry
(
this
.
$parent
.
$parent
.
$parent
.
data
.
id
);
}
})
.
catch
(
(
error
)
=>
{
this
.
$Message
.
error
(
'保存失败'
)
})
.
catch
(
error
=>
{
this
.
$Message
.
error
(
"保存失败"
);
})
;
},
updateentrystatus
()
{
let
stat
=
true
let
stat
=
true
;
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
let
obj
=
this
.
data1
[
i
]
let
obj
=
this
.
data1
[
i
]
;
if
(
obj
.
productstatus
==
0
)
{
stat
=
false
break
stat
=
false
;
break
;
}
}
if
(
stat
)
{
this
.
$parent
.
$parent
.
updateentrystatus
(
this
.
datasearch
.
dispatch_id
,
0
)
this
.
$parent
.
$parent
.
updateentrystatus
(
this
.
datasearch
.
dispatch_id
,
0
)
;
}
}
}
}
}
;
</
script
>
\ No newline at end of file
pages/implement/components/sendCheck.vue
View file @
54aabd35
...
...
@@ -227,9 +227,10 @@ export default {
},
getCurrentUser
(
e
)
{
if
(
e
)
{
let
userInfo
=
this
.
$store
.
admin
.
user
.
info
;
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
this
.
user
.
cardno
=
userInfo
.
login_id
this
.
user
.
user_name
=
userInfo
.
userN
ame
this
.
user
.
user_name
=
userInfo
.
n
ame
this
.
user
.
user_id
=
userInfo
.
userId
}
else
{
this
.
user
.
cardno
=
''
...
...
pages/implement/components/usercard.vue
View file @
54aabd35
...
...
@@ -238,8 +238,8 @@ export default {
},
getCurrentUser
(
e
)
{
if
(
e
)
{
let
userInfo
=
this
.
$store
.
state
.
userI
nfo
;
console
.
log
(
userInfo
);
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
i
nfo
;
this
.
user
.
cardno
=
userInfo
.
login_id
this
.
user
.
user_name
=
userInfo
.
name
this
.
user
.
user_id
=
userInfo
.
userId
...
...
pages/processManage/setProcess/components/orderMaterial.vue
View file @
54aabd35
...
...
@@ -410,6 +410,7 @@ export default {
file_template
:
''
,
remarks
:
''
,
extend
:
''
,
order_comb_id
:
0
,
orderids
:
''
,
productingPreparationPeople
:
''
,
...
...
pages/processManage/setProcess/index.vue
View file @
54aabd35
...
...
@@ -526,7 +526,7 @@ export default {
{
title
:
'
主工艺
'
,
title
:
'
工艺规程
'
,
key
:
'mainRoutingID'
,
width
:
120
,
render
:
(
h
,
params
)
=>
{
...
...
@@ -610,7 +610,7 @@ export default {
key
:
'materialbillID'
,
width
:
120
,
render
:
(
h
,
params
)
=>
{
if
(
this
.
tabstatus
==
'1'
)
{
if
(
params
.
row
.
mainRoutingID
==
0
)
{
h
(
'div'
,
''
)
}
else
{
let
id
=
params
.
row
.
id
...
...
@@ -1615,6 +1615,8 @@ export default {
this
.
modalliao
=
true
let
ld
=
this
.
$refs
.
orderMaterial
params
.
row
.
mainRoutingID
if
(
params
.
row
.
materialbillStatus
==
1
||
params
.
row
.
materialbillStatus
==
2
||
...
...
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