From 7e59b9cc3680a05acdf227d03b19f00351ec7b95 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 10 一月 2025 09:19:21 +0800
Subject: [PATCH] 页面

---
 admin/src/views/stock/components/inventoryDetails.vue   |  183 +++++++++++++++
 admin/src/views/finance/components/templateKeywords.vue |   72 ++++++
 admin/src/views/finance/collectionSettings.vue          |   53 ++++
 admin/src/views/stock/components/newInventory.vue       |   67 +++++
 admin/src/views/stock/InventoryQuery.vue                |   92 +++++++
 admin/src/views/stock/assetManagement.vue               |   54 ++++
 admin/src/views/stock/components/newAsset.vue           |   56 ++++
 admin/src/views/stock/inventoryCount.vue                |  101 ++++++++
 8 files changed, 676 insertions(+), 2 deletions(-)

diff --git a/admin/src/views/finance/collectionSettings.vue b/admin/src/views/finance/collectionSettings.vue
index 891f73a..6e428e0 100644
--- a/admin/src/views/finance/collectionSettings.vue
+++ b/admin/src/views/finance/collectionSettings.vue
@@ -1,10 +1,59 @@
 <template>
-    
+    <div class="box">
+        <div class="content">
+            <div class="content_form">
+                <el-form ref="form" :model="form" label-width="120px">
+                    <el-form-item label="鐭俊妯℃澘">
+                        <div style="display: flex; align-items: self-start;">
+                            <el-input type="textarea" rows="5" v-model="form.desc"></el-input>
+                            <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button>
+                        </div>
+                    </el-form-item>
+                    <el-form-item label="閭妯℃澘">
+                        <div style="display: flex; align-items: self-start;">
+                            <el-input type="textarea" rows="5" v-model="form.desc"></el-input>
+                            <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button>
+                        </div>
+                    </el-form-item>
+                </el-form>
+            </div>
+            <el-button @click="$refs.templateKeywords.open('妯℃澘鍏抽敭瀛�')">妯℃澘鍏抽敭瀛�</el-button>
+        </div>
+        <templateKeywords ref="templateKeywords" />
+    </div>
 </template>
 
 <script>
+    import templateKeywords from './components/templateKeywords'
   export default {
-    name: 'collectionSettings'
+    name: 'collectionSettings',
+    data() {
+      return {
+        form: {
+          desc: ''
+        }
+      }
+    },
+    components: { templateKeywords }
   }
 </script>
 
+<style lang="scss" scoped>
+    .box {
+        width: 100%;
+        padding: 20px;
+        box-sizing: border-box;
+        .content {
+            width: 100%;
+            padding: 20px;
+            box-sizing: border-box;
+            background: #ffffff;
+            display: flex;
+            align-items: self-start;
+            justify-content: space-between;
+            .content_form {
+                width: 60%;
+            }
+        }
+    }
+</style>
diff --git a/admin/src/views/finance/components/templateKeywords.vue b/admin/src/views/finance/components/templateKeywords.vue
new file mode 100644
index 0000000..1d748b1
--- /dev/null
+++ b/admin/src/views/finance/components/templateKeywords.vue
@@ -0,0 +1,72 @@
+<template>
+    <GlobalWindow
+        :title="title"
+        :visible.sync="visible"
+        width="100%">
+        <div class="main">
+            <div class="title">璐﹀崟淇℃伅</div>
+            <div class="list">
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璐圭敤鍚嶇О}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璁¤垂鍛ㄦ湡}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚环}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚綅}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${搴旀敹鏃ユ湡}</el-tag>
+            </div>
+            <div class="title">鍚堝悓淇℃伅</div>
+            <div class="list">
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璐圭敤鍚嶇О}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璁¤垂鍛ㄦ湡}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚环}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚綅}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${搴旀敹鏃ユ湡}</el-tag>
+            </div>
+            <div class="title">鍏朵粬淇℃伅</div>
+            <div class="list">
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璐圭敤鍚嶇О}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${璁¤垂鍛ㄦ湡}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚环}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${鍗曚綅}</el-tag>
+                <el-tag type="info" size="medium" effect="plain" style="margin-right: 10px;">${搴旀敹鏃ユ湡}</el-tag>
+            </div>
+        </div>
+    </GlobalWindow>
+</template>
+
+<script>
+  import GlobalWindow from '@/components/common/GlobalWindow'
+  import BaseOpera from '@/components/base/BaseOpera'
+  export default {
+    name: "templateKeywords",
+    components: { GlobalWindow },
+    extends: BaseOpera,
+    data() {
+      return {
+      
+      }
+    },
+    methods: {
+
+    }
+  }
+</script>
+
+<style lang="scss" scoped>
+    @import '@/assets/style/variables.scss';
+    .main {
+        padding-top: 20px;
+        box-sizing: border-box;
+        .title {
+            font-weight: 500;
+            font-size: 18px;
+            color: $primary-color;
+            margin-bottom: 15px;
+        }
+        
+        .list {
+            display: flex;
+            flex-wrap: wrap;
+            border-radius: 2px;
+            margin-bottom: 30px;
+        }
+    }
+</style>
diff --git a/admin/src/views/stock/InventoryQuery.vue b/admin/src/views/stock/InventoryQuery.vue
new file mode 100644
index 0000000..ad038c6
--- /dev/null
+++ b/admin/src/views/stock/InventoryQuery.vue
@@ -0,0 +1,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>
diff --git a/admin/src/views/stock/assetManagement.vue b/admin/src/views/stock/assetManagement.vue
new file mode 100644
index 0000000..014815f
--- /dev/null
+++ b/admin/src/views/stock/assetManagement.vue
@@ -0,0 +1,54 @@
+<template>
+    <TableLayout>
+        <template v-slot:table-wrap>
+            <ul class="toolbar">
+                <li><el-button type="primary" icon="el-icon-plus" @click="$refs.newAsset.open('鏂板缓璧勪骇鍒嗙被')">鏂板缓</el-button></li>
+            </ul>
+            <el-table row-key="id" :tree-props="{ children: 'childCategoryList' }" v-loading="isWorking.search"
+                :data="dataList" stripe>
+                <el-table-column prop="name" label="璧勪骇鍒嗙被" min-width="100px"></el-table-column>
+                <el-table-column prop="sortnum" label="鎺掑簭鐮�" min-width="100px"></el-table-column>
+                <el-table-column label="鎿嶄綔" min-width="120" fixed="right">
+                    <template slot-scope="{row}">
+                        <el-button type="text" icon="el-icon-edit">缂栬緫</el-button>
+                        <el-button type="text" icon="el-icon-delete">鍒犻櫎</el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+            <pagination
+                @size-change="handleSizeChange"
+                @current-change="handlePageChange"
+                :pagination="tableData.pagination"
+            ></pagination>
+        </template>
+        <newAsset ref="newAsset" />
+    </TableLayout>
+</template>
+
+<script>
+  import BaseTable from '@/components/base/BaseTable'
+  import TableLayout from '@/layouts/TableLayout'
+  import Pagination from '@/components/common/Pagination'
+  import newAsset from './components/newAsset'
+  export default {
+    name: 'assetManagement',
+    extends: BaseTable,
+    components: { TableLayout, Pagination, newAsset },
+    data() {
+      return {
+        dataList: []
+      }
+    },
+    created() {
+      this.config({
+        module: '杞﹁締淇℃伅琛�',
+        api: '/business/category',
+        'field.id': 'id',
+        'field.main': 'id'
+      })
+    },
+    methods: {
+    
+    }
+  }
+</script>
diff --git a/admin/src/views/stock/components/inventoryDetails.vue b/admin/src/views/stock/components/inventoryDetails.vue
new file mode 100644
index 0000000..b0c6d1c
--- /dev/null
+++ b/admin/src/views/stock/components/inventoryDetails.vue
@@ -0,0 +1,183 @@
+<template>
+    <GlobalWindow
+        :title="title"
+        :visible.sync="visible"
+        :withFooter="false"
+        :confirm-working="isWorking"
+        @confirm="confirm">
+        <div class="main">
+            <div class="title">鐩樼偣淇℃伅</div>
+            <div class="list">
+                <div class="item">
+                    <div class="la">鐩樼偣鍗曞悕绉�</div>
+                    <div class="val">搴撳瓨鐩樼偣20241212</div>
+                </div>
+                <div class="item">
+                    <div class="la">鐩樼偣鏃ユ湡</div>
+                    <div class="val">2024-11-17</div>
+                </div>
+                <div class="item">
+                    <div class="la">鐩樼偣浠撳簱</div>
+                    <div class="val">浠撳簱1</div>
+                </div>
+                <div class="item">
+                    <div class="la">鐩樼偣鍛�</div>
+                    <div class="val">寮犱笁</div>
+                </div>
+                <div class="item">
+                    <div class="la">鐩樼偣鐘舵��</div>
+                    <div class="val">宸插畬鎴�</div>
+                </div>
+            </div>
+            <div class="title">鐩樼偣缁撴灉</div>
+            <div class="list">
+                <div class="list_search">
+                    <div class="list_search_left">
+                        <el-input v-model="input" style="width: 200px; margin-right: 10px;" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>
+                        <el-select v-model="input" style="width: 200px; margin-right: 10px;" placeholder="璇烽�夋嫨">
+                            <el-option
+                                v-for="item in options"
+                                :key="item.value"
+                                :label="item.label"
+                                :value="item.value">
+                            </el-option>
+                        </el-select>
+                        <el-button type="primary">鏌ヨ</el-button>
+                        <el-button>娓呯┖</el-button>
+                        <el-button>瀵煎嚭</el-button>
+                    </div>
+                    <div class="list_search_right">
+                        <span>宸茬洏:100</span>
+                        <span>鏈洏:20</span>
+                        <span>璐﹀疄鐩哥:88</span>
+                        <span>鐩樼泩:2</span>
+                        <span>鐩樹簭:20</span>
+                    </div>
+                </div>
+                <div style="width: 100%; margin: 20px 0;">
+                    <el-table :data="roomList" stripe>
+                        <el-table-column prop="projectName" label="璧勪骇缂栫爜" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="璧勪骇鍚嶇О" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="鏉$爜" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="鍝佺墝" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="瑙勬牸鍨嬪彿" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="鍗曚綅" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="鎵�鍦ㄤ粨搴�" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="璐﹂潰鏁伴噺" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="鐩樼偣鏁伴噺" show-overflow-tooltip />
+                        <el-table-column prop="buildingName" label="澶囨敞" show-overflow-tooltip />
+                    </el-table>
+                </div>
+                <div class="list_pagination">
+                    <el-pagination
+                        @size-change="handleSizeChange"
+                        @current-change="handleCurrentChange"
+                        :current-page="page"
+                        :page-sizes="[10, 20, 30, 40]"
+                        :page-size="pageSize"
+                        layout="total, sizes, prev, pager, next, jumper"
+                        :total="total">
+                    </el-pagination>
+                </div>
+            </div>
+        </div>
+    </GlobalWindow>
+</template>
+
+<script>
+  import GlobalWindow from '@/components/common/GlobalWindow'
+  import BaseOpera from '@/components/base/BaseOpera'
+  export default {
+    name: "inventoryDetails",
+    components: {
+      GlobalWindow
+    },
+    extends: BaseOpera,
+    data() {
+      return {
+        info: {},
+        input: '',
+        options: [],
+        roomList: [],
+
+        pageSize: 10,
+        total: 0,
+        page: 1
+      }
+    },
+    methods: {
+      handleSizeChange(size) {
+        this.pageSize = size
+      },
+      handleCurrentChange(page) {
+        this.page = page
+      },
+      open (title) {
+        this.title = title
+        this.visible = true
+      }
+    }
+  }
+</script>
+
+<style lang="scss" scoped>
+    @import '@/assets/style/variables.scss';
+    
+    .main {
+        .title {
+            font-weight: 500;
+            font-size: 18px;
+            padding-top: 20px;
+            box-sizing: border-box;
+            color: $primary-color;
+            margin-bottom: 15px;
+        }
+        
+        .list {
+            display: flex;
+            flex-wrap: wrap;
+            /*background: #F7F7F7;*/
+            border-radius: 2px;
+            /*padding: 15px 20px;*/
+            margin-bottom: 20px;
+            
+            .list_pagination {
+                width: 100%;
+                text-align: right;
+            }
+            
+            .list_search {
+                width: 100%;
+                display: flex;
+                align-items: center;
+                justify-content: space-between;
+                .list_search_left {
+                    display: flex;
+                    align-items: center;
+                }
+                .list_search_right {
+                    display: flex;
+                    align-items: center;
+                    span {
+                        color: #7E7E7E;
+                        font-size: 14px;
+                        margin-right: 15px;
+                        &:last-child {
+                            margin: 0 !important;
+                        }
+                    }
+                }
+            }
+            
+            .item {
+                width: 20%;
+                margin-bottom: 16px;
+                
+                .la {
+                    color: #7f7f7f;
+                    margin-bottom: 10px;
+                }
+            }
+        }
+    }
+</style>
diff --git a/admin/src/views/stock/components/newAsset.vue b/admin/src/views/stock/components/newAsset.vue
new file mode 100644
index 0000000..ce1aed2
--- /dev/null
+++ b/admin/src/views/stock/components/newAsset.vue
@@ -0,0 +1,56 @@
+<template>
+    <GlobalWindow
+        width="50%"
+        :title="title"
+        :visible.sync="visible"
+        :confirm-working="isWorking"
+        @confirm="confirm">
+        <el-form :model="form" ref="form" :rules="rules">
+            <el-form-item label="鍒嗙被鍚嶇О" prop="name">
+                <el-input v-model="form.name" placeholder="璇疯緭鍏ュ垎绫诲悕绉�" v-trim />
+            </el-form-item>
+            <el-form-item label="鎵�灞炲垎绫�" prop="name">
+                <el-select v-model="form.name" placeholder="璇烽�夋嫨">
+                    <el-option label="寮犱笁" :value="1"></el-option>
+                    <el-option label="鏉庡洓" :value="1"></el-option>
+                    <el-option label="鐜嬩簩" :value="1"></el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item label="鎺掑簭鐮�(鍗囧簭)" prop="name">
+                <el-input v-model="form.name" placeholder="璇疯緭鍏ユ帓搴忕爜" v-trim />
+            </el-form-item>
+        </el-form>
+    </GlobalWindow>
+</template>
+
+<script>
+  import BaseOpera from '@/components/base/BaseOpera'
+  import GlobalWindow from '@/components/common/GlobalWindow'
+  export default {
+    name: 'newAsset',
+    extends: BaseOpera,
+    components: { GlobalWindow },
+    data() {
+      return {
+        // 琛ㄥ崟鏁版嵁
+        form: {
+          id: '',
+          name: '',
+        },
+        // 楠岃瘉瑙勫垯
+        rules: {
+          name: [{ required: true, message: '璇疯緭鍏ラ」鐩悕绉�', trigger: 'blur' }]
+        },
+      }
+    },
+    created() {
+      this.config({
+        api: '/project/ywProject',
+        'field.id': 'id'
+      })
+    },
+    methods: {
+
+    }
+  }
+</script>
diff --git a/admin/src/views/stock/components/newInventory.vue b/admin/src/views/stock/components/newInventory.vue
new file mode 100644
index 0000000..eb57f94
--- /dev/null
+++ b/admin/src/views/stock/components/newInventory.vue
@@ -0,0 +1,67 @@
+<template>
+    <GlobalWindow
+        width="50%"
+        :title="title"
+        :visible.sync="visible"
+        :confirm-working="isWorking"
+        @confirm="confirm">
+        <el-form :model="form" ref="form" :rules="rules">
+            <el-form-item label="鐩樼偣鍗曞悕绉�" prop="name">
+                <el-input v-model="form.name" placeholder="璇疯緭鍏ョ洏鐐瑰崟鍚嶇О" v-trim />
+            </el-form-item>
+            <el-form-item label="鐩樼偣鏃ユ湡" prop="name">
+                <el-date-picker
+                    v-model="form.name"
+                    type="date"
+                    placeholder="閫夋嫨鏃ユ湡">
+                </el-date-picker>
+            </el-form-item>
+            <el-form-item label="鐩樼偣浠撳簱" prop="name">
+                <el-select v-model="form.name" placeholder="璇烽�夋嫨">
+                    <el-option label="寮犱笁" :value="1"></el-option>
+                    <el-option label="鏉庡洓" :value="1"></el-option>
+                    <el-option label="鐜嬩簩" :value="1"></el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item label="鐩樼偣鍛�" prop="name">
+                <el-select v-model="form.name" placeholder="璇烽�夋嫨">
+                    <el-option label="寮犱笁" :value="1"></el-option>
+                    <el-option label="鏉庡洓" :value="1"></el-option>
+                    <el-option label="鐜嬩簩" :value="1"></el-option>
+                </el-select>
+            </el-form-item>
+        </el-form>
+    </GlobalWindow>
+</template>
+
+<script>
+  import BaseOpera from '@/components/base/BaseOpera'
+  import GlobalWindow from '@/components/common/GlobalWindow'
+  export default {
+    name: 'newInventory',
+    extends: BaseOpera,
+    components: { GlobalWindow },
+    data() {
+      return {
+        // 琛ㄥ崟鏁版嵁
+        form: {
+          id: '',
+          name: '',
+        },
+        // 楠岃瘉瑙勫垯
+        rules: {
+          name: [{ required: true, message: '璇疯緭鍏ラ」鐩悕绉�', trigger: 'blur' }]
+        },
+      }
+    },
+    created() {
+      this.config({
+        api: '/project/ywProject',
+        'field.id': 'id'
+      })
+    },
+    methods: {
+    
+    }
+  }
+</script>
diff --git a/admin/src/views/stock/inventoryCount.vue b/admin/src/views/stock/inventoryCount.vue
new file mode 100644
index 0000000..97b46ce
--- /dev/null
+++ b/admin/src/views/stock/inventoryCount.vue
@@ -0,0 +1,101 @@
+<template>
+    <TableLayout :permissions="['business:ywroom:query']">
+        <!-- 鎼滅储琛ㄥ崟 -->
+        <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="120px" inline>
+            <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="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>
+            <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">
+                <li><el-button type="primary" @click="$refs.newInventory.open('鏂板缓鐩樼偣鍗�')">娣诲姞</el-button></li>
+                <li><el-button type="primary" @click="$refs.inventoryDetails.open('鐩樼偣璇︾粏')">璇︽儏</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-column label="鎿嶄綔">
+                    <template slot-scope="{row}">
+                        <el-button type="text" @click="$refs.inventoryDetails.open('鐩樼偣璇︾粏')">鏌ョ湅璇︽儏</el-button>
+                        <el-button type="text">鍙栨秷</el-button>
+                        <el-button type="text">鍒犻櫎</el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+            <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination">
+            </pagination>
+            <newInventory ref="newInventory" />
+            <inventoryDetails ref="inventoryDetails" />
+        </template>
+    </TableLayout>
+</template>
+
+<script>
+  import BaseTable from '@/components/base/BaseTable'
+  import TableLayout from '@/layouts/TableLayout'
+  import Pagination from '@/components/common/Pagination'
+  import newInventory from './components/newInventory'
+  import inventoryDetails from './components/inventoryDetails'
+  export default {
+    name: 'inventoryCount',
+    extends: BaseTable,
+    components: { TableLayout, Pagination, newInventory, inventoryDetails },
+    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>

--
Gitblit v1.9.3