|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<!-- 入库状态下 --> |
|
|
<!-- 入库状态下 --> |
|
|
<el-dialog title="入库" :visible.sync="dialogVisible"> |
|
|
|
|
|
|
|
|
<el-dialog title="入库" :visible.sync="dialogVisible" @close="handleClose"> |
|
|
<span class="dialog-right-top" /> |
|
|
<span class="dialog-right-top" /> |
|
|
<span class="dialog-left-bottom" /> |
|
|
<span class="dialog-left-bottom" /> |
|
|
<div class="setting-dialog"> |
|
|
<div class="setting-dialog"> |
|
@ -12,7 +12,14 @@ |
|
|
<!-- 左侧 --> |
|
|
<!-- 左侧 --> |
|
|
<div class="content-left"> |
|
|
<div class="content-left"> |
|
|
<!-- <el-tree ref="archivesTree" v-loading="crud.loading" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick" /> --> |
|
|
<!-- <el-tree ref="archivesTree" v-loading="crud.loading" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick" /> --> |
|
|
<el-tree ref="archivesTree" :data="treeData" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick" /> |
|
|
|
|
|
|
|
|
<el-tree |
|
|
|
|
|
ref="tree" |
|
|
|
|
|
:data="treeData" |
|
|
|
|
|
:props="defaultProps" |
|
|
|
|
|
node-key="id" |
|
|
|
|
|
highlight-current |
|
|
|
|
|
@node-click="handleNodeClick" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 右侧 --> |
|
|
<!-- 右侧 --> |
|
|
<div class="content-right"> |
|
|
<div class="content-right"> |
|
@ -120,8 +127,11 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { isOccupy, collect } from '@/api/archivesManage/outInStorage' |
|
|
import { isOccupy, collect } from '@/api/archivesManage/outInStorage' |
|
|
|
|
|
import { crud } from '@crud/crud' |
|
|
|
|
|
// import qs from 'qs' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
|
|
|
mixins: [crud()], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
@ -146,8 +156,8 @@ export default { |
|
|
{ value: '1', label: '左边' }, |
|
|
{ value: '1', label: '左边' }, |
|
|
{ value: '2', label: '右边' } |
|
|
{ value: '2', label: '右边' } |
|
|
], |
|
|
], |
|
|
isOccupy: [] // |
|
|
|
|
|
// 回转柜 |
|
|
|
|
|
|
|
|
isOccupy: [], |
|
|
|
|
|
deviceType: null // 1密集架 2回转柜 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -165,9 +175,11 @@ export default { |
|
|
if (data.cnName === '密集架') { |
|
|
if (data.cnName === '密集架') { |
|
|
const obj = { colNum: '', sectionNum: '', levelNum: '', direction: '' } |
|
|
const obj = { colNum: '', sectionNum: '', levelNum: '', direction: '' } |
|
|
this.numArr = this.childArr(obj) |
|
|
this.numArr = this.childArr(obj) |
|
|
|
|
|
this.deviceType = 1 |
|
|
} else if (data.cnName === '回转柜') { |
|
|
} else if (data.cnName === '回转柜') { |
|
|
const obj = { cabCol: '', cabLevel: '' } |
|
|
const obj = { cabCol: '', cabLevel: '' } |
|
|
this.numArr = this.childArr(obj) |
|
|
this.numArr = this.childArr(obj) |
|
|
|
|
|
this.deviceType = 2 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 计算 |
|
|
// 计算 |
|
@ -192,14 +204,14 @@ export default { |
|
|
} |
|
|
} |
|
|
if (bool === 0) { |
|
|
if (bool === 0) { |
|
|
const params = { |
|
|
const params = { |
|
|
deviceId: 'FA0B05E2728EA8129A9F15', |
|
|
|
|
|
position: '1-1-3-4-1', |
|
|
|
|
|
// deviceId: 'DE1517EF06F7511FFF19C0', |
|
|
|
|
|
|
|
|
// deviceId: 'FA0B05E2728EA8129A9F15', //状态改为已入 |
|
|
// position: '1-1-3-4-1', |
|
|
// position: '1-1-3-4-1', |
|
|
deviceType: '1' |
|
|
|
|
|
|
|
|
deviceId: '3734A977C269ABEF6E284C', // 待入 |
|
|
|
|
|
position: '1-5-6-2-1', |
|
|
|
|
|
deviceType: this.deviceType |
|
|
} |
|
|
} |
|
|
const res = await isOccupy(params).then(res => { |
|
|
const res = await isOccupy(params).then(res => { |
|
|
console.log(res, '--res') |
|
|
|
|
|
|
|
|
console.log(res, 'isOccupy--res') |
|
|
return res |
|
|
return res |
|
|
}) |
|
|
}) |
|
|
// 按钮变化 |
|
|
// 按钮变化 |
|
@ -230,8 +242,17 @@ export default { |
|
|
console.log(params, '==========') |
|
|
console.log(params, '==========') |
|
|
collect(params).then(data => { |
|
|
collect(params).then(data => { |
|
|
console.log(data, 'data') |
|
|
console.log(data, 'data') |
|
|
|
|
|
this.dialogVisible = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '入库成功!', |
|
|
|
|
|
type: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
this.crud.refresh() |
|
|
|
|
|
this.cnName = null |
|
|
}) |
|
|
}) |
|
|
this.dialogVisible = false |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
handleClose() { |
|
|
|
|
|
this.cnName = null |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|