Commit db93a316 authored by W_Y's avatar W_Y

设备库盘点记录

parent 85c7ff64
......@@ -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;
......
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