| | |
| | | if (values.autoIncrement && values.type) { |
| | | switch (values.type) { |
| | | case Utils.SENSOR_TYPE.SHELF: |
| | | console.log(values); |
| | | console.log(curSprite); |
| | | if (values.incrementValue === 'row') { |
| | | if (values.incrementMode === 'descending') { |
| | | copiedSprite.data.row = curSprite.data.row - i - 1; |
| | | } else { |
| | | copiedSprite.data.row = curSprite.data.row + i + 1; |
| | | } |
| | | } |
| | | if (values.incrementValue === 'bay') { |
| | | if (values.incrementMode === 'descending') { |
| | | copiedSprite.data.bay = curSprite.data.bay - i - 1; |
| | | } else { |
| | | copiedSprite.data.bay = curSprite.data.bay + i + 1; |
| | | } |
| | | } |
| | | if (copiedSprite.data.row && copiedSprite.data.bay) { |
| | | copiedSprite.data.shelfNo = Utils.pureNumStr(copiedSprite.data.row) + '-' + Utils.pureNumStr(copiedSprite.data.bay); |
| | | } |
| | | break; |
| | | case Utils.SENSOR_TYPE.AGV: |
| | | break; |