Browse Source

货位宽度问题

jx-test
修宁 5 months ago
parent
commit
60d54242d4
  1. 1
      src/utils/AmrMapConvert.ts

1
src/utils/AmrMapConvert.ts

@ -201,6 +201,7 @@ export function AmrMapConvert(from: any): Array<ItemJson> {
const rackDepth = new Decimal(td.width).div(d1000).toNumber() const rackDepth = new Decimal(td.width).div(d1000).toNumber()
const levelHeight = td.layersHeight.map((lh: any) => new Decimal(lh.layerHeight).div(d1000).toNumber()) const levelHeight = td.layersHeight.map((lh: any) => new Decimal(lh.layerHeight).div(d1000).toNumber())
const levelCount = levelHeight.length const levelCount = levelHeight.length
// 长度除以货位数
const width = new Decimal(td.length).div(td.goodsAllocationNum).div(d1000).toNumber() const width = new Decimal(td.length).div(td.goodsAllocationNum).div(d1000).toNumber()
storeType.set(td.id, { storeType.set(td.id, {
't': 'rack', 't': 'rack',

Loading…
Cancel
Save