Commit db93a316 authored by W_Y's avatar W_Y

设备库盘点记录

parent 85c7ff64
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
</el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 时间选择--> <!-- 时间选择-->
...@@ -44,10 +44,12 @@ ...@@ -44,10 +44,12 @@
end-placeholder="结束日期" end-placeholder="结束日期"
clearable clearable
@change="handleChange" @change="handleChange"
></el-date-picker> />
</el-form-item> </el-form-item>
<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-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -99,7 +101,14 @@ ...@@ -99,7 +101,14 @@
@pagination="getList" @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-form ref="formDetails" :model="singleDetails" size="small" label-width="90px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
...@@ -131,7 +140,10 @@ ...@@ -131,7 +140,10 @@
</template> </template>
<script> <script>
import { listdevice } from '@/api/processMangement/processesCheck/index' import {
listdevice
} from '@/api/processMangement/processesCheck/index'
export default { export default {
name: 'Index', name: 'Index',
data() { data() {
...@@ -140,10 +152,10 @@ export default { ...@@ -140,10 +152,10 @@ export default {
options: [{ options: [{
value: 1, value: 1,
label: '已盘点' label: '已盘点'
},{ }, {
value: 0, value: 0,
label: '未盘点' label: '未盘点'
}, }
], ],
// 日期范围 // 日期范围
dateRange: [], dateRange: [],
...@@ -195,9 +207,7 @@ export default { ...@@ -195,9 +207,7 @@ export default {
} }
}, },
// 表单参数 // 表单参数
form: { form: {}
},
} }
}, },
/** 路由离开前存储筛选条件*/ /** 路由离开前存储筛选条件*/
...@@ -212,7 +222,8 @@ export default { ...@@ -212,7 +222,8 @@ export default {
}, },
created() { created() {
if (this.$store.getters.searchParams[this.$route.path]) { 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]) // 保留着的查询条件 const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.queryParams = { ...param } this.queryParams = { ...param }
} }
...@@ -237,10 +248,10 @@ export default { ...@@ -237,10 +248,10 @@ export default {
/** 查询角色列表 */ /** 查询角色列表 */
getList() { getList() {
// 去除字段默认为0导致0对应的未盘点无法使用问题 // 去除字段默认为0导致0对应的未盘点无法使用问题
let flag = 0; let flag = 0
this.loading = true; this.loading = true
if (this.queryEntity.entity.status === undefined || this.queryEntity.entity.status === '') { if (this.queryEntity.entity.status === undefined || this.queryEntity.entity.status === '') {
flag = 1; flag = 1
} }
if (flag === 1) { if (flag === 1) {
this.queryEntity.entity.status = -1 this.queryEntity.entity.status = -1
...@@ -249,14 +260,14 @@ export default { ...@@ -249,14 +260,14 @@ export default {
this.dateRange = [] this.dateRange = []
} }
listdevice(this.queryParams, this.addDateRange(this.queryEntity, this.dateRange)).then(response => { listdevice(this.queryParams, this.addDateRange(this.queryEntity, this.dateRange)).then(response => {
console.log('list',response) console.log('list', response)
this.equipmentList = response.rows this.equipmentList = response.rows
this.total = response.total this.total = response.total
this.loading = false this.loading = false
}) })
if (flag == 1) { if (flag === 1) {
this.queryEntity.entity.status = undefined this.queryEntity.entity.status = undefined
flag = 0; flag = 0
} }
}, },
// 取消按钮 // 取消按钮
...@@ -312,9 +323,9 @@ export default { ...@@ -312,9 +323,9 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.aboutSingleDetails{ .aboutSingleDetails {
.el-form-item{ .el-form-item {
.el-input >>> .el-input__inner { .el-input > > > .el-input__inner {
-webkit-appearance: none; -webkit-appearance: none;
background-color: #FFF; background-color: #FFF;
background-image: none; background-image: none;
...@@ -324,6 +335,7 @@ export default { ...@@ -324,6 +335,7 @@ export default {
} }
} }
} }
.app-container { .app-container {
font-size: 18px; font-size: 18px;
padding: 0; padding: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment