|
@ -111,8 +111,8 @@ |
|
|
<el-input v-model="query.phone" size="small" placeholder="手机号" class="handle-input width-3rem mr10" |
|
|
<el-input v-model="query.phone" size="small" placeholder="手机号" class="handle-input width-3rem mr10" |
|
|
:clearable="true"> |
|
|
:clearable="true"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-cascader style="width: 100%;" size="small" :options="roomlistZNodes" collapse-tags |
|
|
|
|
|
@change="checkNodeSearch" :props="{ multiple: true }" :clearable="true" class="width-3rem"></el-cascader> |
|
|
|
|
|
|
|
|
<!-- <el-cascader style="width: 100%;" size="small" :options="roomlistZNodes" collapse-tags--> |
|
|
|
|
|
<!-- @change="checkNodeSearch" :props="{ multiple: true }" :clearable="true" class="width-3rem"></el-cascader>--> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleSearch" |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleSearch" |
|
|
style="background: #FA8E00; border: none;">查询</el-button> |
|
|
style="background: #FA8E00; border: none;">查询</el-button> |
|
|
</div> |
|
|
</div> |
|
@ -371,11 +371,11 @@ |
|
|
<span v-if="scope.row.type == 14">密码</span> |
|
|
<span v-if="scope.row.type == 14">密码</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<!-- <el-table-column prop="number" width="400" label="凭证有效期">--> |
|
|
|
|
|
<!-- <template #default="scope">--> |
|
|
|
|
|
<!-- <span>{{ scope.row.startTimeText }} - {{ scope.row.endTimeText }}</span>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
|
|
|
|
<!-- <el-table-column prop="number" width="400" label="凭证有效期">--> |
|
|
|
|
|
<!-- <template #default="scope">--> |
|
|
|
|
|
<!-- <span>{{ scope.row.startTimeText }} - {{ scope.row.endTimeText }}</span>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column label="创建时间" prop="createAt" width="200"></el-table-column> |
|
|
<el-table-column label="创建时间" prop="createAt" width="200"></el-table-column> |
|
|
<el-table-column label="操作" width="400" align="center" class-name="tablebutton"> |
|
|
<el-table-column label="操作" width="400" align="center" class-name="tablebutton"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
@ -1149,29 +1149,11 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
// 获取全部合同 |
|
|
// 获取全部合同 |
|
|
this.getLeasesList() |
|
|
this.getLeasesList() |
|
|
// document.addEventListener('keydown', this.keyDown) |
|
|
|
|
|
|
|
|
document.addEventListener('keydown', this.keyDown) |
|
|
|
|
|
var that = this |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.handleSearch() |
|
|
|
|
|
var q = {}; |
|
|
|
|
|
var data = { |
|
|
|
|
|
pageNum: 0, |
|
|
|
|
|
pageSize: 0, |
|
|
|
|
|
orderBy: "create_time desc", |
|
|
|
|
|
q: JSON.stringify(q), |
|
|
|
|
|
}; |
|
|
|
|
|
let roomAbout = this.$store.state.roomAbout |
|
|
|
|
|
httpPost(data, this.$api.getlistNum).then((res1) => { |
|
|
|
|
|
res1.data.list.map((li, index) => { |
|
|
|
|
|
this.$store.commit("increment", 1); |
|
|
|
|
|
li['rommNameText'] = this.screenRoomName(li.id) |
|
|
|
|
|
if (li["rommNameText"] != '') { |
|
|
|
|
|
this.isCheckin++ |
|
|
|
|
|
} else { |
|
|
|
|
|
this.noshowNum++ |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}, 800) |
|
|
|
|
|
|
|
|
that.handleSearch() |
|
|
|
|
|
}, 1000) |
|
|
}, |
|
|
}, |
|
|
beforeDestroy() { |
|
|
beforeDestroy() { |
|
|
this.$store.commit("increment", 1); |
|
|
this.$store.commit("increment", 1); |
|
@ -1226,7 +1208,7 @@ export default { |
|
|
let data3 = { |
|
|
let data3 = { |
|
|
code: "/zg/offlinepassword/limit", |
|
|
code: "/zg/offlinepassword/limit", |
|
|
data: { |
|
|
data: { |
|
|
userName: JSON.parse(this.drawerRow.info).userId, |
|
|
|
|
|
|
|
|
userName: this.drawerRow.info.userId, |
|
|
lockId: row.deviceNum, |
|
|
lockId: row.deviceNum, |
|
|
startTime: startTime, |
|
|
startTime: startTime, |
|
|
endTime: endTime |
|
|
endTime: endTime |
|
@ -1257,7 +1239,7 @@ export default { |
|
|
let data3 = { |
|
|
let data3 = { |
|
|
code: "/zg/offlinepassword/correctTime", |
|
|
code: "/zg/offlinepassword/correctTime", |
|
|
data: { |
|
|
data: { |
|
|
userName: JSON.parse(this.drawerRow.info).userId, |
|
|
|
|
|
|
|
|
userName: this.drawerRow.info.userId, |
|
|
lockId: row.deviceNum, |
|
|
lockId: row.deviceNum, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
@ -1286,7 +1268,7 @@ export default { |
|
|
let data3 = { |
|
|
let data3 = { |
|
|
code: "/zg/offlinepassword/clear", |
|
|
code: "/zg/offlinepassword/clear", |
|
|
data: { |
|
|
data: { |
|
|
userName: JSON.parse(this.drawerRow.info).userId, |
|
|
|
|
|
|
|
|
userName: this.drawerRow.info.userId, |
|
|
lockId: row.deviceNum, |
|
|
lockId: row.deviceNum, |
|
|
startTime: startTime, |
|
|
startTime: startTime, |
|
|
// endTime:endTime, |
|
|
// endTime:endTime, |
|
@ -1318,7 +1300,7 @@ export default { |
|
|
let data3 = { |
|
|
let data3 = { |
|
|
code: "/zg/offlinepassword/forever", |
|
|
code: "/zg/offlinepassword/forever", |
|
|
data: { |
|
|
data: { |
|
|
userName: JSON.parse(this.drawerRow.info).userId, |
|
|
|
|
|
|
|
|
userName: this.drawerRow.info.userId, |
|
|
lockId: row.deviceNum, |
|
|
lockId: row.deviceNum, |
|
|
startTime: startTime, |
|
|
startTime: startTime, |
|
|
// endTime:endTime, |
|
|
// endTime:endTime, |
|
@ -2900,8 +2882,8 @@ export default { |
|
|
phone: this.query.phone, |
|
|
phone: this.query.phone, |
|
|
}; |
|
|
}; |
|
|
var data = { |
|
|
var data = { |
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
|
|
|
pageNum: this.pageNum, |
|
|
|
|
|
pageSize: this.pageSize, |
|
|
orderBy: "create_time desc", |
|
|
orderBy: "create_time desc", |
|
|
q: JSON.stringify(q), |
|
|
q: JSON.stringify(q), |
|
|
}; |
|
|
}; |
|
@ -2909,7 +2891,7 @@ export default { |
|
|
let roomAbout = this.$store.state.roomAbout |
|
|
let roomAbout = this.$store.state.roomAbout |
|
|
httpPost(data, this.$api.getlistNum).then((res1) => { |
|
|
httpPost(data, this.$api.getlistNum).then((res1) => { |
|
|
console.log(res1); |
|
|
console.log(res1); |
|
|
let para = []; |
|
|
|
|
|
|
|
|
let para = [], searchCardIds=[]; |
|
|
res1.data.list.map((li, index) => { |
|
|
res1.data.list.map((li, index) => { |
|
|
let userTelephone = JSON.parse(li.info) ? JSON.parse(li.info).userTelephone : '' |
|
|
let userTelephone = JSON.parse(li.info) ? JSON.parse(li.info).userTelephone : '' |
|
|
let str = { |
|
|
let str = { |
|
@ -2918,15 +2900,30 @@ export default { |
|
|
password: "", |
|
|
password: "", |
|
|
operateMode: 1, |
|
|
operateMode: 1, |
|
|
}; |
|
|
}; |
|
|
para.push(str); |
|
|
|
|
|
|
|
|
// para.push(str); |
|
|
this.$store.commit("increment", 1); |
|
|
this.$store.commit("increment", 1); |
|
|
li.status = 3; |
|
|
li.status = 3; |
|
|
li['rommNameText'] = this.screenRoomName(li.id) |
|
|
li['rommNameText'] = this.screenRoomName(li.id) |
|
|
|
|
|
searchCardIds.push(li.id) |
|
|
|
|
|
if(li.info){ |
|
|
|
|
|
li.info = JSON.parse(li.info) |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.searchCardIds = searchCardIds |
|
|
|
|
|
this.getAboutRoom() |
|
|
|
|
|
let list = res1.data.list |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
list.map(li=>{ |
|
|
|
|
|
li['rommNameText'] = this.screenRoomName(li.id) |
|
|
|
|
|
}) |
|
|
|
|
|
this.currentPage4 = 1 |
|
|
|
|
|
this.userlist = list; |
|
|
|
|
|
this.total = res1.data.total; |
|
|
|
|
|
},500) |
|
|
// this.getallstatus(para); |
|
|
// this.getallstatus(para); |
|
|
console.log(res1.data.list); |
|
|
|
|
|
this.userlist = res1.data.list; |
|
|
|
|
|
this.total = res1.data.total; |
|
|
|
|
|
|
|
|
// console.log(res1.data.list); |
|
|
|
|
|
// this.userlist = res1.data.list; |
|
|
|
|
|
// this.total = res1.data.total; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 获取人员列表 |
|
|
// 获取人员列表 |
|
@ -3126,8 +3123,8 @@ export default { |
|
|
var roomName = this.zNodes.filter(item => li.roomId === item.id) |
|
|
var roomName = this.zNodes.filter(item => li.roomId === item.id) |
|
|
if (resultArr) { |
|
|
if (resultArr) { |
|
|
if (resultArr.manufactureId == 101) { |
|
|
if (resultArr.manufactureId == 101) { |
|
|
var userTelephone = JSON.parse(this.drawerRow.info).userTelephone; |
|
|
|
|
|
var userPassword = JSON.parse(this.drawerRow.info).userPassword; |
|
|
|
|
|
|
|
|
var userTelephone = this.drawerRow.info.userTelephone; |
|
|
|
|
|
var userPassword = this.drawerRow.info.userPassword; |
|
|
resultArr.roomName = roomName[0].name |
|
|
resultArr.roomName = roomName[0].name |
|
|
var data = { |
|
|
var data = { |
|
|
deviceNum: resultArr.deviceNum, |
|
|
deviceNum: resultArr.deviceNum, |
|
@ -3261,7 +3258,7 @@ export default { |
|
|
sendVoucher() { |
|
|
sendVoucher() { |
|
|
var SelectedListbind = this.SelectedList |
|
|
var SelectedListbind = this.SelectedList |
|
|
var roomAbout = this.$store.state.roomAbout |
|
|
var roomAbout = this.$store.state.roomAbout |
|
|
var infostr = JSON.parse(this.drawerRow.info); |
|
|
|
|
|
|
|
|
var infostr = this.drawerRow.info; |
|
|
var fjid = []; |
|
|
var fjid = []; |
|
|
if (this.value2[0] == '' || this.value2[1] == '') { |
|
|
if (this.value2[0] == '' || this.value2[1] == '') { |
|
|
this.$message.error("请选择开始结束时间") |
|
|
this.$message.error("请选择开始结束时间") |
|
@ -3750,8 +3747,8 @@ export default { |
|
|
lockerId: resultArr.deviceNum, |
|
|
lockerId: resultArr.deviceNum, |
|
|
imei: resultArr.imei, |
|
|
imei: resultArr.imei, |
|
|
order: 6216, |
|
|
order: 6216, |
|
|
lockerUserId: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
keyId: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
|
|
|
lockerUserId: this.drawerRow.info.userPassword, |
|
|
|
|
|
keyId: this.drawerRow.info.userPassword, |
|
|
fingerType: 0, |
|
|
fingerType: 0, |
|
|
file: fingerprint1, |
|
|
file: fingerprint1, |
|
|
cardName: row.name + '-' + (pzname ? pzname : ''), |
|
|
cardName: row.name + '-' + (pzname ? pzname : ''), |
|
@ -4909,10 +4906,10 @@ export default { |
|
|
str = { |
|
|
str = { |
|
|
username: this.voucher.username, |
|
|
username: this.voucher.username, |
|
|
pzname: pzname, |
|
|
pzname: pzname, |
|
|
userTelephone: JSON.parse(this.drawerRow.info).userTelephone, |
|
|
|
|
|
userPassword: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
keyId: JSON.parse(this.drawerRow.info).keyId || '', |
|
|
|
|
|
userId: JSON.parse(this.drawerRow.info).userId || '', |
|
|
|
|
|
|
|
|
userTelephone: this.drawerRow.info.userTelephone, |
|
|
|
|
|
userPassword: this.drawerRow.info.userPassword, |
|
|
|
|
|
keyId: this.drawerRow.info.keyId || '', |
|
|
|
|
|
userId: this.drawerRow.info.userId || '', |
|
|
fingerprintAlias: this.voucher.fingerprintAlias, |
|
|
fingerprintAlias: this.voucher.fingerprintAlias, |
|
|
password: "", |
|
|
password: "", |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
@ -4937,10 +4934,10 @@ export default { |
|
|
str = { |
|
|
str = { |
|
|
username: this.voucher.username, |
|
|
username: this.voucher.username, |
|
|
pzname: pzname, |
|
|
pzname: pzname, |
|
|
userTelephone: JSON.parse(this.drawerRow.info).userTelephone, |
|
|
|
|
|
userPassword: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
keyId: JSON.parse(this.drawerRow.info).keyId || '', |
|
|
|
|
|
userId: JSON.parse(this.drawerRow.info).userId || '', |
|
|
|
|
|
|
|
|
userTelephone: this.drawerRow.info.userTelephone, |
|
|
|
|
|
userPassword: this.drawerRow.info.userPassword, |
|
|
|
|
|
keyId: this.drawerRow.info.keyId || '', |
|
|
|
|
|
userId: this.drawerRow.info.userId || '', |
|
|
operateMode: 13, |
|
|
operateMode: 13, |
|
|
order: 6213, |
|
|
order: 6213, |
|
|
password: arr2.toUpperCase(), //this.voucher.idcard, |
|
|
password: arr2.toUpperCase(), //this.voucher.idcard, |
|
@ -4973,10 +4970,10 @@ export default { |
|
|
pzname: pzname, |
|
|
pzname: pzname, |
|
|
operateMode: 10, |
|
|
operateMode: 10, |
|
|
order: 6210, |
|
|
order: 6210, |
|
|
userTelephone: JSON.parse(this.drawerRow.info).userTelephone, |
|
|
|
|
|
userPassword: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
keyId: JSON.parse(this.drawerRow.info).keyId || '', |
|
|
|
|
|
userId: JSON.parse(this.drawerRow.info).userId || '', |
|
|
|
|
|
|
|
|
userTelephone: this.drawerRow.info.userTelephone, |
|
|
|
|
|
userPassword: this.drawerRow.info.userPassword, |
|
|
|
|
|
keyId: this.drawerRow.info.keyId || '', |
|
|
|
|
|
userId: this.drawerRow.info.userId || '', |
|
|
password: nfc.toUpperCase(), //this.voucher.nfc, |
|
|
password: nfc.toUpperCase(), //this.voucher.nfc, |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
|
passwordEndTime: moment(this.value2[1]).format('YYYYMMDDHHmmss'), |
|
|
passwordEndTime: moment(this.value2[1]).format('YYYYMMDDHHmmss'), |
|
@ -4998,10 +4995,10 @@ export default { |
|
|
pzname: pzname, |
|
|
pzname: pzname, |
|
|
// imei: this.deviceList[0].imei, |
|
|
// imei: this.deviceList[0].imei, |
|
|
password: this.voucher.password, |
|
|
password: this.voucher.password, |
|
|
userTelephone: JSON.parse(this.drawerRow.info).userTelephone, |
|
|
|
|
|
userPassword: JSON.parse(this.drawerRow.info).userPassword, |
|
|
|
|
|
keyId: JSON.parse(this.drawerRow.info).keyId || '', |
|
|
|
|
|
userId: JSON.parse(this.drawerRow.info).userId || '', |
|
|
|
|
|
|
|
|
userTelephone: this.drawerRow.info.userTelephone, |
|
|
|
|
|
userPassword: this.drawerRow.info.userPassword, |
|
|
|
|
|
keyId: this.drawerRow.info.keyId || '', |
|
|
|
|
|
userId: this.drawerRow.info.userId || '', |
|
|
operateMode: 7, |
|
|
operateMode: 7, |
|
|
order: 6207, |
|
|
order: 6207, |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
|
passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), |
|
@ -5488,7 +5485,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 清理房间 |
|
|
// 清理房间 |
|
|
qlfj() { |
|
|
qlfj() { |
|
|
var info = JSON.parse(this.drawerRow.info); |
|
|
|
|
|
|
|
|
// var info = JSON.parse(this.drawerRow.info); |
|
|
|
|
|
let info = ''//JSON.parse(this.drawerRow.info); |
|
|
|
|
|
if(typeof(this.drawerRow.info) == 'object'){ |
|
|
|
|
|
info = this.drawerRow.info |
|
|
|
|
|
}else if(typeof(this.drawerRow.info) == 'string'){ |
|
|
|
|
|
info = JSON.parse(this.drawerRow.info) |
|
|
|
|
|
} |
|
|
var info1 = { |
|
|
var info1 = { |
|
|
roomIds: [], |
|
|
roomIds: [], |
|
|
userPassword: info.userPassword, |
|
|
userPassword: info.userPassword, |
|
|