|
@@ -81,7 +81,8 @@ import {
|
|
printgethis,
|
|
printgethis,
|
|
printgetfile,
|
|
printgetfile,
|
|
printgetdata,
|
|
printgetdata,
|
|
- printgetout
|
|
|
|
|
|
+ printgetout,
|
|
|
|
+ printfilling
|
|
} from '@/model/universalityAudit/index'
|
|
} from '@/model/universalityAudit/index'
|
|
import {lookexenseinfo, getAuditRecord,} from '@/model/profitable/index'
|
|
import {lookexenseinfo, getAuditRecord,} from '@/model/profitable/index'
|
|
import { seeCat } from '@/model/transport/index'
|
|
import { seeCat } from '@/model/transport/index'
|
|
@@ -422,7 +423,7 @@ export default {
|
|
this.deptBudgetList[0].printType=2
|
|
this.deptBudgetList[0].printType=2
|
|
this.deptBudgetList[0].aduitInfo=await getAuditRecord({id:row.id}).toPromise()
|
|
this.deptBudgetList[0].aduitInfo=await getAuditRecord({id:row.id}).toPromise()
|
|
}
|
|
}
|
|
- }else if(row.type=='入库单请款'||row.type=='运价审核'||row.type=='通用审核'||row.type=='合同审核'||row.type=='仓库设置'||row.type=='出入库任务'){
|
|
|
|
|
|
+ }else if(row.type=='入库单请款'||row.type=='运价审核'||row.type=='通用审核'||row.type=='合同审核'||row.type=='仓库设置'||row.type=='出入库任务'||row.type=='长途加油'){
|
|
if(row.type=='入库单请款'){
|
|
if(row.type=='入库单请款'){
|
|
this.deptBudgetList=[await printgetdata({batchId:row.id}).toPromise()]
|
|
this.deptBudgetList=[await printgetdata({batchId:row.id}).toPromise()]
|
|
this.deptBudgetList[0].printType=3
|
|
this.deptBudgetList[0].printType=3
|
|
@@ -460,7 +461,33 @@ export default {
|
|
}
|
|
}
|
|
this.deptBudgetList[0].printType=9
|
|
this.deptBudgetList[0].printType=9
|
|
}
|
|
}
|
|
- if(this.deptBudgetList[0].addressUrl){
|
|
|
|
|
|
+ // else if(row.type=='长途加油'){
|
|
|
|
+ // this.deptBudgetList=[await printfilling({id:row.id}).toPromise()]
|
|
|
|
+ // this.deptBudgetList[0].printType=10
|
|
|
|
+ // if(this.deptBudgetList[0].fillingDetailInfoList&&this.deptBudgetList[0].fillingDetailInfoList.length>0){
|
|
|
|
+ // var arr1=[]
|
|
|
|
+ // var data=this.deptBudgetList[0].fillingDetailInfoList
|
|
|
|
+ // for (let i = 0; i < data.length; i++) {
|
|
|
|
+ // if(data[i].addressUrl){
|
|
|
|
+ // var arr2=data[i].addressUrl.split(',')
|
|
|
|
+ // for (let q = 0; q < arr2.length; q++) {
|
|
|
|
+ // if(arr2[q]){
|
|
|
|
+ // arr1.push({'appendixPath':arr2[q]})
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // this.$set(this.deptBudgetList[0],'addressUrlArray',arr1)
|
|
|
|
+ // this.deptBudgetList[0].addressUrlArrayImage=arr1
|
|
|
|
+ // this.deptBudgetList[0].addressUrlArrayFilelen=arr1.length-this.deptBudgetList[0].addressUrlArrayImage.length
|
|
|
|
+ // }else{
|
|
|
|
+ // this.deptBudgetList[0].addressUrlArray=[]
|
|
|
|
+ // this.deptBudgetList[0].addressUrlArrayImage=[]
|
|
|
|
+ // this.deptBudgetList[0].addressUrlArrayFilelen=0
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ console.log( this.deptBudgetList[0],11111)
|
|
|
|
+ if(this.deptBudgetList[0].addressUrl&&row.type!='长途加油'){
|
|
var arr1=await printgetfile({appendixIds:this.deptBudgetList[0].addressUrl}).toPromise()
|
|
var arr1=await printgetfile({appendixIds:this.deptBudgetList[0].addressUrl}).toPromise()
|
|
this.deptBudgetList[0].addressUrlArray=this.imagefilter(arr1)
|
|
this.deptBudgetList[0].addressUrlArray=this.imagefilter(arr1)
|
|
this.deptBudgetList[0].addressUrlArrayImage=this.imagefilter(arr1)
|
|
this.deptBudgetList[0].addressUrlArrayImage=this.imagefilter(arr1)
|
|
@@ -520,9 +547,6 @@ export default {
|
|
imagefilter(arr){
|
|
imagefilter(arr){
|
|
var arr1=[]
|
|
var arr1=[]
|
|
for (let i = 0; i < arr.length; i++) {
|
|
for (let i = 0; i < arr.length; i++) {
|
|
- // var value=await this.getImageSize(arr[i].appendixPath)
|
|
|
|
- // arr[i].width=value.width
|
|
|
|
- // arr[i].height=value.height
|
|
|
|
if(arr[i].appendixName.indexOf('jpg')!=-1||arr[i].appendixName.indexOf('jpeg')!=-1||arr[i].appendixName.indexOf('png')!=-1){
|
|
if(arr[i].appendixName.indexOf('jpg')!=-1||arr[i].appendixName.indexOf('jpeg')!=-1||arr[i].appendixName.indexOf('png')!=-1){
|
|
arr1.push(arr[i])
|
|
arr1.push(arr[i])
|
|
}
|
|
}
|