|
|
@ -206,13 +206,16 @@ export default { |
|
|
this.getInBorrowByQuCol() |
|
|
this.getInBorrowByQuCol() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.loading = false |
|
|
|
|
|
console.error(err) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取密集架左右节/层档案情况 |
|
|
// 获取密集架左右节/层档案情况 |
|
|
async getInBorrowByQuCol() { |
|
|
async getInBorrowByQuCol() { |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: this.deviceData.id, |
|
|
|
|
|
quNo: this.deviceData.areaNo, |
|
|
|
|
|
|
|
|
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '', |
|
|
colNo: this.cabinetNum |
|
|
colNo: this.cabinetNum |
|
|
} |
|
|
} |
|
|
CallExternal.FetchInBorrowByQuCol(params).then(data => { |
|
|
CallExternal.FetchInBorrowByQuCol(params).then(data => { |
|
|
@ -226,6 +229,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.setReorderData(this.left, this.sortLeft, false) |
|
|
this.setReorderData(this.left, this.sortLeft, false) |
|
|
this.setReorderData(this.right, this.sortRight, true) |
|
|
this.setReorderData(this.right, this.sortRight, true) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.error(err) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 分出左右后重新排序,根据节和层从下往上,left-从右往左, right-从左往右 |
|
|
// 分出左右后重新排序,根据节和层从下往上,left-从右往左, right-从左往右 |
|
|
@ -281,19 +286,31 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 开架 |
|
|
// 开架 |
|
|
openCol() { |
|
|
openCol() { |
|
|
|
|
|
// zone Y int 区域号 |
|
|
|
|
|
// col Y string 列号 |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
// quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '', |
|
|
|
|
|
// colNo: this.cabinetNum, |
|
|
|
|
|
// leNo: '', |
|
|
|
|
|
// divNo: '', |
|
|
|
|
|
// zyNo: '' |
|
|
|
|
|
// } |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: this.deviceData.id, |
|
|
|
|
|
quNo: this.deviceData.areaNo, |
|
|
|
|
|
colNo: this.cabinetNum, |
|
|
|
|
|
leNo: '', |
|
|
|
|
|
divNo: '', |
|
|
|
|
|
zyNo: '' |
|
|
|
|
|
} |
|
|
|
|
|
CallExternal.FetchCallExternalOpenCol(params).then(res => { |
|
|
|
|
|
if (res.success && res.success === '0') { |
|
|
|
|
|
this.$message.success('开架执行成功') |
|
|
|
|
|
|
|
|
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '', |
|
|
|
|
|
col: this.cabinetNum |
|
|
|
|
|
} |
|
|
|
|
|
CallExternal.FetchDenseshelfMannualunfold(params).then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
const result = JSON.parse(res) |
|
|
|
|
|
if (result.resultcode === 0 || result.resultcode === '0') { |
|
|
|
|
|
this.$message.success('密集架开架执行成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(result.resultdata) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(res.msg) |
|
|
|
|
|
|
|
|
this.$message.error('密集架开架执行失败') |
|
|
} |
|
|
} |
|
|
}).catch((error) => { |
|
|
}).catch((error) => { |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
@ -302,15 +319,27 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 合架 |
|
|
// 合架 |
|
|
resetCol() { |
|
|
resetCol() { |
|
|
|
|
|
// zone Y int 区域号 |
|
|
|
|
|
// workmode Y string whole 全闭,left 左闭,right 右闭 |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
// quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '' |
|
|
|
|
|
// } |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: this.deviceData.id, |
|
|
|
|
|
quNo: this.deviceData.areaNo |
|
|
|
|
|
|
|
|
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '', |
|
|
|
|
|
workmode: 'left' |
|
|
|
|
|
} |
|
|
|
|
|
CallExternal.FetchDenseshelfClose(params).then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
const result = JSON.parse(res) |
|
|
|
|
|
if (result.resultcode === 0 || result.resultcode === '0') { |
|
|
|
|
|
this.$message.success('密集架合架执行成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(result.resultdata) |
|
|
} |
|
|
} |
|
|
CallExternal.FetchCallExternalResetCol(params).then(res => { |
|
|
|
|
|
if (res.success && res.success === '0') { |
|
|
|
|
|
this.$message.success('合架执行成功') |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(res.msg) |
|
|
|
|
|
|
|
|
this.$message.error('密集架合架执行失败') |
|
|
} |
|
|
} |
|
|
}).catch((error) => { |
|
|
}).catch((error) => { |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
@ -319,15 +348,31 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 密集架通风 |
|
|
// 密集架通风 |
|
|
ventHandle() { |
|
|
ventHandle() { |
|
|
|
|
|
// workmode Y string whole 全通,left 左通,right 右通 |
|
|
|
|
|
// zone Y int 区域号 |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
// quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '' |
|
|
|
|
|
// } |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
// quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '' |
|
|
|
|
|
// } |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: this.deviceData.id, |
|
|
|
|
|
quNo: this.deviceData.areaNo |
|
|
|
|
|
} |
|
|
|
|
|
CallExternal.FetchCallExternalVent(params).then(res => { |
|
|
|
|
|
if (res.success && res.success === '0') { |
|
|
|
|
|
|
|
|
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '', |
|
|
|
|
|
workmode: 'whole' |
|
|
|
|
|
} |
|
|
|
|
|
CallExternal.FetchDenseshelfVentilate(params).then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
const result = JSON.parse(res) |
|
|
|
|
|
if (result.resultcode === 0 || result.resultcode === '0') { |
|
|
this.$message.success('密集架通风执行成功') |
|
|
this.$message.success('密集架通风执行成功') |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(res.msg) |
|
|
|
|
|
|
|
|
this.$message.error(result.resultdata) |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error('密集架通风执行失败') |
|
|
} |
|
|
} |
|
|
}).catch((error) => { |
|
|
}).catch((error) => { |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
@ -336,15 +381,25 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 密集架停止移动 |
|
|
// 密集架停止移动 |
|
|
stopMove() { |
|
|
stopMove() { |
|
|
|
|
|
// zone Y int 区域号 |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
// quNo: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '' |
|
|
|
|
|
// } |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: this.deviceData.id, |
|
|
|
|
|
quNo: this.deviceData.areaNo |
|
|
|
|
|
|
|
|
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '', |
|
|
|
|
|
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '' |
|
|
} |
|
|
} |
|
|
CallExternal.FetchCallExternalStopMove(params).then(res => { |
|
|
|
|
|
if (res.success && res.success === '0') { |
|
|
|
|
|
|
|
|
CallExternal.FetchDenseshelfStop(params).then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
const result = JSON.parse(res) |
|
|
|
|
|
if (result.resultcode === 0 || result.resultcode === '0') { |
|
|
this.$message.success('密集架停止移动执行成功') |
|
|
this.$message.success('密集架停止移动执行成功') |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(res.msg) |
|
|
|
|
|
|
|
|
this.$message.error(result.resultdata) |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error('密集架停止移动执行失败') |
|
|
} |
|
|
} |
|
|
}).catch((error) => { |
|
|
}).catch((error) => { |
|
|
console.log(error) |
|
|
console.log(error) |
|
|
|