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
77bbfc90
Commit
77bbfc90
authored
Jun 02, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gongdan
parent
ba7bdcf9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
111 deletions
+78
-111
index.vue
pages/produce/execute/datafilling/index.vue
+32
-27
sendCheck.vue
pages/produce/execute/datafilling/sendCheck.vue
+8
-17
usercard.vue
pages/produce/execute/datafilling/usercard.vue
+38
-67
No files found.
pages/produce/execute/datafilling/index.vue
View file @
77bbfc90
...
...
@@ -10,7 +10,7 @@
@
on-change=
"change"
class=
"select-produt-name"
/>
<template
v-if=
"datasearch.isMain!=1"
>
<
!--
<
template
v-if=
"datasearch.isMain!=1"
>
<span
class=
"ml20"
>
汇报板次
</span>
<Select
@
on-change=
"boardonchange"
v-model=
"board_ID"
class=
"w200"
>
<Option
...
...
@@ -19,7 +19,7 @@
:key=
"item.index"
>
{{
item
.
boardNumber
}}
</Option>
</Select>
</
template
>
</
template
>
-->
<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"
@
click=
"SendCheck()"
class=
"title_btn ml10"
>
送检
</Button>
...
...
@@ -40,7 +40,7 @@
placeholder=
"请输入..."
@
on-blur=
"selfchecklistinput(index,$event)"
></Input>
<template
v-else
-if=
"row.fillintype == 4"
>
<template
v-else
>
<op
class=
"view"
@
click=
"showrecordData(row,1,true)"
...
...
@@ -140,7 +140,7 @@
<Modal
v-model=
"usercardModal"
title=
"刷卡汇报"
width=
"
134
0"
width=
"
50
0"
:footer-hide=
"true"
:mask-closable=
"false"
>
...
...
@@ -149,7 +149,7 @@
<Modal
v-model=
"sendCheckModal"
title=
"产品送检"
width=
"
134
0"
width=
"
50
0"
:footer-hide=
"true"
:mask-closable=
"false"
>
...
...
@@ -376,7 +376,7 @@ export default {
params
,
fill_in_user_type
,
this
.
product_ID
,
this
.
board_ID
,
//
this.board_ID,
isedit
);
}
else
if
(
params
.
fillintype
==
4
)
{
...
...
@@ -386,7 +386,7 @@ export default {
params
,
fill_in_user_type
,
this
.
product_ID
,
this
.
board_ID
,
//
this.board_ID,
isedit
);
}
...
...
@@ -424,7 +424,7 @@ export default {
this
.
disabled
=
false
;
}
else
{
this
.
datasearch
.
productcode
=
obj
.
boardNumber
;
this
.
board_ID
=
obj
.
boardNumber
;
//
this.board_ID = obj.boardNumber;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
true
;
}
...
...
@@ -445,7 +445,7 @@ export default {
this
.
disabled
=
false
;
}
else
{
this
.
datasearch
.
productcode
=
obj
.
boardNumber
;
this
.
board_ID
=
obj
.
boardNumber
;
//
this.board_ID = obj.boardNumber;
this
.
product_ID
=
obj
.
productids
;
this
.
disabled
=
true
;
}
...
...
@@ -470,31 +470,34 @@ export default {
// this.entity.productQuantity = e.length + ''
// },
QcCardChecker
(
fill_in_user_type
)
{
console
.
log
(
this
.
$refs
.
codes
.
dic
);
//
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
=
{
fill_in_user_type
:
fill_in_user_type
,
productisabled
:
this
.
productisabled
,
fill_in_user_type
:
fill_in_user_type
,
//自检,互检
//
productisabled: this.productisabled,
product_ID
:
this
.
product_ID
,
board_ID
:
this
.
board_ID
,
product_List
:
this
.
$refs
.
codes
.
dic
,
board_List
:
this
.
board_List
//
board_ID: this.board_ID,
product_List
:
this
.
$refs
.
codes
.
dic
//
board_List: this.board_List
};
let
recordList
=
[];
for
(
let
i
=
0
;
i
<
this
.
recorddata
.
length
;
i
++
)
{
let
obj
=
this
.
recorddata
[
i
];
if
(
fill_in_user_type
==
1
)
{
//自检
// &&
// obj.selfchecklist != null &&
// obj.selfchecklist.fill_in_content != null &&
// obj.selfchecklist.fill_in_content != ""
if
(
(
obj
.
selfchecklist
.
fillinstatus
==
"0"
&&
obj
.
selfchecklist
!=
null
&&
obj
.
selfchecklist
.
fill_in_content
!=
null
&&
obj
.
selfchecklist
.
fill_in_content
!=
""
)
||
this
.
productobj
.
productstatus
==
4
obj
.
selfchecklist
.
fillinstatus
==
"0"
||
this
.
productobj
.
productstatus
==
4
//打回重写填报
)
{
let
qc
=
{
qc_card_id
:
obj
.
qc_card_id
,
...
...
@@ -506,13 +509,15 @@ export default {
recordList
.
push
(
qc
);
}
}
else
if
(
fill_in_user_type
==
2
)
{
if
(
obj
.
check_type
==
2
||
obj
.
check_type
==
4
)
{
//互检
if
(
obj
.
inspect_type
==
2
||
obj
.
inspect_type
==
3
)
{
//是否需要互检,2和3需要互检和专检
if
(
(
obj
.
mutualchecklist
.
fillinstatus
==
"0"
&&
obj
.
mutualchecklist
!=
null
&&
obj
.
mutualchecklist
.
fill_in_content
!=
null
&&
obj
.
mutualchecklist
.
fill_in_content
!=
""
)
||
this
.
productobj
.
productstatus
==
4
this
.
productobj
.
productstatus
==
4
//打回重写填报
)
{
let
qc
=
{
qc_card_id
:
obj
.
qc_card_id
,
...
...
@@ -524,15 +529,15 @@ export default {
recordList
.
push
(
qc
);
}
}
}
else
if
(
fill_in_user
_type
==
3
)
{
}
else
if
(
inspect
_type
==
3
)
{
}
}
if
(
recordList
.
length
==
0
)
{
this
.
$Message
.
success
(
"填报项为空,请进行填报"
);
return
;
}
alert
(
20
);
this
.
$refs
.
usercard
.
loadentry
(
this
.
entryModel
,
fillModel
,
recordList
);
},
SendCheck
()
{
...
...
pages/produce/execute/datafilling/sendCheck.vue
View file @
77bbfc90
...
...
@@ -3,16 +3,7 @@
<Row
class=
"rowTitle100"
>
<Col
:span=
"12"
>
<Checkbox
v-model=
"isall"
@
on-change=
"peoductAllOnchange"
></Checkbox>
<template
v-if=
"isMain!=1"
>
<span
class=
"ml20"
>
汇报板次
</span>
<Select
@
on-change=
"boardonchange"
multiple
v-model=
"board_ID"
class=
"w200"
>
<Option
v-for=
"item in board_List"
:value=
"item.boardNumber"
:key=
"item.index"
>
{{
item
.
boardNumber
}}
</Option>
</Select>
</
template
>
<span
class=
"ml20"
>
产品号
</span>
<Select
:disabled=
"disabled"
...
...
@@ -198,12 +189,12 @@ export default {
},
peoductAllOnchange
(
e
)
{
if
(
e
)
{
if
(
!
this
.
isMain
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
this
.
board_ID
.
push
(
obj
.
boardNumber
)
}
}
//
if (!this.isMain) {
//
for (let i = 0; i
<
this
.
board_List
.
length
;
i
++
)
{
//
let obj = this.board_List[i]
//
this.board_ID.push(obj.boardNumber)
//
}
//
}
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
]
...
...
@@ -211,7 +202,7 @@ export default {
}
}
else
{
this
.
product_ID
=
[]
this
.
board_ID
=
[]
//
this.board_ID = []
}
},
productonchange
(
e
)
{},
...
...
pages/produce/execute/datafilling/usercard.vue
View file @
77bbfc90
<
template
>
<Form
ref=
"form"
:model=
"user"
:rules=
"rules"
:label-width=
"
100
"
>
<Form
ref=
"form"
:model=
"user"
:rules=
"rules"
:label-width=
"
80"
class=
"shua-ka
"
>
<Row
class=
"rowTitle100"
>
<Col
:span=
"12"
>
<Checkbox
v-model=
"isall"
@
on-change=
"peoductAllOnchange"
></Checkbox>
<template
v-if=
"isMain!=1"
>
<span
class=
"ml20"
>
汇报板次
</span>
<Select
:width=
"width1"
@
on-change=
"boardonchange"
multiple
v-model=
"board_ID"
class=
"w200"
>
<Option
v-for=
"item in board_List"
:value=
"item.boardNumber"
:key=
"item.index"
>
{{
item
.
boardNumber
}}
</Option>
</Select>
</
template
>
<span
class=
"ml20"
>
产品号
</span>
<Select
:disabled=
"productdisabled"
multiple
@
on-change=
"productonchange"
v-model=
"product_ID"
class=
"w200"
>
<Col
:span=
"24"
>
<Checkbox
v-model=
"isall"
@
on-change=
"peoductAllOnchange"
class=
"check"
></Checkbox>
<span>
产品号
</span>
<Select
multiple
@
on-change=
"productonchange"
v-model=
"product_ID"
class=
"w200"
>
<Option
v-for=
"item in product_List"
:value=
"item.value"
...
...
@@ -36,7 +14,7 @@
</Col>
</Row>
<Row
class=
"rowTitle100"
>
<Col
:span=
"
12
"
>
<Col
:span=
"
24
"
>
<FormItem
label=
"员工编号"
prop=
"cardno"
>
<Input
v-model=
"user.cardno"
></Input>
<Checkbox
v-model=
"isCurrentUser"
@
on-change=
"getCurrentUser"
>
当前用户
</Checkbox>
...
...
@@ -83,7 +61,7 @@ export default {
};
return
{
disabled
:
false
,
productdisabled
:
false
,
isCurrentUser
:
false
,
isall
:
false
,
width1
:
"400"
,
...
...
@@ -94,7 +72,7 @@ export default {
routingHeaderId
:
0
,
routingDetailId
:
0
,
product_code
:
[],
board_code
:
[],
//
board_code: [],
cardno
:
""
,
user_id
:
""
,
user_name
:
""
,
...
...
@@ -107,7 +85,7 @@ export default {
isMain
:
1
,
productisabled
:
false
,
product_ID
:
[],
board_ID
:
[],
//
board_ID: [],
product_List
:
[],
board_List
:
[],
rules
:
{
...
...
@@ -129,7 +107,7 @@ export default {
return
;
}
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
)
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
...
...
@@ -155,7 +133,7 @@ export default {
},
handleClose
()
{},
loadentry
(
entryModel
,
fillModel
,
recordList
)
{
alert
(
9
)
this
.
user
.
dispatch_id
=
entryModel
.
id
;
this
.
user
.
execute_id
=
entryModel
.
executeId
;
this
.
user
.
order_id
=
entryModel
.
order_id
;
...
...
@@ -167,23 +145,23 @@ export default {
this
.
user
.
user_id
=
""
;
this
.
user
.
user_name
=
""
;
this
.
product_code
=
""
;
this
.
board_code
=
""
;
//
this.board_code = "";
this
.
isCurrentUser
=
false
;
this
.
isMain
=
entryModel
.
isMain
;
//
this.isMain = entryModel.isMain;
this
.
product_ID
=
[];
this
.
board_ID
=
[];
//
this.board_ID = [];
this
.
productisabled
=
fillModel
.
productisabled
;
this
.
product_List
=
fillModel
.
product_List
;
console
.
log
(
this
.
product_List
)
if
(
this
.
isMain
==
1
)
{
this
.
productdisabled
=
false
;
}
else
{
this
.
productdisabled
=
true
;
}
console
.
log
(
this
.
product_List
);
//
if (this.isMain == 1) {
//
this.productdisabled = false;
//
} else {
//
this.productdisabled = true;
//
}
this
.
product_ID
.
push
(
fillModel
.
product_ID
);
this
.
board_ID
.
push
(
fillModel
.
board_ID
);
//
this.board_ID.push(fillModel.board_ID);
if
(
fillModel
.
fill_in_user_type
==
1
||
fillModel
.
fill_in_user_type
==
3
...
...
@@ -204,36 +182,17 @@ export default {
},
peoductAllOnchange
(
e
)
{
if
(
e
)
{
if
(
!
this
.
isMain
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
];
this
.
board_ID
.
push
(
obj
.
boardNumber
);
}
}
for
(
let
i
=
0
;
i
<
this
.
product_List
.
length
;
i
++
)
{
let
obj
=
this
.
product_List
[
i
];
this
.
product_ID
.
push
(
obj
.
productids
);
this
.
product_ID
.
push
(
obj
.
value
);
}
}
else
{
this
.
product_ID
=
[];
this
.
board_ID
=
[];
}
},
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
);
}
}
// this.board_ID = [];
}
},
productonchange
(
e
)
{},
getCurrentUser
(
e
)
{
if
(
e
)
{
console
.
log
(
this
.
$store
.
state
.
admin
.
user
.
info
);
...
...
@@ -248,4 +207,16 @@ export default {
}
}
};
</
script
>
\ No newline at end of file
</
script
>
<
style
lang=
"less"
>
.shua-ka {
padding: 0 20px;
.rowTitle100 {
margin-top: 10px;
.w200 {
width: 330px;
}
}
}
</
style
>
\ No newline at end of file
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