|
|
@@ -248,7 +248,15 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name" label="开机指示灯" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name" label="电池电量" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="name" |
|
|
|
label="电池电量" |
|
|
|
width="200" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<el-progress :percentage="80" :color="customColors"></el-progress> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name" label="信号强度" align="center"> |
|
|
|
</el-table-column> |
|
|
@@ -282,16 +290,24 @@ |
|
|
|
<el-button type="text" @click="toinifodelete()">删除</el-button> --> |
|
|
|
|
|
|
|
<el-dropdown @command="handleCommand"> |
|
|
|
<span style="color:#409eff; font-size:12px;margin-left:10px;"> |
|
|
|
<span style="color: #409eff; font-size: 12px; margin-left: 10px"> |
|
|
|
更多<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
</span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item command='toinifoThereturn' >归还</el-dropdown-item> |
|
|
|
<el-dropdown-item command='infotranscription' >转写开关</el-dropdown-item> |
|
|
|
<el-dropdown-item command="toinifoThereturn" |
|
|
|
>归还</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item command="infotranscription" |
|
|
|
>转写开关</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item command="acceptance">验收</el-dropdown-item> |
|
|
|
<el-dropdown-item command="toinfobinding">绑定</el-dropdown-item> |
|
|
|
<el-dropdown-item command="infoeditor">修改</el-dropdown-item> |
|
|
|
<el-dropdown-item command="toinifodelete">删除</el-dropdown-item> |
|
|
|
<el-dropdown-item command="toinfobinding" |
|
|
|
>绑定</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item command="infoeditor">修改</el-dropdown-item> |
|
|
|
<el-dropdown-item command="toinifodelete" |
|
|
|
>删除</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</template> |
|
|
@@ -313,31 +329,28 @@ |
|
|
|
|
|
|
|
<el-dialog title="新增设备" :visible.sync="dialogVisible"> |
|
|
|
<el-form |
|
|
|
:model="ruleForm" |
|
|
|
:model="addForm" |
|
|
|
label-position="labelPosition" |
|
|
|
ref="ruleForm" |
|
|
|
label-width="140px" |
|
|
|
style="width: 60%; margin: 0 auto" |
|
|
|
ref="addForm" |
|
|
|
:rules="addRules" |
|
|
|
label-width="100px" |
|
|
|
> |
|
|
|
<el-form-item label="设备号:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
<el-form-item label="设备号" prop="imei"> |
|
|
|
<el-input v-model="addForm.imei" style="width: 80%"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备名称:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
<el-form-item label="转写方式" prop="defaultTransliteration"> |
|
|
|
<el-radio-group v-model="addForm.defaultTransliteration"> |
|
|
|
<el-radio label="3">关闭转写</el-radio> |
|
|
|
<el-radio label="6">科大讯飞</el-radio> |
|
|
|
<el-radio label="9">思必驰</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="批次号:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="楼盘:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-form-item label="批次号" prop="batchId"> |
|
|
|
<el-select |
|
|
|
v-model="addForm.batchId" |
|
|
|
style="width: 80%" |
|
|
|
placeholder="请选择" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
@@ -347,79 +360,46 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="关联手机号:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备类型:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
style="width: 80%" |
|
|
|
v-model="addForm.remark" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="add()">保存</el-button> |
|
|
|
<el-button type="primary" @click="addEquipment()">保存</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="编辑" :visible.sync="dialogVisible2"> |
|
|
|
<el-form |
|
|
|
:model="ruleForm" |
|
|
|
:model="editForm" |
|
|
|
label-position="labelPosition" |
|
|
|
ref="ruleForm" |
|
|
|
ref="editForm" |
|
|
|
label-width="140px" |
|
|
|
style="width: 60%; margin: 0 auto" |
|
|
|
> |
|
|
|
<el-form-item label="设备号:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备名称:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="批次号:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="楼盘:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-form-item label="设备号" prop="imei"> |
|
|
|
<el-input |
|
|
|
v-model="editForm.imei" |
|
|
|
style="width: 80%" |
|
|
|
disabled |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="关联手机号:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
<el-form-item label="设备状态" prop="acceptanceStatus"> |
|
|
|
<el-radio-group v-model="editForm.acceptanceStatus"> |
|
|
|
<el-radio label="0">正常</el-radio> |
|
|
|
<el-radio label="1">报损</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备类型:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="描述:" prop="areaName"> |
|
|
|
<el-input type="textarea" v-model="ruleForm.areaName"></el-input> |
|
|
|
<el-form-item label="报损原因" prop="desc" v-if="editForm.acceptanceStatus==1"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
style="width: 80%" |
|
|
|
v-model="editForm.desc" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@@ -430,32 +410,39 @@ |
|
|
|
|
|
|
|
<el-dialog title="绑定" :visible.sync="dialogVisible3"> |
|
|
|
<el-form |
|
|
|
:model="ruleForm" |
|
|
|
:model="bindForm" |
|
|
|
label-position="labelPosition" |
|
|
|
ref="ruleForm" |
|
|
|
label-width="140px" |
|
|
|
style="width: 60%; margin: 0 auto" |
|
|
|
ref="bindForm" |
|
|
|
label-width="100px" |
|
|
|
> |
|
|
|
<el-form-item label="用户:" prop="areaName"> |
|
|
|
<el-select v-model="value" placeholder="请选择"> |
|
|
|
<el-form-item label="绑定" prop="choic"> |
|
|
|
<el-radio-group v-model="bindForm.choic"> |
|
|
|
<el-radio label="3">楼盘</el-radio> |
|
|
|
<el-radio label="6">代理商</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="楼盘" prop="houseId"> |
|
|
|
<el-select |
|
|
|
v-model="bindForm.houseId" |
|
|
|
style="width: 80%" |
|
|
|
placeholder="请选择" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
v-for="item in houseList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.propertyName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="设备:" prop="areaName"> |
|
|
|
<el-input v-model="ruleForm.areaName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="领用时间:" prop="areaName"> |
|
|
|
<el-date-picker v-model="value" type="date" placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注:" prop="areaName"> |
|
|
|
<el-input type="textarea" v-model="ruleForm.areaName"></el-input> |
|
|
|
|
|
|
|
<el-form-item label="备注:" prop="remark"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
style="width: 80%" |
|
|
|
v-model="bindForm.remark" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@@ -617,6 +604,7 @@ export default { |
|
|
|
value: "", |
|
|
|
input: "", |
|
|
|
tableData: [], |
|
|
|
houseList: [], |
|
|
|
dialogVisible: false, |
|
|
|
dialogVisible2: false, |
|
|
|
dialogVisible3: false, |
|
|
@@ -626,16 +614,45 @@ export default { |
|
|
|
areaName: "", |
|
|
|
provinceItem: [], |
|
|
|
}, |
|
|
|
addForm: { |
|
|
|
imei: "", |
|
|
|
defaultTransliteration: "", |
|
|
|
batchId: "", |
|
|
|
remark: "", |
|
|
|
}, |
|
|
|
bindForm: { |
|
|
|
remark: "", |
|
|
|
houseId: "", |
|
|
|
choic: "3", |
|
|
|
}, |
|
|
|
editForm: { |
|
|
|
imei: "123", |
|
|
|
desc: "", |
|
|
|
acceptanceStatus: "0", |
|
|
|
}, |
|
|
|
addRules: { |
|
|
|
imei: [{ required: true, message: "请填写设备号", trigger: "blur" }], |
|
|
|
batchId: { required: true, message: "请选择批次号", trigger: "blur" }, |
|
|
|
}, |
|
|
|
multipleSelection: [], |
|
|
|
customColors: [ |
|
|
|
{ color: "#f56c6c", percentage: 20 }, |
|
|
|
{ color: "#e6a23c", percentage: 40 }, |
|
|
|
{ color: "#5cb87a", percentage: 60 }, |
|
|
|
{ color: "#1989fa", percentage: 80 }, |
|
|
|
{ color: "#6f7ad3", percentage: 100 }, |
|
|
|
], |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// 获取设备列表 |
|
|
|
this.equipmentManagement(); |
|
|
|
// 获取楼盘列表 |
|
|
|
this.zkhousePage(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleCommand(e){ |
|
|
|
this[e]() |
|
|
|
handleCommand(e) { |
|
|
|
this[e](); |
|
|
|
}, |
|
|
|
equipmentManagement() { |
|
|
|
this.$api.api |
|
|
@@ -696,7 +713,12 @@ export default { |
|
|
|
}, |
|
|
|
//确认绑定 |
|
|
|
binding() { |
|
|
|
this.dialogVisible3 = false; |
|
|
|
this.$refs.bindForm.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
console.log(this.bindForm); |
|
|
|
this.dialogVisible3 = false; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//编辑 |
|
|
|
infoeditor() { |
|
|
@@ -710,9 +732,27 @@ export default { |
|
|
|
infoadd() { |
|
|
|
this.dialogVisible = true; |
|
|
|
}, |
|
|
|
zkhousePage() { |
|
|
|
this.$api.api |
|
|
|
.findHouseByUser({ |
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
// console.log(res) |
|
|
|
this.houseList = res.data; |
|
|
|
// this.searchForm.houseId = res.data[0].id; |
|
|
|
// 列表获取 |
|
|
|
// this.correctFindbypage(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
//确认新增 |
|
|
|
add() { |
|
|
|
this.dialogVisible = false; |
|
|
|
addEquipment() { |
|
|
|
this.$refs.addForm.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
console.log(this.addForm); |
|
|
|
// this.dialogVisible = false; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//验收 |
|
|
|
acceptance() { |
|
|
|