Browse Source

密集架api现场数据结构更新

master
xuhuajiao 2 weeks ago
parent
commit
e4a4ef9b1e
  1. 7
      src/views/archivesManage/archivesList/module/archivesInfo/index.vue
  2. 7
      src/views/archivesManage/archivesSearch/index.vue
  3. 7
      src/views/archivesManage/lendManage/components/archiveDetail.vue
  4. 7
      src/views/archivesManage/lendManage/components/lendArchivesList.vue
  5. 30
      src/views/storeManage/warehouse3D/deseCabinet/index.vue

7
src/views/archivesManage/archivesList/module/archivesInfo/index.vue

@ -218,19 +218,14 @@ export default {
col: colNumber
}
CallExternal.FetchDenseshelfMannualunfold(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架开架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架开架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
setXml() {

7
src/views/archivesManage/archivesSearch/index.vue

@ -524,19 +524,14 @@ export default {
col: colNumber
}
CallExternal.FetchDenseshelfMannualunfold(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架开架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架开架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
//

7
src/views/archivesManage/lendManage/components/archiveDetail.vue

@ -171,19 +171,14 @@ export default {
col: colNumber
}
CallExternal.FetchDenseshelfMannualunfold(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架开架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架开架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
handleLookVideo() {

7
src/views/archivesManage/lendManage/components/lendArchivesList.vue

@ -228,19 +228,14 @@ export default {
col: colNumber
}
CallExternal.FetchDenseshelfMannualunfold(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架开架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架开架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
handleLookVideo() {

30
src/views/storeManage/warehouse3D/deseCabinet/index.vue

@ -302,19 +302,14 @@ export default {
col: this.cabinetNum
}
CallExternal.FetchDenseshelfMannualunfold(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架开架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架开架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
//
@ -328,22 +323,17 @@ export default {
const params = {
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '',
workmode: 'left'
workmode: 'whole'
}
CallExternal.FetchDenseshelfClose(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架合架执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架合架执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
//
@ -364,19 +354,14 @@ export default {
workmode: 'whole'
}
CallExternal.FetchDenseshelfVentilate(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架通风执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架通风执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
//
@ -391,19 +376,14 @@ export default {
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : ''
}
CallExternal.FetchDenseshelfStop(params).then(res => {
if (res) {
const result = JSON.parse(res)
const result = typeof res === 'string' ? JSON.parse(res) : res
if (result.resultcode === 0 || result.resultcode === '0') {
this.$message.success('密集架停止移动执行成功')
} else {
this.$message.error(result.resultdata)
}
} else {
this.$message.error('密集架停止移动执行失败')
}
}).catch((error) => {
console.log(error)
this.$message.error('连接失败')
})
},
// 3D

Loading…
Cancel
Save