Commit b23a94ea authored by 李苏's avatar 李苏 💬

调拨明细累计不是直接清空

parent 4476a05b
...@@ -58,13 +58,20 @@ ...@@ -58,13 +58,20 @@
this.form.hzid=list[0].hzid this.form.hzid=list[0].hzid
this.form.hzName=list[0].hzName this.form.hzName=list[0].hzName
// this.form.ywrq=row.ywrq // this.form.ywrq=row.ywrq
let length = this.formDetail.length // let length = this.formDetail.length
this.formDetail.splice(0, length) // this.formDetail.splice(0, length)
list.forEach(item => { list.forEach(item => {
let packid=item.packid
const index = this.formDetail.findIndex(ditem => ditem.packid== packid);
if(index==-1){
item.yfsl=item.kcsl item.yfsl=item.kcsl
item.lydjid = item.id item.lydjid = item.id
delete item.id delete item.id
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
}else{
// this.formDetail[index].kcsl
}
}) })
}, },
xzkc(){ xzkc(){
......
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