Commit 76a4393d authored by qiaoyajun's avatar qiaoyajun

vuex添加客户

parent d231299a
...@@ -817,7 +817,7 @@ export default { ...@@ -817,7 +817,7 @@ export default {
newArr.push(file.file) newArr.push(file.file)
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong')) this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0); let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({ this.saveMsg.push({
Content: x.data.FilePath, Content: x.data.FilePath,
...@@ -879,7 +879,7 @@ export default { ...@@ -879,7 +879,7 @@ export default {
}).then(() => { }).then(() => {
this.$router.push({ name:'addFinancialDocuments',query:{"id":this.$route.query.id,"Name":this.$route.query.Name,'InPay':this.$route.query.InPay,"Type":this.$route.query.Type,"orderObj":this.$route.query.orderObj,'IsUploadPic':this.$route.query.IsUploadPic,'companyID':this.$route.query.companyID}}) this.$router.push({ name:'addFinancialDocuments',query:{"id":this.$route.query.id,"Name":this.$route.query.Name,'InPay':this.$route.query.InPay,"Type":this.$route.query.Type,"orderObj":this.$route.query.orderObj,'IsUploadPic':this.$route.query.IsUploadPic,'companyID':this.$route.query.companyID}})
}).catch(() => { }).catch(() => {
this.$router.push({name:'FinancialDocuments',query:{'Type':this.$route.query.Type,'InPay':this.$route.query.InPay}}) ; this.$router.push({name:'FinancialDocuments',query:{'Type':this.$route.query.Type,'InPay':this.$route.query.InPay}}) ;
}); });
}else{ }else{
this.resultCode = res.data.resultCode; this.resultCode = res.data.resultCode;
...@@ -1258,7 +1258,10 @@ export default { ...@@ -1258,7 +1258,10 @@ export default {
}, },
},created(){ },created(){
this.orderObj = this.$route.query.orderObj?JSON.parse(this.$route.query.orderObj):null; this.orderObj = this.$route.query.orderObj?JSON.parse(this.$route.query.orderObj):null;
console.log(this.$route.query.orderObj) console.log(this.$route.query.orderObj)
if(this.orderObj!=null&&this.orderObj.OrderSource===10){
console.log("getGuestInfo",this.$store.getters.getGuestInfo)
}
},mounted(){ },mounted(){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.department = userInfo.DepartName; this.department = userInfo.DepartName;
......
<style> <style>
.page_SalesFinancialDetail{} .page_SalesFinancialDetail{}
.page_SalesFinancialDetail p.sfd_tit { .page_SalesFinancialDetail p.sfd_tit {
border-left: 3px solid #E95252; border-left: 3px solid #E95252;
text-indent: 10px; text-indent: 10px;
font-size: 16px; font-size: 16px;
line-height: 30px; line-height: 30px;
margin: 20px 0 10px 0; margin: 20px 0 10px 0;
} }
.page_SalesFinancialDetail .sfd_nav{margin: 20px 0 0 0 ;} .page_SalesFinancialDetail .sfd_nav{margin: 20px 0 0 0 ;}
.page_SalesFinancialDetail .sfd_nav li{float: left;font-size: 14px;color: #666666;padding: 15px 20px;cursor: pointer;position: relative;background-color: #f1f1f1;margin-right: 5px} .page_SalesFinancialDetail .sfd_nav li{float: left;font-size: 14px;color: #666666;padding: 15px 20px;cursor: pointer;position: relative;background-color: #f1f1f1;margin-right: 5px}
.page_SalesFinancialDetail .sfd_nav li._active{background-color:#FFFFFF;color: #333333 } .page_SalesFinancialDetail .sfd_nav li._active{background-color:#FFFFFF;color: #333333 }
.page_SalesFinancialDetail .sfd_nav li._active::after{content: "";width: 20px;height: 3px;background-color: #E95252;display: inline-block;position: absolute;bottom: 0;left: 38%;} .page_SalesFinancialDetail .sfd_nav li._active::after{content: "";width: 20px;height: 3px;background-color: #E95252;display: inline-block;position: absolute;bottom: 0;left: 38%;}
.page_SalesFinancialDetail p.sfd_tit input{ .page_SalesFinancialDetail p.sfd_tit input{
float: right float: right
} }
.page_SalesFinancialDetail .sfd_header{ .page_SalesFinancialDetail .sfd_header{
position: relative; position: relative;
width: 100%; width: 100%;
margin-bottom: 15px; margin-bottom: 15px;
} }
.page_SalesFinancialDetail .sfd_header input{ .page_SalesFinancialDetail .sfd_header input{
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
.page_SalesFinancialDetail .sfd_header>ul { .page_SalesFinancialDetail .sfd_header>ul {
background-color: white; background-color: white;
padding: 15px; padding: 15px;
border-radius: 4px; border-radius: 4px;
width: 800px; width: 800px;
} }
.page_SalesFinancialDetail .sfd_header>ul>li { .page_SalesFinancialDetail .sfd_header>ul>li {
float: left; float: left;
width: 33%; width: 33%;
padding: 5px 0; padding: 5px 0;
min-height: 31px; min-height: 31px;
} }
.page_SalesFinancialDetail .sfd_header>ul>li>span { .page_SalesFinancialDetail .sfd_header>ul>li>span {
font-size: 14px; font-size: 14px;
color: #666; color: #666;
} }
.page_SalesFinancialDetail table.teamRevenueExpenditureTable { .page_SalesFinancialDetail table.teamRevenueExpenditureTable {
background: #eee; background: #eee;
width: 100%; width: 100%;
margin-bottom: 30px; margin-bottom: 30px;
} }
.page_SalesFinancialDetail table.teamRevenueExpenditureTable th { .page_SalesFinancialDetail table.teamRevenueExpenditureTable th {
background: #D1D1D1; background: #D1D1D1;
font-weight: normal !important; font-weight: normal !important;
font-size: 14px; font-size: 14px;
height: 30px; height: 30px;
color: #333; color: #333;
} }
.page_SalesFinancialDetail table.teamRevenueExpenditureTable td { .page_SalesFinancialDetail table.teamRevenueExpenditureTable td {
background: #fff; background: #fff;
height: 36px; height: 36px;
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
} }
.page_SalesFinancialDetail table.teamRevenueExpenditureTable td:first-child span { .page_SalesFinancialDetail table.teamRevenueExpenditureTable td:first-child span {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.page_SalesFinancialDetail td.noDataNotice p.iconfont { .page_SalesFinancialDetail td.noDataNotice p.iconfont {
font-size: 120px; font-size: 120px;
color: #ccc; color: #ccc;
} }
.page_SalesFinancialDetail td.noDataNotice p.text{ .page_SalesFinancialDetail td.noDataNotice p.text{
color: #999; color: #999;
margin-bottom: 20px; margin-bottom: 20px;
} }
.page_SalesFinancialDetail .color_red{ .page_SalesFinancialDetail .color_red{
color: #e95252 !important; color: #e95252 !important;
} }
.page_SalesFinancialDetail .sfd_header>ul:nth-child(1){ .page_SalesFinancialDetail .sfd_header>ul:nth-child(1){
padding-bottom: 0; padding-bottom: 0;
} }
.page_SalesFinancialDetail .sfd_header>ul:nth-child(2){ .page_SalesFinancialDetail .sfd_header>ul:nth-child(2){
padding-top: 0; padding-top: 0;
} }
</style> </style>
<template> <template>
<div class="page_SalesFinancialDetail"> <div class="page_SalesFinancialDetail">
<!-- <ul class="sfd_nav clearfix"> <!-- <ul class="sfd_nav clearfix">
<li :class="activeTab===1?'_active':''" @click="activeTab=1,getList(1)">收款单</li> <li :class="activeTab===1?'_active':''" @click="activeTab=1,getList(1)">收款单</li>
<li :class="activeTab===2?'_active':''" @click="activeTab=2,getList(2)">付款单</li> <li :class="activeTab===2?'_active':''" @click="activeTab=2,getList(2)">付款单</li>
</ul> --> </ul> -->
<div v-loading="loading"> <div v-loading="loading">
<div class="sfd_header"> <div class="sfd_header">
<ul class="clearfix"> <ul class="clearfix">
<li><span>团队编号:</span>{{TCNUM}}</li> <li><span>团队编号:</span>{{TCNUM}}</li>
<!-- <li><span>订单号:</span>{{orderId}}</li> --> <!-- <li><span>订单号:</span>{{orderId}}</li> -->
<li> </li> <li> </li>
<li><span>已收总金额:</span>{{moneyFormat(allMoney)}}</li> <li><span>已收总金额:</span>{{moneyFormat(allMoney)}}</li>
<li><span>已审金额:</span>{{moneyFormat(shiMoney)}}</li> <li><span>已审金额:</span>{{moneyFormat(shiMoney)}}</li>
<li><span>待审金额:</span><span :class="{color_red:(allMoney-shiMoney)!==allMoney}">{{moneyFormat(allMoney-shiMoney)}}</span></li> <li><span>待审金额:</span><span :class="{color_red:(allMoney-shiMoney)!==allMoney}">{{moneyFormat(allMoney-shiMoney)}}</span></li>
</ul> </ul>
<ul class="clearfix fukuan"> <ul class="clearfix fukuan">
<li><span>应付总金额:</span>{{moneyFormat(allMoneyP)}}</li> <li><span>应付总金额:</span>{{moneyFormat(allMoneyP)}}</li>
<li><span>已审金额:</span>{{moneyFormat(shiMoneyP)}}</li> <li><span>已审金额:</span>{{moneyFormat(shiMoneyP)}}</li>
<li><span>待审金额:</span><span :class="{color_red:(allMoneyP-shiMoneyP)!==allMoneyP}">{{moneyFormat(allMoneyP-shiMoneyP)}}</span></li> <li><span>待审金额:</span><span :class="{color_red:(allMoneyP-shiMoneyP)!==allMoneyP}">{{moneyFormat(allMoneyP-shiMoneyP)}}</span></li>
</ul> </ul>
</div> </div>
<p class="sfd_tit clearfix">收款单 <input type="button" value="增加财务单据" class="normalBtn" @click="addFinancialOrder(1)"></p> <p class="sfd_tit clearfix">收款单 <input type="button" value="增加财务单据" class="normalBtn" @click="addFinancialOrder(1)"></p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable"> <table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr> <tr>
<th width="100">单号</th> <th width="100">单号</th>
<th width="200">费用类型</th> <th width="200">费用类型</th>
<th width="350">交易方式</th> <th width="350">交易方式</th>
<th width="100">同行转款</th> <th width="100">同行转款</th>
<th width="100">应收</th> <th width="100">应收</th>
<th width="100">实收</th> <th width="100">实收</th>
<th width="100">平台税金</th> <th width="100">平台税金</th>
<th width="150">交易日期</th> <th width="150">交易日期</th>
<th width="100">制单人员</th> <th width="100">制单人员</th>
<th width="120">当前状态</th> <th width="120">当前状态</th>
</tr> </tr>
<tr v-for="(item, index) in dataList"> <tr v-for="(item, index) in dataList">
<td width="100" @click="goUrl('财务单据','FinancialDocumentsDetail',item.FrID)"><span>{{item.FrID}}</span></th> <td width="100" @click="goUrl('财务单据','FinancialDocumentsDetail',item.FrID)"><span>{{item.FrID}}</span></th>
<td width=""> <td width="">
<template v-for="(s,si) in item.CostTypeList"> <template v-for="(s,si) in item.CostTypeList">
<span style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span> <span style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span>
</template> </template>
</td> </td>
<td width=""> <td width="">
<template v-if="item.TradeWayList&&item.TradeWayList.length>0"> <template v-if="item.TradeWayList&&item.TradeWayList.length>0">
<div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList" style="line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 5px auto;width:230px"> <div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList" style="line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 5px auto;width:230px">
<p><span style="font-weight: bold;color:#333333">{{tw.Alias}}</span><span class="_bank_name" style="height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px">{{item.TradeWayList[0].TypeName}}</span><span style="height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;" :style="{'background-color':tw.AccountType=='私'?'#2AAEF2':'#FF9C01'}">{{tw.AccountType==""?'无':tw.AccountType}}</span> </p> <p><span style="font-weight: bold;color:#333333">{{tw.Alias}}</span><span class="_bank_name" style="height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px">{{item.TradeWayList[0].TypeName}}</span><span style="height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;" :style="{'background-color':tw.AccountType=='私'?'#2AAEF2':'#FF9C01'}">{{tw.AccountType==""?'无':tw.AccountType}}</span> </p>
<p style="color:#333333">{{tw.BankNo}}</p> <p style="color:#333333">{{tw.BankNo}}</p>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="_pad5"> <div class="_pad5">
</div> </div>
</template> </template>
</td> </td>
<td width=""> <td width="">
<p style="line-height:20px"><span>{{moneyFormat(item.PreferPrice)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.PreferPrice)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.Money)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.PayMoney)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.PayMoney)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.Fee)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.Fee)}}</span></p>
</td> </td>
<td width="">{{item.TradeDate}}</td> <td width="">{{item.TradeDate}}</td>
<td width="">{{item.EmName}}</td> <td width="">{{item.EmName}}</td>
<td width=""> <td width="">
<i v-if="item.Status==1" class="iconfont icon-daiqueren" style="color: #4BCA81"></i> <i v-if="item.Status==1" class="iconfont icon-daiqueren" style="color: #4BCA81"></i>
<i v-if="item.Status==4" class="iconfont icon-yiquxiao" style="color: #4BCA81"></i> <i v-if="item.Status==4" class="iconfont icon-yiquxiao" style="color: #4BCA81"></i>
<i v-if="item.Status==2" class="iconfont icon-yiqueren" style="color: #959595"></i> <i v-if="item.Status==2" class="iconfont icon-yiqueren" style="color: #959595"></i>
<i v-if="item.Status==3" class="iconfont icon-shenhebohui" style="color: #E95252"></i> <i v-if="item.Status==3" class="iconfont icon-shenhebohui" style="color: #E95252"></i>
<i v-if="item.Status==0" class="iconfont icon-zancun" style="color: #FF9C01"></i> <i v-if="item.Status==0" class="iconfont icon-zancun" style="color: #FF9C01"></i>
<el-popover <el-popover
popper-class="detailsIT_Journal" popper-class="detailsIT_Journal"
width="250" width="250"
trigger="click"> trigger="click">
<div style="height: auto;max-height: 220px;background-color: #FFFFFF;"> <div style="height: auto;max-height: 220px;background-color: #FFFFFF;">
<div class="changLog"> <div class="changLog">
<p class="_log_t">流程日志</p> <p class="_log_t">流程日志</p>
<ul style="padding-left: 20px;max-height: 180px;overflow: auto;" v-if="GetFinancLogList" v-loading='LogLoading'> <ul style="padding-left: 20px;max-height: 180px;overflow: auto;" v-if="GetFinancLogList" v-loading='LogLoading'>
<li style="border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;" v-for="(log,li) in GetFinancLogList"> <li style="border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;" v-for="(log,li) in GetFinancLogList">
<span style="background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;"></span> <span style="background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;"></span>
<p> <span class="_color_blue">{{log.EmName}}</span> <span class="fr changLog_time">{{log.UpdateDate}}</span> </p> <p> <span class="_color_blue">{{log.EmName}}</span> <span class="fr changLog_time">{{log.UpdateDate}}</span> </p>
<p class="_dtel">{{log.StartValue}}</p> <p class="_dtel">{{log.StartValue}}</p>
</li> </li>
</ul> </ul>
<ul v-else> <ul v-else>
<li>暂无修改日志</li> <li>暂无修改日志</li>
</ul> </ul>
</div> </div>
</div> </div>
<span slot="reference" style="cursor: pointer;" @click="Financial_post_GetFinancLogList(item.FrID)">{{item.StatusStr}}</span> <span slot="reference" style="cursor: pointer;" @click="Financial_post_GetFinancLogList(item.FrID)">{{item.StatusStr}}</span>
</el-popover> </el-popover>
</td> </td>
</tr> </tr>
<tr v-if="dataList.length===0"> <tr v-if="dataList.length===0">
<td colspan="10" class="noDataNotice"> <td colspan="10" class="noDataNotice">
<div> <div>
<p class="iconfont icon-kong"></p> <p class="iconfont icon-kong"></p>
<p class="text">{{`暂无数据`}}</p> <p class="text">{{`暂无数据`}}</p>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
<p class="sfd_tit clearfix">付款单 <input type="button" value="增加财务单据" class="normalBtn" @click="addFinancialOrder(2)"></p> <p class="sfd_tit clearfix">付款单 <input type="button" value="增加财务单据" class="normalBtn" @click="addFinancialOrder(2)"></p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable"> <table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr> <tr>
<th width="100">单号</th> <th width="100">单号</th>
<th width="200">费用类型</th> <th width="200">费用类型</th>
<th width="350">交易方式</th> <th width="350">交易方式</th>
<th width="100">同行转款</th> <th width="100">同行转款</th>
<th width="100">应付</th> <th width="100">应付</th>
<th width="100">实付</th> <th width="100">实付</th>
<th width="100">平台税金</th> <th width="100">平台税金</th>
<th width="150">交易日期</th> <th width="150">交易日期</th>
<th width="100">制单人员</th> <th width="100">制单人员</th>
<th width="120">当前状态</th> <th width="120">当前状态</th>
</tr> </tr>
<tr v-for="(item, index) in dataListP"> <tr v-for="(item, index) in dataListP">
<td width="100" @click="goUrl('财务单据','FinancialDocumentsDetail',item.FrID)"><span>{{item.FrID}}</span></th> <td width="100" @click="goUrl('财务单据','FinancialDocumentsDetail',item.FrID)"><span>{{item.FrID}}</span></th>
<td width=""> <td width="">
<template v-for="(s,si) in item.CostTypeList"> <template v-for="(s,si) in item.CostTypeList">
<span style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span> <span style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span>
</template> </template>
</td> </td>
<td width=""> <td width="">
<template v-if="item.TradeWayList&&item.TradeWayList.length>0"> <template v-if="item.TradeWayList&&item.TradeWayList.length>0">
<div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList" style="line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 5px auto;width:230px"> <div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList" style="line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 5px auto;width:230px">
<p><span style="font-weight: bold;color:#333333">{{tw.Alias}}</span><span class="_bank_name" style="height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px">{{item.TradeWayList[0].TypeName}}</span><span style="height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;" :style="{'background-color':tw.AccountType=='私'?'#2AAEF2':'#FF9C01'}">{{tw.AccountType==""?'无':tw.AccountType}}</span> </p> <p><span style="font-weight: bold;color:#333333">{{tw.Alias}}</span><span class="_bank_name" style="height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px">{{item.TradeWayList[0].TypeName}}</span><span style="height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;" :style="{'background-color':tw.AccountType=='私'?'#2AAEF2':'#FF9C01'}">{{tw.AccountType==""?'无':tw.AccountType}}</span> </p>
<p style="color:#333333">{{tw.BankNo}}</p> <p style="color:#333333">{{tw.BankNo}}</p>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="_pad5"> <div class="_pad5">
</div> </div>
</template> </template>
</td> </td>
<td width=""> <td width="">
<p style="line-height:20px"><span>{{moneyFormat(item.PreferPrice)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.PreferPrice)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.Money)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.Money)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.PayMoney)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.PayMoney)}}</span></p>
</td> </td>
<td> <td>
<p style="line-height:20px"><span>{{moneyFormat(item.Fee)}}</span></p> <p style="line-height:20px"><span>{{moneyFormat(item.Fee)}}</span></p>
</td> </td>
<td width="">{{item.TradeDate}}</td> <td width="">{{item.TradeDate}}</td>
<td width="">{{item.EmName}}</td> <td width="">{{item.EmName}}</td>
<td width=""> <td width="">
<i v-if="item.Status==1" class="iconfont icon-daiqueren" style="color: #4BCA81"></i> <i v-if="item.Status==1" class="iconfont icon-daiqueren" style="color: #4BCA81"></i>
<i v-if="item.Status==4" class="iconfont icon-yiquxiao" style="color: #4BCA81"></i> <i v-if="item.Status==4" class="iconfont icon-yiquxiao" style="color: #4BCA81"></i>
<i v-if="item.Status==2" class="iconfont icon-yiqueren" style="color: #959595"></i> <i v-if="item.Status==2" class="iconfont icon-yiqueren" style="color: #959595"></i>
<i v-if="item.Status==3" class="iconfont icon-shenhebohui" style="color: #E95252"></i> <i v-if="item.Status==3" class="iconfont icon-shenhebohui" style="color: #E95252"></i>
<i v-if="item.Status==0" class="iconfont icon-zancun" style="color: #FF9C01"></i> <i v-if="item.Status==0" class="iconfont icon-zancun" style="color: #FF9C01"></i>
<el-popover <el-popover
popper-class="detailsIT_Journal" popper-class="detailsIT_Journal"
width="250" width="250"
trigger="click"> trigger="click">
<div style="height: auto;max-height: 220px;background-color: #FFFFFF;"> <div style="height: auto;max-height: 220px;background-color: #FFFFFF;">
<div class="changLog"> <div class="changLog">
<p class="_log_t">流程日志</p> <p class="_log_t">流程日志</p>
<ul style="padding-left: 20px;max-height: 180px;overflow: auto;" v-if="GetFinancLogList" v-loading='LogLoading'> <ul style="padding-left: 20px;max-height: 180px;overflow: auto;" v-if="GetFinancLogList" v-loading='LogLoading'>
<li style="border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;" v-for="(log,li) in GetFinancLogList"> <li style="border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;" v-for="(log,li) in GetFinancLogList">
<span style="background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;"></span> <span style="background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;"></span>
<p> <span class="_color_blue">{{log.EmName}}</span> <span class="fr changLog_time">{{log.UpdateDate}}</span> </p> <p> <span class="_color_blue">{{log.EmName}}</span> <span class="fr changLog_time">{{log.UpdateDate}}</span> </p>
<p class="_dtel">{{log.StartValue}}</p> <p class="_dtel">{{log.StartValue}}</p>
</li> </li>
</ul> </ul>
<ul v-else> <ul v-else>
<li>暂无修改日志</li> <li>暂无修改日志</li>
</ul> </ul>
</div> </div>
</div> </div>
<span slot="reference" style="cursor: pointer;" @click="Financial_post_GetFinancLogList(item.FrID)">{{item.StatusStr}}</span> <span slot="reference" style="cursor: pointer;" @click="Financial_post_GetFinancLogList(item.FrID)">{{item.StatusStr}}</span>
</el-popover> </el-popover>
</td> </td>
</tr> </tr>
<tr v-if="dataListP.length===0"> <tr v-if="dataListP.length===0">
<td colspan="10" class="noDataNotice"> <td colspan="10" class="noDataNotice">
<div> <div>
<p class="iconfont icon-kong"></p> <p class="iconfont icon-kong"></p>
<p class="text">{{`暂无数据`}}</p> <p class="text">{{`暂无数据`}}</p>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
orderId: 0, orderId: 0,
dataList: [], dataList: [],
dataListP: [], dataListP: [],
loading: true, loading: true,
noData: true, noData: true,
activeTab: 1, activeTab: 1,
tcnum: '', tcnum: '',
msg:{ msg:{
pageIndex: 1, pageIndex: 1,
pageSize: 999, pageSize: 999,
FrID: '', FrID: '',
sDate: '', sDate: '',
eDate: '', eDate: '',
Status: '-1', Status: '-1',
TemplateId: '0', TemplateId: '0',
RB_Branch_Id: '', RB_Branch_Id: '',
RB_Depart_Id: '', RB_Depart_Id: '',
sTradeDate: '', sTradeDate: '',
eTradeDate: '', eTradeDate: '',
ClientType: '', ClientType: '',
RemitterName: '', RemitterName: '',
ClientID: '', ClientID: '',
sMoney: '', sMoney: '',
eMoney: '', eMoney: '',
CurrencyId: '0', CurrencyId: '0',
CostTypeID: '', CostTypeID: '',
Conditon: '', Conditon: '',
TCID: '', TCID: '',
TradeWay: '0', TradeWay: '0',
Type: '-1', Type: '-1',
AccountType: '', AccountType: '',
QEndDate: '', QEndDate: '',
QStartDate: '', QStartDate: '',
UpdateBy: '', UpdateBy: '',
Sort: '2', Sort: '2',
EmployeeId: '', EmployeeId: '',
IsNotCancelFinance: 1, IsNotCancelFinance: 1,
IsSellOrderForm:1 IsSellOrderForm:1
}, },
GetFinancLogList: [], GetFinancLogList: [],
LogLoading: true, LogLoading: true,
allMoney: 0, allMoney: 0,
shiMoney: 0, shiMoney: 0,
allMoneyP: 0, allMoneyP: 0,
shiMoneyP: 0, shiMoneyP: 0,
userId: null, userId: null,
item: {}, item: {},
tcid:0, tcid:0,
OutBranchId:0, OutBranchId:0,
TCNUM:0, TCNUM:0,
} }
}, methods: { }, methods: {
Financial_post_GetFinancLogList: function(id){ // 获取单据日志 Financial_post_GetFinancLogList: function(id){ // 获取单据日志
if (this.checkboxShow) return if (this.checkboxShow) return
this.LogLoading = true; this.LogLoading = true;
this.apipost('Financial_post_GetFinancLogList',{ID: id, Type: 2}, res => { this.apipost('Financial_post_GetFinancLogList',{ID: id, Type: 2}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x=>{ data.forEach(x=>{
x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate) x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate)
}) })
this.LogLoading = false; this.LogLoading = false;
this.GetFinancLogList = data; this.GetFinancLogList = data;
} }
},null) },null)
}, },
goUrl: function (name, path, id ) { goUrl: function (name, path, id ) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} }); this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} });
}, },
getList: function () { getList: function () {
this.dataList=[]; this.dataList=[];
this.dataListP=[]; this.dataListP=[];
this.loading = true; this.loading = true;
this.apipost('Financial_post_GetPriceVisaFinanceList',{tcid:this.tcid}, res=>{ this.apipost('Financial_post_GetPriceVisaFinanceList',{tcid:this.tcid}, res=>{
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data.list; let data = res.data.data.list;
this.allMoney = 0; this.allMoney = 0;
this.shiMoney = 0; this.shiMoney = 0;
// 收款单据,type==1 // 收款单据,type==1
data.forEach(x=>{ data.forEach(x=>{
if(x.Type==1){ if(x.Type==1){
this.dataList.push(x) this.dataList.push(x)
}else{ }else{
this.dataListP.push(x) this.dataListP.push(x)
} }
}) })
this.dataList.forEach(x=>{ this.dataList.forEach(x=>{
this.allMoney += x.PreferPrice this.allMoney += x.PreferPrice
if(x.PayMoney>0){ if(x.PayMoney>0){
this.shiMoney += (x.PayMoney+x.Fee) this.shiMoney += (x.PayMoney+x.Fee)
} }
}) })
this.dataListP.forEach(x=>{ this.dataListP.forEach(x=>{
this.allMoneyP += x.PreferPrice this.allMoneyP += x.PreferPrice
if(x.PayMoney>0){ if(x.PayMoney>0){
this.shiMoneyP += (x.PayMoney+x.Fee) this.shiMoneyP += (x.PayMoney+x.Fee)
} }
}) })
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, null) }, null)
}, },
addFinancialOrder: function (type) { // 新增单据方法 addFinancialOrder: function (type) { // 新增单据方法
let TCIDARR = [this.tcid]; let userInfo =[{name:"132",age:11},{name:"1321",age:222}]
let orderObj = { this.$store.commit('saveGuestInfo',userInfo)
OrderID: 0, console.log("getGuestInfo",this.$store.getters.getGuestInfo)
OrderSource: 10, let TCIDARR = [this.tcid];
Obj: {}, let orderObj = {
SourceID: 0, OrderID: 0,
TCIDList: TCIDARR OrderSource: 10,
} Obj: {},
if (type === 1) { SourceID: 0,
this.$router.push({ TCIDList: TCIDARR
name: 'ChoiceAddFinancialDocuments', }
query:{ if (type === 1) {
"Type": 1, this.$router.push({
"companyID": this.outBranchId, name: 'ChoiceAddFinancialDocuments',
"path": "", query:{
'blank': 'y', "Type": 1,
'orderObj': JSON.stringify(orderObj) "companyID": this.outBranchId,
} "path": "",
}); 'blank': 'y',
} else if (type === 2) { 'orderObj': JSON.stringify(orderObj)
this.$router.push({ }
name: 'ChoiceAddFinancialDocuments', });
query:{ } else if (type === 2) {
"Type": 2, this.$router.push({
"companyID": this.outBranchId, name: 'ChoiceAddFinancialDocuments',
"path": "", query:{
'blank': 'y', "Type": 2,
'orderObj': JSON.stringify(orderObj) "companyID": this.outBranchId,
} "path": "",
}); 'blank': 'y',
} 'orderObj': JSON.stringify(orderObj)
}, }
}, mounted() { });
this.userId = this.getLocalStorage().EmployeeId; }
},
this.tcid= this.$route.query.TCID; }, mounted() {
this.OutBranchId=this.$route.query.OutBranchId; this.userId = this.getLocalStorage().EmployeeId;
this.TCNUM=this.$route.query.TCNUM;
this.getList() this.tcid= this.$route.query.TCID;
this.OutBranchId=this.$route.query.OutBranchId;
} this.TCNUM=this.$route.query.TCNUM;
} this.getList()
</script>
}
}
</script>
/* 获取数据 */
export default {
getGuestInfo(state) {
return state.guestInfo;
}
}
...@@ -5,6 +5,7 @@ import modules from './modules' ...@@ -5,6 +5,7 @@ import modules from './modules'
import mutations from './mutations' import mutations from './mutations'
import actions from './actions' import actions from './actions'
import state from './state' import state from './state'
import getters from './getters'
Vue.use(Vuex) Vue.use(Vuex)
export default new Vuex.Store({ export default new Vuex.Store({
...@@ -15,6 +16,8 @@ export default new Vuex.Store({ ...@@ -15,6 +16,8 @@ export default new Vuex.Store({
mutations, mutations,
// 与mutation通讯,ui层写入内存数据的接口,可异步操作 // 与mutation通讯,ui层写入内存数据的接口,可异步操作
actions, actions,
// 获取数据
getters,
plugins: [], plugins: [],
strict: false strict: false
}) })
...@@ -521,7 +521,7 @@ export default { ...@@ -521,7 +521,7 @@ export default {
state.currReceiptQueryTeamId = obj.teamId state.currReceiptQueryTeamId = obj.teamId
} }
var needQuery = obj.msgs var needQuery = obj.msgs
.filter(msg => .filter(msg =>
msg.needMsgReceipt && msg.from === state.myInfo.account && !state.receiptQueryList.find(item => item.idServer === msg.idServer) msg.needMsgReceipt && msg.from === state.myInfo.account && !state.receiptQueryList.find(item => item.idServer === msg.idServer)
) )
.map(msg => { .map(msg => {
...@@ -562,6 +562,9 @@ export default { ...@@ -562,6 +562,9 @@ export default {
// 页面数据暂存 // 页面数据暂存
pageConditionUpdate(state, obj) { pageConditionUpdate(state, obj) {
state.pageCondition = obj state.pageCondition = obj
},
// 客户数据暂存
saveGuestInfo(state, guestInfo) {
state.guestInfo = guestInfo;
} }
} }
...@@ -86,5 +86,7 @@ export default { ...@@ -86,5 +86,7 @@ export default {
// 聊天室成员列表 // 聊天室成员列表
currChatroomMembers: [], currChatroomMembers: [],
// 页面数据暂存 // 页面数据暂存
pageCondition: null pageCondition: null,
// 客户信息
guestInfo: []
} }
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