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
947afe13
Commit
947afe13
authored
Aug 07, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了送检委托单的页码和查询
parent
52c7342b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
17 deletions
+48
-17
ContractModal.vue
pages/meter-entrust/send-test/ContractModal.vue
+32
-10
EditModal.vue
pages/meter-entrust/send-test/EditModal.vue
+16
-7
No files found.
pages/meter-entrust/send-test/ContractModal.vue
View file @
947afe13
...
...
@@ -9,19 +9,19 @@
<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=
"
授权资质仪器名称
"
>
<Form-item
:label-width=
"70"
label=
"
委托单位
"
>
<Input
v-model=
"c
ode
"
v-model=
"c
lient
"
@
on-enter=
"_pageChange(1)"
placeholder=
"
授权资质仪器名称
"
placeholder=
"
请输入委托单位
"
style=
"width: 100%"
/>
</Form-item>
<Form-item
label=
"
检测依据名称
"
>
<Form-item
label=
"
合同编号
"
>
<Input
v-model=
"
nam
e"
v-model=
"
salesCod
e"
@
on-enter=
"_pageChange(1)"
placeholder=
"请输入
检测依据名称
"
placeholder=
"请输入
合同编号
"
style=
"width: 100%"
/>
</Form-item>
...
...
@@ -30,6 +30,7 @@
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
:data=
"getPage"
:height=
"tableHeight"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
border
...
...
@@ -56,8 +57,8 @@
</Col>
<Col
span=
"24"
>
<Page
:total=
"
getPage.
total"
:page-size=
"
getPage.
size"
:total=
"total"
:page-size=
"size"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
placement=
"top"
...
...
@@ -93,6 +94,8 @@ export default {
},
loading
:
true
,
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'委托单位'
,
key
:
'client'
},
...
...
@@ -113,7 +116,14 @@ export default {
modalTitle
:
''
,
currentRowData
:
{},
name
:
''
,
code
:
''
code
:
''
,
client
:
''
,
salesCode
:
''
}
},
computed
:
{
tableHeight
:
function
()
{
return
this
.
$tableHeight
(
'tableModal'
)
}
},
methods
:
{
...
...
@@ -121,6 +131,8 @@ export default {
this
.
modalTitle
=
'选择合同'
this
.
name
=
''
this
.
code
=
''
this
.
salesCode
=
''
this
.
client
=
''
this
.
_judge
()
},
_judge
()
{
...
...
@@ -129,9 +141,13 @@ export default {
this
.
_page
()
},
_page
:
async
function
()
{
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
formObj
)
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
_searchParams
()
)
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
}
},
...
...
@@ -151,6 +167,12 @@ export default {
if
(
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
)
},
_search
()
{
...
...
pages/meter-entrust/send-test/EditModal.vue
View file @
947afe13
...
...
@@ -9,17 +9,17 @@
<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=
"
授权资质仪器
名称"
>
<Form-item
:label-width=
"70"
label=
"
样品
名称"
>
<Input
v-model=
"
cod
e"
placeholder=
"
授权资质仪器
名称"
v-model=
"
nam
e"
placeholder=
"
样品
名称"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
/>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Input
v-model=
"
name
"
v-model=
"
basis
"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
...
...
@@ -57,8 +57,8 @@
</Col>
<Col
span=
"24"
>
<Page
:total=
"
getPage.
total"
:page-size=
"
getPage.
size"
:total=
"total"
:page-size=
"size"
placement=
"top"
show-total
show-elevator
...
...
@@ -90,6 +90,8 @@ export default {
return
{
loading
:
true
,
pageParams
:
{
rows
:
20
},
total
:
0
,
size
:
0
,
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'检定依据'
,
key
:
'code'
},
...
...
@@ -100,7 +102,8 @@ export default {
modalTitle
:
''
,
currentRowData
:
{},
name
:
''
,
code
:
''
code
:
''
,
basis
:
''
}
},
methods
:
{
...
...
@@ -108,6 +111,7 @@ export default {
this
.
modalTitle
=
'选择检测依据'
this
.
name
=
''
this
.
code
=
''
this
.
basis
=
''
this
.
_judge
()
},
_judge
()
{
...
...
@@ -119,6 +123,8 @@ export default {
const
result
=
await
meterManage
.
page
(
this
.
_searchParams
())
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
total
=
result
.
total
this
.
size
=
result
.
size
this
.
loading
=
false
}
},
...
...
@@ -138,6 +144,9 @@ export default {
if
(
this
.
code
)
{
data
.
code
=
this
.
code
}
if
(
this
.
basis
)
{
data
.
basis
=
this
.
basis
}
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
_search
()
{
...
...
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