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
f686f2cd
Commit
f686f2cd
authored
Jun 19, 2020
by
周远喜
Committed by
佟礼
Jun 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检验填报
parent
57c55ca1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
879 additions
and
3 deletions
+879
-3
functional.vue
pages/produce/execute/components/functional.vue
+5
-0
backCheck.vue
pages/produce/execute/datafilling/backCheck.vue
+137
-0
check.vue
pages/produce/execute/datafilling/check.vue
+731
-0
sendCheck.vue
pages/produce/execute/datafilling/sendCheck.vue
+0
-1
usercard.vue
pages/produce/execute/datafilling/usercard.vue
+1
-1
index.vue
pages/produce/execute/index.vue
+4
-1
index.vue
pages/produce/execute/testdata/index.vue
+1
-0
No files found.
pages/produce/execute/components/functional.vue
View file @
f686f2cd
...
@@ -56,6 +56,11 @@
...
@@ -56,6 +56,11 @@
<a
@
click=
"gnFunto(8,'数据填报')"
:class=
"
{active:gnFlag == 8}">
<a
@
click=
"gnFunto(8,'数据填报')"
:class=
"
{active:gnFlag == 8}">
<img
src=
"@/assets/imgicon/execute/ex09.png"
alt
/>
数据填报
<img
src=
"@/assets/imgicon/execute/ex09.png"
alt
/>
数据填报
</a>
</a>
</li>
<li>
<a
@
click=
"gnFunto(10,'质量检验')"
:class=
"
{active:gnFlag == 8}">
<img
src=
"@/assets/imgicon/execute/ex09.png"
alt
/>
质量检验
</a>
</li>
</li>
<li>
<li>
<a
@
click=
"gnFunto(9,'测试数据')"
:class=
"
{active:gnFlag == 9}">
<a
@
click=
"gnFunto(9,'测试数据')"
:class=
"
{active:gnFlag == 9}">
...
...
pages/produce/execute/datafilling/backCheck.vue
0 → 100644
View file @
f686f2cd
<
template
>
<Form
ref=
"form"
:model=
"mod"
:label-width=
"100"
>
<Row
class=
"rowTitle100"
>
<Col
:span=
"12"
>
<span
class=
"ml20"
>
产品号
</span>
<Select
multiple
@
on-change=
"productonchange"
v-model=
"product_ID"
class=
"w200"
>
<Option
v-for=
"item in product_List"
:value=
"item.productids"
:key=
"item.index"
>
{{
item
.
productcodes
}}
</Option>
</Select>
</Col>
</Row>
<Row
class=
"rowTitle100"
>
<Col
:span=
"12"
>
<FormItem
label=
"备注"
>
<Input
v-model=
"mod.check_Result"
type=
"textarea"
:rows=
"4"
maxlength=
"100"
show-word-limit
></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
确定
</Button>
</FormItem>
</Form>
</
template
>
<
script
>
import
service
from
'@/plugins/request'
export
default
{
name
:
'backCheck'
,
components
:
{},
data
()
{
return
{
disabled
:
false
,
isCurrentUser
:
false
,
mod
:
{
id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
order_id
:
''
,
routingHeaderId
:
0
,
routingDetailId
:
0
,
product_code
:
''
,
board_code
:
''
,
checkerIds
:
''
,
checkerNames
:
''
,
check_Status
:
0
,
check_Result
:
''
,
checker
:
0
,
checkName
:
''
,
check_time
:
null
},
recordList
:
[],
isMain
:
1
,
productisabled
:
false
,
product_ID
:
[],
board_ID
:
[],
product_List
:
[],
board_List
:
[]
}
},
mounted
()
{},
watch
:
{},
methods
:
{
handleSubmit
()
{
let
state
=
true
if
(
this
.
product_ID
.
length
==
0
)
{
state
=
false
this
.
$Message
.
error
(
'请选择要打回的产品'
)
return
}
this
.
mod
.
product_code
=
this
.
product_ID
.
join
(
','
)
this
.
mod
.
board_code
=
this
.
board_ID
.
join
(
','
)
if
(
state
)
{
var
url
=
`
${
PlanUrl
}
/ordercheckresult/savecheckresult`
service
.
post
(
`
${
url
}
`
,
this
.
mod
)
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'操作成功'
)
this
.
$parent
.
$parent
.
loadproduct
()
this
.
$parent
.
$parent
.
backCheckModal
=
false
}
})
.
catch
((
error
)
=>
{
this
.
$Message
.
error
(
'保存失败'
)
})
}
},
handleClose
()
{},
loadentry
(
entryModel
,
fillModel
)
{
this
.
mod
.
dispatch_id
=
entryModel
.
id
this
.
mod
.
execute_id
=
entryModel
.
executeId
this
.
mod
.
order_id
=
entryModel
.
order_id
this
.
mod
.
routingHeaderId
=
entryModel
.
routingHeaderId
this
.
mod
.
routingDetailId
=
entryModel
.
routingDetailId
this
.
mod
.
checkName
=
this
.
$store
.
state
.
userInfo
.
userName
this
.
mod
.
check_Status
=
3
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_ID
.
push
(
fillModel
.
product_ID
)
this
.
board_ID
.
push
(
fillModel
.
board_ID
)
this
.
product_List
=
fillModel
.
product_List
this
.
board_List
=
fillModel
.
board_List
},
productonchange
(
e
)
{},
boardonchange
(
e
)
{
this
.
product_ID
=
[]
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
for
(
let
j
=
0
;
j
<
e
.
length
;
j
++
)
{
if
(
obj
.
boardNumber
==
e
[
j
])
{
this
.
product_ID
.
push
(
obj
.
productids
)
}
}
}
}
}
}
</
script
>
\ No newline at end of file
pages/produce/execute/datafilling/check.vue
0 → 100644
View file @
f686f2cd
<
template
>
<div
class=
"data-filling"
>
<div
class=
"data-title flex"
>
<div
class=
"fg"
>
<span
class=
"ml20"
>
产品号
</span>
<Select
:multiple=
"false"
class=
"select-produt-name"
@
on-change=
"productonchange"
v-model=
"product_ID"
>
<!--
<Option
value=
""
class=
"option_text"
>
请选择
</Option>
-->
<Option
v-for=
"item in product_List"
:value=
"item.productids"
:key=
"item.index"
>
{{
item
.
productcodes
}}
</Option>
</Select>
</div>
<div
class=
"tr"
>
<Button
type=
"primary"
@
click=
"QcCardChecker(3)"
class=
"title_btn ml10"
>
检验员
</Button>
<Button
type=
"primary"
@
click=
"jybackCheck()"
class=
"title_btn ml10"
>
打回
</Button>
<Button
type=
"primary"
@
click=
"SendCheckRecord()"
class=
"title_btn ml10"
>
送检记录
</Button>
</div>
</div>
<div
class=
"table-i"
>
<Table
border
:columns=
"columns12"
:data=
"recorddata"
>
<template
slot-scope=
"
{ row,index }" slot="selffillin">
<template
v-if=
"row.inspect_type.split(',').indexOf('1')>-1"
>
<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
v-if=
"row.selfchecklist.fillinstatus!=0"
class=
"view"
@
click=
"showrecordData(row,1,false)"
v-text=
"row.selfchecklist.user_name+' '+row.selfchecklist.addTime"
></op>
</
template
>
</template>
</template>
<!--互检-->
<
template
slot-scope=
"{ row,index }"
slot=
"mutualfillin"
>
<template
v-if=
"row.inspect_type.split(',').indexOf('2')>-1"
>
<template>
<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
v-if=
"row.mutualchecklist.fillinstatus!=0"
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.inspect_type.split(',').indexOf('3')>-1"
>
<!--未填报-->
<template
v-if=
"row.seizurechecklist.fillinstatus==0"
>
<!--自检完成-->
<template
v-if=
"productobj.productstatus==3"
>
<Checkbox
v-model=
"row.seizurechecklist.checkstatus"
@
on-change=
"seizurechecklistcheck(index,$event)"
v-if=
"row.fillintype == 1"
></Checkbox>
<Input
v-model=
"row.seizurechecklist.fill_in_content"
v-else-if=
"row.fillintype == 2"
placeholder=
"请输入..."
@
on-blur=
"seizurechecklistinput(index,$event)"
></Input>
<template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,3,true)"
v-if=
"row.seizurechecklist.fill_in_content==''"
v-text=
"row.fillintype_str"
></op>
<op
class=
"view"
@
click=
"showrecordData(row,3,true)"
v-else
v-text=
"look"
></op>
</
template
>
</template>
</template>
<
template
v-else
>
<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,index }"
slot=
"isPhotograph"
>
<template
v-if=
"row.isPhotograph==0"
>
<op
class=
"view"
></op>
</
template
>
<
template
v-else
>
<op
class=
"view"
@
click=
"showPhoto(row,true)"
v-if=
"row.movieid==''"
>
上传
</op>
<op
class=
"view"
@
click=
"showPhoto(row,true)"
v-else
>
查看
</op>
</
template
>
</template>
</Table>
</div>
<Modal
v-model=
"usercardModal"
title=
"刷卡汇报"
width=
"500"
:footer-hide=
"true"
:mask-closable=
"false"
>
<usercard
ref=
"usercard"
@
on-ok=
"ok"
></usercard>
</Modal>
<Modal
v-model=
"entryrecorddataModal"
title=
"数据包列表"
width=
"940"
:footer-hide=
"true"
:mask-closable=
"false"
>
<entryrecorddata
ref=
"entryrecorddata"
@
binddataid=
"binddataid"
></entryrecorddata>
</Modal>
<Modal
v-model=
"entryrecordfilesModal"
title=
"附件列表"
width=
"940"
:footer-hide=
"true"
:mask-closable=
"false"
>
<entryrecordfiles
@
binddataid=
"binddataid"
ref=
"entryrecordfiles"
></entryrecordfiles>
</Modal>
<Modal
v-model=
"entryrecordmovieModal"
title=
"上传照片"
width=
"1340"
height=
"500"
:footer-hide=
"true"
:mask-closable=
"false"
>
<entryrecordMovie
@
bindPhotoid=
"bindPhotoid"
ref=
"entryrecordMovie"
></entryrecordMovie>
</Modal>
<Modal
v-model=
"sendCheckRecordModal"
title=
"送检记录"
width=
"1340"
:footer-hide=
"true"
:mask-closable=
"false"
>
<sendCheckRecord
ref=
"sendCheckRecord"
></sendCheckRecord>
</Modal>
<Modal
v-model=
"backCheckModal"
title=
"打回"
width=
"1340"
:footer-hide=
"true"
:mask-closable=
"false"
>
<backCheck
ref=
"backCheck"
></backCheck>
</Modal>
</div>
</template>
<
script
>
import
service
from
"@/plugins/request"
;
import
usercard
from
"./usercard.vue"
;
import
entryrecorddata
from
"./entryrecorddata.vue"
;
import
entryrecordMovie
from
"./entryrecordMovie.vue"
;
import
sendCheckRecord
from
"./sendCheckRecord.vue"
;
import
entryrecordfiles
from
"./entryrecordfiles.vue"
;
import
backCheck
from
"./backCheck.vue"
;
export
default
{
name
:
"starOrder"
,
props
:
[
"row"
],
components
:
{
usercard
,
entryrecorddata
,
entryrecordMovie
,
sendCheckRecord
,
entryrecordfiles
,
backCheck
},
data
()
{
return
{
product_List
:
[],
product_ID
:
""
,
disabled
:
false
,
ishavself
:
true
,
ishavhj
:
true
,
ishavzj
:
true
,
board_ID
:
""
,
board_List
:
[],
usercardModal
:
false
,
sendCheckModal
:
false
,
entryrecorddataModal
:
false
,
entryrecordfilesModal
:
false
,
entryrecordmovieModal
:
false
,
sendCheckRecordModal
:
false
,
backCheckModal
:
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
:
[
{
title
:
"序号"
,
type
:
"index"
,
width
:
"70"
,
align
:
"center"
},
{
title
:
"参数名称"
,
key
:
"check_params"
,
tooltip
:
true
},
{
title
:
"检验类型"
,
key
:
"inspect_type"
,
render
(
h
,
params
)
{
return
h
(
"state"
,
{
props
:
{
code
:
"QC.checktype"
,
value
:
params
.
row
.
inspect_type
}
});
}
},
{
title
:
"汇报类型"
,
key
:
"fillintype_str"
,
width
:
100
},
{
title
:
"标准指标"
,
key
:
"standard"
},
{
title
:
"生产要求"
,
key
:
"production_requirement"
,
tooltip
:
true
},
{
title
:
"检测内容"
,
key
:
"check_content"
,
tooltip
:
true
},
{
title
:
"操作员"
,
key
:
"fillintype"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Checkbox"
,
{
props
:
{
value
:
this
.
isselfCheckAll
},
on
:
{
"on-change"
:
()
=>
{
this
.
handleselfCheckAll
();
//点击修改下面Checkbox的状态
}
}
},
"操作员"
)
]);
},
slot
:
"selffillin"
},
{
title
:
"互检员"
,
key
:
"mutual"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Checkbox"
,
{
props
:
{
value
:
this
.
ismutualCheckAll
},
on
:
{
"on-change"
:
()
=>
{
this
.
handlemutualCheckAll
();
//点击修改下面Checkbox的状态
}
}
},
"互检员"
)
]);
},
slot
:
"mutualfillin"
},
{
title
:
"检验员"
,
key
:
"seizure"
,
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Checkbox"
,
{
props
:
{
value
:
this
.
isseizureCheckAll
},
on
:
{
"on-change"
:
()
=>
{
this
.
handleseizureCheckAll
();
//点击修改下面Checkbox的状态
}
}
},
"检验员"
)
]);
},
slot
:
"seizurefillin"
},
{
title
:
"是否拍照"
,
key
:
"isPhotograph"
,
width
:
100
,
slot
:
"isPhotograph"
},
{
title
:
"模板"
,
key
:
"qualityTemplate"
,
width
:
80
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"icon_box"
},
[
h
(
"A"
,
{
attrs
:
{
href
:
fileUrlDown
+
params
.
row
.
qualityTemplate
,
target
:
"_blank"
},
props
:
{},
style
:
{
color
:
"#249E91"
,
marginRight
:
"5px"
,
cursor
:
"pointer"
}
},
params
.
row
.
qualityTemplateName
)
]
);
}
}
]
};
},
created
()
{
console
.
log
(
this
.
row
);
this
.
entryModel
.
executeId
=
this
.
row
.
executeId
;
this
.
entryModel
.
order_id
=
this
.
row
.
order_id
;
this
.
entryModel
.
id
=
this
.
row
.
id
;
this
.
entryModel
.
routingHeaderId
=
this
.
row
.
headid
;
this
.
entryModel
.
routingDetailId
=
this
.
row
.
routingdetailId
;
this
.
entryModel
.
isMain
=
1
;
this
.
datasearch
.
entryID
=
this
.
row
.
id
;
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
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
this
.
loadproduct
();
},
methods
:
{
loaddata
()
{
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryqcrecordlist`
;
service
.
get
(
url
,
this
.
datasearch
).
then
(
response
=>
{
this
.
recorddata
=
response
.
result
;
this
.
ishavself
=
true
;
this
.
ishavhj
=
true
;
this
.
ishavzj
=
true
;
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
let
checktypes
=
obj
.
inspect_type
.
split
(
","
);
if
(
checktypes
.
indexOf
(
"1"
)
>
-
1
)
{
this
.
ishavself
=
false
;
}
if
(
checktypes
.
indexOf
(
"2"
)
>
-
1
)
{
this
.
ishavhj
=
false
;
}
if
(
checktypes
.
indexOf
(
"3"
)
>
-
1
)
{
this
.
ishavzj
=
false
;
}
}
});
},
loadproduct
()
{
let
entry
=
{
dispatch_id
:
this
.
row
.
id
,
execute_id
:
this
.
row
.
executeId
,
order_id
:
this
.
row
.
orderId
,
routingHeaderId
:
this
.
row
.
headid
,
routingDetailId
:
this
.
row
.
routingdetailId
};
var
url
=
`
${
PlanUrl
}
/ordercheck/getentryproductcode?entryID=`
+
this
.
row
.
id
;
service
.
get
(
url
,
entry
).
then
(
response
=>
{
this
.
product_List
=
response
.
result
;
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
];
if
(
obj
.
productstatus
==
3
)
{
this
.
datasearch
.
productcode
=
obj
.
productids
;
this
.
product_ID
=
obj
.
productids
;
this
.
productobj
=
obj
;
break
;
}
}
this
.
loaddata
();
});
},
productonchange
(
v
)
{
this
.
datasearch
.
productcode
=
v
;
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
]
if
(
obj
.
productids
==
e
)
{
this
.
productobj
=
obj
}
}
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;自检,互检,检验员
if
(
params
.
fillintype
==
3
)
{
//fillintype 1 选择框 2 输入框 3 附件 4 键值对数据
//附件页面
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
;
}
}
}
},
showPhoto
(
params
,
isedit
)
{
this
.
entryrecordmovieModal
=
true
;
this
.
$refs
.
entryrecordMovie
.
loadpage
(
params
,
this
.
product_ID
,
this
.
board_ID
,
isedit
);
},
ok
()
{
this
.
usercardModal
=
false
;
this
.
loadproduct
();
// this.loaddata();
},
bindPhotoid
(
qc_card_id
,
content
)
{
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
obj
.
qc_card_id
==
qc_card_id
)
{
obj
.
movieid
=
content
;
}
}
},
handleselfCheckAll
()
{
this
.
isselfCheckAll
=
!
this
.
isselfCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
obj
.
fillintype
==
1
)
{
obj
.
selfchecklist
.
fill_in_content
=
this
.
isselfCheckAll
?
"1"
:
"0"
;
obj
.
selfchecklist
.
checkstatus
=
this
.
isselfCheckAll
;
}
}
},
handlemutualCheckAll
()
{
this
.
ismutualCheckAll
=
!
this
.
ismutualCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
obj
.
fillintype
==
1
)
{
obj
.
mutualchecklist
.
fill_in_content
=
this
.
ismutualCheckAll
?
"1"
:
"0"
;
obj
.
mutualchecklist
.
checkstatus
=
this
.
ismutualCheckAll
;
}
}
},
handleseizureCheckAll
()
{
this
.
isseizureCheckAll
=
!
this
.
isseizureCheckAll
;
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
obj
.
fillintype
==
1
)
{
obj
.
seizurechecklist
.
fill_in_content
=
this
.
isseizureCheckAll
?
"1"
:
"0"
;
obj
.
seizurechecklist
.
checkstatus
=
this
.
isseizureCheckAll
;
}
}
},
show
(
index
)
{
this
.
$Modal
.
info
({
title
:
"User Info"
,
content
:
`Name:
${
this
.
data6
[
index
].
name
}
<br>Age:
${
this
.
data6
[
index
].
age
}
<br>Address:
${
this
.
data6
[
index
].
address
}
`
});
},
remove
(
index
)
{
this
.
data6
.
splice
(
index
,
1
);
},
// change(e) {
// this.entity.productQuantity = e.length + ''
// },
QcCardChecker
(
fill_in_user_type
)
{
this
.
$refs
.
usercard
.
product_List
=
this
.
product_List
;
let
fillModel
=
{
fill_in_user_type
:
fill_in_user_type
,
//自检,互检
// productisabled: this.productisabled,
product_ID
:
this
.
product_ID
,
// board_ID: this.board_ID,
product_List
:
this
.
product_List
// board_List: this.board_List
};
let
recordList
=
[];
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
let
checktypes
=
obj
.
inspect_type
.
split
(
","
);
if
(
fill_in_user_type
==
1
)
{
//自检
if
(
checktypes
.
indexOf
(
"1"
)
>
-
1
)
{
// &&
// obj.selfchecklist != null &&
// obj.selfchecklist.fill_in_content != null &&
// obj.selfchecklist.fill_in_content != ""
if
(
(
obj
.
selfchecklist
!=
null
&&
obj
.
selfchecklist
.
fill_in_content
!=
null
&&
obj
.
selfchecklist
.
fill_in_content
!=
""
&&
obj
.
selfchecklist
.
fillinstatus
==
"0"
)
||
this
.
productobj
.
productstatus
==
4
//打回重写填报
)
{
let
qc
=
{
qc_card_id
:
obj
.
qc_card_id
,
movieid
:
obj
.
movieid
,
Fillintype
:
obj
.
fillintype
,
fill_in_content
:
obj
.
selfchecklist
.
fill_in_content
,
fillinstatus
:
"1"
,
dispatch_id
:
obj
.
dispatch_id
};
recordList
.
push
(
qc
);
}
}
}
else
if
(
fill_in_user_type
==
2
)
{
//互检
if
(
checktypes
.
indexOf
(
"2"
)
>
-
1
)
{
//是否需要互检,2和3需要互检和专检 inspect_type
if
(
(
obj
.
mutualchecklist
.
fillinstatus
==
"0"
&&
obj
.
mutualchecklist
!=
null
&&
obj
.
mutualchecklist
.
fill_in_content
!=
null
&&
obj
.
mutualchecklist
.
fill_in_content
!=
""
)
||
this
.
productobj
.
productstatus
==
4
//打回重写填报
)
{
let
qc
=
{
qc_card_id
:
obj
.
qc_card_id
,
movieid
:
obj
.
movieid
,
Fillintype
:
obj
.
fillintype
,
fill_in_content
:
obj
.
mutualchecklist
.
fill_in_content
,
fillinstatus
:
"1"
,
dispatch_id
:
obj
.
dispatch_id
};
recordList
.
push
(
qc
);
}
}
}
else
if
(
fill_in_user_type
==
3
)
{
if
(
checktypes
.
indexOf
(
"3"
)
>
-
1
)
{
if
(
(
obj
.
seizurechecklist
.
fillinstatus
==
"0"
&&
obj
.
seizurechecklist
!=
null
&&
obj
.
seizurechecklist
.
fill_in_content
!=
null
&&
obj
.
seizurechecklist
.
fill_in_content
!=
""
)
||
this
.
productobj
.
productstatus
==
4
)
{
if
(
obj
.
isPhotograph
==
1
&&
obj
.
movieid
==
""
)
{
this
.
$Message
.
success
(
"第"
+
(
i
+
1
)
+
"项需上传找照片"
);
state
=
false
;
return
;
}
let
qc
=
{
qc_card_id
:
obj
.
qc_card_id
,
movieid
:
obj
.
movieid
,
Fillintype
:
obj
.
fillintype
,
fill_in_content
:
obj
.
seizurechecklist
.
fill_in_content
,
fillinstatus
:
"1"
};
recordList
.
push
(
qc
);
}
}
}
}
if
(
recordList
.
length
==
0
)
{
this
.
$Message
.
success
(
"填报项为空,请进行填报"
);
return
;
}
this
.
usercardModal
=
true
;
this
.
$refs
.
usercard
.
loadentry
(
this
.
entryModel
,
fillModel
,
recordList
);
},
selfchecklistcheck
(
index
,
e
)
{
this
.
recorddata
[
index
].
selfchecklist
.
checkstatus
=
e
;
this
.
recorddata
[
index
].
selfchecklist
.
fill_in_content
=
e
?
"1"
:
"0"
;
},
selfchecklistinput
(
index
,
e
)
{
this
.
recorddata
[
index
].
selfchecklist
.
fill_in_content
=
e
;
},
mutualchecklistcheck
(
index
,
e
)
{
this
.
recorddata
[
index
].
mutualchecklist
.
checkstatus
=
e
;
this
.
recorddata
[
index
].
mutualchecklist
.
fill_in_content
=
e
?
"1"
:
"0"
;
},
mutualchecklistinput
(
index
,
e
)
{
this
.
recorddata
[
index
].
mutualchecklist
.
fill_in_content
=
e
;
},
seizurechecklistcheck
(
index
,
e
)
{
this
.
recorddata
[
index
].
seizurechecklist
.
checkstatus
=
e
;
this
.
recorddata
[
index
].
seizurechecklist
.
fill_in_content
=
e
?
"1"
:
"0"
;
},
seizurechecklistinput
(
index
,
e
)
{
this
.
recorddata
[
index
].
seizurechecklist
.
fill_in_content
=
e
.
target
.
value
;
},
SendCheck
()
{
this
.
sendCheckModal
=
true
;
this
.
$refs
.
sendCheck
.
loadentry
(
this
.
entryModel
);
},
SendCheckRecord
()
{
this
.
sendCheckRecordModal
=
true
;
this
.
$refs
.
sendCheckRecord
.
load
(
this
.
entryModel
.
id
);
},
jybackCheck
()
{
let
fillModel
=
{
// productisabled: this.productisabled,
product_ID
:
this
.
product_ID
,
// board_ID: '',
product_List
:
this
.
product_List
// board_List: []
};
this
.
backCheckModal
=
true
;
this
.
$refs
.
backCheck
.
loadentry
(
this
.
entryModel
,
fillModel
);
}
}
};
</
script
>
<
style
lang=
"less"
>
.data-filling {
padding: 10px;
width: 100%;
.data-title {
margin-bottom: 10px;
.ml20 {
padding: 8px;
float: left;
}
.select-produt-name {
width: 200px;
float: left;
}
}
.table-i {
margin: 0 20px;
}
}
</
style
>
pages/produce/execute/datafilling/sendCheck.vue
View file @
f686f2cd
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<span
class=
"ml20"
>
产品号
</span>
<span
class=
"ml20"
>
产品号
</span>
<Select
<Select
multiple
multiple
@
on-change=
"productonchange"
@
on-change=
"productonchange"
v-model=
"product_ID"
v-model=
"product_ID"
...
...
pages/produce/execute/datafilling/usercard.vue
View file @
f686f2cd
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
handleClose
()
{},
handleClose
()
{},
loadentry
(
entryModel
,
fillModel
,
recordList
)
{
loadentry
(
entryModel
,
fillModel
,
recordList
)
{
this
.
user
.
dispatch_id
=
recordList
[
0
].
dispatch_
id
this
.
user
.
dispatch_id
=
entryModel
.
id
this
.
user
.
execute_id
=
entryModel
.
executeId
;
this
.
user
.
execute_id
=
entryModel
.
executeId
;
this
.
user
.
order_id
=
entryModel
.
order_id
;
this
.
user
.
order_id
=
entryModel
.
order_id
;
this
.
user
.
routingHeaderId
=
entryModel
.
routingHeaderId
;
this
.
user
.
routingHeaderId
=
entryModel
.
routingHeaderId
;
...
...
pages/produce/execute/index.vue
View file @
f686f2cd
...
@@ -140,8 +140,11 @@ row.routingdetailId=this.$route.query.routid;
...
@@ -140,8 +140,11 @@ row.routingdetailId=this.$route.query.routid;
if
(
number
==
8
)
{
if
(
number
==
8
)
{
this
.
detail
=
()
=>
import
(
"./datafilling/index"
);
this
.
detail
=
()
=>
import
(
"./datafilling/index"
);
}
//数据填报
}
//数据填报
if
(
number
==
10
)
{
this
.
detail
=
()
=>
import
(
"./datafilling/check"
);
}
//质量检验
if
(
number
==
9
)
{
if
(
number
==
9
)
{
this
.
$Message
.
info
(
"尊敬的用户,您没有该权限!"
);
//
this.$Message.info("尊敬的用户,您没有该权限!");
// this.detail = () => import("./testdata/index");
// this.detail = () => import("./testdata/index");
}
//测试数据
}
//测试数据
},
},
...
...
pages/produce/execute/testdata/index.vue
View file @
f686f2cd
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<Icon
type=
"md-play"
/>
<Icon
type=
"md-play"
/>
测试数据
</a>
测试数据
</a>
</div>
</div>
<div
class=
"star flex fc-b"
v-else-if=
"starmodal"
>
<div
class=
"star flex fc-b"
v-else-if=
"starmodal"
>
<Button
class=
"button"
size=
'large'
type=
"primary"
><Icon
type=
"ios-pause"
/>
暂停
</Button>
<Button
class=
"button"
size=
'large'
type=
"primary"
><Icon
type=
"ios-pause"
/>
暂停
</Button>
<Button
class=
"button"
size=
'large'
type=
"primary"
><Icon
type=
"logo-angular"
/>
交检
</Button>
<Button
class=
"button"
size=
'large'
type=
"primary"
><Icon
type=
"logo-angular"
/>
交检
</Button>
...
...
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