库位选择修改
This commit is contained in:
parent
8c9bf35488
commit
8b61ef8ffd
@ -270,8 +270,8 @@ export default {
|
|||||||
warehouseOptions:[],
|
warehouseOptions:[],
|
||||||
warehouseProps:{
|
warehouseProps:{
|
||||||
multiple: false,
|
multiple: false,
|
||||||
value: 'warehouseId',
|
value: 'pId',
|
||||||
label: 'warehouseName',
|
label: 'pName',
|
||||||
},
|
},
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -351,12 +351,16 @@ export default {
|
|||||||
this.warehouseOptions = response.data;
|
this.warehouseOptions = response.data;
|
||||||
this.warehouseOptions.map(w =>{
|
this.warehouseOptions.map(w =>{
|
||||||
w.children.map(l =>{
|
w.children.map(l =>{
|
||||||
let lstr =JSON.stringify(l.children).replace(/areaId/g, 'warehouseId').replace(/areaName/g,'warehouseName');
|
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||||
l.children = JSON.parse(lstr);
|
l.children = JSON.parse(lstr);
|
||||||
});
|
});
|
||||||
let wstr = JSON.stringify(w.children).replace(/locationId/g, 'warehouseId').replace(/locationName/g,'warehouseName');
|
|
||||||
|
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||||
w.children = JSON.parse(wstr);
|
w.children = JSON.parse(wstr);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||||
|
this.warehouseOptions = JSON.parse(ostr);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
@ -162,8 +162,8 @@ export default {
|
|||||||
warehouseOptions:[],
|
warehouseOptions:[],
|
||||||
warehouseProps:{
|
warehouseProps:{
|
||||||
multiple: false,
|
multiple: false,
|
||||||
value: 'warehouseId',
|
value: 'pId',
|
||||||
label: 'warehouseName',
|
label: 'pName',
|
||||||
},
|
},
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -241,18 +241,18 @@ export default {
|
|||||||
this.warehouseOptions = response.data;
|
this.warehouseOptions = response.data;
|
||||||
this.warehouseOptions.map(w =>{
|
this.warehouseOptions.map(w =>{
|
||||||
debugger;
|
debugger;
|
||||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'warehouseId').replace(/locationName/g,'warehouseName');
|
|
||||||
w.children = JSON.parse(wstr);
|
|
||||||
|
|
||||||
w.children.map(l =>{
|
w.children.map(l =>{
|
||||||
let lstr =JSON.stringify(l.children).replace(/areaId/g, 'warehouseId').replace(/areaName/g,'warehouseName').replace(/locationId/g,'lId');
|
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||||
l.children = JSON.parse(lstr);
|
l.children = JSON.parse(lstr);
|
||||||
});
|
});
|
||||||
|
|
||||||
let ww = w;
|
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||||
|
w.children = JSON.parse(wstr);
|
||||||
|
|
||||||
});
|
});
|
||||||
debugger;
|
debugger;
|
||||||
let data = this.warehouseOptions;
|
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||||
|
this.warehouseOptions = JSON.parse(ostr);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//选择仓库、库区、库位
|
//选择仓库、库区、库位
|
||||||
|
Loading…
Reference in New Issue
Block a user