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
a72385df
Commit
a72385df
authored
Sep 27, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:cetificate
parent
5b927673
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
328 additions
and
314 deletions
+328
-314
index.vue
pages/qc/certificate/endIssued/index.vue
+166
-162
index.vue
pages/qc/certificate/waitOpened/index.vue
+162
-152
No files found.
pages/qc/certificate/endIssued/index.vue
View file @
a72385df
<
template
>
<div
class=
"end-issued"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<Modal
v-model=
"detailModal"
title=
"查看合格证"
@
on-cancel=
"reload"
footer-hide
width=
"1000"
:mask-closable=
"false"
>
<Detail
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
ref=
"listDetail"
/>
<div
class=
"end-issued"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<Modal
v-model=
"detailModal"
title=
"查看合格证"
@
on-cancel=
"reload"
footer-hide
width=
"1000"
:mask-closable=
"false"
>
<Detail
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
ref=
"listDetail"
/>
</Modal>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"../api"
;
import
Detail
from
"./detail"
;
export
default
{
name
:
"index"
,
components
:
{
Detail
},
data
()
{
return
{
action
:
Api
.
index
,
// Api.indexPaged
detailModal
:
false
,
curId
:
0
,
modalInfo
:
false
,
tdHeight
:
""
,
rules
:
{
approveUser
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
// {
// type: 'selection',
// width: 60,
// align: 'center'
// },
{
key
:
"mesCode"
,
title
:
this
.
l
(
"mesCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
name
:
"index"
,
components
:
{
Detail
},
data
()
{
return
{
action
:
Api
.
index
,
// Api.indexPaged
detailModal
:
false
,
curId
:
0
,
modalInfo
:
false
,
tdHeight
:
""
,
rules
:
{
approveUser
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
columns
:
[{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
// {
// type: 'selection',
// width: 60,
// align: 'center'
// },
{
key
:
"mesCode"
,
title
:
this
.
l
(
"mesCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"qualifiedQuantity"
,
title
:
this
.
l
(
"qualifiedQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"uncertificateQuantity"
,
title
:
this
.
l
(
"uncertificateQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
{
key
:
"qualifiedQuantity"
,
title
:
this
.
l
(
"qualifiedQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"uncertificateQuantity"
,
title
:
this
.
l
(
"uncertificateQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"actualFinishDate"
,
title
:
this
.
l
(
"actualFinishDate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
);
}
},
{
key
:
"productingPreparationPeople"
,
title
:
this
.
l
(
"productingPreparationPeople"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
"plan.order.status"
},
{
title
:
"操作"
,
key
:
"action"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
"查看合格证"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
},
"查看合格证"
)
]);
}
}
],
easySearch
:
{
keys
:
{
op
:
"mesCode"
,
value
:
""
,
default
:
true
},
type
:
{
op
:
"Equal"
,
value
:
2
}
}
};
},
mounted
()
{},
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
250
;
},
methods
:
{
addOk
()
{
// this.$refs.grid.load()
this
.
detailModal
=
false
;
this
.
curId
=
0
;
},
{
key
:
"actualFinishDate"
,
title
:
this
.
l
(
"actualFinishDate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
);
}
cancel
()
{
this
.
curId
=
0
;
this
.
detailModal
=
false
;
},
{
key
:
"productingPreparationPeople"
,
title
:
this
.
l
(
"productingPreparationPeople"
),
align
:
"left"
,
easy
:
true
,
high
:
true
reload
()
{
if
(
this
.
$refs
.
listDetail
.
checkboxList
.
length
==
0
)
{
this
.
$refs
.
grid
.
load
();
}
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
"plan.order.status"
detail
(
id
)
{
this
.
detailModal
=
true
;
this
.
curId
=
id
;
},
{
title
:
"操作"
,
key
:
"id"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
"查看合格证"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
},
"查看合格证"
)
]);
}
// 列表title
l
(
key
)
{
let
vkey
=
"waitOpened"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
],
easySearch
:
{
keys
:
{
op
:
"mesCode"
,
value
:
""
,
default
:
true
},
type
:
{
op
:
"Equal"
,
value
:
2
}
}
};
},
mounted
()
{},
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
250
;
},
methods
:
{
addOk
()
{
// this.$refs.grid.load()
this
.
detailModal
=
false
;
this
.
curId
=
0
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
detailModal
=
false
;
},
reload
()
{
if
(
this
.
$refs
.
listDetail
.
checkboxList
.
length
==
0
)
{
this
.
$refs
.
grid
.
load
();
}
},
detail
(
id
)
{
this
.
detailModal
=
true
;
this
.
curId
=
id
;
},
// 列表title
l
(
key
)
{
let
vkey
=
"waitOpened"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
</
style
>
pages/qc/certificate/waitOpened/index.vue
View file @
a72385df
<
template
>
<div
class=
"wait-opened"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<div
class=
"wait-opened"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:high=
"false"
:height=
"tdHeight"
></DataGrid>
<Modal
v-model=
"addModal"
title=
"开合格证"
fullscreen
footer-hide
:mask-closable=
"false"
>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
ref=
"addFile"
/>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
:eid=
"curId"
ref=
"addFile"
/>
</Modal>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"../api"
;
import
Add
from
"./add"
;
export
default
{
name
:
"index"
,
components
:
{
Add
},
data
()
{
return
{
action
:
Api
.
index
,
checkLists
:
[],
addModal
:
false
,
curId
:
null
,
tdHeight
:
""
,
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"mesCode"
,
title
:
this
.
l
(
"mesCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
name
:
"index"
,
components
:
{
Add
},
data
()
{
return
{
action
:
Api
.
index
,
checkLists
:
[],
addModal
:
false
,
curId
:
null
,
tdHeight
:
""
,
columns
:
[{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"mesCode"
,
title
:
this
.
l
(
"mesCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"qualifiedQuantity"
,
title
:
this
.
l
(
"qualifiedQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"uncertificateQuantity"
,
title
:
this
.
l
(
"uncertificateQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"actualFinishDate"
,
title
:
this
.
l
(
"actualFinishDate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
width
:
180
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
);
}
},
{
key
:
"productingPreparationPeople"
,
title
:
this
.
l
(
"productingPreparationPeople"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
"plan.order.status"
},
{
title
:
"操作"
,
key
:
"id"
,
// width: 250,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"add"
},
on
:
{
click
:
()
=>
this
.
add
(
params
.
row
)
}
key
:
"qualifiedQuantity"
,
title
:
this
.
l
(
"qualifiedQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
"开合格证"
)
]);
}
}
],
easySearch
:
{
keys
:
{
op
:
"mesCode"
,
value
:
null
,
default
:
true
},
type
:
{
op
:
"Equal"
,
value
:
1
}
}
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{},
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
250
;
},
methods
:
{
addOk
()
{
this
.
$refs
.
grid
.
load
();
this
.
addModal
=
false
;
this
.
curId
=
0
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
addModal
=
false
;
{
key
:
"uncertificateQuantity"
,
title
:
this
.
l
(
"uncertificateQuantity"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"actualFinishDate"
,
title
:
this
.
l
(
"actualFinishDate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
width
:
180
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
);
}
},
{
key
:
"productingPreparationPeople"
,
title
:
this
.
l
(
"productingPreparationPeople"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
"plan.order.status"
},
{
title
:
"操作"
,
key
:
"action"
,
// width: 250,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"add"
},
on
:
{
click
:
()
=>
this
.
add
(
params
.
row
)
}
},
"开合格证"
)
]);
}
}
],
easySearch
:
{
keys
:
{
op
:
"mesCode"
,
value
:
null
,
default
:
true
},
type
:
{
op
:
"Equal"
,
value
:
1
}
}
};
},
reload
()
{
this
.
$refs
.
grid
.
load
();
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
add
(
row
)
{
this
.
addModal
=
true
;
this
.
curId
=
row
.
id
;
this
.
$refs
.
addFile
.
entity
.
productName
=
row
.
productName
;
this
.
$refs
.
addFile
.
entity
.
productStatus
=
row
.
status
;
this
.
$refs
.
addFile
.
entity
.
productCode
=
row
.
drawnNumber
;
mounted
()
{},
created
()
{
this
.
tdHeight
=
window
.
innerHeight
-
250
;
},
// 列表title
l
(
key
)
{
let
vkey
=
"waitOpened"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
methods
:
{
addOk
()
{
this
.
$refs
.
grid
.
load
();
this
.
addModal
=
false
;
this
.
curId
=
0
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
addModal
=
false
;
},
reload
()
{
this
.
$refs
.
grid
.
load
();
},
add
(
row
)
{
this
.
addModal
=
true
;
this
.
curId
=
row
.
id
;
this
.
$refs
.
addFile
.
entity
.
productName
=
row
.
productName
;
this
.
$refs
.
addFile
.
entity
.
productStatus
=
row
.
status
;
this
.
$refs
.
addFile
.
entity
.
productCode
=
row
.
drawnNumber
;
},
// 列表title
l
(
key
)
{
let
vkey
=
"waitOpened"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
</
style
>
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