Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
db93a316
Commit
db93a316
authored
Dec 04, 2023
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备库盘点记录
parent
85c7ff64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
21 deletions
+33
-21
index.vue
src/views/equipment/equipmentCheck/index.vue
+33
-21
No files found.
src/views/equipment/equipmentCheck/index.vue
View file @
db93a316
...
...
@@ -28,8 +28,8 @@
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option
>
:value=
"item.value"
/
>
</el-select>
</el-form-item>
<!-- 时间选择-->
...
...
@@ -44,10 +44,12 @@
end-placeholder=
"结束日期"
clearable
@
change=
"handleChange"
></el-date-picker
>
/
>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
...
...
@@ -99,7 +101,14 @@
@
pagination=
"getList"
/>
<!-- 弹出框。。。。。。。。。。。。。。。。。。。。。。。 -->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"700px"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"700px"
append-to-body
:close-on-click-modal=
"false"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-row>
<el-col
:span=
"12"
>
...
...
@@ -131,7 +140,10 @@
</template>
<
script
>
import
{
listdevice
}
from
'@/api/processMangement/processesCheck/index'
import
{
listdevice
}
from
'@/api/processMangement/processesCheck/index'
export
default
{
name
:
'Index'
,
data
()
{
...
...
@@ -140,10 +152,10 @@ export default {
options
:
[{
value
:
1
,
label
:
'已盘点'
},{
},
{
value
:
0
,
label
:
'未盘点'
}
,
}
],
// 日期范围
dateRange
:
[],
...
...
@@ -195,9 +207,7 @@ export default {
}
},
// 表单参数
form
:
{
},
form
:
{}
}
},
/** 路由离开前存储筛选条件*/
...
...
@@ -212,7 +222,8 @@ export default {
},
created
()
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
{
searchParams
}
=
this
.
$store
.
getters
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
...
...
@@ -237,10 +248,10 @@ export default {
/** 查询角色列表 */
getList
()
{
// 去除字段默认为0导致0对应的未盘点无法使用问题
let
flag
=
0
;
this
.
loading
=
true
;
let
flag
=
0
this
.
loading
=
true
if
(
this
.
queryEntity
.
entity
.
status
===
undefined
||
this
.
queryEntity
.
entity
.
status
===
''
)
{
flag
=
1
;
flag
=
1
}
if
(
flag
===
1
)
{
this
.
queryEntity
.
entity
.
status
=
-
1
...
...
@@ -249,14 +260,14 @@ export default {
this
.
dateRange
=
[]
}
listdevice
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)).
then
(
response
=>
{
console
.
log
(
'list'
,
response
)
console
.
log
(
'list'
,
response
)
this
.
equipmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
if
(
flag
==
1
)
{
if
(
flag
==
=
1
)
{
this
.
queryEntity
.
entity
.
status
=
undefined
flag
=
0
;
flag
=
0
}
},
// 取消按钮
...
...
@@ -312,9 +323,9 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.aboutSingleDetails
{
.el-form-item
{
.el-input
>
>
>
.el-input__inner
{
.aboutSingleDetails
{
.el-form-item
{
.el-input
>
>
>
.el-input__inner
{
-webkit-appearance
:
none
;
background-color
:
#FFF
;
background-image
:
none
;
...
...
@@ -324,6 +335,7 @@ export default {
}
}
}
.app-container
{
font-size
:
18px
;
padding
:
0
;
...
...
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