增加名字与编号对应

just-order
LAPTOP-S9HJSOEB\昊天 2 years ago
parent b428ae6eda
commit 8b860862a8

@ -3,7 +3,7 @@
<a-layout style="width: 1500px"> <a-layout style="width: 1500px">
<a-layout style="width: 100%;height: 310px"> <a-layout style="width: 100%;height: 310px">
<a-layout-sider width="110px"> <a-layout-sider width="110px">
<a-tabs default-active-key="1" tab-position="left" @change="changeTabLeft" v-if="total.row > nums.row"> <a-tabs :activeKey="this.select.row" tab-position="left" @change="changeTabLeft" v-if="total.row > nums.row">
<a-tab-pane <a-tab-pane
v-for="index in latticeRow" v-for="index in latticeRow"
:key="index" :key="index"
@ -39,10 +39,11 @@
</a-layout> </a-layout>
<a-layout-footer> <a-layout-footer>
<!-- <a-tabs default-active-key="1" tab-position="bottom" @change="value => select.row = value" v-if="total.row > nums.row"> --> <!-- <a-tabs default-active-key="1" tab-position="bottom" @change="value => select.row = value" v-if="total.row > nums.row"> -->
<a-tabs default-active-key="1" tab-position="bottom" @change="changeTab" v-if="total.column > nums.column"> <a-tabs :activeKey="this.select.column" tab-position="bottom" @change="changeTab" v-if="total.column > nums.column">
<a-tab-pane <a-tab-pane
v-for="index in latticeColumn" v-for="index in latticeColumn"
:key="index" :key="index"
> >
<span slot="tab"> <span slot="tab">
{{ getRandom(index, latticeColumn, nums.column, total.column) }} {{ getRandom(index, latticeColumn, nums.column, total.column) }}
@ -156,7 +157,7 @@ export default {
row: {}, row: {},
column: {} column: {}
}, },
timer: null timer: null,
} }
}, },
mounted() { mounted() {
@ -180,7 +181,21 @@ export default {
this.timer = null; this.timer = null;
}, },
created() { created() {
var nameEQC = "s"+this.streetId+"d"+this.direction+"e"+this.side + "c" + "=";
var nameEQR = "s"+this.streetId+"d"+this.direction+"e"+this.side + "r" + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQC) == 0) {
this.select.column = Number(c.substring(nameEQC.length,c.length));
}
if (c.indexOf(nameEQR) == 0) {
this.select.row = Number(c.substring(nameEQR.length,c.length));
}
}
}, },
destroyed() { destroyed() {
window.clearInterval(this.timer); window.clearInterval(this.timer);
@ -189,10 +204,15 @@ export default {
methods: { methods: {
changeTab(value){ changeTab(value){
document.cookie = "s"+this.streetId+"d"+this.direction+"e"+this.side + "c"+ "=" +value;
this.select.column = value this.select.column = value
this.getStatus() this.getStatus()
}, },
changeTabLeft(value){ changeTabLeft(value){
document.cookie = "s"+this.streetId+"d"+this.direction+"e"+this.side + "r" + "=" +value;
this.select.row = value this.select.row = value
this.getStatus() this.getStatus()
@ -207,6 +227,7 @@ export default {
}, },
// //
getRandomRow(val) { getRandomRow(val) {
console.log(" "+this.latticeRow);
console.log(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row) 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)); return this.getRandom(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row).split(' - ').map(item => Number(item));
}, },

@ -35,16 +35,16 @@
ref="select" ref="select"
style="width: 100%" style="width: 100%"
show-search show-search
:placeholder="checkObj.category"
:defaultValue="checkObj.category" :value="checkObj.category"
@change="handleChangeVlue" @change="handleChangeVlue"
> >
<a-select-option <a-select-option
v-for="i in categorys" v-for="(value, key) in categorys"
:key="i" :key="value"
:value="i" :value="key"
> >
{{ i}} {{ value}}
</a-select-option> </a-select-option>
</a-select> </a-select>
</span> </span>
@ -143,11 +143,12 @@
style="top: 20px;" style="top: 20px;"
@ok="overoperationPicStop" @ok="overoperationPicStop"
> >
<div style="height: 700px;" class="parent"> <div
style="height: 700px;"
class="parent"
>
<img <img
style="width:700px ;" style="width:700px ;"
:src="checkObj.overoperationPic" :src="checkObj.overoperationPic"
> >
@ -194,7 +195,7 @@ export default {
modelData: {}, modelData: {},
index: 0, index: 0,
imgUrl: "", imgUrl: "",
categorys: ["3", "2"], categorys: {},
params: [ params: [
{ {
label: "上位个数", label: "上位个数",
@ -204,6 +205,10 @@ export default {
label: "上位品规", label: "上位品规",
key: "wmsCategory", key: "wmsCategory",
}, },
{
label: "上位品规名",
key: "wmsCategoryName",
},
{ {
label: "盘点任务号", label: "盘点任务号",
key: "checkNum", key: "checkNum",

Loading…
Cancel
Save