Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
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
wangweidong
patzn-cloud-web-back-soil
Commits
e31a325b
Commit
e31a325b
authored
Aug 05, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.patzn.com/root/patzn-cloud-service-metr-web
into dev
parents
230d40c9
7e352150
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
440 additions
and
166 deletions
+440
-166
index.js
api/index.js
+1
-0
meter-sample.js
api/meter/meter-sample.js
+12
-4
meter-template.js
api/meter/meter-template.js
+15
-0
MeterCertificateCheck.vue
pages/meter-certificate/check/MeterCertificateCheck.vue
+28
-1
MeterCertificateCheckHis.vue
pages/meter-certificate/check/MeterCertificateCheckHis.vue
+22
-1
MeterCertificateIssue.vue
pages/meter-certificate/issue/MeterCertificateIssue.vue
+28
-2
MeterCertificateIssueHis.vue
pages/meter-certificate/issue/MeterCertificateIssueHis.vue
+21
-0
MeterCertificateMake.vue
pages/meter-certificate/make/MeterCertificateMake.vue
+71
-7
MeterCertificateMakeHis.vue
pages/meter-certificate/make/MeterCertificateMakeHis.vue
+16
-5
MeterCertificatePrintIndex.vue
pages/meter-certificate/print/MeterCertificatePrintIndex.vue
+28
-1
MeterReportTemplate.vue
pages/meter-certificate/template/MeterReportTemplate.vue
+33
-22
MeterReportTemplateEdit.vue
pages/meter-certificate/template/MeterReportTemplateEdit.vue
+16
-2
MeterOutPersonalTask.vue
pages/meter-out/personal-task/MeterOutPersonalTask.vue
+71
-11
MeterOutPersonalTaskHis.vue
pages/meter-out/personal-task/MeterOutPersonalTaskHis.vue
+15
-6
MeterSampleInput.vue
pages/meter-send/sample-input/MeterSampleInput.vue
+31
-19
MeterSampleInputHis.vue
pages/meter-send/sample-input/MeterSampleInputHis.vue
+14
-4
SelectOriTempRecordExcel.vue
pages/meter-send/sample-input/SelectOriTempRecordExcel.vue
+15
-80
common.js
plugins/common.js
+3
-1
No files found.
api/index.js
View file @
e31a325b
...
@@ -37,4 +37,5 @@ export { default as meterSampleQuote } from './meter/meter-sample-quote'
...
@@ -37,4 +37,5 @@ export { default as meterSampleQuote } from './meter/meter-sample-quote'
export
{
default
as
meterRecord
}
from
'./meter/meter-record'
export
{
default
as
meterRecord
}
from
'./meter/meter-record'
export
{
default
as
meterSubContract
}
from
'./meter/meter-sub-contract'
export
{
default
as
meterSubContract
}
from
'./meter/meter-sub-contract'
export
{
default
as
meterPrint
}
from
'./meter/meter-print'
export
{
default
as
meterPrint
}
from
'./meter/meter-print'
export
{
default
as
meterTemplate
}
from
'./meter/meter-template'
export
{
default
as
lmsBaseDict
}
from
'./lims/lms-base-dict'
export
{
default
as
lmsBaseDict
}
from
'./lims/lms-base-dict'
api/meter/meter-sample.js
View file @
e31a325b
...
@@ -8,8 +8,6 @@ import { https } from '../https'
...
@@ -8,8 +8,6 @@ import { https } from '../https'
export
default
{
export
default
{
// page
// page
page
:
data
=>
http
.
post
(
'meter/v1/sample/page'
,
data
).
then
(
res
=>
res
),
page
:
data
=>
http
.
post
(
'meter/v1/sample/page'
,
data
).
then
(
res
=>
res
),
pageTemplate
:
data
=>
http
.
post
(
'meter/v1/file_template/page'
,
data
).
then
(
res
=>
res
),
templateList
:
data
=>
templateList
:
data
=>
http
.
post
(
'base/v1/file_template_classify/list'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'base/v1/file_template_classify/list'
,
data
).
then
(
res
=>
res
),
pageSubSample
:
data
=>
pageSubSample
:
data
=>
...
@@ -158,7 +156,15 @@ export default {
...
@@ -158,7 +156,15 @@ export default {
https
https
.
post
(
'meter/v1/sample/report_generate'
,
JSON
.
stringify
(
data
))
.
post
(
'meter/v1/sample/report_generate'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
.
then
(
res
=>
res
),
generateExcelReport
:
data
=>
http
.
post
(
'meter/v1/sample/excel_report_generate?sampleId='
+
data
.
sampleId
+
'&templateId='
+
data
.
id
)
.
then
(
res
=>
res
),
subpackageInfoReg
:
data
=>
subpackageInfoReg
:
data
=>
http
http
.
post
(
'meter/v1/sample/subpackage_info_reg?ids='
+
data
.
ids
,
data
.
reg
)
.
post
(
'meter/v1/sample/subpackage_info_reg?ids='
+
data
.
ids
,
data
.
reg
)
...
@@ -313,5 +319,7 @@ export default {
...
@@ -313,5 +319,7 @@ export default {
'&remark='
+
'&remark='
+
data
.
remark
data
.
remark
)
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
),
getCertificateReport
:
data
=>
http
.
post
(
'meter/v1/sample/get_certificate_report?sampleId='
+
data
)
}
}
api/meter/meter-template.js
0 → 100644
View file @
e31a325b
/**
* 工作台
*/
import
http
from
'../http'
export
default
{
// 证书模板
pageTemplate
:
data
=>
http
.
post
(
'meter/v1/file_template/page'
,
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'meter/v1/file_template/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
http
.
delete
(
'meter/v1/file_template/?ids='
+
data
).
then
(
res
=>
res
)
}
pages/meter-certificate/check/MeterCertificateCheck.vue
View file @
e31a325b
...
@@ -89,10 +89,15 @@ export default {
...
@@ -89,10 +89,15 @@ export default {
}
}
],
],
iconMsg
:
[
iconMsg
:
[
// {
// type: 'ios-book',
// id: '',
// name: '查看证书'
// },
{
{
type
:
'ios-book'
,
type
:
'ios-book'
,
id
:
''
,
id
:
''
,
name
:
'查看证书'
name
:
'
在线
查看证书'
},
},
// {
// {
// type: 'ios-list-box',
// type: 'ios-list-box',
...
@@ -111,6 +116,7 @@ export default {
...
@@ -111,6 +116,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
140
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -258,6 +264,9 @@ export default {
...
@@ -258,6 +264,9 @@ export default {
case
'查看证书'
:
case
'查看证书'
:
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
break
break
case
'在线查看证书'
:
this
.
_reportMakeLook
(
data
)
break
case
'资质项目'
:
case
'资质项目'
:
this
.
_itemModal
(
data
.
id
)
this
.
_itemModal
(
data
.
id
)
break
break
...
@@ -273,6 +282,24 @@ export default {
...
@@ -273,6 +282,24 @@ export default {
}
}
})
})
},
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
else
{
this
.
_itemOriginalRecordLook
(
data
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_personModal
(
data
)
{
_personModal
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
_previewEdit
(
data
.
id
)
this
.
_previewEdit
(
data
.
id
)
...
...
pages/meter-certificate/check/MeterCertificateCheckHis.vue
View file @
e31a325b
...
@@ -111,6 +111,7 @@ export default {
...
@@ -111,6 +111,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
140
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -233,6 +234,17 @@ export default {
...
@@ -233,6 +234,17 @@ export default {
},
},
_itemOriginalRecordLook
(
data
,
name
)
{
_itemOriginalRecordLook
(
data
,
name
)
{
this
.
_reportMakeLook
(
data
)
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
else
{
this
.
_itemRecordLook
(
data
)
}
},
_itemRecordLook
(
data
,
name
)
{
if
(
if
(
data
.
recordId
===
null
||
data
.
recordId
===
null
||
undefined
===
data
.
recordId
||
undefined
===
data
.
recordId
||
...
@@ -247,7 +259,16 @@ export default {
...
@@ -247,7 +259,16 @@ export default {
)
)
}
}
},
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_iconClick
(
res
,
data
,
componentName
)
{
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
...
...
pages/meter-certificate/issue/MeterCertificateIssue.vue
View file @
e31a325b
...
@@ -98,10 +98,15 @@ export default {
...
@@ -98,10 +98,15 @@ export default {
}
}
],
],
iconMsg
:
[
iconMsg
:
[
// {
// type: 'ios-book',
// id: '',
// name: '查看证书'
// },
{
{
type
:
'ios-book'
,
type
:
'ios-book'
,
id
:
''
,
id
:
''
,
name
:
'查看证书'
name
:
'
在线
查看证书'
},
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
}
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
}
],
],
...
@@ -117,7 +122,7 @@ export default {
...
@@ -117,7 +122,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
20
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
45
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -244,6 +249,9 @@ export default {
...
@@ -244,6 +249,9 @@ export default {
case
'查看证书'
:
case
'查看证书'
:
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
break
break
case
'在线查看证书'
:
this
.
_reportMakeLook
(
data
)
break
case
'删除'
:
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
this
.
_deleteByIds
([
data
.
id
])
break
break
...
@@ -253,6 +261,24 @@ export default {
...
@@ -253,6 +261,24 @@ export default {
}
}
})
})
},
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
else
{
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_itemOriginalRecordLook
(
data
,
name
)
{
_itemOriginalRecordLook
(
data
,
name
)
{
if
(
if
(
data
.
recordId
===
null
||
data
.
recordId
===
null
||
...
...
pages/meter-certificate/issue/MeterCertificateIssueHis.vue
View file @
e31a325b
...
@@ -245,6 +245,17 @@ export default {
...
@@ -245,6 +245,17 @@ export default {
})
})
},
},
_itemOriginalRecordLook
(
data
,
name
)
{
_itemOriginalRecordLook
(
data
,
name
)
{
this
.
_reportMakeLook
(
data
)
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
else
{
this
.
_itemRecordLook
(
data
,
'only'
)
}
},
_itemRecordLook
(
data
,
name
)
{
if
(
if
(
data
.
recordId
===
null
||
data
.
recordId
===
null
||
undefined
===
data
.
recordId
||
undefined
===
data
.
recordId
||
...
@@ -259,6 +270,16 @@ export default {
...
@@ -259,6 +270,16 @@ export default {
)
)
}
}
},
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_personModal
(
data
)
{
_personModal
(
data
)
{
this
.
_previewEdit
(
data
.
id
)
this
.
_previewEdit
(
data
.
id
)
},
},
...
...
pages/meter-certificate/make/MeterCertificateMake.vue
View file @
e31a325b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<Row>
<Row>
<!--查询-->
<!--查询-->
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Form
id=
"formId"
v-show=
"searchOpen
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
id=
"formId
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"委托单位:"
>
<Form-item
class=
"search-item"
label=
"委托单位:"
>
<Input
v-model=
"formObj.client"
name=
"client"
placeholder=
"请输入委托单位"
clearable
@
on-enter=
"_formSearch"
/>
<Input
v-model=
"formObj.client"
name=
"client"
placeholder=
"请输入委托单位"
clearable
@
on-enter=
"_formSearch"
/>
...
@@ -23,20 +23,20 @@
...
@@ -23,20 +23,20 @@
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
class=
"contHide
"
></btn-list>
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<!--表格-->
<!--表格-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
select-data
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -72,6 +72,8 @@
...
@@ -72,6 +72,8 @@
<InstruMentEdit
ref=
"InstruEdit"
></InstruMentEdit>
<InstruMentEdit
ref=
"InstruEdit"
></InstruMentEdit>
<operationModal
ref=
"operationModal"
></operationModal>
<operationModal
ref=
"operationModal"
></operationModal>
<FileManage
ref=
"FileManage"
></FileManage>
<FileManage
ref=
"FileManage"
></FileManage>
<SelectOriTempRecordExcel
ref=
"SelectOriTempRecordExcel"
@
on-result-change=
"_certificateSelectExcelBack"
></SelectOriTempRecordExcel>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -79,6 +81,7 @@ import CertificateMake from '../../meter-certificate/CertificateMake'
...
@@ -79,6 +81,7 @@ import CertificateMake from '../../meter-certificate/CertificateMake'
import
CertificateMakeLook
from
'../../meter-certificate/CertificateMakeLook'
import
CertificateMakeLook
from
'../../meter-certificate/CertificateMakeLook'
import
{
meterSample
}
from
'../../../api'
import
{
meterSample
}
from
'../../../api'
import
operationModal
from
'../../../components/operation/Operation'
import
operationModal
from
'../../../components/operation/Operation'
import
SelectOriTempRecordExcel
from
'../../meter-send/sample-input/SelectOriTempRecordExcel'
import
CreateReport
from
'./CreateReport'
import
CreateReport
from
'./CreateReport'
import
CarManage
from
'./CarManage'
import
CarManage
from
'./CarManage'
import
InstruMentEdit
from
'./InstrumentEdit'
import
InstruMentEdit
from
'./InstrumentEdit'
...
@@ -88,6 +91,7 @@ export default {
...
@@ -88,6 +91,7 @@ export default {
CreateReport
,
CreateReport
,
CarManage
,
CarManage
,
InstruMentEdit
,
InstruMentEdit
,
SelectOriTempRecordExcel
,
operationModal
,
operationModal
,
SelectOriTempRecord
,
SelectOriTempRecord
,
CertificateMake
,
CertificateMake
,
...
@@ -113,10 +117,15 @@ export default {
...
@@ -113,10 +117,15 @@ export default {
iconMsg
:
[
iconMsg
:
[
{
{
type
:
'ios-bookmarks'
,
type
:
'ios-bookmarks'
,
id
:
''
,
id
:
'
meter-certificate-make-spread-js-make
'
,
name
:
'编制证书'
name
:
'编制证书'
},
},
{
{
type
:
'ios-bookmarks'
,
id
:
'meter-certificate-make-pageoffice-make'
,
name
:
'在线编制证书'
},
{
type
:
'md-create'
,
type
:
'md-create'
,
id
:
''
,
id
:
''
,
name
:
'编辑'
name
:
'编辑'
...
@@ -148,7 +157,7 @@ export default {
...
@@ -148,7 +157,7 @@ export default {
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
2
0
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
5
0
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
...
@@ -291,6 +300,9 @@ export default {
...
@@ -291,6 +300,9 @@ export default {
case
'编制证书'
:
case
'编制证书'
:
this
.
_makeCertificate
(
data
)
this
.
_makeCertificate
(
data
)
break
break
case
'在线编制证书'
:
this
.
_makeCertificateExcel
(
data
)
break
case
'仪器领用'
:
case
'仪器领用'
:
this
.
$refs
.
InstruEdit
.
_open
()
this
.
$refs
.
InstruEdit
.
_open
()
break
break
...
@@ -431,6 +443,58 @@ export default {
...
@@ -431,6 +443,58 @@ export default {
this
.
_formSearch
()
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
this
.
$Message
.
success
(
'删除成功!'
)
}
}
},
_makeCertificateExcel
(
data
)
{
if
(
data
.
onlineReported
===
'否'
)
{
this
.
$refs
.
SelectOriTempRecordExcel
.
_open
(
data
.
id
,
data
)
}
else
{
this
.
_reportMakeLook
(
data
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_certificateSelectExcelBack
(
data
)
{
if
(
data
)
{
this
.
_makeCodeExcel
(
data
)
}
else
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
// this._appendOriginalRecord()
}
}
},
_makeCodeExcel
:
async
function
(
data
)
{
// this.$refs.pageTable._hideLoading()
this
.
$refs
.
pageTable
.
_showLoading
()
const
result
=
await
meterSample
.
generateExcelReport
(
data
)
if
(
result
)
{
await
this
.
_page
()
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
result
===
null
||
result
===
undefined
)
{
this
.
$Message
.
warning
(
'证书编制失败,请联系管理员!'
)
return
false
}
else
{
this
.
$emit
(
'on-result-change'
)
this
.
_viewReport
(
result
)
}
}
}
}
}
}
}
}
...
...
pages/meter-certificate/make/MeterCertificateMakeHis.vue
View file @
e31a325b
...
@@ -294,11 +294,22 @@ export default {
...
@@ -294,11 +294,22 @@ export default {
this
.
_previewEdit
(
data
.
id
)
this
.
_previewEdit
(
data
.
id
)
},
},
_makeCertificate
(
data
)
{
_makeCertificate
(
data
)
{
if
(
data
.
onlineReported
===
'否'
||
undefined
===
data
.
recordId
)
{
this
.
_reportMakeLook
(
data
)
console
.
log
(
'click'
)
},
this
.
$refs
.
SelectOriTempRecord
.
_open
(
data
.
id
,
data
)
_reportMakeLook
:
async
function
(
data
)
{
}
else
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
}
},
},
_resultRecord
()
{
_resultRecord
()
{
...
...
pages/meter-certificate/print/MeterCertificatePrintIndex.vue
View file @
e31a325b
...
@@ -83,10 +83,15 @@ export default {
...
@@ -83,10 +83,15 @@ export default {
// }
// }
],
],
iconMsg
:
[
iconMsg
:
[
// {
// type: 'ios-book',
// id: '',
// name: '查看证书'
// },
{
{
type
:
'ios-book'
,
type
:
'ios-book'
,
id
:
''
,
id
:
''
,
name
:
'查看证书'
name
:
'
在线
查看证书'
},
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
}
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
}
],
],
...
@@ -100,6 +105,7 @@ export default {
...
@@ -100,6 +105,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
145
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
100
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -197,6 +203,9 @@ export default {
...
@@ -197,6 +203,9 @@ export default {
case
'查看证书'
:
case
'查看证书'
:
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
break
break
case
'在线查看证书'
:
this
.
_reportMakeLook
(
data
)
break
case
'删除'
:
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
this
.
_deleteByIds
([
data
.
id
])
break
break
...
@@ -206,6 +215,24 @@ export default {
...
@@ -206,6 +215,24 @@ export default {
}
}
})
})
},
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
else
{
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_personModal
(
data
)
{
_personModal
(
data
)
{
this
.
_previewEdit
(
data
.
id
)
this
.
_previewEdit
(
data
.
id
)
},
},
...
...
pages/meter-certificate/template/MeterReportTemplate.vue
View file @
e31a325b
...
@@ -7,25 +7,25 @@
...
@@ -7,25 +7,25 @@
<Row>
<Row>
<!--查询-->
<!--查询-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"search-form"
:label-width=
"80"
v-show=
"searchOpen
"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
id=
"search-form"
:label-width=
"80
"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"模板名称:"
>
<Form-item
class=
"search-item"
label=
"模板名称:"
>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入模板名称
"
></Input>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入模板名称"
@
on-enter=
"_formSearch
"
></Input>
<input
type=
"hidden"
name=
"classifyId"
>
<input
type=
"hidden"
name=
"classifyId"
>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
@
on-result-change=
"_btnClick"
:showSearchBtn=
"true
"
></btn-list>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<!-- 表格 -->
<!-- 表格 -->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:page
C
olumns=
"pageColumns"
<PTVXETable
ref=
"pageTable"
:page
-c
olumns=
"pageColumns"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
:optColWidth=
"120"
:icon-msg=
"iconMsg
"
>
:get-page=
"getPage"
:opt-col-width=
"120"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange
"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</template>
</template>
<
script
>
<
script
>
import
global
from
'../../../api/config'
import
global
from
'../../../api/config'
import
{
meter
Sampl
e
}
from
'../../../api'
import
{
meter
Templat
e
}
from
'../../../api'
import
FoodReportTemplateEdit
from
'./MeterReportTemplateEdit'
import
FoodReportTemplateEdit
from
'./MeterReportTemplateEdit'
export
default
{
export
default
{
...
@@ -60,14 +60,15 @@ export default {
...
@@ -60,14 +60,15 @@ export default {
return
{
return
{
pageColumns
:
[
pageColumns
:
[
{
title
:
'报告模板名称'
,
key
:
'name'
},
{
title
:
'报告模板名称'
,
key
:
'name'
},
{
title
:
'别名'
,
key
:
'alias'
}
{
title
:
'别名'
,
key
:
'alias'
},
{
title
:
'备注'
,
key
:
'remark'
}
],
],
formObj
:
{
formObj
:
{
name
:
undefined
name
:
undefined
},
},
iconMsg
:
[
iconMsg
:
[
{
type
:
'ios-book'
,
id
:
''
,
name
:
'预览/编辑'
},
{
type
:
'ios-book'
,
id
:
''
,
name
:
'预览/编辑'
},
{
type
:
'ios-download'
,
id
:
''
,
name
:
'下载'
},
//
{ type: 'ios-download', id: '', name: '下载' },
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
}
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
}
],
],
getPage
:
{},
getPage
:
{},
...
@@ -137,13 +138,21 @@ export default {
...
@@ -137,13 +138,21 @@ export default {
this
.
_download
(
data
.
id
)
this
.
_download
(
data
.
id
)
break
break
case
'预览/编辑'
:
case
'预览/编辑'
:
this
.
_
view
Report
(
data
)
this
.
_
look
Report
(
data
)
break
break
case
'删除'
:
case
'删除'
:
this
.
_deleteById
([
data
.
id
])
this
.
_deleteById
s
([
data
.
id
])
break
break
}
}
},
},
_lookReport
:
async
function
(
data
)
{
const
result
=
await
meterTemplate
.
getById
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
_viewReport
(
data
)
{
// window.open(global.baseURL + '/print/v1/oos?key=' + objectKey+'&edit=true', '', 'height=' + (screen.availHeight - 50) + ',' +
// window.open(global.baseURL + '/print/v1/oos?key=' + objectKey+'&edit=true', '', 'height=' + (screen.availHeight - 50) + ',' +
// 'width=' + (screen.availWidth - 10) + ',top=0,left=0,toolbar=no,menubar=no,scrollbars=auto,resizeable=no,' +
// 'width=' + (screen.availWidth - 10) + ',top=0,left=0,toolbar=no,menubar=no,scrollbars=auto,resizeable=no,' +
...
@@ -152,6 +161,7 @@ export default {
...
@@ -152,6 +161,7 @@ export default {
this
.
$openWindowModeless
({
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
objectKey
:
data
.
objectKey
,
id
:
data
.
id
,
id
:
data
.
id
,
idType
:
11
,
isReport
:
4
isReport
:
4
})
})
}
}
...
@@ -162,7 +172,7 @@ export default {
...
@@ -162,7 +172,7 @@ export default {
_page
:
async
function
()
{
_page
:
async
function
()
{
console
.
log
(
'page'
)
console
.
log
(
'page'
)
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
meter
Sampl
e
.
pageTemplate
(
this
.
formObj
)
const
result
=
await
meter
Templat
e
.
pageTemplate
(
this
.
formObj
)
if
(
result
)
{
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
this
.
getPage
=
result
...
@@ -182,24 +192,25 @@ export default {
...
@@ -182,24 +192,25 @@ export default {
if
(
ids
.
length
===
0
)
{
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
}
else
{
this
.
_deleteById
(
ids
)
this
.
_deleteById
s
(
ids
)
}
}
},
},
_deleteById
(
ids
)
{
// 删除
// 删除一条记录
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'确定删除这 '
+
ids
.
length
+
' 条
记录?'
,
content
:
content
||
'确定删除该
记录?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
this
.
$store
.
dispatch
(
'SysFileTemplate/deleteById'
,
ids
).
then
(()
=>
{
this
.
_delete
(
ids
)
if
(
this
.
$store
.
state
.
SysFileTemplate
.
success
)
{
this
.
_page
()
this
.
$Message
.
success
(
'删除成功!'
)
this
.
selectIds
=
[]
}
}
})
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
meterTemplate
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
}
})
},
},
_download
(
id
)
{
_download
(
id
)
{
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
...
...
pages/meter-certificate/template/MeterReportTemplateEdit.vue
View file @
e31a325b
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
<Form-item
label=
"别名"
prop=
"alias"
>
<Form-item
label=
"别名"
prop=
"alias"
>
<Input
v-model=
"formObj.alias"
name=
"alias"
placeholder=
"请输入别名"
@
on-keyup=
"_onKeyUp"
></Input>
<Input
v-model=
"formObj.alias"
name=
"alias"
placeholder=
"请输入别名"
@
on-keyup=
"_onKeyUp"
></Input>
</Form-item>
</Form-item>
<Form-item
label=
"项目代号"
prop=
"remark"
>
<Input
v-model=
"formObj.remark"
name=
"remark"
placeholder=
"请输入项目代号"
@
on-keyup=
"_onKeyUp"
></Input>
</Form-item>
</Form>
</Form>
</div>
</div>
<div
slot=
"footer"
class=
"btn-width clearfix"
>
<div
slot=
"footer"
class=
"btn-width clearfix"
>
...
@@ -52,6 +55,7 @@ import global from '../../../api/config'
...
@@ -52,6 +55,7 @@ import global from '../../../api/config'
const
defVal
=
{
const
defVal
=
{
alias
:
''
,
alias
:
''
,
classType
:
''
,
classType
:
''
,
remark
:
''
,
classifyId
:
0
classifyId
:
0
}
}
...
@@ -63,6 +67,9 @@ export default {
...
@@ -63,6 +67,9 @@ export default {
formObj
:
defVal
,
formObj
:
defVal
,
ruleValidate
:
{
ruleValidate
:
{
alias
:
[{
required
:
true
,
message
:
'别名不能为空'
,
trigger
:
'blur'
}],
alias
:
[{
required
:
true
,
message
:
'别名不能为空'
,
trigger
:
'blur'
}],
remark
:
[
{
required
:
true
,
message
:
'项目代号不能为空'
,
trigger
:
'blur'
}
],
classType
:
[
classType
:
[
{
required
:
true
,
message
:
'类别不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'类别不能为空'
,
trigger
:
'blur'
}
]
]
...
@@ -80,7 +87,11 @@ export default {
...
@@ -80,7 +87,11 @@ export default {
},
},
methods
:
{
methods
:
{
_onKeyUp
()
{
_onKeyUp
()
{
if
(
this
.
formObj
.
alias
===
''
||
this
.
formObj
.
classType
===
''
)
{
if
(
this
.
formObj
.
alias
===
''
||
this
.
formObj
.
classType
===
''
||
this
.
formObj
.
remark
===
''
)
{
this
.
isDisable
=
true
this
.
isDisable
=
true
}
else
{
}
else
{
this
.
isDisable
=
false
this
.
isDisable
=
false
...
@@ -89,7 +100,9 @@ export default {
...
@@ -89,7 +100,9 @@ export default {
'/meter/v1/file_template/upload_template/?classType='
+
'/meter/v1/file_template/upload_template/?classType='
+
this
.
formObj
.
classType
+
this
.
formObj
.
classType
+
'&alias='
+
'&alias='
+
this
.
formObj
.
alias
this
.
formObj
.
alias
+
'&remark='
+
this
.
formObj
.
remark
}
}
},
},
_selectZtree
()
{
_selectZtree
()
{
...
@@ -102,6 +115,7 @@ export default {
...
@@ -102,6 +115,7 @@ export default {
this
.
showEditModal
=
true
this
.
showEditModal
=
true
this
.
isLoad
=
false
this
.
isLoad
=
false
this
.
formObj
.
alias
=
''
this
.
formObj
.
alias
=
''
this
.
formObj
.
remark
=
''
this
.
modalTitle
=
'添加模板'
this
.
modalTitle
=
'添加模板'
},
},
_beupload
(
file
)
{
_beupload
(
file
)
{
...
...
pages/meter-out/personal-task/MeterOutPersonalTask.vue
View file @
e31a325b
...
@@ -6,29 +6,29 @@
...
@@ -6,29 +6,29 @@
<Row>
<Row>
<!--查询-->
<!--查询-->
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Form
id=
"formId"
v-show=
"searchOpen
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
id=
"formId
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"样品名称:"
>
<Form-item
class=
"search-item"
label=
"样品名称:"
>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入样品名称"
clearable
/>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入样品名称"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-item"
label=
"样品编号:"
>
<Form-item
class=
"search-item"
label=
"样品编号:"
>
<Input
v-model=
"formObj.code"
@
on-enter=
"_formSearch"
name=
"aptitude"
placeholder=
"请输入样品编号"
clearable
/>
<Input
v-model=
"formObj.code"
name=
"aptitude"
placeholder=
"请输入样品编号"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
class=
"contHide
"
></btn-list>
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<!--表格-->
<!--表格-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
select-data
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<MeterPersonItemTaskManage
ref=
"personModal"
@
on-result-change=
"_page"
></MeterPersonItemTaskManage>
<MeterPersonItemTaskManage
ref=
"personModal"
@
on-result-change=
"_page"
></MeterPersonItemTaskManage>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
<CertificateMakeLook
ref=
"itemOriginalRecordLookModal"
@
on-result-change=
"_resultRecord"
></CertificateMakeLook>
<CertificateMakeLook
ref=
"itemOriginalRecordLookModal"
@
on-result-change=
"_resultRecord"
></CertificateMakeLook>
<SelectOriTempRecordExcel
ref=
"SelectOriTempRecordExcel"
@
on-result-change=
"_certificateSelectExcelBack"
></SelectOriTempRecordExcel>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -79,6 +79,7 @@ import CertificateMake from '../../meter-certificate/CertificateMake'
...
@@ -79,6 +79,7 @@ import CertificateMake from '../../meter-certificate/CertificateMake'
import
SelEquip
from
'../../../components/select-equip/SelEquip'
import
SelEquip
from
'../../../components/select-equip/SelEquip'
import
operationModal
from
'../../../components/operation/Operation'
import
operationModal
from
'../../../components/operation/Operation'
import
CertificateMakeLook
from
'../../meter-certificate/CertificateMakeLook'
import
CertificateMakeLook
from
'../../meter-certificate/CertificateMakeLook'
import
SelectOriTempRecordExcel
from
'../../meter-send/sample-input/SelectOriTempRecordExcel'
import
MeterSubcontractorEdit
from
'./MeterGoOutTestEdit'
import
MeterSubcontractorEdit
from
'./MeterGoOutTestEdit'
import
CarManage
from
'./CarManage'
import
CarManage
from
'./CarManage'
import
MeterPersonItemTaskManage
from
'./MeterPersonItemTaskManage'
import
MeterPersonItemTaskManage
from
'./MeterPersonItemTaskManage'
...
@@ -89,6 +90,7 @@ export default {
...
@@ -89,6 +90,7 @@ export default {
components
:
{
components
:
{
CertificateMake
,
CertificateMake
,
CertificateMakeLook
,
CertificateMakeLook
,
SelectOriTempRecordExcel
,
SelectOriTempRecord
,
SelectOriTempRecord
,
docimasy
,
docimasy
,
MeterSubcontractorEdit
,
MeterSubcontractorEdit
,
...
@@ -133,10 +135,15 @@ export default {
...
@@ -133,10 +135,15 @@ export default {
iconMsg
:
[
iconMsg
:
[
{
{
type
:
'ios-bookmarks'
,
type
:
'ios-bookmarks'
,
id
:
'meter-out-personal-task-
create-o
'
,
id
:
'meter-out-personal-task-
spread-js-create
'
,
name
:
'编制证书'
name
:
'编制证书'
},
},
{
{
type
:
'ios-bookmarks'
,
id
:
'meter-out-personal-task-create-o'
,
name
:
'在线编制证书'
},
{
type
:
'md-create'
,
type
:
'md-create'
,
id
:
'meter-out-personal-task-result-o'
,
id
:
'meter-out-personal-task-result-o'
,
name
:
'检测结果'
name
:
'检测结果'
...
@@ -173,7 +180,7 @@ export default {
...
@@ -173,7 +180,7 @@ export default {
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
3
0
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
5
0
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
120
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
120
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
120
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
120
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -306,6 +313,9 @@ export default {
...
@@ -306,6 +313,9 @@ export default {
case
'编制证书'
:
case
'编制证书'
:
this
.
_makeCertificate
(
data
)
this
.
_makeCertificate
(
data
)
break
break
case
'在线编制证书'
:
this
.
_makeCertificateExcel
(
data
)
break
case
'仪器领用'
:
case
'仪器领用'
:
this
.
$refs
.
InstruEdit
.
_open
(
data
.
id
)
this
.
$refs
.
InstruEdit
.
_open
(
data
.
id
)
break
break
...
@@ -414,7 +424,57 @@ export default {
...
@@ -414,7 +424,57 @@ export default {
await
this
.
_page
()
await
this
.
_page
()
}
}
},
},
_makeCertificateExcel
(
data
)
{
if
(
data
.
onlineReported
===
'否'
)
{
this
.
$refs
.
SelectOriTempRecordExcel
.
_open
(
data
.
id
,
data
)
}
else
{
this
.
_reportMakeLook
(
data
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_certificateSelectExcelBack
(
data
)
{
if
(
data
)
{
this
.
_makeCodeExcel
(
data
)
}
else
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
// this._appendOriginalRecord()
}
}
},
_makeCodeExcel
:
async
function
(
data
)
{
// this.$refs.pageTable._hideLoading()
this
.
$refs
.
pageTable
.
_showLoading
()
const
result
=
await
meterSample
.
generateExcelReport
(
data
)
if
(
result
)
{
await
this
.
_page
()
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
result
===
null
||
result
===
undefined
)
{
this
.
$Message
.
warning
(
'证书编制失败,请联系管理员!'
)
return
false
}
else
{
this
.
$emit
(
'on-result-change'
)
this
.
_viewReport
(
result
)
}
}
},
_record
(
id
)
{
_record
(
id
)
{
this
.
$refs
.
operationModal
.
_open
(
id
)
this
.
$refs
.
operationModal
.
_open
(
id
)
},
},
...
...
pages/meter-out/personal-task/MeterOutPersonalTaskHis.vue
View file @
e31a325b
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书是否编制'
,
key
:
'onlineReported'
,
width
:
120
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
3
0
},
{
title
:
'证书编号'
,
key
:
'reportCode'
,
width
:
1
5
0
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
120
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
120
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
120
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
120
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
100
},
...
@@ -345,15 +345,24 @@ export default {
...
@@ -345,15 +345,24 @@ export default {
}
}
},
},
_makeCertificate
(
data
)
{
_makeCertificate
:
async
function
(
data
)
{
if
(
data
.
onlineReported
===
'否'
||
undefined
===
data
.
recordId
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
// console.log('click')
if
(
result
)
{
// this.$refs.SelectOriTempRecord._open(data.id, data)
this
.
_viewReport
(
result
)
this
.
$Message
.
warning
(
'证书暂未编制!'
)
}
else
{
}
else
{
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
}
}
},
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_itemOriginalRecordLook
(
data
,
name
)
{
_itemOriginalRecordLook
(
data
,
name
)
{
if
(
if
(
data
.
recordId
===
null
||
data
.
recordId
===
null
||
...
...
pages/meter-send/sample-input/MeterSampleInput.vue
View file @
e31a325b
...
@@ -124,12 +124,12 @@ export default {
...
@@ -124,12 +124,12 @@ export default {
iconMsg
:
[
iconMsg
:
[
{
{
type
:
'ios-bookmarks'
,
type
:
'ios-bookmarks'
,
id
:
'meter-sample-input-create'
,
id
:
'meter-sample-input-
spread-js-
create'
,
name
:
'编制证书'
name
:
'编制证书'
},
},
{
{
type
:
'ios-bookmarks'
,
type
:
'ios-bookmarks'
,
id
:
''
,
id
:
'
meter-sample-input-create
'
,
name
:
'在线编制证书'
name
:
'在线编制证书'
},
},
{
{
...
@@ -336,10 +336,17 @@ export default {
...
@@ -336,10 +336,17 @@ export default {
},
},
_makeCertificateExcel
(
data
)
{
_makeCertificateExcel
(
data
)
{
if
(
data
.
onlineReported
===
'否'
||
undefined
===
data
.
recordId
)
{
if
(
data
.
onlineReported
===
'否'
)
{
this
.
$refs
.
SelectOriTempRecordExcel
.
_open
(
data
.
id
,
data
)
this
.
$refs
.
SelectOriTempRecordExcel
.
_open
(
data
.
id
,
data
)
}
else
{
}
else
{
this
.
_itemOriginalRecordLook
(
data
,
'write'
)
this
.
_reportMakeLook
(
data
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
}
},
},
...
@@ -432,14 +439,18 @@ export default {
...
@@ -432,14 +439,18 @@ export default {
}
}
}
}
},
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_certificateSelectExcelBack
(
data
)
{
_certificateSelectExcelBack
(
data
)
{
if
(
data
)
{
if
(
data
)
{
// this.$refs.itemOriginalRecordModal._open(
// data.sampleId,
// data.tempId,
// data.dataSource
// )
console
.
log
(
'_certificateSelectBack--'
,
data
)
this
.
_makeCodeExcel
(
data
)
this
.
_makeCodeExcel
(
data
)
}
else
{
}
else
{
const
ids
=
this
.
selectIds
const
ids
=
this
.
selectIds
...
@@ -468,18 +479,19 @@ export default {
...
@@ -468,18 +479,19 @@ export default {
},
},
_makeCodeExcel
:
async
function
(
data
)
{
_makeCodeExcel
:
async
function
(
data
)
{
const
result
=
await
meterSample
.
makeExcelReport
(
data
)
// this.$refs.pageTable._hideLoading()
this
.
$refs
.
pageTable
.
_showLoading
()
const
result
=
await
meterSample
.
generateExcelReport
(
data
)
if
(
result
)
{
if
(
result
)
{
if
(
result
===
''
||
result
===
undefined
)
{
await
this
.
_page
()
this
.
$Message
.
warning
(
'证书编号暂未生成!'
)
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
result
===
null
||
result
===
undefined
)
{
this
.
$Message
.
warning
(
'证书编制失败,请联系管理员!'
)
return
false
return
false
}
else
{
this
.
$emit
(
'on-result-change'
)
this
.
_viewReport
(
result
)
}
}
data
.
dataSource
.
cc
=
result
this
.
$refs
.
itemOriginalRecordModal
.
_open
(
data
.
sampleId
,
data
.
tempId
,
data
.
dataSource
)
}
}
},
},
...
...
pages/meter-send/sample-input/MeterSampleInputHis.vue
View file @
e31a325b
...
@@ -316,14 +316,24 @@ export default {
...
@@ -316,14 +316,24 @@ export default {
})
})
},
},
_makeCertificate
(
data
)
{
_makeCertificate
:
async
function
(
data
)
{
if
(
data
.
onlineReported
===
'否'
||
undefined
===
data
.
recordId
)
{
const
result
=
await
meterSample
.
getCertificateReport
(
data
.
id
)
// this.$refs.SelectOriTempRecord._open(data.id, data)
if
(
result
)
{
this
.
$Message
.
warning
(
'证书暂未编制!'
)
this
.
_viewReport
(
result
)
}
else
{
}
else
{
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
this
.
_itemOriginalRecordLook
(
data
,
'only'
)
}
}
},
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_itemOriginalRecordLook
(
data
,
name
)
{
_itemOriginalRecordLook
(
data
,
name
)
{
if
(
if
(
...
...
pages/meter-send/sample-input/SelectOriTempRecordExcel.vue
View file @
e31a325b
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
<Col
span=
"24"
/>
<Col
span=
"24"
/>
<Form
v-model=
"formObj"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
v-model=
"formObj"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form-item
class=
"search-item"
label=
"证书模板名称:"
>
<Form-item
class=
"search-item"
label=
"证书模板名称:"
>
<Input
v-model=
"formObj.
code"
@
on-enter=
"_formSearch"
placeholder=
"请输入证书模板名称"
clearable
/>
<Input
v-model=
"formObj.
name"
placeholder=
"请输入证书模板名称"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-item"
label=
"类别:"
>
<Form-item
class=
"search-item"
label=
"类别:"
>
<Input
v-model=
"formObj.
standardName"
@
on-enter=
"_formSearch"
placeholder=
"请输入类别"
clearable
/>
<Input
v-model=
"formObj.
classType"
placeholder=
"请输入类别"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
搜索
</Button>
</Button>
</Form-item>
</Form-item>
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
:icon-msg=
"iconMsg"
:icon-msg=
"iconMsg"
:is-radio=
"true"
:is-radio=
"true"
select-data=
"true"
select-data=
"true"
@
on-result-change=
"_tableResultChange"
hide-checkbox
hide-checkbox
>
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
// import SampleItemSelect from './SampleItemSelect'
// import SampleItemSelect from './SampleItemSelect'
import
DownloadTemplateImport
from
'../../../components/import/DownloadTemplateImport'
import
DownloadTemplateImport
from
'../../../components/import/DownloadTemplateImport'
import
ModalFooter
from
'../../../components/base/modalFooter'
import
ModalFooter
from
'../../../components/base/modalFooter'
import
{
meter
ManageItem
,
meterSampl
e
}
from
'../../../api'
import
{
meter
Templat
e
}
from
'../../../api'
export
default
{
export
default
{
components
:
{
components
:
{
ModalFooter
,
ModalFooter
,
...
@@ -82,10 +82,8 @@ export default {
...
@@ -82,10 +82,8 @@ export default {
return
{
return
{
formId
:
'SampleItemListFormId'
,
formId
:
'SampleItemListFormId'
,
formObj
:
{
formObj
:
{
aptitudeId
:
''
,
name
:
''
,
name
:
''
,
code
:
''
,
classType
:
''
standardName
:
''
},
},
showModal
:
false
,
showModal
:
false
,
searchOpen
:
false
,
searchOpen
:
false
,
...
@@ -100,22 +98,21 @@ export default {
...
@@ -100,22 +98,21 @@ export default {
{
title
:
'类别'
,
key
:
'classType'
,
width
:
140
},
{
title
:
'类别'
,
key
:
'classType'
,
width
:
140
},
{
title
:
'备注'
,
key
:
'remark'
}
{
title
:
'备注'
,
key
:
'remark'
}
],
],
catalogu
eId
:
''
,
sampl
eId
:
''
,
getPage
:
{},
getPage
:
{},
selectData
:
[]
selectData
:
[]
}
}
},
},
methods
:
{
methods
:
{
_open
(
aptitud
eId
)
{
_open
(
sampl
eId
)
{
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
showModal
=
true
this
.
showModal
=
true
this
.
formObj
.
aptitudeId
=
aptitud
eId
this
.
sampleId
=
sampl
eId
this
.
_page
()
this
.
_page
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterTemplate
.
pageTemplate
(
this
.
formObj
)
const
result
=
await
meterSample
.
pageTemplate
(
this
.
formObj
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
this
.
getPage
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
...
@@ -137,17 +134,10 @@ export default {
...
@@ -137,17 +134,10 @@ export default {
// this._hideLoading()
// this._hideLoading()
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
}
else
{
// 校验多样品多项目原始记录模板
const
data
=
this
.
selectData
[
0
]
// const param = {
data
.
sampleId
=
this
.
sampleId
// sampleId: this.sampleId,
this
.
$emit
(
'on-result-change'
,
data
)
// tempId: this.selectData[0].id,
this
.
showModal
=
false
// remark: this.selectData[0].remark,
// dataSource: this.sampleData
// }
// console.log(param)
// this.$emit('on-result-change', param)
console
.
log
(
'单选选中的值'
,
this
.
selectData
)
// this.showModal = false
}
}
},
},
_cancel
()
{
_cancel
()
{
...
@@ -160,78 +150,23 @@ export default {
...
@@ -160,78 +150,23 @@ export default {
_formSearch
()
{
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
},
// _page: async function() {
// Object.assign(this.formObj, this.$refs.pageTable._searchParams())
// const result = await drugCatalogueItem.pageCatalogueItem(
// this.$serializeForm(this.formObj)
// )
// if (result) {
// this.getPage = result
// this.$refs.pageTable._initTable()
// }
// },
_btnClick
(
msg
)
{
_btnClick
(
msg
)
{
switch
(
msg
)
{
switch
(
msg
)
{
case
'导入检测项目'
:
case
'导入检测项目'
:
this
.
$refs
.
relItemModal
.
_open
(
this
.
catalogueId
)
break
break
}
}
},
},
_importItem
()
{
const
data
=
{
importUrl
:
'/meter/v1/aptitude_item/import_aptitude_item?aptitudeId='
+
this
.
formObj
.
aptitudeId
,
downloadUrl
:
'/meter/v1/excel/template/MeterAptitudeItemImport'
,
title
:
'导入'
}
this
.
$refs
.
importModal
.
_open
(
data
,
'授权资质项目导入'
)
},
// 操作列操作
// 操作列操作
_iconClick
(
res
,
data
)
{
_iconClick
(
res
,
data
)
{
switch
(
res
)
{
switch
(
res
)
{
case
'删除'
:
case
'删除'
:
this
.
_deleteById
(
data
.
id
)
break
break
}
}
},
},
// 删除
_deleteById
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该数据?'
,
onOk
:
()
=>
{
this
.
_deleteOk
(
id
)
}
})
},
_deleteOk
:
async
function
(
id
)
{
const
result
=
await
meterManageItem
.
deleteItemById
(
id
)
if
(
result
)
{
await
this
.
_page
()
this
.
$Message
.
success
(
'删除成功'
)
}
},
_handleOrderValueEdit
(
id
,
value
)
{
_handleOrderValueEdit
(
id
,
value
)
{
this
.
_edit
({
id
:
id
,
obj
:
{
orderBy
:
value
}
})
this
.
_edit
({
id
:
id
,
obj
:
{
orderBy
:
value
}
})
},
},
// _edit: async function(data) {
// const result = await drugCatalogueItem.edit(data)
// if (result) {
// this._page()
// }
// },
// _deleteOk: async function(id) {
// const result = await drugCatalogueItem.deleteById(id)
// if (result) {
// this.$Message.success('删除成功')
// this._page()
// }
// },
// table结果 返回整行
_tableResultChange
(
msg
,
data
)
{
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
switch
(
msg
)
{
case
'page'
:
case
'page'
:
...
...
plugins/common.js
View file @
e31a325b
...
@@ -839,7 +839,9 @@ Vue.prototype.$openWindowModeless = function(data) {
...
@@ -839,7 +839,9 @@ Vue.prototype.$openWindowModeless = function(data) {
'&companyId='
+
'&companyId='
+
global
.
getUserInfo
().
companyId
+
global
.
getUserInfo
().
companyId
+
'&userName='
+
'&userName='
+
realname
realname
+
'&idType='
+
data
.
idType
// eslint-disable-next-line no-undef
// eslint-disable-next-line no-undef
return
POBrowser
.
openWindowModeless
(
uri
,
'width=1200px;height=800px;'
)
return
POBrowser
.
openWindowModeless
(
uri
,
'width=1200px;height=800px;'
)
}
}
...
...
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