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
bce6c3be
Commit
bce6c3be
authored
Aug 07, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
5be36ce0
b665f9e1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
167 additions
and
88 deletions
+167
-88
EditModal.vue
pages/meter-contract/contract-register/EditModal.vue
+10
-5
VerificationModal.vue
pages/meter-contract/contract-register/VerificationModal.vue
+13
-12
EditModal.vue
pages/meter-entrust/client-online/EditModal.vue
+16
-7
ContractModal.vue
pages/meter-entrust/go-out-test/ContractModal.vue
+41
-18
EditModal.vue
pages/meter-entrust/go-out-test/EditModal.vue
+16
-7
VerificationModal.vue
pages/meter-entrust/go-out-test/VerificationModal.vue
+10
-11
ContractModal.vue
pages/meter-entrust/send-test/ContractModal.vue
+35
-10
EditModal.vue
pages/meter-entrust/send-test/EditModal.vue
+16
-7
VerificationModal.vue
pages/meter-entrust/send-test/VerificationModal.vue
+10
-11
No files found.
pages/meter-contract/contract-register/EditModal.vue
View file @
bce6c3be
...
@@ -9,17 +9,17 @@
...
@@ -9,17 +9,17 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器
名称"
>
<Form-item
:label-width=
"70"
label=
"
样品
名称"
>
<Input
<Input
v-model=
"
cod
e"
v-model=
"
nam
e"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"
授权资质仪器
名称"
placeholder=
"
样品
名称"
style=
"width: 100%"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"
name
"
v-model=
"
basis
"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"请输入检测依据名称"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
style=
"width: 100%"
...
@@ -102,7 +102,8 @@ export default {
...
@@ -102,7 +102,8 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
basis
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -110,6 +111,7 @@ export default {
...
@@ -110,6 +111,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
basis
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -145,6 +147,9 @@ export default {
...
@@ -145,6 +147,9 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
basis
)
{
data
.
basis
=
this
.
basis
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-contract/contract-register/VerificationModal.vue
View file @
bce6c3be
...
@@ -9,14 +9,6 @@
...
@@ -9,14 +9,6 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<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=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"name"
v-model=
"name"
...
@@ -56,8 +48,8 @@
...
@@ -56,8 +48,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
...
@@ -93,6 +85,8 @@ export default {
...
@@ -93,6 +85,8 @@ export default {
},
},
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
...
@@ -110,7 +104,8 @@ export default {
...
@@ -110,7 +104,8 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
verification
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -118,6 +113,7 @@ export default {
...
@@ -118,6 +113,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
verification
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -126,7 +122,7 @@ export default {
...
@@ -126,7 +122,7 @@ export default {
this
.
_page
()
this
.
_page
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
meterAptitude
.
page
(
this
.
formObj
)
const
result
=
await
meterAptitude
.
page
(
this
.
_searchParams
()
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
console
.
log
(
this
.
getPage
)
console
.
log
(
this
.
getPage
)
...
@@ -134,6 +130,8 @@ export default {
...
@@ -134,6 +130,8 @@ export default {
this
.
getPage
[
i
].
verification
=
this
.
getPage
[
i
].
verification
=
this
.
getPage
[
i
].
code
+
this
.
getPage
[
i
].
name
this
.
getPage
[
i
].
code
+
this
.
getPage
[
i
].
name
}
}
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
...
@@ -153,6 +151,9 @@ export default {
...
@@ -153,6 +151,9 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
verification
)
{
data
.
verification
=
this
.
verification
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/client-online/EditModal.vue
View file @
bce6c3be
...
@@ -9,17 +9,17 @@
...
@@ -9,17 +9,17 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器
名称"
>
<Form-item
:label-width=
"70"
label=
"
样品
名称"
>
<Input
<Input
v-model=
"
cod
e"
v-model=
"
nam
e"
placeholder=
"
授权资质仪器
名称"
placeholder=
"
请输入样品
名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"
name
"
v-model=
"
basis
"
placeholder=
"请输入检测依据名称"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
placement=
"top"
placement=
"top"
show-total
show-total
show-elevator
show-elevator
...
@@ -90,6 +90,8 @@ export default {
...
@@ -90,6 +90,8 @@ export default {
return
{
return
{
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'检定依据'
,
key
:
'code'
},
{
title
:
'检定依据'
,
key
:
'code'
},
...
@@ -100,7 +102,8 @@ export default {
...
@@ -100,7 +102,8 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
basis
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -108,6 +111,7 @@ export default {
...
@@ -108,6 +111,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
basis
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -121,6 +125,8 @@ export default {
...
@@ -121,6 +125,8 @@ export default {
console
.
log
(
'查询结果'
)
console
.
log
(
'查询结果'
)
console
.
log
(
result
)
console
.
log
(
result
)
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
this
.
loading
=
false
console
.
log
(
this
.
getPage
)
console
.
log
(
this
.
getPage
)
}
}
...
@@ -141,6 +147,9 @@ export default {
...
@@ -141,6 +147,9 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
basis
)
{
data
.
basis
=
this
.
basis
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/go-out-test/ContractModal.vue
View file @
bce6c3be
...
@@ -9,33 +9,37 @@
...
@@ -9,33 +9,37 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器名称
"
>
<Form-item
:label-width=
"70"
label=
"
委托单位
"
>
<Input
<Input
v-model=
"code"
v-model=
"client"
placeholder=
"授权资质仪器名称"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"委托单位"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"
检测依据名称
"
>
<Form-item
label=
"
合同编号
"
>
<Input
<Input
v-model=
"name"
v-model=
"salesCode"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"合同编号"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_pageChange(1)"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
<el-table
:data=
"getPage"
:data=
"getPage"
:height=
"tableHeight"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
border
border
size=
"small"
size=
"small"
highlight-current-row
highlight-current-row
style=
"width: 100%"
style=
"width: 100%"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
>
>
<el-table-column
<el-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
...
@@ -56,23 +60,23 @@
...
@@ -56,23 +60,23 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"getPage.total"
:total=
"total"
:page-size=
"getPage.size"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
show-total
show-total
show-elevator
show-elevator
show-sizer
show-sizer
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
/>
/>
<div
style=
"clear: both"
/>
<div
style=
"clear: both"
/>
</Col>
</Col>
</Row>
</Row>
<div
slot=
"footer"
class=
"btn-width"
>
<div
slot=
"footer"
class=
"btn-width"
>
<Button
style=
"margin-left: 8px"
@
click=
"_cancel
"
>
<Button
@
click=
"_cancel"
style=
"margin-left: 8px
"
>
取消
取消
</Button>
</Button>
<Button
type=
"primary"
@
click=
"_ok
"
>
<Button
@
click=
"_ok"
type=
"primary
"
>
确定
确定
</Button>
</Button>
</div>
</div>
...
@@ -93,6 +97,8 @@ export default {
...
@@ -93,6 +97,8 @@ export default {
},
},
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'委托单位'
,
key
:
'client'
},
{
title
:
'委托单位'
,
key
:
'client'
},
...
@@ -113,7 +119,14 @@ export default {
...
@@ -113,7 +119,14 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
client
:
''
,
salesCode
:
''
}
},
computed
:
{
tableHeight
:
function
()
{
return
this
.
$tableHeight
(
'tableModal'
)
}
}
},
},
methods
:
{
methods
:
{
...
@@ -136,9 +149,13 @@ export default {
...
@@ -136,9 +149,13 @@ export default {
// }
// }
// },
// },
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
formObj
)
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
_searchParams
()
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
console
.
log
(
this
.
getPage
)
console
.
log
(
this
.
getPage
)
this
.
loading
=
false
this
.
loading
=
false
}
}
...
@@ -159,6 +176,12 @@ export default {
...
@@ -159,6 +176,12 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
client
)
{
data
.
client
=
this
.
client
}
if
(
this
.
salesCode
)
{
data
.
salesCode
=
this
.
salesCode
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/go-out-test/EditModal.vue
View file @
bce6c3be
...
@@ -9,17 +9,17 @@
...
@@ -9,17 +9,17 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器
名称"
>
<Form-item
:label-width=
"70"
label=
"
样品
名称"
>
<Input
<Input
v-model=
"
cod
e"
v-model=
"
nam
e"
placeholder=
"
授权资质仪器
名称"
placeholder=
"
样品
名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"
name
"
v-model=
"
basis
"
placeholder=
"请输入检测依据名称"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
placement=
"top"
placement=
"top"
show-total
show-total
show-elevator
show-elevator
...
@@ -90,6 +90,8 @@ export default {
...
@@ -90,6 +90,8 @@ export default {
return
{
return
{
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'检定依据'
,
key
:
'code'
},
{
title
:
'检定依据'
,
key
:
'code'
},
...
@@ -100,7 +102,8 @@ export default {
...
@@ -100,7 +102,8 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
basis
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -108,6 +111,7 @@ export default {
...
@@ -108,6 +111,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
basis
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -119,6 +123,8 @@ export default {
...
@@ -119,6 +123,8 @@ export default {
const
result
=
await
meterManage
.
page
(
this
.
_searchParams
())
const
result
=
await
meterManage
.
page
(
this
.
_searchParams
())
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
...
@@ -138,6 +144,9 @@ export default {
...
@@ -138,6 +144,9 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
basis
)
{
data
.
basis
=
this
.
basis
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/go-out-test/VerificationModal.vue
View file @
bce6c3be
...
@@ -9,14 +9,6 @@
...
@@ -9,14 +9,6 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<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=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"name"
v-model=
"name"
...
@@ -25,6 +17,9 @@
...
@@ -25,6 +17,9 @@
style=
"width: 100%"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_pageChange(1)"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
...
@@ -56,8 +51,8 @@
...
@@ -56,8 +51,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
...
@@ -93,6 +88,8 @@ export default {
...
@@ -93,6 +88,8 @@ export default {
},
},
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
...
@@ -126,9 +123,11 @@ export default {
...
@@ -126,9 +123,11 @@ export default {
this
.
_page
()
this
.
_page
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
meterAptitude
.
page
(
this
.
formObj
)
const
result
=
await
meterAptitude
.
page
(
this
.
_searchParams
()
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
console
.
log
(
this
.
getPage
)
console
.
log
(
this
.
getPage
)
for
(
let
i
=
0
;
i
<
this
.
getPage
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
getPage
.
length
;
i
++
)
{
this
.
getPage
[
i
].
verification
=
this
.
getPage
[
i
].
verification
=
...
...
pages/meter-entrust/send-test/ContractModal.vue
View file @
bce6c3be
...
@@ -9,27 +9,31 @@
...
@@ -9,27 +9,31 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器名称
"
>
<Form-item
:label-width=
"70"
label=
"
委托单位
"
>
<Input
<Input
v-model=
"c
ode
"
v-model=
"c
lient
"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"
授权资质仪器名称
"
placeholder=
"
请输入委托单位
"
style=
"width: 100%"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"
检测依据名称
"
>
<Form-item
label=
"
合同编号
"
>
<Input
<Input
v-model=
"
nam
e"
v-model=
"
salesCod
e"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
placeholder=
"请输入
检测依据名称
"
placeholder=
"请输入
合同编号
"
style=
"width: 100%"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_pageChange(1)"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
<el-table
:data=
"getPage"
:data=
"getPage"
:height=
"tableHeight"
@
row-click=
"_rowChange"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
@
row-dblclick=
"_dbClick"
border
border
...
@@ -56,8 +60,8 @@
...
@@ -56,8 +60,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
...
@@ -93,6 +97,8 @@ export default {
...
@@ -93,6 +97,8 @@ export default {
},
},
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'委托单位'
,
key
:
'client'
},
{
title
:
'委托单位'
,
key
:
'client'
},
...
@@ -113,7 +119,14 @@ export default {
...
@@ -113,7 +119,14 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
client
:
''
,
salesCode
:
''
}
},
computed
:
{
tableHeight
:
function
()
{
return
this
.
$tableHeight
(
'tableModal'
)
}
}
},
},
methods
:
{
methods
:
{
...
@@ -121,6 +134,8 @@ export default {
...
@@ -121,6 +134,8 @@ export default {
this
.
modalTitle
=
'选择合同'
this
.
modalTitle
=
'选择合同'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
salesCode
=
''
this
.
client
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -129,9 +144,13 @@ export default {
...
@@ -129,9 +144,13 @@ export default {
this
.
_page
()
this
.
_page
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
formObj
)
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
_searchParams
()
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
...
@@ -151,6 +170,12 @@ export default {
...
@@ -151,6 +170,12 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
client
)
{
data
.
client
=
this
.
client
}
if
(
this
.
salesCode
)
{
data
.
salesCode
=
this
.
salesCode
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/send-test/EditModal.vue
View file @
bce6c3be
...
@@ -9,17 +9,17 @@
...
@@ -9,17 +9,17 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<label
class=
"label-sign"
/>
<Form-item
:label-width=
"70"
label=
"
授权资质仪器
名称"
>
<Form-item
:label-width=
"70"
label=
"
样品
名称"
>
<Input
<Input
v-model=
"
cod
e"
v-model=
"
nam
e"
placeholder=
"
授权资质仪器
名称"
placeholder=
"
样品
名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"
name
"
v-model=
"
basis
"
placeholder=
"请输入检测依据名称"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
@
on-enter=
"_pageChange(1)"
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
placement=
"top"
placement=
"top"
show-total
show-total
show-elevator
show-elevator
...
@@ -90,6 +90,8 @@ export default {
...
@@ -90,6 +90,8 @@ export default {
return
{
return
{
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'检定依据'
,
key
:
'code'
},
{
title
:
'检定依据'
,
key
:
'code'
},
...
@@ -100,7 +102,8 @@ export default {
...
@@ -100,7 +102,8 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
currentRowData
:
{},
currentRowData
:
{},
name
:
''
,
name
:
''
,
code
:
''
code
:
''
,
basis
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -108,6 +111,7 @@ export default {
...
@@ -108,6 +111,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
name
=
''
this
.
code
=
''
this
.
code
=
''
this
.
basis
=
''
this
.
_judge
()
this
.
_judge
()
},
},
_judge
()
{
_judge
()
{
...
@@ -119,6 +123,8 @@ export default {
...
@@ -119,6 +123,8 @@ export default {
const
result
=
await
meterManage
.
page
(
this
.
_searchParams
())
const
result
=
await
meterManage
.
page
(
this
.
_searchParams
())
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
...
@@ -138,6 +144,9 @@ export default {
...
@@ -138,6 +144,9 @@ export default {
if
(
this
.
code
)
{
if
(
this
.
code
)
{
data
.
code
=
this
.
code
data
.
code
=
this
.
code
}
}
if
(
this
.
basis
)
{
data
.
basis
=
this
.
basis
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
},
_search
()
{
_search
()
{
...
...
pages/meter-entrust/send-test/VerificationModal.vue
View file @
bce6c3be
...
@@ -9,14 +9,6 @@
...
@@ -9,14 +9,6 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
id=
"test-item-form"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
/>
<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=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"name"
v-model=
"name"
...
@@ -25,6 +17,9 @@
...
@@ -25,6 +17,9 @@
style=
"width: 100%"
style=
"width: 100%"
/>
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_pageChange(1)"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
...
@@ -56,8 +51,8 @@
...
@@ -56,8 +51,8 @@
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<Page
<Page
:total=
"
getPage.
total"
:total=
"total"
:page-size=
"
getPage.
size"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
...
@@ -93,6 +88,8 @@ export default {
...
@@ -93,6 +88,8 @@ export default {
},
},
loading
:
true
,
loading
:
true
,
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
pageColumns
:
[
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据'
,
key
:
'verification'
,
width
:
120
},
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
{
title
:
'检定依据名称'
,
key
:
'name'
,
width
:
140
}
...
@@ -126,9 +123,11 @@ export default {
...
@@ -126,9 +123,11 @@ export default {
this
.
_page
()
this
.
_page
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
meterAptitude
.
page
(
this
.
formObj
)
const
result
=
await
meterAptitude
.
page
(
this
.
_searchParams
()
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
console
.
log
(
this
.
getPage
)
console
.
log
(
this
.
getPage
)
for
(
let
i
=
0
;
i
<
this
.
getPage
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
getPage
.
length
;
i
++
)
{
this
.
getPage
[
i
].
verification
=
this
.
getPage
[
i
].
verification
=
...
...
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