|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
<div>货位:{{ ite.goodsAllocationName }}</div> |
|
|
|
|
<div class="fwhserveNub"> |
|
|
|
|
<div>服务号:</div> |
|
|
|
|
<div v-for="it in (ite.serveNub||[])"> |
|
|
|
|
<div v-for="it in ite.serveNub || []"> |
|
|
|
|
{{ it }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -113,7 +113,9 @@
|
|
|
|
|
<el-button type="primary" @click="showupt(2)">按自编号</el-button> |
|
|
|
|
<el-button type="primary">按包件</el-button> |
|
|
|
|
<el-button type="primary">按托盘</el-button> |
|
|
|
|
<el-button type="danger">禁用</el-button> |
|
|
|
|
<el-button type="primary">按库存品</el-button> |
|
|
|
|
<el-button type="primary">按零担</el-button> |
|
|
|
|
<el-button type="danger" @click="upgood">禁用</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
@ -166,9 +168,14 @@
|
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script setup> |
|
|
|
|
import { getVisualization, getstoreCargo } from '@/api/basicdata/basicdataGoodsShelfView'; |
|
|
|
|
import { |
|
|
|
|
getVisualization, |
|
|
|
|
getstoreCargo, |
|
|
|
|
updategood, |
|
|
|
|
} from '@/api/basicdata/basicdataGoodsShelfView'; |
|
|
|
|
import { useMessage } from 'element-plus'; |
|
|
|
|
import { reactive, toRefs, onMounted } from 'vue'; |
|
|
|
|
|
|
|
|
|
const message = useMessage(); |
|
|
|
|
let details = reactive({ |
|
|
|
|
columnList: [ |
|
|
|
|
{ |
|
|
|
@ -274,35 +281,53 @@ async function initconfig() {
|
|
|
|
|
if (details.arrlist[details.checkselect]?.warehouseGoodsAreaVOList.length > 0) { |
|
|
|
|
details.checkregionselect = 0; |
|
|
|
|
details.checksele = 0; |
|
|
|
|
checkshelves() |
|
|
|
|
checkshelves(); |
|
|
|
|
} else { |
|
|
|
|
details.checkregionselect = ''; |
|
|
|
|
} |
|
|
|
|
console.log(res.data, 'configconfigconfigconfigconfig'); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
function initpage(){ |
|
|
|
|
function initpage() { |
|
|
|
|
// let warehousearr= |
|
|
|
|
} |
|
|
|
|
async function upgood() { |
|
|
|
|
let data = { |
|
|
|
|
id: details.checkite.id, |
|
|
|
|
enableStatus: 2, |
|
|
|
|
}; |
|
|
|
|
let res = await updategood(data); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
checkshelves(); |
|
|
|
|
} else { |
|
|
|
|
message({ |
|
|
|
|
type: 'error', |
|
|
|
|
message: res.msg, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const checkcso = () => { |
|
|
|
|
if (details.arrlist[details.checkselect]?.warehouseGoodsAreaVOList.length > 0) { |
|
|
|
|
details.checkregionselect = 0; |
|
|
|
|
details.checksele = 0; |
|
|
|
|
checkshelves() |
|
|
|
|
checkshelves(); |
|
|
|
|
} else { |
|
|
|
|
details.checkregionselect = ''; |
|
|
|
|
details.contenarr=[] |
|
|
|
|
details.contenbxsty['--length'] =0 |
|
|
|
|
details.contenarr = []; |
|
|
|
|
details.contenbxsty['--length'] = 0; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
const checkregion = () => { |
|
|
|
|
details.checksele = 0; |
|
|
|
|
checkshelves() |
|
|
|
|
checkshelves(); |
|
|
|
|
console.log(details.checksele, 'details.checkseledetails.checksele'); |
|
|
|
|
}; |
|
|
|
|
function ckindexs(index) { |
|
|
|
|
details.checksele = index; |
|
|
|
|
checkshelves() |
|
|
|
|
checkshelves(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function checkshelves() { |
|
|
|
@ -310,8 +335,9 @@ async function checkshelves() {
|
|
|
|
|
* goodsAreaId 货区ID |
|
|
|
|
* goodsShelfId 货架ID |
|
|
|
|
*/ |
|
|
|
|
let goodsAreaarr=details.arrlist[details.checkselect]['warehouseGoodsAreaVOList'][details.checkregionselect] |
|
|
|
|
let goodsShelfarr=goodsAreaarr['warehouseGoodsShelfEntitieList'][details.checksele] |
|
|
|
|
let goodsAreaarr = |
|
|
|
|
details.arrlist[details.checkselect]['warehouseGoodsAreaVOList'][details.checkregionselect]; |
|
|
|
|
let goodsShelfarr = goodsAreaarr['warehouseGoodsShelfEntitieList'][details.checksele]; |
|
|
|
|
let data = { |
|
|
|
|
goodsAreaId: goodsAreaarr.id, |
|
|
|
|
goodsShelfId: goodsShelfarr.id, |
|
|
|
@ -332,7 +358,7 @@ async function checkshelves() {
|
|
|
|
|
// console.error(error); |
|
|
|
|
// } |
|
|
|
|
// }; |
|
|
|
|
const showupt = (value) => { |
|
|
|
|
const showupt = value => { |
|
|
|
|
console.log('112312'); |
|
|
|
|
details.isshowupt = value; |
|
|
|
|
}; |
|
|
|
|