1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
| <template>
| <TableLayout :permissions="['business:ywroom:query']">
| <!-- 搜索表单 -->
| <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="120px" inline>
| <el-form-item label="仓库" prop="buildingId">
| <el-select v-model="searchForm.buildingId" placeholder="请选择楼宇" clearable>
| <el-option v-for="item in buildList" :key="item.id" :label="item.name" :value="item.id"></el-option>
| </el-select>
| </el-form-item>
| <el-form-item label="资产名称/编码" prop="roomNum">
| <el-input v-model="searchForm.roomNum" placeholder="请输入房号" @keypress.enter.native="search"></el-input>
| </el-form-item>
| <el-form-item label="型号" prop="roomNum">
| <el-input v-model="searchForm.roomNum" placeholder="请输入房号" @keypress.enter.native="search"></el-input>
| </el-form-item>
| <section>
| <el-button type="primary" @click="search">搜索</el-button>
| <el-button @click="reset">重置</el-button>
| </section>
| </el-form>
| <!-- 表格和分页 -->
| <template v-slot:table-wrap>
| <ul class="toolbar" v-permissions="['business:ywroom:create', 'business:ywroom:delete']">
| <li><el-button>导出</el-button></li>
| </ul>
| <el-table v-loading="isWorking.search" :data="tableData.list" stripe>
| <el-table-column prop="projectName" label="资产编号" min-width="100px"></el-table-column>
| <el-table-column prop="buildingName" label="资产名称" min-width="70px"></el-table-column>
| <el-table-column prop="floorName" label="条码" min-width="60px"></el-table-column>
| <el-table-column prop="roomNum" label="品牌" min-width="60px"></el-table-column>
| <el-table-column prop="rentArea" label="规格型号" min-width="80px"></el-table-column>
| <el-table-column prop="feeArea" label="所在仓库" min-width="80px"></el-table-column>
| <el-table-column prop="feeArea" label="库存" min-width="80px"></el-table-column>
| </el-table>
| <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination">
| </pagination>
| </template>
| </TableLayout>
| </template>
|
| <script>
| import BaseTable from '@/components/base/BaseTable'
| import TableLayout from '@/layouts/TableLayout'
| import Pagination from '@/components/common/Pagination'
| export default {
| name: 'InventoryQuery',
| extends: BaseTable,
| components: { TableLayout, Pagination },
| data() {
| return {
| // 搜索
| searchForm: {
| id: '',
| creator: '',
| createDate: '',
| editor: '',
| editDate: '',
| isdeleted: '',
| name: '',
| remark: '',
| status: '',
| sortnum: '',
| imgurl: '',
| code: '',
| roomNum: '',
| isInvestment: '',
| area: '',
| feeArea: '',
| rentArea: '',
| floor: '',
| projectId: '',
| buildingId: ''
| },
| projectList: [],
| buildList: [],
|
| filters: {}
| }
| },
| created() {
| this.config({
| module: '运维房源信息表',
| api: '/project/ywRoom',
| 'field.id': 'id',
| 'field.main': 'id'
| })
| },
| methods: {
|
| }
| }
| </script>
|
|