|
|
@ -43,7 +43,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备类型"> |
|
|
|
<el-select v-model="listQuery.supplierType" filterable clearable placeholder="请选择设备类型"> |
|
|
|
<el-select v-model="listQuery.type" filterable clearable placeholder="请选择设备类型"> |
|
|
|
<el-option v-for="item in supplierType_list" :key="item.id" :label="item.title" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -71,15 +71,8 @@ |
|
|
|
:disabled="!row.isShow && (row.supplierTypeValue === '主机厂' || row.supplierTypeValue === '分公司')" |
|
|
|
@click="handleEdit(row)">编辑</el-button> |
|
|
|
<el-button size="mini" type="primary" @click="handleCheck(row)">详情</el-button> |
|
|
|
<!-- <el-button size="mini" type="primary" @click="handleadd(row)">添加到仓库</el-button> --> |
|
|
|
<!-- <el-button size="mini" type="primary">处理</el-button> --> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="jc" label="设备" width="220" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.bianma }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column prop="jc" label="设备编码" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.bianma }}</span> |
|
|
@ -87,37 +80,22 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="设备类型" width="110" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ getSupplierType(scope.row.supplierTypeValue) }}</span> |
|
|
|
<span>{{ getSupplierType(scope.row.type) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="设备位置" width="" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.weizhi }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="出厂时间" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.time }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="安装时间" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.anzhuangtime }}</span> |
|
|
|
<span>{{ scope.row.position }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="供货商" align="center"> |
|
|
|
<el-table-column label="设备名称" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.gonghuashang }}</span> |
|
|
|
<span>{{ scope.row.name }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="生产厂家" align="center"> |
|
|
|
<el-table-column label="备注" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.owner }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="保修截止日期" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.policeTime }}</span> |
|
|
|
<span>{{ scope.row.remarks }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="所属仓库" align="center"> |
|
|
@ -149,18 +127,18 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
// import { typeValues, getOrgSidByPath } from '@/api/cheliang/dictcommons' |
|
|
|
import shebeitaizhangAdd from './shebeitaizhangAdd' |
|
|
|
import shebeitaizhangInfo from './shebeitaizhangInfo' |
|
|
|
import { getDevicePage } from '@/api/device/device' |
|
|
|
// import req from '@/api/shebeitaizhang/shebeitaizhang' |
|
|
|
import * as echarts from "echarts"; |
|
|
|
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuanb' |
|
|
|
// 1.1完好率饼图 |
|
|
|
const wanhao_Chart = { |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
// import { typeValues, getOrgSidByPath } from '@/api/cheliang/dictcommons' |
|
|
|
import shebeitaizhangAdd from './shebeitaizhangAdd' |
|
|
|
import shebeitaizhangInfo from './shebeitaizhangInfo' |
|
|
|
import { getDevicePage, getInfoById } from '@/api/device/device' |
|
|
|
// import req from '@/api/shebeitaizhang/shebeitaizhang' |
|
|
|
import * as echarts from "echarts"; |
|
|
|
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuanb' |
|
|
|
// 1.1完好率饼图 |
|
|
|
const wanhao_Chart = { |
|
|
|
// seriesName: '完好率', |
|
|
|
unit: '次', |
|
|
|
color: ['#30e9ff', '#d9d9d9', '#fdc004'], |
|
|
@ -179,9 +157,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// radius: ['50%', '55%'] |
|
|
|
} |
|
|
|
// 1.2维修率饼图 |
|
|
|
const weixiu_Chart = { |
|
|
|
} |
|
|
|
// 1.2维修率饼图 |
|
|
|
const weixiu_Chart = { |
|
|
|
// seriesName: '维修率', |
|
|
|
unit: '次', |
|
|
|
color: ['#fe7f02', '#fdc004'], |
|
|
@ -200,9 +178,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// radius: ['50%', '55%'] |
|
|
|
} |
|
|
|
// 1.3损害率饼图 |
|
|
|
const sunhai_Chart = { |
|
|
|
} |
|
|
|
// 1.3损害率饼图 |
|
|
|
const sunhai_Chart = { |
|
|
|
// seriesName: '损害率', |
|
|
|
unit: '次', |
|
|
|
color: ['#d2cece', '#ff0202', '#fdc004'], |
|
|
@ -220,9 +198,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// radius: ['50%', '55%'] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'shebeitaizhangList', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
@ -252,27 +230,6 @@ |
|
|
|
btnKey: 'doDel', |
|
|
|
btnLabel: '删除' |
|
|
|
}, |
|
|
|
// { |
|
|
|
// type: 'primary', |
|
|
|
// size: 'small', |
|
|
|
// icon: '', |
|
|
|
// btnKey: 'toChangShang', |
|
|
|
// btnLabel: '添加到仓库' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// type: 'primary', |
|
|
|
// size: 'small', |
|
|
|
// icon: '', |
|
|
|
// btnKey: 'toChangShang', |
|
|
|
// btnLabel: '获取厂商' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// type: 'primary', |
|
|
|
// size: 'small', |
|
|
|
// icon: '', |
|
|
|
// btnKey: 'toGain', |
|
|
|
// btnLabel: '获取分公司' |
|
|
|
// }, |
|
|
|
{ |
|
|
|
type: 'success', |
|
|
|
size: 'small', |
|
|
@ -280,13 +237,6 @@ |
|
|
|
btnKey: 'import', |
|
|
|
btnLabel: '导入' |
|
|
|
}, |
|
|
|
// { |
|
|
|
// type: 'success', |
|
|
|
// size: 'small', |
|
|
|
// icon: 'export', |
|
|
|
// btnKey: 'build', |
|
|
|
// btnLabel: '导出' |
|
|
|
// }, |
|
|
|
{ |
|
|
|
type: 'info', |
|
|
|
size: 'small', |
|
|
@ -301,18 +251,7 @@ |
|
|
|
sids: [], |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
list: [ |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-18', status: '1' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房2', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-19', status: '1' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房3', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-19', status: '2' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房4', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-20', status: '2' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房5', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-20', status: '2' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-21', status: '1' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-23', status: '1' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-23', status: '3' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-23', status: '3' }, |
|
|
|
{ bianma: 'KD-22', cangku: '库房1', supplierTypeValue: '1', weizhi: '2F金陵文脉', time: '2023-02-26 12:00:00', anzhuangtime: '2023-02-26 16:00:00', gonghuashang: '大华', owner: '大华科技', policeTime: '2023-05-23', status: '3' }, |
|
|
|
], |
|
|
|
list: [], |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
@ -320,7 +259,10 @@ |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
supplierType_list: [ |
|
|
|
{ title: '摄像机', id: '1' }, |
|
|
|
{ title: '摄像头', id: '1' }, |
|
|
|
{ title: '电子围栏', id: '2' }, |
|
|
|
{ title: '门禁', id: '3' }, |
|
|
|
{ title: '机器人', id: '4' } |
|
|
|
], |
|
|
|
floor_list: [ |
|
|
|
{ title: '一层', id: '1' }, |
|
|
@ -421,17 +363,15 @@ |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
console.log(this.listQuery) |
|
|
|
getDevicePage(this.listQuery).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
console.log(response) |
|
|
|
// if (response.code === '200' && response.data && response.data.total > 0) { |
|
|
|
// this.list = response.data.records |
|
|
|
// this.listQuery.total = response.data.total |
|
|
|
// } else { |
|
|
|
// this.list = [] |
|
|
|
// this.listQuery.total = 0 |
|
|
|
// } |
|
|
|
if (response.code == '200') { |
|
|
|
this.list = response.data.records |
|
|
|
this.listQuery.total = response.data.total |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.listQuery.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 查询按钮 |
|
|
@ -440,26 +380,29 @@ |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleReset() { |
|
|
|
// this.listQuery = { |
|
|
|
// params: { |
|
|
|
// manufacturerName: '', |
|
|
|
// supplierType: '', |
|
|
|
// useOrgSid: '', |
|
|
|
// createOrgSid: '', |
|
|
|
// manufacturerTelePhone: '', |
|
|
|
// contactName: '' |
|
|
|
// }, |
|
|
|
// current: 1, |
|
|
|
// size: 5 |
|
|
|
// } |
|
|
|
// this.init() |
|
|
|
}, |
|
|
|
// 打开添加对话框 |
|
|
|
toAdd() { |
|
|
|
this.listQuery.typeSubmit = 'add' |
|
|
|
this.viewState = 2 |
|
|
|
this.listQuery.typeSubmit = 'add' |
|
|
|
this.$refs['divadd'].showAdd(this.listQuery.typeSubmit) |
|
|
|
}, |
|
|
|
// 打开查看 |
|
|
|
handleCheck(row) { |
|
|
|
getInfoById({ id: row.id }).then(res => { |
|
|
|
this.viewState = 4 |
|
|
|
this.listQuery.info = res.data |
|
|
|
this.$refs['divinfo'].showInfo(this.listQuery) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleEdit(row) { |
|
|
|
this.listQuery.typeSubmit = 'edit' |
|
|
|
this.viewState = 2 |
|
|
|
getInfoById({ id: row.id }).then(res => { |
|
|
|
this.listQuery.info = res.data |
|
|
|
this.$refs['divadd'].showEdit(this.listQuery) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
@ -506,80 +449,30 @@ |
|
|
|
path: '/cangkuguanli/cangkuguanliList', |
|
|
|
}) |
|
|
|
}, |
|
|
|
// toChangShang() { |
|
|
|
// req.saveGysByOrgSid(this.listQuery.params.createOrgSid).then((resp) => { |
|
|
|
// if (resp.success) { |
|
|
|
// this.$message({ showClose: true, type: 'success', message: '获取成功' }) |
|
|
|
// this.getList() |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
// toGain() { |
|
|
|
// req.saveAllByOrgSid({ orgSid: this.listQuery.params.createOrgSid }).then((resp) => { |
|
|
|
// if (resp.success) { |
|
|
|
// this.$message({ showClose: true, type: 'success', message: '获取成功' }) |
|
|
|
// this.getList() |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
handleEdit(row) { |
|
|
|
// this.viewState = 3 |
|
|
|
// this.$refs['divadd'].showEdit(row) |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd(this.listQuery.params.createOrgSid) |
|
|
|
// if (row.supplierTypeValue !== '主机厂' && row.supplierTypeValue !== '分公司') { |
|
|
|
// this.viewState = 3 |
|
|
|
// this.$refs['divadd'].showEdit(row) |
|
|
|
// } else { |
|
|
|
// this.viewState = 5 |
|
|
|
// this.$refs['divHosts'].showInfo(row) |
|
|
|
// } |
|
|
|
}, |
|
|
|
// 打开查看 |
|
|
|
handleCheck(row) { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divinfo'].showInfo(row) |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
// doExport() { |
|
|
|
// basefinbankExportExcel(this.sids).then((res) => { |
|
|
|
// const blob = new Blob([res], { |
|
|
|
// type: 'application/vnd.ms-excel' |
|
|
|
// }) |
|
|
|
// const objectUrl = URL.createObjectURL(blob) |
|
|
|
// window.location.href = objectUrl |
|
|
|
// this.$notify({ |
|
|
|
// title: '提示', |
|
|
|
// message: '导出成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 2000 |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
doClose() { |
|
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
|
this.$router.go(-1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
.app-containerb { |
|
|
|
.app-containerb { |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
flex-wrap: nowrap; |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: flex-start; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.webye { |
|
|
|
.webye { |
|
|
|
flex: 1; |
|
|
|
text-align: left; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* 饼图部分 */ |
|
|
|
.tbars { |
|
|
|
/* 饼图部分 */ |
|
|
|
.tbars { |
|
|
|
width: 250px; |
|
|
|
height: 100%; |
|
|
|
/* display: flex; |
|
|
@ -591,25 +484,25 @@ |
|
|
|
background-color: #fff; |
|
|
|
box-shadow: 0px 0px 10px #E9E9E9; |
|
|
|
border-radius: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar { |
|
|
|
.tbar { |
|
|
|
/* width: 25%; */ |
|
|
|
margin: 0 0px 0 0; |
|
|
|
/* background-color: #fff; |
|
|
|
box-shadow:0px 0px 10px #E9E9E9;border-radius: 5px; */ |
|
|
|
padding: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar:last-of-type { |
|
|
|
.tbar:last-of-type { |
|
|
|
margin: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar0 { |
|
|
|
.tbar0 { |
|
|
|
border-bottom: 0px solid #032ab8; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar .title { |
|
|
|
.tbar .title { |
|
|
|
font-size: 20px; |
|
|
|
padding: 0px 20px; |
|
|
|
text-align: center; |
|
|
@ -617,13 +510,13 @@ |
|
|
|
color: #333; |
|
|
|
font-size: 16px; |
|
|
|
/* border-bottom: 1px solid #ececee; */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar .title span { |
|
|
|
.tbar .title span { |
|
|
|
padding: 0 10px 0 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar .bar { |
|
|
|
.tbar .bar { |
|
|
|
position: relative; |
|
|
|
/* display: flex; |
|
|
|
flex-direction: row; |
|
|
@ -632,9 +525,9 @@ |
|
|
|
margin: 0; |
|
|
|
padding: 0px; |
|
|
|
height: 190px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.tbar .bar .zhongzi { |
|
|
|
.tbar .bar .zhongzi { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
bottom: 0; |
|
|
@ -645,5 +538,5 @@ |
|
|
|
font-weight: bold; |
|
|
|
color: #333; |
|
|
|
font-size: 18px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |