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
17152b8e
Commit
17152b8e
authored
Sep 09, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车间异常单
parent
1597d5dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
report.js
src/api/mes/qc/report.js
+8
-0
index.vue
src/views/mes/qc/report/index.vue
+13
-5
No files found.
src/api/mes/qc/report.js
View file @
17152b8e
...
@@ -65,3 +65,11 @@ export function completeReport(abnormalReportId) {
...
@@ -65,3 +65,11 @@ export function completeReport(abnormalReportId) {
method
:
'put'
method
:
'put'
})
})
}
}
// 提交功能
export
function
submit
(
id
)
{
return
request
({
url
:
'/qc/report/submit/'
+
id
,
method
:
'put'
})
}
\ No newline at end of file
src/views/mes/qc/report/index.vue
View file @
17152b8e
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-upload2"
icon
=
"el-icon-upload2"
@
click
=
"
0
"
@
click
=
"
handleSubmit(scope.row)
"
:
disabled
=
"!scope.row.userId"
:
disabled
=
"!scope.row.userId"
>
提交
<
/el-button
>
>
提交
<
/el-button
>
<
el
-
button
<
el
-
button
...
@@ -264,7 +264,6 @@
...
@@ -264,7 +264,6 @@
@
click
=
"$refs['oldItemSelectRef'].showFlag = true"
@
click
=
"$refs['oldItemSelectRef'].showFlag = true"
><
/el-button
>
><
/el-button
>
<
/el-input
>
<
/el-input
>
<
oldItemSelect
ref
=
"oldItemSelectRef"
:
batchNumber
=
"form.batchNumber"
@
onSelected
=
"onoldItemSelectRef"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
...
@@ -280,7 +279,6 @@
...
@@ -280,7 +279,6 @@
@
click
=
"$refs['ItemSelectRef'].showFlag = true"
@
click
=
"$refs['ItemSelectRef'].showFlag = true"
><
/el-button
>
><
/el-button
>
<
/el-input
>
<
/el-input
>
<
ItemSelect
ref
=
"ItemSelectRef"
@
onSelected
=
"onItemSelect"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
...
@@ -324,11 +322,14 @@
...
@@ -324,11 +322,14 @@
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
<
ItemSelect
ref
=
"ItemSelectRef"
@
onSelected
=
"onItemSelect"
/>
<
oldItemSelect
ref
=
"oldItemSelectRef"
:
batchNumber
=
"form.batchNumber"
@
onSelected
=
"onoldItemSelectRef"
/>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
listReport
,
getReport
,
delReport
,
addReport
,
updateReport
,
completeReport
,
getAllProcess
}
from
"@/api/mes/qc/report"
;
import
{
listReport
,
getReport
,
delReport
,
addReport
,
updateReport
,
completeReport
,
getAllProcess
,
submit
}
from
"@/api/mes/qc/report"
;
import
{
listAllProcess
}
from
"@/api/mes/pro/process"
;
import
{
listAllProcess
}
from
"@/api/mes/pro/process"
;
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
...
@@ -336,7 +337,7 @@ import oldItemSelect from "./single.vue";
...
@@ -336,7 +337,7 @@ import oldItemSelect from "./single.vue";
export
default
{
export
default
{
dicts
:
[
'qc_submit_status'
,
'pc_abnormal_type'
],
dicts
:
[
'qc_submit_status'
,
'pc_abnormal_type'
],
components
:
[
ItemSelect
,
oldItemSelect
]
,
components
:
{
ItemSelect
,
oldItemSelect
}
,
name
:
"Report"
,
name
:
"Report"
,
data
()
{
data
()
{
return
{
return
{
...
@@ -389,6 +390,13 @@ export default {
...
@@ -389,6 +390,13 @@ export default {
this
.
getList
();
this
.
getList
();
}
,
}
,
methods
:
{
methods
:
{
handleSubmit
(
row
){
submit
(
row
.
abnormalReportCode
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
getList
()
}
}
)
}
,
//查询工序信息
//查询工序信息
getProcess
(){
getProcess
(){
listAllProcess
().
then
(
response
=>
{
listAllProcess
().
then
(
response
=>
{
...
...
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