Bläddra i källkod

添加资产管理

WANGK 5 år sedan
förälder
incheckning
8968881ebc

+ 80 - 0
src/pages/Assets/AssetsDisposal/index.vue

@@ -0,0 +1,80 @@
+<template>
+  <div class="app-container">
+    <div class="filter-container">
+      <el-row type="flex" justify="end">
+        <el-col :md="2" :xs="24" class="left-align">
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">新增</el-button>
+        </el-col>
+        <el-col :md="22" :xs="24" style="flost: right">
+          <el-input v-model="search" :placeholder="'搜索'" style="width: 200px;" clearable />
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">查询</el-button>
+        </el-col>
+      </el-row>
+    </div>
+
+    <el-table
+      :data="tableData"
+      border
+      style="width: 100%">
+      <el-table-column prop="data1" label="维修单号" ></el-table-column>
+      <el-table-column prop="data2" label="设备编号" ></el-table-column>
+      <el-table-column prop="data3" label="设备名称" ></el-table-column>
+      <el-table-column prop="data4" label="报障时间" ></el-table-column>
+      <el-table-column prop="data5" label="报障人" ></el-table-column>
+      <el-table-column prop="data6" label="故障类型" ></el-table-column>
+      <el-table-column prop="data7" label="故障等级" ></el-table-column>
+      <el-table-column prop="data8" label="故障内容" ></el-table-column>
+      <el-table-column prop="data9" label="状态" ></el-table-column>
+      <el-table-column prop="data10" label="处理人" ></el-table-column>
+      <el-table-column label="操作" >
+        <template scope="scope">
+          <el-button type="text" size="small" @click="handleClick(scope.row)">编辑</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :page-sizes="[10, 20, 50, 100]"
+      :page-size="10"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="1">
+    </el-pagination>
+  </div>
+</template>
+
+<script>
+  export default {
+    methods: {
+      handleClick(row) {
+        console.log(row);
+      }
+    },
+
+    data() {
+      return {
+        search: null,
+        tableData: [{
+          data1: 'FSAGDSE3222',
+          data2: 'FSDFS3535',
+          data3: '微信电脑',
+          data4: '2019-11-06 17:34:55',
+          data5: '小明',
+          data6: '',
+          data7: '一般',
+          data8: '无法开机',
+          data9: '已分派',
+          data10: '演示-广州分公司'
+        }]
+      }
+    },
+
+    methods: {
+      handleClick(val) {},
+      handleSizeChange() {},
+      handleCurrentChange() {},
+      currentPage4() {}
+    }
+  }
+</script>

+ 80 - 0
src/pages/Assets/AssetsInventory/index.vue

@@ -0,0 +1,80 @@
+<template>
+  <div class="app-container">
+    <div class="filter-container">
+      <el-row type="flex" justify="end">
+        <el-col :md="2" :xs="24" class="left-align">
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">新增</el-button>
+        </el-col>
+        <el-col :md="22" :xs="24" style="flost: right">
+          <el-input v-model="search" :placeholder="'搜索'" style="width: 200px;" clearable />
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">查询</el-button>
+        </el-col>
+      </el-row>
+    </div>
+
+    <el-table
+      :data="tableData"
+      border
+      style="width: 100%">
+      <el-table-column prop="data1" label="盘点单号" ></el-table-column>
+      <el-table-column prop="data2" label="创建人" ></el-table-column>
+      <el-table-column prop="data3" label="创建时间" ></el-table-column>
+      <el-table-column prop="data4" label="盘点时间" ></el-table-column>
+      <el-table-column prop="data5" label="盘点范围" ></el-table-column>
+      <el-table-column prop="data6" label="计划盘点时间" ></el-table-column>
+      <el-table-column prop="data7" label="盘点人" ></el-table-column>
+      <el-table-column prop="data8" label="状态" ></el-table-column>
+      <el-table-column prop="data9" label="应盘数" ></el-table-column>
+      <el-table-column prop="data10" label="盘存数" ></el-table-column>
+      <el-table-column label="操作" >
+        <template scope="scope">
+          <el-button type="text" size="small" @click="handleClick(scope.row)">编辑</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :page-sizes="[10, 20, 50, 100]"
+      :page-size="10"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="1">
+    </el-pagination>
+  </div>
+</template>
+
+<script>
+  export default {
+    methods: {
+      handleClick(row) {
+        console.log(row);
+      }
+    },
+
+    data() {
+      return {
+        search: null,
+        tableData: [{
+          data1: 'GDSE3222',
+          data2: '小明',
+          data3: '2019-11-02',
+          data4: '2019-11-06',
+          data5: '[所有]',
+          data6: '2019-11-02~2019-11-09',
+          data7: '小明',
+          data8: '已盘点',
+          data9: 2,
+          data10: 3
+        }]
+      }
+    },
+
+    methods: {
+      handleClick(val) {},
+      handleSizeChange() {},
+      handleCurrentChange() {},
+      currentPage4() {}
+    }
+  }
+</script>

+ 82 - 0
src/pages/Assets/AssetsMaterial/index.vue

@@ -0,0 +1,82 @@
+<template>
+  <div class="app-container">
+    <div class="filter-container">
+      <el-row type="flex" justify="end">
+        <el-col :md="2" :xs="24" class="left-align">
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">新增</el-button>
+        </el-col>
+        <el-col :md="22" :xs="24" style="flost: right">
+          <el-input v-model="search" :placeholder="'搜索'" style="width: 200px;" clearable />
+          <el-button class="filter-item blue-black" type="primary" icon="el-icon-search">查询</el-button>
+        </el-col>
+      </el-row>
+    </div>
+
+    <el-table
+      :data="tableData"
+      border
+      style="width: 100%">
+      <el-table-column prop="data1" label="编号" ></el-table-column>
+      <el-table-column prop="data2" label="资产名称" ></el-table-column>
+      <el-table-column prop="data3" label="类型" ></el-table-column>
+      <el-table-column prop="data4" label="单位" ></el-table-column>
+      <el-table-column prop="data5" label="类别" ></el-table-column>
+      <el-table-column prop="data6" label="品牌" ></el-table-column>
+      <el-table-column prop="data7" label="型号" ></el-table-column>
+      <el-table-column prop="data8" label="负责人" ></el-table-column>
+      <el-table-column prop="data9" label="状态" ></el-table-column>
+      <el-table-column prop="data10" label="存放位置" ></el-table-column>
+      <el-table-column prop="data11" label="使用者" ></el-table-column>
+      <el-table-column label="操作" >
+        <template scope="scope">
+          <el-button type="text" size="small" @click="handleClick(scope.row)">编辑</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :page-sizes="[10, 20, 50, 100]"
+      :page-size="10"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="1">
+    </el-pagination>
+  </div>
+</template>
+
+<script>
+  export default {
+    methods: {
+      handleClick(row) {
+        console.log(row);
+      }
+    },
+
+    data() {
+      return {
+        search: null,
+        tableData: [{
+          data1: 'z5522g322',
+          data2: '电脑',
+          data3: '资产',
+          data4: '台',
+          data5: '计算机设备及软件',
+          data6: '微星',
+          data7: 'T-500',
+          data8: '小明',
+          data9: '闲置',
+          data10: '产品部',
+          data11: '小红',
+        }]
+      }
+    },
+
+    methods: {
+      handleClick(val) {},
+      handleSizeChange() {},
+      handleCurrentChange() {},
+      currentPage4() {}
+    }
+  }
+</script>

+ 13 - 1
src/pages/Staff/StaffInfo/index.vue

@@ -30,6 +30,15 @@
         </template>
       </el-table-column>
     </el-table>
+
+    <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :page-sizes="[10, 20, 50, 100]"
+      :page-size="10"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="1">
+    </el-pagination>
   </div>
 </template>
 
@@ -58,7 +67,10 @@
     },
 
     methods: {
-      handleClick(val) {}
+      handleClick(val) {},
+      handleSizeChange() {},
+      handleCurrentChange() {},
+      currentPage4() {}
     }
   }
 </script>

+ 13 - 1
src/pages/Staff/StaffJurisdiction/index.vue

@@ -24,6 +24,15 @@
         </template>
       </el-table-column>
     </el-table>
+
+    <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :page-sizes="[10, 20, 50, 100]"
+      :page-size="10"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="1">
+    </el-pagination>
   </div>
 </template>
 
@@ -46,7 +55,10 @@
     },
 
     methods: {
-      handleClick(val) {}
+      handleClick(val) {},
+      handleSizeChange() {},
+      handleCurrentChange() {},
+      currentPage4() {}
     }
   }
 </script>

+ 26 - 2
src/router/index.js

@@ -60,9 +60,9 @@ import DataDictionary           from '@/pages/System/DataDictionary'
 import OperationLog             from '@/pages/System/OperationLog'                                      // 操作日志
 
 import Complaints from '@/pages/Complaints/index' // 投诉建议
-import StaffInfo from '@/pages/Staff/StaffInfo/index'
+import StaffInfo from '@/pages/Staff/StaffInfo/index'//员工信息
 import ParKing from '@/pages/ParKing/index' //停车位
-import StaffJurisdiction from '@/pages/Staff/StaffJurisdiction/index'
+import StaffJurisdiction from '@/pages/Staff/StaffJurisdiction/index'//员工权限管理
 import Letter from '@/pages/Letter/index' //收信记录
 import Security from '@/pages/SecurityFire/Security/index' //保安安排
 import Duty from '@/pages/SecurityFire/Duty/index' //执勤管理
@@ -80,6 +80,9 @@ import FireInspection from '@/pages/FireInspection/index'                  //消
 import FireDrill from '@/pages/FireDrill/index'                  //消防演练
 import Cleaning from '@/pages/Cleaning/index'                  //保洁安排
 
+import AssetsMaterial from '@/pages/Assets/AssetsMaterial/index'//资产资料
+import AssetsInventory from '@/pages/Assets/AssetsInventory/index'//资产盘点
+import AssetsDisposal from '@/pages/Assets/AssetsDisposal/index'//维修处置
 
 Vue.use( Router )
 
@@ -342,6 +345,27 @@ export default new Router({
                         ContainerView: StaffJurisdiction
                     }
                 },
+                // 资产资料
+                {
+                    path: '/AssetsMaterial',
+                    components: {
+                        ContainerView: AssetsMaterial
+                    }
+                },
+                // 资产盘点
+                {
+                    path: '/AssetsInventory',
+                    components: {
+                        ContainerView: AssetsInventory
+                    }
+                },
+                // 维修处置
+                {
+                    path: '/AssetsDisposal',
+                    components: {
+                        ContainerView: AssetsDisposal
+                    }
+                },
                 // 消防巡查
                 {
                     path: '/FireInspection',

+ 20 - 0
static/api/viewAPI.json

@@ -286,6 +286,26 @@
                     "breadcrumb": [ "员工权限管理" ]
                 }
             ]
+        }, {
+            "titleName": "资产管理",
+            "iconClass": "settings_applications",
+            "middleLink": [
+                {
+                    "titleName" : "资产资料",
+                    "url"       : "AssetsMaterial",
+                    "breadcrumb": [ "资产资料" ]
+                },
+                {
+                    "titleName" : "资产盘点",
+                    "url"       : "AssetsInventory",
+                    "breadcrumb": [ "资产盘点" ]
+                },
+                {
+                    "titleName" : "维修处置",
+                    "url"       : "AssetsDisposal",
+                    "breadcrumb": [ "维修处置" ]
+                }
+            ]
         }, {
             "titleName": "房屋架构",
             "iconClass": "settings_applications",