Commit eff10603 authored by zhengke's avatar zhengke

修改

parent 43fe0a71
...@@ -479,29 +479,22 @@ ...@@ -479,29 +479,22 @@
if(!sub) return this.$message.error('请选择出纳类型!') if(!sub) return this.$message.error('请选择出纳类型!')
let emList = this.addMsg.listArr; let emList = this.addMsg.listArr;
this.addMsg.emList=[]; let arr = [];
emList.forEach(x=>{ emList.forEach(x=>{
this.searchList.forEach(y=>{ this.searchList.forEach(y=>{
if(x==y.Id){ if(x==y.Id){
let obj={ let obj = {
EmId:y.Id, 'EmId':y.Id,
EmIdName:y.EmployeeName 'ID':0,
'WindowId':0,
'EmIdName':y.EmployeeName
} }
this.addMsg.emList.push(obj); arr.push(obj);
} }
}) })
}) });
// let arr = []; let list4 = this.mergeArray(arr,this.addMsg.emList);
// emList.forEach(x=>{ this.addMsg.emList = list4;
// let obj = {
// 'EmId':x,
// 'ID':0,
// 'WindowId':0
// }
// arr.push(obj);
// });
// let list4 = this.mergeArray(arr,this.addMsg.emList);
// this.addMsg.emList = list4;
this.apipost('Window_post_Set',this.addMsg,r=>{ this.apipost('Window_post_Set',this.addMsg,r=>{
if(r.data.resultCode==1){ if(r.data.resultCode==1){
this.$message.success(r.data.message); this.$message.success(r.data.message);
......
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