盘点界面,行号排列修改

taiwan-tingli
yiming 4 years ago
parent 4fd6b21329
commit c1d3065ba0

@ -9,7 +9,7 @@
:key="index" :key="index"
> >
<span slot="tab" > <span slot="tab" >
{{ getRandom(index, latticeRow, nums.row, total.row) }} {{ getRandom(latticeRow + 1 -index, latticeRow, nums.row, total.row) }}
<a-icon type="close-circle" v-if="status.row[index] === 1" style="color: #d81e06"/> <a-icon type="close-circle" v-if="status.row[index] === 1" style="color: #d81e06"/>
<a-icon type="check-circle" v-else-if="status.row[index] === 2" style="color: #1afa29" /> <a-icon type="check-circle" v-else-if="status.row[index] === 2" style="color: #1afa29" />
<a-icon type="exclamation-circle" v-else style="color: #909399" /> <a-icon type="exclamation-circle" v-else style="color: #909399" />
@ -22,15 +22,15 @@
<div class="roadway-buttom"> <div class="roadway-buttom">
<div class="roadway-box"> <div class="roadway-box">
<div class="line" v-for="(row,index) in total.row" :key="index" v-if="row >= random.row[0] && row <= random.row[1]"> <div class="line" v-for="(row,rowIndex) in total.row" :key="rowIndex" v-if="row >= random.row[0] && row <= random.row[1]">
<div v-for="(column,index) in total.column" :key="index" class="el" v-if="column >= random.column[0] && column <= random.column[1]"> <div v-for="(column,index) in total.column" :key="index" class="el" v-if="column >= random.column[0] && column <= random.column[1]">
<!--渲染默认巷道框架规格 定位浮在 已有巷道上做对应--> <!--渲染默认巷道框架规格 定位浮在 已有巷道上做对应-->
<span <span
class="default" class="default"
:id="`${shelveId}-${row}-${column}`" :id="`${shelveId}-${random.row[0] + random.row[1] - rowIndex - 1}-${column}`"
@click="tocheckPage(row,column)"> @click="tocheckPage(random.row[0] + random.row[1] - rowIndex - 1,column)">
{{row}}-{{column}} {{ random.row[0] + random.row[1] - rowIndex - 1}}-{{column}}
</span> </span>
</div> </div>
</div> </div>
@ -207,7 +207,8 @@ export default {
}, },
// //
getRandomRow(val) { getRandomRow(val) {
return this.getRandom(val, this.latticeRow, this.nums.row, this.total.row).split(' - ').map(item => Number(item)); console.log(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row)
return this.getRandom(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row).split(' - ').map(item => Number(item));
}, },
getRandomColumn(val) { getRandomColumn(val) {
return this.getRandom(val, this.latticeColumn, this.nums.column, this.total.column).split(' - ').map(item => Number(item)); return this.getRandom(val, this.latticeColumn, this.nums.column, this.total.column).split(' - ').map(item => Number(item));

Loading…
Cancel
Save