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
f35ec95d
Commit
f35ec95d
authored
Jun 01, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单执行
parent
44161d59
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
753 additions
and
159 deletions
+753
-159
productNumberSelect.vue
components/page/productNumberSelect.vue
+1
-1
api.js
pages/produce/api.js
+5
-0
functional.vue
pages/produce/execute/components/functional.vue
+1
-1
entryrecorddata.vue
pages/produce/execute/datafilling/entryrecorddata.vue
+322
-0
index.vue
pages/produce/execute/datafilling/index.vue
+319
-52
usercard.vue
pages/produce/execute/datafilling/usercard.vue
+97
-99
index.vue
pages/produce/execute/index.vue
+4
-2
orderlist.vue
pages/produce/orderlist.vue
+4
-4
No files found.
components/page/productNumberSelect.vue
View file @
f35ec95d
...
@@ -43,7 +43,6 @@ export default {
...
@@ -43,7 +43,6 @@ export default {
},
},
methods
:
{
methods
:
{
change
(
event
)
{
change
(
event
)
{
this
.
$emit
(
"on-change"
,
event
);
this
.
codeIds
=
[];
this
.
codeIds
=
[];
for
(
let
index
=
0
;
index
<
event
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
event
.
length
;
index
++
)
{
this
.
data
.
forEach
(
e
=>
{
this
.
data
.
forEach
(
e
=>
{
...
@@ -52,6 +51,7 @@ export default {
...
@@ -52,6 +51,7 @@ export default {
}
}
});
});
}
}
this
.
$emit
(
"on-change"
,
event
);
},
},
getCodes
(
e
)
{
getCodes
(
e
)
{
let
url
=
`
${
PlanUrl
}
/orderproductcode/getbyorderid`
;
let
url
=
`
${
PlanUrl
}
/orderproductcode/getbyorderid`
;
...
...
pages/produce/api.js
View file @
f35ec95d
...
@@ -7,4 +7,9 @@ export default {
...
@@ -7,4 +7,9 @@ export default {
getCardList
(
params
)
{
getCardList
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutenew/list`
,
params
);
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutenew/list`
,
params
);
},
},
//过程质量填报表
getentryqcrecordlist_new
(
params
)
{
return
Api
.
get
(
`
${
PlanUrl
}
orderexecutequalityrecord/getentryqcrecordlist_new`
,
params
);
},
}
}
pages/produce/execute/components/functional.vue
View file @
f35ec95d
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
},
},
methods
:
{
methods
:
{
gnFunto
(
number
,
type
)
{
gnFunto
(
number
,
type
)
{
alert
(
"a"
+
this
.
orderId
)
//
alert("a"+this.orderId)
this
.
gnFlag
=
number
;
this
.
gnFlag
=
number
;
this
.
$emit
(
"changeTitle"
,
number
,
type
,
this
.
orderId
);
this
.
$emit
(
"changeTitle"
,
number
,
type
,
this
.
orderId
);
}
}
...
...
pages/produce/execute/datafilling/entryrecorddata.vue
0 → 100644
View file @
f35ec95d
<
template
>
<div
class=
"new_box"
>
<div
>
<Button
v-if=
"isedit"
style=
" margin-left:10px"
type=
"primary"
@
click=
"handleAdd"
>
添加
</Button>
<Table
class=
"tableCommon"
stripe
ref=
"table"
border
:columns=
"moviecolumn"
:data=
"moviedata"
>
<template
slot-scope=
"
{ row, index }" slot="data_content1">
<Input
type=
"text"
v-model=
"data_content1"
v-if=
"editIndex === index"
/>
<span
v-else
>
{{
row
.
data_content1
}}
</span>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"data_content2"
>
<Input
type=
"text"
v-model=
"data_content2"
v-if=
"editIndex === index"
/>
<span
v-else
>
{{
row
.
data_content2
}}
</span>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"data_content3"
>
<Input
type=
"text"
v-model=
"data_content3"
v-if=
"editIndex === index"
/>
<span
v-else
>
{{
row
.
data_content3
}}
</span>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"action"
>
<div
v-if=
"editIndex === index"
>
<Button
@
click=
"handleSave(index)"
>
保存
</Button>
<Button
@
click=
"handlecancel(row, index)"
>
取消
</Button>
</div>
<div
v-else
>
<template
v-if=
"isedit"
>
<Button
class=
"pl10"
@
click=
"handleEdit(row, index)"
>
编辑
</Button>
<Button
@
click=
"handledel(row, index)"
>
删除
</Button>
</
template
>
</div>
</template>
</Table>
</div>
</div>
</template>
<
script
>
import
service
from
'@/plugins/request'
import
QS
from
'querystring'
export
default
{
name
:
'entryrecorddata'
,
components
:
{},
data
()
{
return
{
datasearch
:
{
ids
:
0
,
MaxResultCount
:
10
,
SkipCount
:
0
},
isedit
:
true
,
editIndex
:
-
1
,
isadd
:
false
,
newModel
:
false
,
ids
:
[],
data_content1
:
''
,
data_content2
:
''
,
data_content3
:
''
,
datafrom
:
{
id
:
0
,
record_id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
order_id
:
''
,
qc_card_id
:
0
,
fill_in_user_type
:
0
,
data_type
:
4
,
data_content1
:
''
,
data_content2
:
''
,
data_content3
:
''
,
data_content4
:
''
,
product_code
:
''
,
board_code
:
''
},
moviedata
:
[],
moviecolumn
:
[
// { title: '', key: 'organizType1', type: 'expand',width:'60'},
{
title
:
'序号'
,
type
:
'index'
,
width
:
'100'
,
align
:
'center'
},
{
title
:
'名称'
,
slot
:
'data_content1'
,
key
:
'data_content1'
},
{
title
:
'值'
,
slot
:
'data_content2'
,
key
:
'data_content2'
},
{
title
:
'备注'
,
slot
:
'data_content3'
,
key
:
'data_content3'
},
{
title
:
'操作'
,
slot
:
'action'
,
align
:
'center'
,
width
:
'201'
}
]
}
},
mounted
()
{},
watch
:
{},
methods
:
{
loadpage
(
params
,
fill_in_user_type
,
product_code
,
board_code
,
isedit
)
{
this
.
isedit
=
isedit
;
(
this
.
datafrom
.
dispatch_id
=
params
.
dispatch_id
),
(
this
.
datafrom
.
execute_id
=
params
.
execute_id
),
(
this
.
datafrom
.
order_id
=
params
.
order_id
),
(
this
.
datafrom
.
qc_card_id
=
params
.
qc_card_id
),
(
this
.
datafrom
.
fill_in_user_type
=
fill_in_user_type
),
(
this
.
datafrom
.
data_type
=
4
)
this
.
ids
=
[]
if
(
fill_in_user_type
==
1
&&
params
.
selfchecklist
!=
null
&&
params
.
selfchecklist
.
fill_in_content
!=
null
&&
params
.
selfchecklist
.
fill_in_content
!=
''
)
{
this
.
ids
=
params
.
selfchecklist
.
fill_in_content
.
split
(
','
)
this
.
datafrom
.
record_id
=
params
.
selfchecklist
.
record_id
==
null
?
0
:
params
.
selfchecklist
.
record_id
}
else
if
(
fill_in_user_type
==
2
&&
params
.
mutualchecklist
!=
null
&&
params
.
mutualchecklist
.
fill_in_content
!=
null
&&
params
.
mutualchecklist
.
fill_in_content
!=
''
)
{
this
.
ids
=
params
.
mutualchecklist
.
fill_in_content
.
split
(
','
)
this
.
datafrom
.
record_id
=
params
.
mutualchecklist
.
record_id
==
null
?
0
:
params
.
mutualchecklist
.
record_id
}
else
if
(
fill_in_user_type
==
3
&&
params
.
seizurechecklist
!=
null
&&
params
.
seizurechecklist
.
fill_in_content
!=
null
&&
params
.
seizurechecklist
.
fill_in_content
!=
''
)
{
this
.
ids
=
params
.
seizurechecklist
.
fill_in_content
.
split
(
','
)
this
.
datafrom
.
record_id
=
params
.
seizurechecklist
.
record_id
==
null
?
0
:
params
.
seizurechecklist
.
record_id
}
this
.
datafrom
.
product_code
=
product_code
this
.
datafrom
.
board_code
=
board_code
this
.
loaddata
()
},
loaddata
()
{
this
.
moviedata
=
[]
this
.
datasearch
.
ids
=
this
.
ids
.
join
(
','
)
var
url
=
`
${
PlanUrl
}
/orderexecutequalitydata/getlist?`
+
QS
.
stringify
(
this
.
datasearch
)
service
.
get
(
`
${
url
}
`
).
then
((
response
)
=>
{
if
(
response
.
result
!=
null
)
{
this
.
moviedata
=
response
.
result
}
})
},
handlecancel
(
row
,
index
)
{
this
.
editIndex
=
-
1
this
.
isadd
=
false
if
(
row
.
isnewadd
)
{
this
.
data01
.
splice
(
index
,
1
)
}
},
handleAdd
()
{
if
(
this
.
isadd
==
false
)
{
let
row
=
{
id
:
0
,
record_id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
order_id
:
''
,
qc_card_id
:
0
,
fill_in_user_type
:
0
,
data_type
:
0
,
data_content1
:
''
,
data_content2
:
''
,
data_content3
:
''
,
data_content4
:
''
,
product_code
:
''
,
board_code
:
''
,
isnewadd
:
true
}
;(
this
.
data_content1
=
''
),
(
this
.
data_content2
=
''
),
(
this
.
data_content3
=
''
),
(
this
.
isadd
=
true
)
this
.
moviedata
.
push
(
row
)
this
.
editIndex
=
this
.
moviedata
.
length
-
1
}
else
{
let
lastindex
=
this
.
moviedata
.
length
-
1
this
.
data_content1
=
this
.
moviedata
[
lastindex
].
data_content1
this
.
data_content2
=
this
.
moviedata
[
lastindex
].
data_content2
this
.
data_content3
=
this
.
moviedata
[
lastindex
].
data_content3
this
.
editIndex
=
lastindex
}
},
handleEdit
(
row
,
index
)
{
this
.
data_content1
=
row
.
data_content1
this
.
data_content2
=
row
.
data_content2
this
.
data_content3
=
row
.
data_content3
this
.
editIndex
=
index
},
handleSave
(
index
)
{
this
.
datafrom
.
data_content1
=
this
.
data_content1
this
.
datafrom
.
data_content2
=
this
.
data_content2
this
.
datafrom
.
data_content3
=
this
.
data_content3
this
.
datafrom
.
id
=
this
.
moviedata
[
index
].
id
this
.
ok
(
index
)
if
(
this
.
editIndex
==
this
.
moviedata
.
length
-
1
)
{
this
.
isadd
=
false
this
.
moviedata
[
index
].
isnewadd
=
false
}
this
.
editIndex
=
-
1
},
ok
(
index
)
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalitydata/createorupdate`
service
.
post
(
`
${
url
}
`
,
{
OrderExecuteQualityData
:
this
.
datafrom
}
)
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
ids
.
push
(
response
.
result
.
id
)
this
.
moviedata
.
splice
(
index
,
1
)
this
.
moviedata
.
push
(
response
.
result
)
this
.
cleardata
()
this
.
$emit
(
'binddataid'
,
this
.
datafrom
.
qc_card_id
,
this
.
datafrom
.
fill_in_user_type
,
this
.
ids
.
join
(
','
),
true
)
//this.loaddata()
}
})
.
catch
((
error
)
=>
{
this
.
$Message
.
error
(
'保存失败'
)
})
},
cancel
()
{
this
.
cleardata
()
},
cleardata
()
{
this
.
datafrom
.
id
=
0
this
.
datafrom
.
data_content1
=
''
this
.
datafrom
.
data_content2
=
''
this
.
datafrom
.
data_content3
=
''
},
handledel
(
row
,
index
)
{
let
id
=
row
.
id
if
(
id
==
0
)
{
this
.
moviedata
.
splice
(
index
,
1
)
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要删除当前行?'
,
onOk
:
()
=>
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalitydata/delete?id=`
+
row
.
id
+
'&record_id='
+
row
.
record_id
service
.
delete
(
`
${
url
}
`
)
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'删除成功'
)
this
.
ids
.
splice
(
index
,
1
)
this
.
moviedata
.
splice
(
index
,
1
)
// this.loaddata()
this
.
$emit
(
'binddataid'
,
this
.
datafrom
.
qc_card_id
,
this
.
datafrom
.
fill_in_user_type
,
this
.
ids
.
join
(
','
)
)
}
else
{
this
.
$Message
.
error
(
'删除失败'
)
}
})
.
catch
((
error
)
=>
{
this
.
$Message
.
error
(
'删除失败'
)
})
},
onCancel
:
()
=>
{}
})
}
}
}
}
</
script
>
\ No newline at end of file
pages/produce/execute/datafilling/index.vue
View file @
f35ec95d
...
@@ -4,37 +4,136 @@
...
@@ -4,37 +4,136 @@
<div
class=
"data-title"
>
<div
class=
"data-title"
>
<span
class=
"ml20"
>
产品号
</span>
<span
class=
"ml20"
>
产品号
</span>
<ProductNumberSelect
<ProductNumberSelect
v-model=
"product
SerialNumber
"
v-model=
"product
_ID
"
:eid=
"orderId"
:eid=
"
row.
orderId"
ref=
"codes"
ref=
"codes"
@
on-change=
"change"
class=
"select-produt-name"
class=
"select-produt-name"
/>
/>
<template
v-if=
"datasearch.isMain!=1"
>
<span
class=
"ml20"
>
汇报板次
</span>
<Select
@
on-change=
"boardonchange"
v-model=
"board_ID"
class=
"w200"
>
<Option
v-for=
"item in board_List"
:value=
"item.boardNumber"
:key=
"item.index"
>
{{
item
.
boardNumber
}}
</Option>
</Select>
</
template
>
<Button
type=
"primary"
@
click=
"QcCardChecker(1)"
class=
"title_btn ml10"
>
自检
</Button>
<Button
type=
"primary"
@
click=
"QcCardChecker(1)"
class=
"title_btn ml10"
>
自检
</Button>
<Button
type=
"primary"
:disabled=
"ishavhj"
@
click=
"QcCardChecker(2)"
class=
"title_btn ml10"
>
互检
</Button>
<Button
type=
"primary"
:disabled=
"ishavhj"
@
click=
"QcCardChecker(2)"
class=
"title_btn ml10"
>
互检
</Button>
<Button
type=
"primary"
@
click=
"SendCheck()"
class=
"title_btn ml10"
>
送检
</Button>
<Button
type=
"primary"
@
click=
"SendCheck()"
class=
"title_btn ml10"
>
送检
</Button>
</div>
</div>
<div
class=
"table-i"
>
<div
class=
"table-i"
>
<Table
border
:columns=
"columns12"
:data=
"data6"
>
<Table
border
:columns=
"columns12"
:data=
"recorddata"
>
<!-- 自检 -->
<
template
slot-scope=
"{ row,index }"
slot=
"selffillin"
>
<
template
slot-scope=
"{ row,index }"
slot=
"selffillin"
>
<template
v-if=
"row.selfchecklist.fillinstatus==0||productobj.productstatus==4"
>
<Checkbox
v-model=
"row.selfchecklist.checkstatus"
@
on-change=
"selfchecklistcheck(index,$event)"
v-if=
"row.fillintype == 1"
></Checkbox>
<Input
<Input
v-model=
"row.name"
v-model=
"row.selfchecklist.fill_in_content"
v-else-if=
"row.fillintype == 2"
placeholder=
"请输入..."
placeholder=
"请输入..."
@
on-blur=
"selfchecklistinput(index,$event)"
@
on-blur=
"selfchecklistinput(index,$event)"
></Input>
></Input>
<!--
<op
<template
v-else-if=
"row.fillintype == 4"
>
<op
class=
"view"
class=
"view"
@
click=
"showrecordData(row,1,true)"
@
click=
"showrecordData(row,1,true)"
v-if=
"row.selfchecklist.fill_in_content==''"
v-if=
"row.selfchecklist.fill_in_content==''"
v-text=
"row.fillintype_str"
v-text=
"row.fillintype_str"
></op>
></op>
<op
class=
"view"
@
click=
"showrecordData(row,1,true)"
v-else
v-text=
"look"
></op>
-->
<op
class=
"view"
@
click=
"showrecordData(row,1,true)"
v-else
v-text=
"look"
></op>
</
template
>
</template>
<
template
v-else
>
<template
v-if=
"row.fillintype == 1"
>
{{
row
.
selfchecklist
.
user_name
}}
{{
row
.
selfchecklist
.
addTime
}}
</
template
>
<
template
v-else-if=
"row.fillintype ==2"
>
<op
class=
"view"
>
{{
row
.
selfchecklist
.
fill_in_content
}}
</op>
{{
row
.
selfchecklist
.
user_name
}}
{{
row
.
selfchecklist
.
addTime
}}
</
template
>
<
template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,1,false)"
v-text=
"row.selfchecklist.user_name+' '+row.selfchecklist.addTime"
></op>
</
template
>
</
template
>
</template>
</template>
<!--互检-->
<
template
slot-scope=
"{ row,index }"
slot=
"mutualfillin"
>
<
template
slot-scope=
"{ row,index }"
slot=
"mutualfillin"
>
<Button
type=
"primary"
size=
"small"
style=
"margin-right: 5px"
@
click=
"show(index)"
>
View
</Button>
<template
v-if=
"row.check_type==2||row.check_type==4"
>
<Button
type=
"error"
size=
"small"
@
click=
"remove(index)"
>
Delete
</Button>
<!--未填报-->
<template
v-if=
"row.mutualchecklist.fillinstatus==0||productobj.productstatus==4"
>
<!--自检完成-->
<template
v-if=
"productobj.productstatus==2||productobj.productstatus==4"
>
<Checkbox
v-model=
"row.mutualchecklist.checkstatus"
@
on-change=
"mutualchecklistcheck(index,$event)"
v-if=
"row.fillintype == 1"
></Checkbox>
<Input
v-model=
"row.mutualchecklist.fill_in_content"
v-else-if=
"row.fillintype == 2"
placeholder=
"请输入..."
@
on-blur=
"mutualchecklistinput(index,$event)"
></Input>
<template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,2,true)"
v-if=
"row.mutualchecklist.fill_in_content==''"
v-text=
"row.fillintype_str"
></op>
<op
class=
"view"
@
click=
"showrecordData(row,2,true)"
v-else
v-text=
"look"
></op>
</
template
>
</template>
</template>
<
template
v-else
>
<template
v-if=
"row.fillintype == 1"
>
{{
row
.
mutualchecklist
.
user_name
}}
{{
row
.
mutualchecklist
.
addTime
}}
</
template
>
<
template
v-else-if=
"row.fillintype ==2"
>
<op
class=
"view"
>
{{
row
.
mutualchecklist
.
fill_in_content
}}
</op>
{{
row
.
mutualchecklist
.
user_name
}}
{{
row
.
mutualchecklist
.
addTime
}}
</
template
>
<
template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,2,false)"
v-text=
"row.mutualchecklist.user_name+' '+row.mutualchecklist.addTime"
></op>
</
template
>
</template>
</template>
</template>
<!-- 检验员 -->
<
template
slot-scope=
"{ row,index }"
slot=
"seizurefillin"
>
<template
v-if=
"row.check_type==3||row.check_type==4"
>
<template
v-if=
"row.seizurechecklist.fillinstatus==1"
>
<template
v-if=
"row.fillintype == 1"
>
{{
row
.
seizurechecklist
.
user_name
}}
{{
row
.
seizurechecklist
.
addTime
}}
</
template
>
<
template
v-else-if=
"row.fillintype ==2"
>
<op
class=
"view"
>
{{
row
.
seizurechecklist
.
fill_in_content
}}
</op>
{{
row
.
seizurechecklist
.
user_name
}}
{{
row
.
seizurechecklist
.
addTime
}}
</
template
>
<
template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,3,false)"
v-text=
"row.seizurechecklist.user_name+' '+row.seizurechecklist.addTime"
></op>
</
template
>
</template>
</template>
</template>
<
template
slot-scope=
"{ row }"
slot=
"seizurefillin"
>
<div>
{{
row
.
name
}}
</div>
</template>
</template>
</Table>
</Table>
</div>
</div>
...
@@ -56,17 +155,29 @@
...
@@ -56,17 +155,29 @@
>
>
<sendCheck
ref=
"sendCheck"
></sendCheck>
<sendCheck
ref=
"sendCheck"
></sendCheck>
</Modal>
</Modal>
<Modal
v-model=
"entryrecorddataModal"
title=
"数据包列表"
width=
"940"
:footer-hide=
"true"
:mask-closable=
"false"
>
<entryrecorddata
ref=
"entryrecorddata"
@
binddataid=
"binddataid"
></entryrecorddata>
</Modal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
service
from
"@/plugins/request"
;
import
usercard
from
"./usercard.vue"
;
import
usercard
from
"./usercard.vue"
;
import
sendCheck
from
"./sendCheck.vue"
;
import
sendCheck
from
"./sendCheck.vue"
;
import
entryrecorddata
from
"./entryrecorddata.vue"
;
export
default
{
export
default
{
name
:
"starOrder"
,
name
:
"starOrder"
,
props
:
[
"
orderId
"
],
props
:
[
"
row
"
],
components
:
{
components
:
{
usercard
,
usercard
,
sendCheck
sendCheck
,
entryrecorddata
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -74,23 +185,31 @@ export default {
...
@@ -74,23 +185,31 @@ export default {
disabled
:
false
,
disabled
:
false
,
ishavhj
:
false
,
ishavhj
:
false
,
ishavzj
:
true
,
ishavzj
:
true
,
productSerialNumber
:
""
,
board_ID
:
""
,
board_List
:
[],
usercardModal
:
false
,
usercardModal
:
false
,
sendCheckModal
:
false
,
sendCheckModal
:
false
,
entryrecorddataModal
:
false
,
recorddata
:
[],
entryModel
:
{},
look
:
"查看"
,
qc_show_data
:
null
,
//表格列表row
qc_show_fill_in_user_type
:
null
,
//1,2,3;自检,互检,检验员
datasearch
:
{
entryID
:
this
.
row
.
id
,
isMain
:
1
,
productcode
:
""
,
execute_id
:
this
.
row
.
executeId
,
order_id
:
this
.
row
.
orderId
},
columns12
:
[
columns12
:
[
{
title
:
"序号"
,
type
:
"index"
,
width
:
"70"
,
align
:
"center"
},
{
title
:
"序号"
,
type
:
"index"
,
width
:
"70"
,
align
:
"center"
},
{
{
title
:
"参数名称"
,
key
:
"check_params"
},
title
:
"Name"
,
{
title
:
"检验标记"
,
key
:
"check_type_str"
},
slot
:
"name"
{
title
:
"汇报类型"
,
key
:
"fillintype_str"
},
},
{
title
:
"标准指标"
,
key
:
"standard"
},
{
{
title
:
"生产要求"
,
key
:
"production_requirement"
,
tooltip
:
true
},
title
:
"Age"
,
{
title
:
"检测内容"
,
key
:
"check_content"
,
tooltip
:
true
},
key
:
"age"
},
{
title
:
"Address"
,
key
:
"address"
},
{
{
title
:
"操作员"
,
title
:
"操作员"
,
key
:
"fillintype"
,
key
:
"fillintype"
,
...
@@ -159,41 +278,184 @@ export default {
...
@@ -159,41 +278,184 @@ export default {
]);
]);
},
},
slot
:
"seizurefillin"
slot
:
"seizurefillin"
}
],
data6
:
[
{
name
:
"John Brown"
,
age
:
18
,
address
:
"New York No. 1 Lake Park"
},
},
{
{
name
:
"Jim Green
"
,
title
:
"是否拍照
"
,
age
:
24
,
key
:
"isPhotograph"
,
address
:
"London No. 1 Lake Park
"
slot
:
"isPhotograph
"
},
},
{
{
name
:
"Joe Black"
,
title
:
"模板"
,
age
:
30
,
key
:
"qualityTemplate"
,
address
:
"Sydney No. 1 Lake Park"
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"icon_box"
},
},
[
h
(
"A"
,
{
{
name
:
"Jon Snow"
,
attrs
:
{
age
:
26
,
href
:
fileUrlDown
+
params
.
row
.
qualityTemplate
,
address
:
"Ottawa No. 2 Lake Park"
target
:
"_blank"
},
props
:
{},
style
:
{
color
:
"#249E91"
,
marginRight
:
"5px"
,
cursor
:
"pointer"
}
},
params
.
row
.
qualityTemplateName
)
]
);
}
}
}
]
]
};
};
},
},
created
()
{
created
()
{
alert
(
"b"
+
this
.
orderId
);
this
.
datasearch
.
entryID
=
this
.
row
.
id
;
// this.productSerialNumber = this.orderId;
this
.
datasearch
.
isMain
=
1
;
this
.
datasearch
.
productcode
=
this
.
datasearch
.
productcode
;
this
.
datasearch
.
execute_id
=
this
.
row
.
executeId
;
this
.
datasearch
.
order_id
=
this
.
row
.
orderId
;
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
mounted
()
{},
mounted
()
{
this
.
loaddata
();
},
methods
:
{
methods
:
{
loaddata
()
{
// if (
// this.datasearch.productcode == '' ||
// typeof this.datasearch.productcode == 'undefined'
// ) {
// return
// }
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryqcrecordlist_new`
;
service
.
get
(
url
,
this
.
datasearch
).
then
(
response
=>
{
this
.
recorddata
=
response
.
result
;
let
gh
=
this
.
recorddata
.
filter
(
function
(
obj
)
{
return
obj
.
check_type
===
2
;
});
if
(
gh
!=
null
&&
gh
.
length
>
0
)
{
this
.
ishavhj
=
false
;
}
else
{
this
.
ishavhj
=
true
;
}
let
gh1
=
this
.
recorddata
.
filter
(
function
(
obj
)
{
return
obj
.
check_type
===
3
||
obj
.
check_type
===
4
;
});
if
(
gh1
!=
null
&&
gh1
.
length
>
0
)
{
this
.
ishavzj
=
false
;
}
else
{
this
.
ishavzj
=
true
;
}
});
},
change
(
v
)
{
this
.
datasearch
.
productcode
=
v
.
join
(
","
);
this
.
loaddata
();
},
showrecordData
(
params
,
fill_in_user_type
,
isedit
)
{
this
.
qc_show_data
=
params
;
//表格列表row
this
.
qc_show_fill_in_user_type
=
fill_in_user_type
;
//1,2,3;自检,互检,检验员
alert
(
params
.
fillintype
);
if
(
params
.
fillintype
==
3
)
{
//附件页面
this
.
entryrecordfilesModal
=
true
;
this
.
$refs
.
entryrecordfiles
.
loadpage
(
params
,
fill_in_user_type
,
this
.
product_ID
,
this
.
board_ID
,
isedit
);
}
else
if
(
params
.
fillintype
==
4
)
{
//数据包页面
this
.
entryrecorddataModal
=
true
;
this
.
$refs
.
entryrecorddata
.
loadpage
(
params
,
fill_in_user_type
,
this
.
product_ID
,
this
.
board_ID
,
isedit
);
}
},
binddataid
(
qc_card_id
,
fill_in_user_type
,
content
)
{
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
obj
.
qc_card_id
==
qc_card_id
)
{
if
(
fill_in_user_type
==
1
)
{
obj
.
selfchecklist
.
fill_in_content
=
content
;
}
else
if
(
fill_in_user_type
==
2
)
{
obj
.
mutualchecklist
.
fill_in_content
=
content
;
}
else
if
(
fill_in_user_type
==
3
)
{
obj
.
seizurechecklist
.
fill_in_content
=
content
;
}
}
}
},
loadproduct
()
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductcode?entryID=`
+
this
.
datasearch
.
entryID
;
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
this
.
product_List
=
response
.
result
;
this
.
board_List
=
response
.
result
;
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
];
if
(
obj
.
productstatus
==
1
||
obj
.
productstatus
==
2
)
{
if
(
this
.
datasearch
.
isMain
==
1
)
{
this
.
datasearch
.
productcode
=
obj
.
productids
;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
false
;
}
else
{
this
.
datasearch
.
productcode
=
obj
.
boardNumber
;
this
.
board_ID
=
obj
.
boardNumber
;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
true
;
}
this
.
productobj
=
obj
;
break
;
}
if
(
this
.
productobj
==
null
||
this
.
datasearch
.
productcode
==
""
||
typeof
this
.
datasearch
.
productcode
==
"undefined"
)
{
let
obj
=
this
.
product_List
[
0
];
if
(
this
.
datasearch
.
isMain
==
1
)
{
this
.
datasearch
.
productcode
=
obj
.
productids
;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
false
;
}
else
{
this
.
datasearch
.
productcode
=
obj
.
boardNumber
;
this
.
board_ID
=
obj
.
boardNumber
;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
true
;
}
this
.
productobj
=
obj
;
}
}
this
.
loaddata
();
});
},
show
(
index
)
{
show
(
index
)
{
this
.
$Modal
.
info
({
this
.
$Modal
.
info
({
title
:
"User Info"
,
title
:
"User Info"
,
...
@@ -208,12 +470,17 @@ export default {
...
@@ -208,12 +470,17 @@ export default {
// this.entity.productQuantity = e.length + ''
// this.entity.productQuantity = e.length + ''
// },
// },
QcCardChecker
(
fill_in_user_type
)
{
QcCardChecker
(
fill_in_user_type
)
{
console
.
log
(
this
.
$refs
.
codes
.
dic
);
this
.
$refs
.
usercard
.
product_List
=
this
.
$refs
.
codes
.
dic
;
alert
(
fill_in_user_type
);
this
.
usercardModal
=
true
;
let
fillModel
=
{
let
fillModel
=
{
fill_in_user_type
:
fill_in_user_type
,
fill_in_user_type
:
fill_in_user_type
,
productisabled
:
this
.
productisabled
,
productisabled
:
this
.
productisabled
,
product_ID
:
this
.
product_ID
,
product_ID
:
this
.
product_ID
,
board_ID
:
this
.
board_ID
,
board_ID
:
this
.
board_ID
,
product_List
:
this
.
product_List
,
product_List
:
this
.
$refs
.
codes
.
dic
,
board_List
:
this
.
board_List
board_List
:
this
.
board_List
};
};
let
recordList
=
[];
let
recordList
=
[];
...
@@ -265,7 +532,7 @@ export default {
...
@@ -265,7 +532,7 @@ export default {
this
.
$Message
.
success
(
"填报项为空,请进行填报"
);
this
.
$Message
.
success
(
"填报项为空,请进行填报"
);
return
;
return
;
}
}
this
.
usercardModal
=
true
;
alert
(
20
)
;
this
.
$refs
.
usercard
.
loadentry
(
this
.
entryModel
,
fillModel
,
recordList
);
this
.
$refs
.
usercard
.
loadentry
(
this
.
entryModel
,
fillModel
,
recordList
);
},
},
SendCheck
()
{
SendCheck
()
{
...
...
pages/produce/execute/datafilling/usercard.vue
View file @
f35ec95d
...
@@ -29,9 +29,9 @@
...
@@ -29,9 +29,9 @@
>
>
<Option
<Option
v-for=
"item in product_List"
v-for=
"item in product_List"
:value=
"item.
productids
"
:value=
"item.
value
"
:key=
"item.index"
:key=
"item.index"
>
{{ item.
productcodes
}}
</Option>
>
{{ item.
label
}}
</Option>
</Select>
</Select>
</Col>
</Col>
</Row>
</Row>
...
@@ -49,58 +49,56 @@
...
@@ -49,58 +49,56 @@
</Form>
</Form>
</template>
</template>
<
script
>
<
script
>
import
service
from
'@/plugins/request'
import
service
from
"@/plugins/request"
;
export
default
{
export
default
{
name
:
'usercard'
,
name
:
"usercard"
,
components
:
{},
components
:
{},
data
()
{
data
()
{
const
validateCarNo
=
(
rule
,
value
,
callback
)
=>
{
const
validateCarNo
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'员工编号不能为空'
))
return
callback
(
new
Error
(
"员工编号不能为空"
));
}
}
var
params
=
{
var
params
=
{
conditions
:
[
conditions
:
[
{
{
fieldName
:
'cardNo'
,
fieldName
:
"cardNo"
,
fieldValue
:
value
,
fieldValue
:
value
,
conditionalType
:
'Equal'
conditionalType
:
"Equal"
}
}
],
],
pageSize
:
3
pageSize
:
3
}
}
;
service
service
.
post
(
`
${
systemUrl
}
/user/list`
,
params
).
then
(
response
=>
{
.
post
(
`
${
systemUrl
}
/user/list`
,
params
)
.
then
((
response
)
=>
{
if
(
response
.
result
.
length
>
0
)
{
if
(
response
.
result
.
length
>
0
)
{
this
.
user
.
user_name
=
response
.
result
[
0
].
userName
this
.
user
.
user_name
=
response
.
result
[
0
].
userName
;
this
.
user
.
user_id
=
response
.
result
[
0
].
id
this
.
user
.
user_id
=
response
.
result
[
0
].
id
;
callback
()
callback
();
}
else
{
}
else
{
this
.
user
.
cardno
=
''
this
.
user
.
cardno
=
""
;
return
callback
(
new
Error
(
'员工编号不存在'
))
return
callback
(
new
Error
(
"员工编号不存在"
));
}
})
}
}
});
};
return
{
return
{
disabled
:
false
,
disabled
:
false
,
productdisabled
:
false
,
productdisabled
:
false
,
isCurrentUser
:
false
,
isCurrentUser
:
false
,
isall
:
false
,
isall
:
false
,
width1
:
'400'
,
width1
:
"400"
,
user
:
{
user
:
{
dispatch_id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
execute_id
:
0
,
order_id
:
''
,
order_id
:
""
,
routingHeaderId
:
0
,
routingHeaderId
:
0
,
routingDetailId
:
0
,
routingDetailId
:
0
,
product_code
:
[],
product_code
:
[],
board_code
:
[],
board_code
:
[],
cardno
:
''
,
cardno
:
""
,
user_id
:
''
,
user_id
:
""
,
user_name
:
''
,
user_name
:
""
,
remarks
:
''
,
remarks
:
""
,
fill_in_user_type
:
0
,
fill_in_user_type
:
0
,
reportdate
:
null
,
reportdate
:
null
,
isreplace
:
0
isreplace
:
0
...
@@ -114,124 +112,124 @@ export default {
...
@@ -114,124 +112,124 @@ export default {
board_List
:
[],
board_List
:
[],
rules
:
{
rules
:
{
cardno
:
[
cardno
:
[
{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
},
{
validator
:
validateCarNo
,
trigger
:
'blur'
}
{
validator
:
validateCarNo
,
trigger
:
"blur"
}
]
]
}
}
}
}
;
},
},
mounted
()
{},
mounted
()
{},
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
let
state
=
true
let
state
=
true
;
if
(
this
.
product_ID
.
length
==
0
)
{
if
(
this
.
product_ID
.
length
==
0
)
{
state
=
false
state
=
false
;
this
.
$Message
.
error
(
'请选择要送检的产品'
)
this
.
$Message
.
error
(
"请选择要送检的产品"
);
return
return
;
}
}
this
.
user
.
product_code
=
this
.
product_ID
.
join
(
','
)
this
.
user
.
product_code
=
this
.
product_ID
.
join
(
","
);
this
.
user
.
board_code
=
this
.
board_ID
.
join
(
','
)
this
.
user
.
board_code
=
this
.
board_ID
.
join
(
","
);
if
(
state
)
{
if
(
state
)
{
this
.
$refs
.
form
.
validate
(
(
v
)
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/qccardchecker`
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/qccardchecker`
;
service
service
.
post
(
.
post
(
`
${
url
}
`
,
{
`
${
url
}
`
,
{
user
:
this
.
user
,
user
:
this
.
user
,
card
:
this
.
recordList
card
:
this
.
recordList
}
})
)
.
then
(
response
=>
{
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$Message
.
success
(
"保存成功"
);
this
.
$parent
.
$parent
.
loadproduct
()
this
.
$parent
.
$parent
.
loadproduct
()
;
this
.
$parent
.
$parent
.
usercardModal
=
false
this
.
$parent
.
$parent
.
usercardModal
=
false
;
}
}
})
})
.
catch
(
(
error
)
=>
{
.
catch
(
error
=>
{
this
.
$Message
.
error
(
'保存失败'
)
this
.
$Message
.
error
(
"保存失败"
);
})
})
;
}
}
})
})
;
}
}
},
},
handleClose
()
{},
handleClose
()
{},
loadentry
(
entryModel
,
fillModel
,
recordList
)
{
loadentry
(
entryModel
,
fillModel
,
recordList
)
{
this
.
user
.
dispatch_id
=
entryModel
.
id
alert
(
9
)
this
.
user
.
execute_id
=
entryModel
.
executeId
this
.
user
.
dispatch_id
=
entryModel
.
id
;
this
.
user
.
order_id
=
entryModel
.
order_id
this
.
user
.
execute_id
=
entryModel
.
executeId
;
this
.
user
.
routingHeaderId
=
entryModel
.
routingHeaderId
this
.
user
.
order_id
=
entryModel
.
order_id
;
this
.
user
.
routingDetailId
=
entryModel
.
routingDetailId
this
.
user
.
routingHeaderId
=
entryModel
.
routingHeaderId
;
this
.
user
.
routingDetailId
=
entryModel
.
routingDetailId
;
this
.
user
.
fill_in_user_type
=
fillModel
.
fill_in_user_type
this
.
user
.
cardno
=
''
this
.
user
.
user_id
=
''
this
.
user
.
user_name
=
''
this
.
product_code
=
''
this
.
board_code
=
''
this
.
isCurrentUser
=
false
this
.
isMain
=
entryModel
.
isMain
this
.
product_ID
=
[]
this
.
board_ID
=
[]
this
.
productisabled
=
fillModel
.
productisabled
this
.
user
.
fill_in_user_type
=
fillModel
.
fill_in_user_type
;
this
.
user
.
cardno
=
""
;
this
.
user
.
user_id
=
""
;
this
.
user
.
user_name
=
""
;
this
.
product_code
=
""
;
this
.
board_code
=
""
;
this
.
isCurrentUser
=
false
;
this
.
isMain
=
entryModel
.
isMain
;
this
.
product_ID
=
[];
this
.
board_ID
=
[];
this
.
productisabled
=
fillModel
.
productisabled
;
this
.
product_List
=
fillModel
.
product_List
;
console
.
log
(
this
.
product_List
)
if
(
this
.
isMain
==
1
)
{
if
(
this
.
isMain
==
1
)
{
this
.
productdisabled
=
false
this
.
productdisabled
=
false
;
}
else
{
}
else
{
this
.
productdisabled
=
true
this
.
productdisabled
=
true
;
}
}
this
.
product_ID
.
push
(
fillModel
.
product_ID
)
this
.
product_ID
.
push
(
fillModel
.
product_ID
)
;
this
.
board_ID
.
push
(
fillModel
.
board_ID
)
this
.
board_ID
.
push
(
fillModel
.
board_ID
)
;
if
(
if
(
fillModel
.
fill_in_user_type
==
1
||
fillModel
.
fill_in_user_type
==
1
||
fillModel
.
fill_in_user_type
==
3
fillModel
.
fill_in_user_type
==
3
)
{
)
{
this
.
product_List
=
fillModel
.
product_List
this
.
board_List
=
fillModel
.
board_List
;
this
.
board_List
=
fillModel
.
board_List
}
else
{
}
else
{
this
.
board_List
=
[]
this
.
board_List
=
[]
;
this
.
product_List
=
[]
this
.
product_List
=
[]
;
for
(
let
i
=
0
;
i
<
fillModel
.
product_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
fillModel
.
product_List
.
length
;
i
++
)
{
let
obj
=
fillModel
.
product_List
[
i
]
let
obj
=
fillModel
.
product_List
[
i
]
;
if
(
obj
.
productstatus
==
2
||
obj
.
productstatus
==
4
)
{
if
(
obj
.
productstatus
==
2
||
obj
.
productstatus
==
4
)
{
this
.
board_List
.
push
(
obj
)
this
.
board_List
.
push
(
obj
)
;
this
.
product_List
.
push
(
obj
)
this
.
product_List
.
push
(
obj
)
;
}
}
}
}
}
}
this
.
recordList
=
recordList
this
.
recordList
=
recordList
;
},
},
peoductAllOnchange
(
e
)
{
peoductAllOnchange
(
e
)
{
if
(
e
)
{
if
(
e
)
{
if
(
!
this
.
isMain
)
{
if
(
!
this
.
isMain
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
let
obj
=
this
.
board_List
[
i
]
;
this
.
board_ID
.
push
(
obj
.
boardNumber
)
this
.
board_ID
.
push
(
obj
.
boardNumber
)
;
}
}
}
}
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
]
let
obj
=
this
.
product_List
[
i
]
;
this
.
product_ID
.
push
(
obj
.
productids
)
this
.
product_ID
.
push
(
obj
.
productids
)
;
}
}
}
else
{
}
else
{
this
.
product_ID
=
[]
this
.
product_ID
=
[]
;
this
.
board_ID
=
[]
this
.
board_ID
=
[]
;
}
}
},
},
productonchange
(
e
)
{},
productonchange
(
e
)
{
},
boardonchange
(
e
)
{
boardonchange
(
e
)
{
this
.
product_ID
=
[]
this
.
product_ID
=
[]
;
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
let
obj
=
this
.
board_List
[
i
]
;
for
(
let
j
=
0
;
j
<
e
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
e
.
length
;
j
++
)
{
if
(
obj
.
boardNumber
==
e
[
j
])
{
if
(
obj
.
boardNumber
==
e
[
j
])
{
this
.
product_ID
.
push
(
obj
.
productids
)
this
.
product_ID
.
push
(
obj
.
productids
)
;
}
}
}
}
}
}
...
@@ -241,13 +239,13 @@ export default {
...
@@ -241,13 +239,13 @@ export default {
console
.
log
(
this
.
$store
.
state
.
admin
.
user
.
info
);
console
.
log
(
this
.
$store
.
state
.
admin
.
user
.
info
);
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
this
.
user
.
cardno
=
userInfo
.
cardNo
this
.
user
.
cardno
=
userInfo
.
cardNo
;
this
.
user
.
user_name
=
userInfo
.
name
this
.
user
.
user_name
=
userInfo
.
name
;
this
.
user
.
user_id
=
userInfo
.
id
this
.
user
.
user_id
=
userInfo
.
id
;
}
else
{
}
else
{
this
.
user
.
cardno
=
''
this
.
user
.
cardno
=
""
;
}
}
}
}
}
}
}
}
;
</
script
>
</
script
>
\ No newline at end of file
pages/produce/execute/index.vue
View file @
f35ec95d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<span
class=
"fl"
>
{{
orderTitle
}}
</span>
<span
class=
"fl"
>
{{
orderTitle
}}
</span>
<div>
工单编号: 12001011
</div>
<div>
工单编号: 12001011
</div>
</div>
</div>
<component
:is=
"detail"
:gdid=
"gdId"
:
orderId=
"orderId
"
/>
<component
:is=
"detail"
:gdid=
"gdId"
:
row=
"row
"
/>
<a
class=
"gd_list"
@
click=
"orderlistMode = true"
>
工单列表
</a>
<a
class=
"gd_list"
@
click=
"orderlistMode = true"
>
工单列表
</a>
<a
class=
"gn_area"
@
click=
"functionalMode = true"
>
功能区
</a>
<a
class=
"gn_area"
@
click=
"functionalMode = true"
>
功能区
</a>
<!-- 工单列表 -->
<!-- 工单列表 -->
...
@@ -81,6 +81,7 @@ export default {
...
@@ -81,6 +81,7 @@ export default {
detail
:
null
,
detail
:
null
,
odermodel
:
-
9
,
odermodel
:
-
9
,
orderId
:
null
,
orderId
:
null
,
row
:{},
oderList
:
[
oderList
:
[
{
{
value
:
-
9
,
value
:
-
9
,
...
@@ -121,7 +122,8 @@ export default {
...
@@ -121,7 +122,8 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
orderId
=
this
.
$route
.
query
.
orderId
;
// this.orderId = this.$route.query.orderId;
this
.
row
=
this
.
$route
.
query
.
row
;
this
.
detail
=
()
=>
import
(
"./starOrder/index"
);
this
.
detail
=
()
=>
import
(
"./starOrder/index"
);
},
},
...
...
pages/produce/orderlist.vue
View file @
f35ec95d
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
</
template
>
</
template
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<div
class=
"body"
@
click=
"toExecute(row.id,row.orderId)"
>
<div
class=
"body"
@
click=
"toExecute(row.id,row.orderId
,row
)"
>
<Row
class=
"title-i"
>
<Row
class=
"title-i"
>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
productName
}}
</Col>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
productName
}}
</Col>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
mesCode
}}
</Col>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
mesCode
}}
</Col>
...
@@ -176,7 +176,7 @@ export default {
...
@@ -176,7 +176,7 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"edit"
},
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
toExecute
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
toExecute
(
params
.
row
.
id
,
row
)
}
},
},
"查看"
"查看"
)
)
...
@@ -209,11 +209,11 @@ export default {
...
@@ -209,11 +209,11 @@ export default {
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
toExecute
(
id
,
orderId
)
{
toExecute
(
id
,
orderId
,
row
)
{
//跳转到对应操作页面 获取id:this.$route.query.id
//跳转到对应操作页面 获取id:this.$route.query.id
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/produce/execute"
,
path
:
"/produce/execute"
,
query
:
{
id
:
id
,
orderId
:
orderId
}
query
:
{
id
:
id
,
orderId
:
orderId
,
row
}
});
});
},
},
tdStyle
(
val
)
{
tdStyle
(
val
)
{
...
...
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