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
6d86a294
Commit
6d86a294
authored
Jul 25, 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
ebfa965a
b0ecb870
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
332 additions
and
42 deletions
+332
-42
meter-contract.js
api/meter/meter-contract.js
+2
-0
SelectOriTempRecord.vue
pages/meter-certificate/make/SelectOriTempRecord.vue
+1
-0
MeterContractRegisterEdit.vue
...-contract/contract-register/MeterContractRegisterEdit.vue
+58
-10
VerificationModal.vue
pages/meter-contract/contract-register/VerificationModal.vue
+190
-0
MeterContractReviewHis.vue
...meter-contract/contract-review/MeterContractReviewHis.vue
+51
-8
MeterContractReviewRecord.vue
...er-contract/contract-review/MeterContractReviewRecord.vue
+0
-0
MeterSendTestEdit.vue
pages/meter-entrust/send-test/MeterSendTestEdit.vue
+1
-1
MeterSampleFlow.vue
pages/meter-send/sample-flow/MeterSampleFlow.vue
+2
-2
MeterSampleInput.vue
pages/meter-send/sample-input/MeterSampleInput.vue
+10
-9
SelectOriTempRecord.vue
pages/meter-send/sample-input/SelectOriTempRecord.vue
+1
-0
MeterTaskAlloca.vue
pages/meter-send/task-distribute/MeterTaskAlloca.vue
+16
-12
No files found.
api/meter/meter-contract.js
View file @
6d86a294
...
@@ -167,6 +167,8 @@ export default {
...
@@ -167,6 +167,8 @@ export default {
getReviewById
:
data
=>
getReviewById
:
data
=>
http
.
get
(
'meter/v1/contract/review/'
+
data
).
then
(
res
=>
res
),
http
.
get
(
'meter/v1/contract/review/'
+
data
).
then
(
res
=>
res
),
getReviewDTOById
:
data
=>
http
.
get
(
'meter/v1/contract/review_record/'
+
data
).
then
(
res
=>
res
),
getReviewRecordById
:
data
=>
getReviewRecordById
:
data
=>
http
.
get
(
'meter/v1/contract/review_record/'
+
data
).
then
(
res
=>
res
)
http
.
get
(
'meter/v1/contract/review_record/'
+
data
).
then
(
res
=>
res
)
}
}
pages/meter-certificate/make/SelectOriTempRecord.vue
View file @
6d86a294
...
@@ -187,6 +187,7 @@ export default {
...
@@ -187,6 +187,7 @@ export default {
const
param
=
{
const
param
=
{
sampleId
:
this
.
sampleId
,
sampleId
:
this
.
sampleId
,
tempId
:
this
.
selectData
[
0
].
id
,
tempId
:
this
.
selectData
[
0
].
id
,
remark
:
this
.
selectData
[
0
].
remark
,
dataSource
:
this
.
sampleData
dataSource
:
this
.
sampleData
}
}
console
.
log
(
url
,
param
)
console
.
log
(
url
,
param
)
...
...
pages/meter-contract/contract-register/MeterContractRegisterEdit.vue
View file @
6d86a294
...
@@ -44,10 +44,10 @@
...
@@ -44,10 +44,10 @@
<Input
v-model=
"formObj.discount"
name=
"discount"
placeholder=
"折扣"
/>
<Input
v-model=
"formObj.discount"
name=
"discount"
placeholder=
"折扣"
/>
</Form-item>
</Form-item>
<Form-item
label=
"检定/校准执行规程/规范:"
prop=
"requirements"
style=
"width: 99.8%"
>
<!--
<Form-item
label=
"检定/校准执行规程/规范:"
prop=
"requirements"
style=
"width: 99.8%"
>
--
>
<Input
v-model=
"formObj.requirements"
:rows=
"3"
name=
"requirements"
type=
"textarea"
<!--
<Input
v-model=
"formObj.requirements"
:rows=
"3"
name=
"requirements"
type=
"textarea"
--
>
placeholder=
"请输入检定/校准执行规程/规范"
/
>
<!-- placeholder="请输入检定/校准执行规程/规范"/>--
>
</Form-item
>
<!--
</Form-item>
--
>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
placeholder=
"请输入备注"
/>
placeholder=
"请输入备注"
/>
...
@@ -84,6 +84,10 @@
...
@@ -84,6 +84,10 @@
></el-input>
></el-input>
<a
style=
"font-size: 18px;"
class=
""
@
on-result-change=
"_judgeBasisChange"
@
click=
"_selectjudgeBasis(scope.$rowIndex)"
>
+
</a>
<a
style=
"font-size: 18px;"
class=
""
@
on-result-change=
"_judgeBasisChange"
@
click=
"_selectjudgeBasis(scope.$rowIndex)"
>
+
</a>
</div>
</div>
<div
v-if=
"item.key==='verification'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.verification"
placeholder=
"请输入检定依据"
style=
"width: 85%"
></el-input>
<a
style=
"font-size: 18px;width: 15%"
class=
""
@
on-result-change=
"_judgeBasisChange"
@
click=
"_selectverification(scope.$rowIndex)"
>
+
</a>
</div>
<div
v-else-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-else-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.spec"
blur
placeholder=
"请输入或选择型号规格"
<el-input
v-model=
"scope.row.spec"
blur
placeholder=
"请输入或选择型号规格"
></el-input>
></el-input>
...
@@ -132,6 +136,7 @@
...
@@ -132,6 +136,7 @@
</Modal>
</Modal>
<EditModal
ref=
"EditModal"
is-change
@
on-result-change=
"_backData"
/>
<EditModal
ref=
"EditModal"
is-change
@
on-result-change=
"_backData"
/>
<importModal
ref=
"importModal"
aptitude-item
@
on-result-change=
"_inputBack"
></importModal>
<importModal
ref=
"importModal"
aptitude-item
@
on-result-change=
"_inputBack"
></importModal>
<VerificationModal
ref=
"VerificationModal"
@
on-result-change=
"_backVerification"
></VerificationModal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -143,9 +148,15 @@ import CityNameCascader from '../../../components/base/CityNameCascader'
...
@@ -143,9 +148,15 @@ import CityNameCascader from '../../../components/base/CityNameCascader'
import
AutoComplete
from
'../../../components/base/AutoCompletes'
import
AutoComplete
from
'../../../components/base/AutoCompletes'
import
importModal
from
'../../../components/import/DownloadTemplateImport'
import
importModal
from
'../../../components/import/DownloadTemplateImport'
import
EditModal
from
'./EditModal'
import
EditModal
from
'./EditModal'
import
VerificationModal
from
'./VerificationModal'
export
default
{
export
default
{
components
:
{
CityNameCascader
,
EditModal
,
AutoComplete
,
importModal
},
components
:
{
CityNameCascader
,
EditModal
,
AutoComplete
,
importModal
,
VerificationModal
},
data
()
{
data
()
{
const
validateRemark
=
(
rule
,
value
,
callback
)
=>
{
const
validateRemark
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
testedCityData
.
length
===
0
)
{
if
(
this
.
testedCityData
.
length
===
0
)
{
...
@@ -182,6 +193,7 @@ export default {
...
@@ -182,6 +193,7 @@ export default {
{
title
:
'名称'
,
key
:
'name'
,
width
:
180
},
{
title
:
'名称'
,
key
:
'name'
,
width
:
180
},
{
title
:
'型号'
,
key
:
'spec'
},
{
title
:
'型号'
,
key
:
'spec'
},
{
title
:
'是否资质内可检'
,
key
:
'aptituded'
,
width
:
130
},
{
title
:
'是否资质内可检'
,
key
:
'aptituded'
,
width
:
130
},
{
title
:
'检定/校准依据'
,
key
:
'verification'
,
width
:
200
},
{
title
:
'数量'
,
key
:
'quantity'
,
width
:
130
},
{
title
:
'数量'
,
key
:
'quantity'
,
width
:
130
},
{
title
:
'技术参数'
,
key
:
'technicalParameter'
},
{
title
:
'技术参数'
,
key
:
'technicalParameter'
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
...
@@ -242,7 +254,31 @@ export default {
...
@@ -242,7 +254,31 @@ export default {
testedStreet
:
''
testedStreet
:
''
}
}
},
},
formObjPre
:
{
client
:
''
,
linkman
:
''
,
salesCode
:
''
,
tel
:
''
,
email
:
''
,
address
:
''
,
remark
:
''
,
province
:
''
,
city
:
''
,
county
:
''
,
requirements
:
''
,
discount
:
''
,
street
:
''
,
edate
:
''
,
odate
:
''
,
person
:
''
,
fax
:
''
,
testedTemp
:
{
testedProvince
:
''
,
testedCity
:
''
,
testedCounty
:
''
,
testedStreet
:
''
}
},
ruleValidate
:
{
ruleValidate
:
{
client
:
[
client
:
[
{
{
...
@@ -346,6 +382,11 @@ export default {
...
@@ -346,6 +382,11 @@ export default {
this
.
$refs
.
formObj
.
validateField
(
'code'
)
this
.
$refs
.
formObj
.
validateField
(
'code'
)
}
}
},
},
_selectverification
(
index
)
{
console
.
log
(
index
)
this
.
index
=
index
this
.
$refs
.
VerificationModal
.
_open
()
},
_selectjudgeBasis
(
index
)
{
_selectjudgeBasis
(
index
)
{
console
.
log
(
index
)
console
.
log
(
index
)
this
.
index
=
index
this
.
index
=
index
...
@@ -355,11 +396,17 @@ export default {
...
@@ -355,11 +396,17 @@ export default {
console
.
log
(
typeof
this
.
index
)
console
.
log
(
typeof
this
.
index
)
this
.
getPage
.
records
[
this
.
index
].
name
=
data
.
name
this
.
getPage
.
records
[
this
.
index
].
name
=
data
.
name
this
.
getPage
.
records
[
this
.
index
].
aptitudeId
=
data
.
id
this
.
getPage
.
records
[
this
.
index
].
aptitudeId
=
data
.
id
this
.
getPage
.
records
[
this
.
index
].
verification
=
(
undefined
===
data
.
code
?
''
:
data
.
code
)
+
(
undefined
===
data
.
basis
?
''
:
data
.
basis
)
console
.
log
(
'返回的数据'
)
console
.
log
(
'返回的数据'
)
console
.
log
(
data
)
console
.
log
(
data
)
console
.
log
(
this
.
getPage
.
records
)
console
.
log
(
this
.
getPage
.
records
)
},
},
_backVerification
(
data
)
{
this
.
$forceUpdate
()
this
.
getPage
.
records
[
this
.
index
].
verification
=
data
.
verification
},
_inputBack
(
data
)
{
_inputBack
(
data
)
{
if
(
undefined
!==
data
)
{
if
(
undefined
!==
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
...
@@ -563,13 +610,14 @@ export default {
...
@@ -563,13 +610,14 @@ export default {
},
},
_open
(
formObj
)
{
_open
(
formObj
)
{
this
.
showModal
=
true
this
.
showModal
=
true
this
.
formObj
=
this
.
formObjPre
this
.
_getList
()
this
.
_getList
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
_emptyProvince
()
this
.
_emptyProvince
()
this
.
_hideLoading
()
this
.
_hideLoading
()
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
this
.
getPage
.
records
=
[]
this
.
getPage
.
records
=
[]
this
.
id
=
''
this
.
id
=
undefined
this
.
modalTitle
=
'合同新增'
this
.
modalTitle
=
'合同新增'
}
else
{
}
else
{
this
.
id
=
formObj
.
id
this
.
id
=
formObj
.
id
...
@@ -633,7 +681,7 @@ export default {
...
@@ -633,7 +681,7 @@ export default {
]
]
this
.
formObj
.
province
=
result
[
0
].
province
this
.
formObj
.
province
=
result
[
0
].
province
this
.
formObj
.
city
=
result
[
0
].
city
this
.
formObj
.
city
=
result
[
0
].
city
this
.
formObj
.
county
=
result
[
0
].
county
this
.
formObj
.
county
=
result
[
0
].
area
}
}
},
},
_getAptitudeList
:
async
function
()
{
_getAptitudeList
:
async
function
()
{
...
...
pages/meter-contract/contract-register/VerificationModal.vue
0 → 100644
View file @
6d86a294
<
template
>
<div>
<Modal
v-model=
"showUserGroupModal"
width=
"800"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<Row>
<!--查询条件-->
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"授权资质仪器名称"
>
<Input
v-model=
"code"
@
on-enter=
"_pageChange(1)"
placeholder=
"授权资质仪器名称"
style=
"width: 100%"
/>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Input
v-model=
"name"
@
on-enter=
"_pageChange(1)"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
/>
</Form-item>
</Form>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
:data=
"getPage"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
border
size=
"small"
highlight-current-row
style=
"width: 100%"
>
<el-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:prop=
"item.key"
:label=
"item.title"
:min-width=
"item.width"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]?
scope
.
row
[
item
.
key
].
display
:
''
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</el-table-column>
</el-table>
</Col>
<Col
span=
"24"
>
<Page
:total=
"getPage.total"
:page-size=
"getPage.size"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
placement=
"top"
show-total
show-elevator
show-sizer
/>
<div
style=
"clear: both"
/>
</Col>
</Row>
<div
slot=
"footer"
class=
"btn-width"
>
<Button
@
click=
"_cancel"
style=
"margin-left: 8px"
>
取消
</Button>
<Button
@
click=
"_ok"
type=
"primary"
>
确定
</Button>
</div>
</Modal>
</div>
</template>
<
script
>
// import { meterAptitude } from '../../../api'
import
{
meterAptitude
}
from
'../../../api'
export
default
{
name
:
'EditModal'
,
data
()
{
return
{
formObj
:
{
name
:
undefined
,
code
:
undefined
},
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageColumns
:
[
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
// { title: '传真', key: 'fax', width: 120 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '登记日期', key: 'edate', width: 120, date: true },
// { title: '要求完成时间', key: 'odate', width: 120, date: true },
// { title: '折扣', key: 'discount', width: 120 },
// { title: '总价', key: 'totalPrice', width: 120 },
// { title: '折扣价', key: 'discountPrice', width: 120 },
// { title: '备注', key: 'remark' }
],
getPage
:
[],
showUserGroupModal
:
false
,
modalTitle
:
''
,
currentRowData
:
{},
name
:
''
,
code
:
''
}
},
methods
:
{
_open
()
{
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
code
=
''
this
.
_judge
()
},
_judge
()
{
this
.
showUserGroupModal
=
true
this
.
currentRowData
=
{}
this
.
_page
()
},
_page
:
async
function
()
{
const
result
=
await
meterAptitude
.
page
(
this
.
formObj
)
if
(
result
)
{
this
.
getPage
=
result
.
records
console
.
log
(
this
.
getPage
)
for
(
let
i
=
0
;
i
<
this
.
getPage
.
length
;
i
++
)
{
this
.
getPage
[
i
].
verification
=
this
.
getPage
[
i
].
code
+
this
.
getPage
[
i
].
name
}
this
.
loading
=
false
}
},
_pageChange
(
page
)
{
this
.
pageParams
.
page
=
page
this
.
_page
()
},
_pageRows
(
rows
)
{
this
.
pageParams
.
rows
=
rows
this
.
_page
()
},
_searchParams
()
{
const
data
=
this
.
$serialize
(
'test-item-form'
)
if
(
this
.
name
)
{
data
.
name
=
this
.
name
}
if
(
this
.
code
)
{
data
.
code
=
this
.
code
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
_search
()
{
this
.
_page
()
},
_rowChange
(
data
)
{
this
.
currentRowData
=
data
// 选中的行数据;
},
_cancel
()
{
this
.
showUserGroupModal
=
false
},
_ok
()
{
if
(
JSON
.
stringify
(
this
.
currentRowData
)
===
'{}'
)
{
switch
(
this
.
modalTitle
)
{
case
'选择检测依据'
:
this
.
$Message
.
warning
(
'请选择一条合同!'
)
break
}
}
else
{
this
.
$emit
(
'on-result-change'
,
this
.
currentRowData
)
this
.
showUserGroupModal
=
false
}
},
// 双击
_dbClick
(
data
,
event
)
{
this
.
currentRowData
=
data
// 选中的行数据;
this
.
_ok
()
}
}
}
</
script
>
<
style
scoped
>
</
style
>
pages/meter-contract/contract-review/MeterContractReviewHis.vue
View file @
6d86a294
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<MeterReviewHisHisOperation
ref=
"operationModal"
></MeterReviewHisHisOperation>
<MeterReviewHisHisOperation
ref=
"operationModal"
></MeterReviewHisHisOperation>
<FileManage
ref=
"FileManage"
></FileManage>
<FileManage
ref=
"FileManage"
></FileManage>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
<MeterContractReviewAddEdit
ref=
"addEditModal"
@
on-result-change=
"_page"
></MeterContractReviewAddEdit>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -56,8 +57,13 @@ import http from '../../../api/http'
...
@@ -56,8 +57,13 @@ import http from '../../../api/http'
import
{
meterContract
,
meterSubcontractor
}
from
'../../../api'
import
{
meterContract
,
meterSubcontractor
}
from
'../../../api'
import
MeterReviewHisHisOperation
from
'../../../components/operation/Operation'
import
MeterReviewHisHisOperation
from
'../../../components/operation/Operation'
import
MeterSubcontractorEdit
from
'./MeterContractReviewEdit'
import
MeterSubcontractorEdit
from
'./MeterContractReviewEdit'
import
MeterContractReviewAddEdit
from
'./MeterContractReviewRecord'
export
default
{
export
default
{
components
:
{
MeterSubcontractorEdit
,
MeterReviewHisHisOperation
},
components
:
{
MeterSubcontractorEdit
,
MeterReviewHisHisOperation
,
MeterContractReviewAddEdit
},
data
()
{
data
()
{
return
{
return
{
currentComponent
:
''
,
currentComponent
:
''
,
...
@@ -73,6 +79,11 @@ export default {
...
@@ -73,6 +79,11 @@ export default {
type
:
'success'
,
type
:
'success'
,
id
:
'meter-contract-review-his-export'
,
id
:
'meter-contract-review-his-export'
,
name
:
'导出项目统计表'
name
:
'导出项目统计表'
},
{
type
:
'success'
,
id
:
''
,
name
:
'导出合同评审记录'
}
}
],
],
iconMsg
:
[
iconMsg
:
[
...
@@ -92,9 +103,9 @@ export default {
...
@@ -92,9 +103,9 @@ export default {
name
:
'附件'
name
:
'附件'
},
},
{
{
type
:
'md-
remove-circl
e'
,
type
:
'md-
creat
e'
,
id
:
'
meter-contract-review-his-remove-operation
'
,
id
:
''
,
name
:
'
删除
'
name
:
'
评审记录
'
},
},
{
{
type
:
'ios-clock'
,
type
:
'ios-clock'
,
...
@@ -147,6 +158,9 @@ export default {
...
@@ -147,6 +158,9 @@ export default {
case
'导出项目统计表'
:
case
'导出项目统计表'
:
this
.
_exportContractTable
()
this
.
_exportContractTable
()
break
break
case
'导出合同评审记录'
:
this
.
_exportContractReviewRecord
()
break
case
'search'
:
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
this
.
searchOpen
=
!
this
.
searchOpen
break
break
...
@@ -155,10 +169,10 @@ export default {
...
@@ -155,10 +169,10 @@ export default {
},
},
_exportContractTable
()
{
_exportContractTable
()
{
//
if (this.selectIds.length === 0) {
if
(
this
.
selectIds
.
length
===
0
)
{
//
this.$Message.warning('请选择要导出的数据!')
this
.
$Message
.
warning
(
'请选择要导出的数据!'
)
//
return false
return
false
//
}
}
const
sampleIds
=
this
.
selectIds
.
join
(
','
)
const
sampleIds
=
this
.
selectIds
.
join
(
','
)
const
data
=
this
.
formObj
const
data
=
this
.
formObj
data
.
idsStr
=
sampleIds
data
.
idsStr
=
sampleIds
...
@@ -173,6 +187,22 @@ export default {
...
@@ -173,6 +187,22 @@ export default {
}
}
})
})
},
},
_exportContractReviewRecord
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请选择要导出的数据!'
)
return
false
}
const
sampleIds
=
this
.
selectIds
.
join
(
','
)
const
data
=
this
.
formObj
data
.
idsStr
=
sampleIds
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定导出数据?'
,
onOk
:
()
=>
{
http
.
open
(
'/meter/v1/contract/export_contract_review_record/'
,
data
)
}
})
},
_iconClick
(
res
,
data
,
componentName
)
{
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
currentComponent
=
componentName
...
@@ -193,9 +223,22 @@ export default {
...
@@ -193,9 +223,22 @@ export default {
case
'操作日志'
:
case
'操作日志'
:
this
.
_record
(
data
.
id
)
this
.
_record
(
data
.
id
)
break
break
case
'评审记录'
:
this
.
_reviewContract
(
data
.
id
)
break
}
}
})
})
},
},
// 编辑&添加
_reviewContract
(
id
)
{
this
.
_getContractReview
(
id
)
},
_getContractReview
:
async
function
(
id
)
{
const
result
=
await
meterContract
.
getReviewDTOById
(
id
)
if
(
result
)
{
this
.
$refs
.
addEditModal
.
_openEdit
(
result
)
}
},
_record
(
id
)
{
_record
(
id
)
{
this
.
$refs
.
operationModal
.
_open
(
id
)
this
.
$refs
.
operationModal
.
_open
(
id
)
},
},
...
...
pages/meter-contract/contract-review/MeterContractReviewRecord.vue
0 → 100644
View file @
6d86a294
This diff is collapsed.
Click to expand it.
pages/meter-entrust/send-test/MeterSendTestEdit.vue
View file @
6d86a294
...
@@ -225,7 +225,7 @@ export default {
...
@@ -225,7 +225,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
200
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
200
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
200
},
{
title
:
'检定
/校准
依据'
,
key
:
'verification'
,
width
:
200
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'制造单位'
,
key
:
'manufacturer'
},
{
title
:
'制造单位'
,
key
:
'manufacturer'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'检测类型'
,
key
:
'type'
},
...
...
pages/meter-send/sample-flow/MeterSampleFlow.vue
View file @
6d86a294
...
@@ -105,8 +105,8 @@ export default {
...
@@ -105,8 +105,8 @@ export default {
selectData
:
[],
selectData
:
[],
getPage
:
{},
getPage
:
{},
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
1
2
0
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
1
3
0
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
2
0
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
5
0
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'检测类型'
,
key
:
'type'
},
...
...
pages/meter-send/sample-input/MeterSampleInput.vue
View file @
6d86a294
...
@@ -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"
...
@@ -160,9 +160,9 @@ export default {
...
@@ -160,9 +160,9 @@ export default {
getPage
:
{},
getPage
:
{},
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
120
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
2
0
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
5
0
},
{
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
:
115
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
115
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
115
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
115
},
{
title
:
'制造厂商'
,
key
:
'manufacturer'
,
width
:
125
},
{
title
:
'制造厂商'
,
key
:
'manufacturer'
,
width
:
125
},
...
@@ -402,6 +402,7 @@ export default {
...
@@ -402,6 +402,7 @@ export default {
// data.tempId,
// data.tempId,
// data.dataSource
// data.dataSource
// )
// )
console
.
log
(
'_certificateSelectBack--'
,
data
)
this
.
_makeCode
(
data
)
this
.
_makeCode
(
data
)
}
else
{
}
else
{
const
ids
=
this
.
selectIds
const
ids
=
this
.
selectIds
...
...
pages/meter-send/sample-input/SelectOriTempRecord.vue
View file @
6d86a294
...
@@ -184,6 +184,7 @@ export default {
...
@@ -184,6 +184,7 @@ export default {
const
param
=
{
const
param
=
{
sampleId
:
this
.
sampleId
,
sampleId
:
this
.
sampleId
,
tempId
:
this
.
selectData
[
0
].
id
,
tempId
:
this
.
selectData
[
0
].
id
,
remark
:
this
.
selectData
[
0
].
remark
,
dataSource
:
this
.
sampleData
dataSource
:
this
.
sampleData
}
}
console
.
log
(
param
)
console
.
log
(
param
)
...
...
pages/meter-send/task-distribute/MeterTaskAlloca.vue
View file @
6d86a294
...
@@ -43,11 +43,15 @@
...
@@ -43,11 +43,15 @@
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</div>
</div>
<div
v-else-if=
"item.key==='type'"
>
<div
v-else-if=
"item.key==='type'"
>
<Select
v-model=
"scope.row.type"
>
<span
v-if=
"scope.row[item.key]===0"
>
<Option
v-for=
"(item,index) in options"
:key=
"item.name"
:value=
"index"
>
检定
{{
item
.
name
}}
</span>
</Option>
<span
v-if=
"scope.row[item.key]===1"
>
</Select>
校准
</span>
<span
v-if=
"scope.row[item.key]===2"
>
外观检查
</span>
</div>
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</
template
>
...
@@ -116,12 +120,12 @@ export default {
...
@@ -116,12 +120,12 @@ export default {
type
:
'success'
,
type
:
'success'
,
id
:
'meter-task-alloca-allocation-btn'
,
id
:
'meter-task-alloca-allocation-btn'
,
name
:
'分配任务'
name
:
'分配任务'
},
{
type
:
'success'
,
id
:
'meter-task-alloca-import-item-btn'
,
name
:
'导入检测项目'
}
}
//, {
// type: 'success',
// id: 'meter-task-alloca-import-item-btn',
// name: '导入检测项目'
// }
],
],
searchOpen
:
false
,
searchOpen
:
false
,
options
:
[
options
:
[
...
@@ -142,9 +146,9 @@ export default {
...
@@ -142,9 +146,9 @@ export default {
selectData
:
[],
selectData
:
[],
getPage
:
{},
getPage
:
{},
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
20
},
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
1
35
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
140
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
140
},
{
title
:
'检测项目'
,
key
:
'itemNames'
,
width
:
140
},
//
{ title: '检测项目', key: 'itemNames', width: 140 },
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
140
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
140
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
140
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
140
},
{
title
:
'是否分包'
,
key
:
'jobOut'
,
width
:
110
},
{
title
:
'是否分包'
,
key
:
'jobOut'
,
width
:
110
},
...
...
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