Commit 01126e1d authored by 黄媛媛's avatar 黄媛媛

修改出库申请内容

parent ddd2b292
......@@ -298,7 +298,7 @@
unique(arr) {
for (var i = 0, len = arr.length; i < len; i++) {
for (var j = i + 1, len = arr.length; j < len; j++) {
if (arr[i].NewGoodsId === arr[j].NewGoodsId) {
if (arr[i].NewGoodsId === arr[j].NewGoodsId && arr[i].NewSpecificationSort === arr[j].NewSpecificationSort) {
arr.splice(j, 1);
j--; // 每删除一个数j的值就减1
len--; // j值减小时len也要相应减1(减少循环次数,节省性能)
......@@ -343,7 +343,7 @@
}
array = this.unique(array)
this.outobj.WarehouseOutGoodsList = array;
console.log( this.outobj.WarehouseOutGoodsList)
that.$confirm('是否申请出库?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -439,31 +439,16 @@
this.Egoods = true;
this.editGoodsindex = index
this.Goodsobj = obj
this.Goodsobj.NewGoodsId = '',
this.Goodsobj.NewSpecificationSort = '',
console.log(obj)
// let objs={}
// objs.Id = obj.Id;
// objs.OrderNo = obj.OrderNo;
// objs.GoodsId = obj.GoodsId;
// objs.GoodsName = obj.GoodsName;
// objs.Number = obj.Number;
// objs.Specification = obj.Specification;
// objs.SpecificationSort = obj.SpecificationSort;
// objs.NewSpecification = obj.NewSpecification;
// objs.NewSpecificationSort = obj.NewSpecificationSort;
// objs.NewNumber = obj.NewNumber;
// this.tableData2.push(objs)
this.Goodsobj.NewGoodsId = '';
this.Goodsobj.NewSpecificationSort = '';
}
},
ChangeListName(val){
this.goodsmsg.Name = val;
// this.goodsmsg.Id = val;
this.getgoodsList(0);
this.getgoodsList();
},
getgoodsList(type){
getgoodsList(){
if(this.goodsmsg.Id==''){
this.goodsmsg.Id=0;
}
......@@ -471,15 +456,13 @@
if(res.data.resultCode==1){
let pageData=res.data.data.pageData;
this.GoodsList = pageData
if(type==1){
}
}
})
},
chooseB(){
//删除当前的对象 把tableData2数组插入当前的位置
this.tableData2.unshift(this.editGoodsindex,0)
this.tableData.splice(this.editGoodsindex,1)
Array.prototype.splice.apply(this.tableData, this.tableData2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment