Browse Source

发票记录新增路由缓存

dev
liuzewei 3 years ago
parent
commit
d0358bc782
1 changed files with 49 additions and 48 deletions
  1. 97
      src/views/sce/sceInfo/index.vue

97
src/views/sce/sceInfo/index.vue

@ -1680,7 +1680,8 @@ export default {
console.log('else');
for(let x=0;x<this.ruleForm.processesList.length;x++){ //遍历table有数据
for(let y=0;y<imgProcessId.length;y++){ //遍历图片关联流程数据
if(this.ruleForm.processesList[x].code.indexOf(imgProcessId[y])>-1 ){ //tablecode,data
// if(this.ruleForm.processesList[x].code.indexOf(imgProcessId[y])>-1 ){ //tablecode,data
if(this.ruleForm.processesList[x].code.includes(imgProcessId[y]) ){ //tablecode,data
data.push(imgProcessId[y])
console.log(data);
};
@ -1688,60 +1689,60 @@ export default {
name.push(this.ruleForm.processesList[x].title)
console.log(name);
}
// debugger
}
}
this.imgData[index].processId=data.join(","); //data
this.imgData[index].processNames=name.join(',')
console.log(this.imgData);
}
})
//
this.musicData.forEach((item,index)=>{
let musicProcessId=this.musicData[index].processId?this.musicData[index].processId.split(","):[]
let data=[]
let name=[]
if(this.ruleForm.processesList.length<1){
this.musicData[index].processId=null
this.musicData[index].processNames=null
}else{
for(let x=0;x<this.ruleForm.processesList.length;x++){
for(let y=0;y<musicProcessId.length;y++){
if(this.ruleForm.processesList[x].code.indexOf(musicProcessId[y])>-1 ){
data.push(musicProcessId[y])
}
if(this.ruleForm.processesList[x].code==musicProcessId[y]){
name.push(this.ruleForm.processesList[x].title)
}
}
this.musicData[index].processId=data.join(",")
this.musicData[index].processNames=name.join(",")
}
}
})
//
this.videoData.forEach((item,index)=>{
let videoProcessId=this.videoData[index].processId?this.videoData[index].processId.split(","):[]
let data=[]
let name=[]
if(this.ruleForm.processesList.length<1){
this.videoData[index].processId=null
this.videoData[index].processNames=null
}else{
for(let x=0;x<this.ruleForm.processesList.length;x++){
for(let y=0;y<videoProcessId.length;y++){
if(this.ruleForm.processesList[x].code.indexOf(videoProcessId[y])>-1 ){
data.push(videoProcessId[y])
}
if(this.ruleForm.processesList[x].code==videoProcessId[y]){
name.push(this.ruleForm.processesList[x].title)
}
}
this.videoData[index].processId=data.join(",")
this.videoData[index].processNames=name.join(",")
}
}
})
// //
// this.musicData.forEach((item,index)=>{
// let musicProcessId=this.musicData[index].processId?this.musicData[index].processId.split(","):[]
// let data=[]
// let name=[]
// if(this.ruleForm.processesList.length<1){
// this.musicData[index].processId=null
// this.musicData[index].processNames=null
// }else{
// for(let x=0;x<this.ruleForm.processesList.length;x++){
// for(let y=0;y<musicProcessId.length;y++){
// if(this.ruleForm.processesList[x].code.indexOf(musicProcessId[y])>-1 ){
// data.push(musicProcessId[y])
// }
// if(this.ruleForm.processesList[x].code==musicProcessId[y]){
// name.push(this.ruleForm.processesList[x].title)
// }
// </span><span class="err"> pan> }
// this.musicData[index].processId=data.join(",")
// this.musicData[index].processNames=name.join(",")
// </span><span class="err"> pan> }
// }
// })
// //
// this.videoData.forEach((item,index)=>{
// let videoProcessId=this.videoData[index].processId?this.videoData[index].processId.split(","):[]
// let data=[]
// let name=[]
// if(this.ruleForm.processesList.length<1){
// this.videoData[index].processId=null
// this.videoData[index].processNames=null
// }else{
// for(let x=0;x<this.ruleForm.processesList.length;x++){
// for(let y=0;y<videoProcessId.length;y++){
// if(this.ruleForm.processesList[x].code.indexOf(videoProcessId[y])>-1 ){
// data.push(videoProcessId[y])
// </span><span class="err"> pan> }
// if(this.ruleForm.processesList[x].code==videoProcessId[y]){
// name.push(this.ruleForm.processesList[x].title)
// </span><span class="err"> pan> }
// </span><span class="err"> pan> }
// this.videoData[index].processId=data.join(",")
// this.videoData[index].processNames=name.join(",")
// </span><span class="err"> pan> }
// </span><span class="err"> pan> }
// })
},
//
Del(index) {

Loading…
Cancel
Save