|
@@ -185,7 +185,7 @@ export default {
|
|
this.deptBudgetList[m].num=num.toFixed(2)
|
|
this.deptBudgetList[m].num=num.toFixed(2)
|
|
}
|
|
}
|
|
var workflow=await printworkflow({businessCode:this.multipleSelection[m].businessCode,tmpCompId:localStorage.getItem('ws-pf_compId')}).toPromise()
|
|
var workflow=await printworkflow({businessCode:this.multipleSelection[m].businessCode,tmpCompId:localStorage.getItem('ws-pf_compId')}).toPromise()
|
|
- this.deptBudgetList[0].aduitInfo=await printgethis({workflowId:workflow[0].id,businessKey:this.multipleSelection[m].id,branch:this.deptBudgetList[m].jointVentureParties?this.deptBudgetList[m].jointVentureParties:'zt'}).toPromise()
|
|
|
|
|
|
+ this.deptBudgetList[m].aduitInfo=await printgethis({workflowId:workflow[0].id,businessKey:this.multipleSelection[m].id,branch:this.deptBudgetList[m].jointVentureParties?this.deptBudgetList[m].jointVentureParties:'zt'}).toPromise()
|
|
for (let i = 0; i < this.deptBudgetList[m].aduitInfo.length; i++) {
|
|
for (let i = 0; i < this.deptBudgetList[m].aduitInfo.length; i++) {
|
|
var arr=this.deptBudgetList[m].aduitInfo[i]
|
|
var arr=this.deptBudgetList[m].aduitInfo[i]
|
|
if(arr.workflowHistoricTasks&&arr.workflowHistoricTasks.length>0){
|
|
if(arr.workflowHistoricTasks&&arr.workflowHistoricTasks.length>0){
|
|
@@ -324,6 +324,20 @@ export default {
|
|
localStorage.setItem('aduitprintdata',JSON.stringify(this.deptBudgetList))
|
|
localStorage.setItem('aduitprintdata',JSON.stringify(this.deptBudgetList))
|
|
window.open('../../../static/aduitprint.html')
|
|
window.open('../../../static/aduitprint.html')
|
|
},
|
|
},
|
|
|
|
+ getImageSize(url) {
|
|
|
|
+ return new Promise((resolve) => {
|
|
|
|
+ const img = new Image()
|
|
|
|
+ img.src = url
|
|
|
|
+ if (img.complete) {
|
|
|
|
+ // 如果图片被缓存,则直接返回缓存数据
|
|
|
|
+ resolve({ width: img.width, height: img.height })
|
|
|
|
+ } else {
|
|
|
|
+ img.onload = () => {
|
|
|
|
+ resolve({ width: img.width, height: img.height })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
async printItem(row){
|
|
async printItem(row){
|
|
if(row.type=='费用审核'||row.type=='运费结算'){
|
|
if(row.type=='费用审核'||row.type=='运费结算'){
|
|
this.deptBudgetList=[await lookexenseinfo({id:row.id}).toPromise()]
|
|
this.deptBudgetList=[await lookexenseinfo({id:row.id}).toPromise()]
|
|
@@ -498,6 +512,9 @@ 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])
|
|
}
|
|
}
|