Commit 27220a6b authored by Mac's avatar Mac

1

parent c15d74c2
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getList(); this.getList();
this.flDig = false
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
......
...@@ -168,6 +168,7 @@ export default { ...@@ -168,6 +168,7 @@ export default {
x.InStockNum = 0; x.InStockNum = 0;
let obj = { let obj = {
Id:y+1, Id:y+1,
UniqueID:x.Id,
name:x.MaterialModel.Name, name:x.MaterialModel.Name,
list:[], list:[],
time:'', time:'',
...@@ -219,7 +220,7 @@ export default { ...@@ -219,7 +220,7 @@ export default {
list.push(obj) list.push(obj)
} }
}) })
let objlist ={ValidityList:list} let objlist ={ValidityList:list,UniqueID:x.UniqueID}
zonglist.push(objlist) zonglist.push(objlist)
if(showtime==true){ if(showtime==true){
this.Error(x.name+'的有效日期没选择,请选择'); this.Error(x.name+'的有效日期没选择,请选择');
...@@ -240,7 +241,13 @@ export default { ...@@ -240,7 +241,13 @@ export default {
obj.SpecificationKey = x.MaterialModel.SpecificationKey; obj.SpecificationKey = x.MaterialModel.SpecificationKey;
obj.InStockNum = x.InStockNum; obj.InStockNum = x.InStockNum;
//2021-4-1加的日期列表 //2021-4-1加的日期列表
obj.ValidityList = zonglist[y].ValidityList zonglist.map((item,index)=>{
if(x.Id == item.UniqueID ){
obj.ValidityList = zonglist[index].ValidityList;
return
}
})
msg.DetailList.push(obj) msg.DetailList.push(obj)
}) })
if(showtis == true){ if(showtis == true){
......
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