Browse Source

密集架

master
xuhuajiao 2 weeks ago
parent
commit
60c0c37c98
  1. 4
      .env.development
  2. 99
      src/api/storeManage/deviceManage/device.js
  3. 5
      src/utils/request.js
  4. 43
      src/views/archivesManage/archivesList/module/archivesInfo/index.vue
  5. 30
      src/views/archivesManage/archivesSearch/index.vue
  6. 14
      src/views/archivesManage/caseManage/caseList/index.vue
  7. 26
      src/views/archivesManage/lendManage/components/archiveDetail.vue
  8. 26
      src/views/archivesManage/lendManage/components/lendArchivesList.vue
  9. 115
      src/views/storeManage/warehouse3D/deseCabinet/index.vue
  10. 7
      vue.config.js

4
.env.development

@ -10,8 +10,8 @@ VUE_APP_CAMERA_API = '192.168.99.107:3000'
#VUE_APP_WS_API = 'ws://192.168.99.107:7070' #VUE_APP_WS_API = 'ws://192.168.99.107:7070'
# 许镇-本地服地址 # 许镇-本地服地址
VUE_APP_BASE_API = 'http://192.168.99.72:7070'
VUE_APP_WS_API = 'ws://192.168.99.72:7070'
VUE_APP_BASE_API = 'http://192.168.99.63:7080'
VUE_APP_WS_API = 'ws://192.168.99.63:7080'
# 是否启用 babel-plugin-dynamic-import-node插件 # 是否启用 babel-plugin-dynamic-import-node插件

99
src/api/storeManage/deviceManage/device.js

@ -155,4 +155,101 @@ export function FetchCallExternalStopMove(params) {
}) })
} }
export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchIsOnline, FetchInBorrowByQuCol, unbind, FetchCallExternalOpenCol, FetchCallExternalResetCol, FetchCallExternalVent, FetchCallExternalStopMove }
// 2026 ----------------------------------------------
// 1.密集架区及列数获取接口
export function FetchDenseshelfZoneinfo(params) {
return request({
url: 'denseshelf/zoneinfo',
method: 'get',
params
})
}
// 2.密集架状态信
export function FetchDenseshelfStatus(params) {
return request({
url: 'denseshelf/status',
method: 'get',
params
})
}
// 3.密集架的通风接口
export function FetchDenseshelfVentilate(params) {
return request({
url: 'denseshelf/ventilate',
method: 'post',
params
})
}
// 4.密集架的停止接口
export function FetchDenseshelfStop(params) {
return request({
url: 'denseshelf/stop',
method: 'post',
params
})
}
// 5.密集架的关闭接口
export function FetchDenseshelfClose(params) {
return request({
url: 'denseshelf/close',
method: 'post',
params
})
}
// 6.密集架的打开接口
export function FetchDenseshelfMannualunfold(params) {
return request({
url: 'denseshelf/mannualunfold',
method: 'post',
params
})
}
// 7.查询档案后打开接口
export function FetchDenseshelfUnfold(params) {
return request({
url: 'denseshelf/unfold',
method: 'post',
params
})
}
// 8.批量下发档案接口
export function FetchDenseshelfUnfoldBatch(params) {
return request({
url: 'denseshelf/unfold_batch',
method: 'post',
params
})
}
export default {
add,
edit,
del,
getSupplier,
getDeviceType,
getDeviceById,
getDesecabinetById,
getRotarycabinetById,
getDeviceList,
FetchIsOnline,
FetchInBorrowByQuCol,
unbind,
FetchCallExternalOpenCol,
FetchCallExternalResetCol,
FetchCallExternalStopMove,
FetchDenseshelfZoneinfo,
FetchDenseshelfStatus,
FetchDenseshelfVentilate,
FetchDenseshelfStop,
FetchDenseshelfClose,
FetchDenseshelfMannualunfold,
FetchDenseshelfUnfold,
FetchDenseshelfUnfoldBatch
}

5
src/utils/request.js

@ -6,7 +6,6 @@ import store from '../store'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import Config from '@/settings' import Config from '@/settings'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import { reject } from 'core-js/fn/promise'
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
@ -27,7 +26,7 @@ service.interceptors.request.use(
return config return config
}, },
error => { error => {
Promise.reject(error)
return Promise.reject(error)
} }
) )
@ -48,7 +47,7 @@ service.interceptors.response.use(
message: errorMsg, message: errorMsg,
duration: 5000 duration: 5000
}) })
reject(errorMsg)
return Promise.reject(errorMsg)
} }
} else if (response.data) { } else if (response.data) {
return response.data return response.data

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

@ -191,19 +191,42 @@ export default {
} else { } else {
zyNumber = '1' zyNumber = '1'
} }
console.log('leNumber:', leNumber)
console.log('divNumber:', divNumber)
console.log('zyNumber:', zyNumber)
// const params = {
// deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
// quNo: areaNumber, //
// colNo: colNumber, //
// leNo: leNumber, //
// divNo: divNumber, //
// zyNo: zyNumber // 1 2
// }
// CallExternal.FetchCallExternalOpenCol(params).then(res => {
// if (res.success && res.success === '0') {
// this.$message.success('')
// } else {
// this.$message.error(res.msg)
// }
// }).catch((error) => {
// console.log(error)
// this.$message.error('')
// })
const params = { const params = {
deviceId: this.deviceData.id,
quNo: areaNumber, //
colNo: colNumber, //
leNo: leNumber, //
divNo: divNumber, //
zyNo: zyNumber // 1 2
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: areaNumber,
col: colNumber
} }
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
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)

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

@ -515,20 +515,24 @@ export default {
} else { } else {
zyNumber = '1' zyNumber = '1'
} }
console.log('leNumber:', leNumber)
console.log('divNumber:', divNumber)
console.log('zyNumber:', zyNumber)
const params = { const params = {
deviceId: this.deviceData.id,
quNo: areaNumber, //
colNo: colNumber, //
leNo: leNumber, //
divNo: divNumber, //
zyNo: zyNumber // 1 2
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: areaNumber,
col: colNumber
} }
console.log(params)
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
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)
@ -727,4 +731,8 @@ export default {
background-color: #7A2831; background-color: #7A2831;
} }
} }
::v-deep .el-table__fixed-right-patch{
background-color: transparent;
border: none;
}
</style> </style>

14
src/views/archivesManage/caseManage/caseList/index.vue

@ -27,8 +27,8 @@
</div> </div>
<!-- <div class="app-container container-wrap"> --> <!-- <div class="app-container container-wrap"> -->
<span class="right-top-line" />
<span class="left-bottom-line" />
<!-- <span class="right-top-line" />
<span class="left-bottom-line" /> -->
<!--表格渲染--> <!--表格渲染-->
<el-table <el-table
ref="table" ref="table"
@ -36,7 +36,7 @@
:cell-class-name="cell" :cell-class-name="cell"
:data="crud.data" :data="crud.data"
style="width: 100%;" style="width: 100%;"
height="calc(100vh - 357px)"
height="calc(100vh - 377px)"
@row-dblclick="handleDbClick" @row-dblclick="handleDbClick"
@selection-change="crud.selectionChangeHandler" @selection-change="crud.selectionChangeHandler"
@row-click="clickRowHandler" @row-click="clickRowHandler"
@ -66,12 +66,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination />
<!-- </div> -->
<!--新增编辑表单渲染--> <!--新增编辑表单渲染-->
<eForm /> <eForm />
<binding-tag-dlg ref="bindingTag" :binding-id="crud.selections[0] && crud.selections[0].id" :binding-type="2" binding-txt="档案盒" @refresh="crud.refresh" /> <binding-tag-dlg ref="bindingTag" :binding-id="crud.selections[0] && crud.selections[0].id" :binding-type="2" binding-txt="档案盒" @refresh="crud.refresh" />
<open-case-dlg ref="openCase" @refresh="crud.refresh" /> <open-case-dlg ref="openCase" @refresh="crud.refresh" />
<pagination />
<!-- </div> -->
<!-- 档案盒详情 --> <!-- 档案盒详情 -->
<detailDialog ref="detailDom" /> <detailDialog ref="detailDom" />
<!-- 删除弹框 --> <!-- 删除弹框 -->
@ -290,6 +291,9 @@ export default {
}) })
this.crud.refresh() this.crud.refresh()
this.codeLoading = false this.codeLoading = false
}).catch(err => {
console.log(err)
this.codeLoading = false
}) })
}, },
// //

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

@ -162,20 +162,24 @@ export default {
} else { } else {
zyNumber = '1' zyNumber = '1'
} }
console.log('leNumber:', leNumber)
console.log('divNumber:', divNumber)
console.log('zyNumber:', zyNumber)
const params = { const params = {
deviceId: this.deviceData.id,
quNo: areaNumber, //
colNo: colNumber, //
leNo: leNumber, //
divNo: divNumber, //
zyNo: zyNumber // 1 2
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: areaNumber,
col: colNumber
} }
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
this.videoTipVisible = true
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)

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

@ -219,20 +219,24 @@ export default {
} else { } else {
zyNumber = '1' zyNumber = '1'
} }
console.log('leNumber:', leNumber)
console.log('divNumber:', divNumber)
console.log('zyNumber:', zyNumber)
const params = { const params = {
deviceId: this.deviceData.id,
quNo: areaNumber, //
colNo: colNumber, //
leNo: leNumber, //
divNo: divNumber, //
zyNo: zyNumber // 1 2
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: areaNumber,
col: colNumber
} }
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
this.videoTipVisible = true
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)

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

@ -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: ''
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '',
col: this.cabinetNum
} }
CallExternal.FetchCallExternalOpenCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('开架执行成功')
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.FetchCallExternalResetCol(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('合架执行成功')
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)
}
} 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
deviceId: this.deviceData && this.deviceData.id ? this.deviceData.id : '',
zone: this.deviceData && this.deviceData.areaNo ? this.deviceData.areaNo : '',
workmode: 'whole'
} }
CallExternal.FetchCallExternalVent(params).then(res => {
if (res.success && res.success === '0') {
this.$message.success('密集架通风执行成功')
CallExternal.FetchDenseshelfVentilate(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)
@ -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') {
this.$message.success('密集架停止移动执行成功')
CallExternal.FetchDenseshelfStop(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)

7
vue.config.js

@ -37,6 +37,13 @@ module.exports = {
pathRewrite: { pathRewrite: {
'^/auth': 'auth' '^/auth': 'auth'
} }
},
'/denseshelf': {
target: process.env.VUE_APP_BASE_API,
changeOrigin: true,
pathRewrite: {
'^/denseshelf': 'denseshelf'
}
} }
} }
}, },

Loading…
Cancel
Save