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
fc2ecdef
Commit
fc2ecdef
authored
May 11, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了开土制备制备页面按制备类型查询下拉
parent
2f1de5de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
7 deletions
+46
-7
Preparation.vue
pages/soil-sample-manage/sample-preparation/Preparation.vue
+46
-7
No files found.
pages/soil-sample-manage/sample-preparation/Preparation.vue
View file @
fc2ecdef
...
@@ -3,6 +3,19 @@
...
@@ -3,6 +3,19 @@
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:fullscreen=
"true"
width=
"100"
class=
"zIndex-1000"
>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:fullscreen=
"true"
width=
"100"
class=
"zIndex-1000"
>
<p
slot=
"header"
>
制备
</p>
<p
slot=
"header"
>
制备
</p>
<Row>
<Row>
<Col
span=
"24"
>
<Form
id=
"search-form"
:label-width=
"70"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
label=
"制备类型:"
class=
"search-item"
>
<Select
v-model=
"formObj.type"
clearable
name=
"type"
style=
"width:150px"
placeholder=
"请选择制备类型"
>
<Option
v-for=
"(item,index) in typeData"
:value=
"item.value"
:key=
"index"
>
{{
item
.
name
}}
</Option>
</Select>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
@
on-result-change=
"_btnClick"
class=
"contHide"
></btn-list>
<btn-list
:msg=
"btn"
@
on-result-change=
"_btnClick"
class=
"contHide"
></btn-list>
...
@@ -141,6 +154,16 @@ export default {
...
@@ -141,6 +154,16 @@ export default {
formObj
:
{},
formObj
:
{},
tableHeight
:
document
.
documentElement
.
clientHeight
-
215
,
tableHeight
:
document
.
documentElement
.
clientHeight
-
215
,
footerList
:
[],
footerList
:
[],
typeData
:
[
{
name
:
'检样'
,
value
:
0
},
{
name
:
'余样'
,
value
:
1
}
],
list
:
[
list
:
[
{
name
:
'取消'
,
type
:
''
,
id
:
''
},
{
name
:
'取消'
,
type
:
''
,
id
:
''
},
{
name
:
'制备完成'
,
type
:
'primary'
,
id
:
''
}
{
name
:
'制备完成'
,
type
:
'primary'
,
id
:
''
}
...
@@ -229,14 +252,15 @@ export default {
...
@@ -229,14 +252,15 @@ export default {
this
.
$refs
.
pageTable
.
_showLoading
()
this
.
$refs
.
pageTable
.
_showLoading
()
},
},
methods
:
{
methods
:
{
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
inputChange
(
data
)
{
inputChange
(
data
)
{
this
.
$forceUpdate
()
this
.
$forceUpdate
()
this
.
getPage
.
records
[
data
.
$rowIndex
].
printNum
=
data
.
row
.
printNum
this
.
getPage
.
records
[
data
.
$rowIndex
].
printNum
=
data
.
row
.
printNum
},
},
_printResult
(
data
)
{
_printResult
(
data
)
{
console
.
log
(
data
)
if
(
data
)
{
if
(
data
)
{
console
.
log
(
'data.printerVal'
)
this
.
printerVal
=
data
.
printerVal
this
.
printerVal
=
data
.
printerVal
this
.
_getLabelInfo
()
this
.
_getLabelInfo
()
}
}
...
@@ -272,17 +296,13 @@ export default {
...
@@ -272,17 +296,13 @@ export default {
_getUserList
:
async
function
()
{
_getUserList
:
async
function
()
{
const
result
=
await
soilSample
.
getUserList
()
const
result
=
await
soilSample
.
getUserList
()
if
(
result
)
{
if
(
result
)
{
console
.
log
(
'result=============='
,
result
)
for
(
let
i
=
0
;
i
<
result
.
records
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
records
.
length
;
i
++
)
{
this
.
preparerList
.
push
(
result
.
records
[
i
].
realname
)
this
.
preparerList
.
push
(
result
.
records
[
i
].
realname
)
}
}
console
.
log
(
this
.
preparerList
)
}
}
},
},
backData
(
data
)
{
backData
(
data
)
{
this
.
$forceUpdate
()
this
.
$forceUpdate
()
console
.
log
(
data
)
console
.
log
(
this
.
selectData
)
for
(
let
i
=
0
;
i
<
this
.
selectData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
selectData
.
length
;
i
++
)
{
Object
.
assign
(
this
.
selectData
[
i
],
data
)
Object
.
assign
(
this
.
selectData
[
i
],
data
)
}
}
...
@@ -340,7 +360,12 @@ export default {
...
@@ -340,7 +360,12 @@ export default {
this
.
_getUserList
()
this
.
_getUserList
()
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
const
result
=
await
soilEntrust
.
preparePage
({
ids
:
this
.
sampleIds
})
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
this
.
formObj
.
ids
=
this
.
sampleIds
// const result = await soilEntrust.preparePage({ ids: this.sampleIds })
const
result
=
await
soilEntrust
.
preparePage
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
.
records
=
result
this
.
getPage
.
records
=
result
for
(
let
j
=
0
;
j
<
result
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
result
.
length
;
j
++
)
{
...
@@ -348,6 +373,17 @@ export default {
...
@@ -348,6 +373,17 @@ export default {
this
.
getPage
.
records
[
j
].
printNum
=
1
this
.
getPage
.
records
[
j
].
printNum
=
1
}
}
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
console
.
log
(
'this.formObj.type'
,
this
.
formObj
.
type
)
if
(
this
.
formObj
.
type
!==
undefined
&&
this
.
formObj
.
type
!==
''
)
{
console
.
log
(
'调了'
)
const
arr
=
[]
for
(
let
i
=
0
;
i
<
this
.
getPage
.
records
.
length
;
i
++
)
{
if
(
this
.
getPage
.
records
[
i
].
type
===
Number
(
this
.
formObj
.
type
))
{
arr
.
push
(
this
.
getPage
.
records
[
i
])
}
}
this
.
getPage
.
records
=
arr
}
}
}
},
},
_getPrepareWay
:
async
function
()
{
_getPrepareWay
:
async
function
()
{
...
@@ -444,6 +480,9 @@ export default {
...
@@ -444,6 +480,9 @@ export default {
data
.
rowIndex
data
.
rowIndex
)
)
break
break
case
'changeSize'
:
this
.
_page
()
break
}
}
},
},
_getLabelInfo
:
async
function
()
{
_getLabelInfo
:
async
function
()
{
...
...
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