Commit 1141dba6 authored by 黄奎's avatar 黄奎
parents d2f98388 a044c121
...@@ -398,11 +398,26 @@ ...@@ -398,11 +398,26 @@
<el-table-column v-if="msg.IsAirTicketSelect=='1'" <el-table-column v-if="msg.IsAirTicketSelect=='1'"
prop="" prop=""
:label="$t('objFill.caiwubz')" :label="$t('objFill.caiwubz')"
show-overflow-tooltip width="120"> show-overflow-tooltip
width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{scope.row.Remark}}</div> <div>{{scope.row.Remark}}</div>
<template v-if="scope.row.vorcherInos"> <template v-if="scope.row.vorcherInos">
<div v-for="(vitem,index) in scope.row.vorcherInos">{{vitem.Content}}</div> <div v-for="(vitem,index) in scope.row.vorcherInos" style="display: flex;flex-direction: row;flex-wrap: wrap;">
<el-image v-if="vitem.Type==3"
style="width: 30px; height: 30px;margin-right: 3px;"
:src="vitem.Content"
:preview-src-list="scope.row.srcList"
fit="cover">
</el-image>
<div v-if="vitem.Type==1" style="width: 30px; height: 30px;text-align: center;line-height: 30px;background: #eee;margin-right: 3px;">
<div class="iconfont _wenjian_P"
:class="vitem.Content.substring(vitem.Content.lastIndexOf('.')+1,vitem.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFile(vitem.Content)">
</div>
</div>
</div>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
...@@ -738,6 +753,16 @@ ...@@ -738,6 +753,16 @@
this.AccountType_post_GetList(); this.AccountType_post_GetList();
}, },
methods:{ methods:{
showUpLoadFile(i) { // 预览上传文件
if (i.Content.substring(i.Content.lastIndexOf('.') + 1, i.Content.length).toUpperCase() == 'PDF') {
this.previewPDF(i.Content)
} else {
let dom = document.querySelector("#groupTourOrder_DownLoad");
dom.href = i.Content;
dom.click();
window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i.Content)
}
},
handleClose(rows){ handleClose(rows){
if (rows) { if (rows) {
rows.forEach(row => { rows.forEach(row => {
...@@ -789,9 +814,16 @@ ...@@ -789,9 +814,16 @@
arr.forEach(x=>{ arr.forEach(x=>{
x._checked = true x._checked = true
x._disabled = false x._disabled = false
x.srcList = []
}) })
} }
arrList(data) arrList(data)
for(let i=0;i<data.length;i++){
if(data[i].vorcherInos) {
data[i].srcList = data[i].vorcherInos.map(x=>{ if(x.Type==3)return x.Content})
}
}
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
data.forEach(x=>{ data.forEach(x=>{
if((","+userInfo.ActionMenuCode+",").indexOf(',Finance_CreateByCareOf,')!=-1){ if((","+userInfo.ActionMenuCode+",").indexOf(',Finance_CreateByCareOf,')!=-1){
...@@ -834,7 +866,7 @@ ...@@ -834,7 +866,7 @@
getCompanyList(){ //获取公司列表 getCompanyList(){ //获取公司列表
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{ this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.CompanyList=res.data.data; this.CompanyList=res.data.data;
}else{} }else{}
},err=>{}) },err=>{})
}, },
......
...@@ -440,7 +440,7 @@ ...@@ -440,7 +440,7 @@
this.saveMsg.FrId = this.GetDetail.FrID this.saveMsg.FrId = this.GetDetail.FrID
this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[] this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[]
this.saveMsg.Remark = this.GetDetail.FInnerRemark this.saveMsg.Remark = this.GetDetail.FInnerRemark
this.srcList = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?this.GetDetail.FInnerVoucher.map(x=>{return x.Content}):[] this.srcList = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?this.GetDetail.FInnerVoucher.map(x=>{ if(x.Type==3)return x.Content}):[]
}, },
deep: true, deep: true,
immediate: false immediate: false
...@@ -454,14 +454,14 @@ ...@@ -454,14 +454,14 @@
this.IsExpensesMonthlyShare=true; this.IsExpensesMonthlyShare=true;
} }
if (ActionMenuCode.indexOf('Finance_ExpenseType') != -1) { if (ActionMenuCode.indexOf('Finance_ExpenseType') != -1) {
// this.isFinance_ExpenseType=true; this.isFinance_ExpenseType=true;
} }
this.msg.BaseFinanceId = this.GetDetail.FrID this.msg.BaseFinanceId = this.GetDetail.FrID
this.saveMsg.FrId = this.GetDetail.FrID this.saveMsg.FrId = this.GetDetail.FrID
this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[] this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[]
this.saveMsg.Remark = this.GetDetail.FInnerRemark this.saveMsg.Remark = this.GetDetail.FInnerRemark
this.srcList = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?this.GetDetail.FInnerVoucher.map(x=>{return x.Content}):[] this.srcList = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?this.GetDetail.FInnerVoucher.map(x=>{ if(x.Type==3)return x.Content}):[]
if(this.GetDetail.SpecialType==11) this.GetExpensesMonthlyShare() if(this.GetDetail.SpecialType==11) this.GetExpensesMonthlyShare()
}, },
methods: { methods: {
...@@ -533,7 +533,7 @@ ...@@ -533,7 +533,7 @@
Content: this.domainManager().ViittoFileUrl+x.data.FilePath, Content: this.domainManager().ViittoFileUrl+x.data.FilePath,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath, Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
}); });
this.srcList = this.saveMsg.Voucher.map(x=>{return x.Content}) this.srcList = this.saveMsg.Voucher.map(x=>{ if(x.Type==3)return x.Content})
this.$message.success(this.$t('tips.scchenggong')); this.$message.success(this.$t('tips.scchenggong'));
}); });
}, },
......
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