Commit 275a90f7 authored by 华国豪's avatar 华国豪 🙄

完善挂账单,新增发票

parent 129a5f3e
......@@ -48,6 +48,19 @@
.changLogList_l{border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;}
._radius_green{background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;}
.changLog_time{color: #666666;font-size: 12px;display: inline-block;padding-right: 10px}
.page_FinancialAccounting ._AllCont{
display: flex;
font-size: 12px;
}
.page_FinancialAccounting ._AllCont p{
padding: 0 20px 15px;
}
.page_FinancialAccounting ._AllCont p._allcont_zhi span{
color: #106BAF
}
.page_FinancialAccounting ._AllCont p._allcont_zhi span{
color: #E95252
}
</style>
<template>
<div class="page_FinancialAccounting">
......@@ -142,6 +155,11 @@
</el-col>
</el-row>
</el-form>
<div class="_AllCont">
<p>挂账总金额:{{moneyFormat(AllCont.Income - AllCont.Expend)}}</p>
<p class="_allcont_zhi">挂账总支出:<span>{{moneyFormat(AllCont.Expend)}}</span></p>
<p class="_allcont_shou">挂账总收入:<span>{{moneyFormat(AllCont.Income)}}</span></p>
</div>
<div class="page_FinancialAccounting_list">
<table class="singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
......@@ -213,8 +231,8 @@
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize
:total=total>
:page-size='msg.pageSize'
:total='total'>
</el-pagination>
</div>
</div>
......@@ -270,6 +288,10 @@ export default {
total: 0,
currentPage: 0,
ClientTypeList: [],
AllCont: {
Income: 0,
Expend: 0,
},
}
},
created(){
......@@ -279,6 +301,19 @@ export default {
this.EmId=userInfo.EmployeeId;
},
methods:{
getAllCont: function () {
this.apipost('Financial_post_GetHangingAccountTotalPrice', this.msg, res=>{
if (res.data.resultCode===1){
this.AllCont = res.data.data;
} else {
this.$message.error(res.data.message)
}
if (this.msg.FrID===0) {
this.msg.FrID = ''
}
this.loading= false
}, null)
},
getList: function () { // 获取列表数据
if (this.msg.FrID === '') {
this.msg.FrID = 0
......@@ -288,13 +323,10 @@ export default {
if (res.data.resultCode===1){
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
this.getAllCont()
} else {
this.$message.error(res.data.message)
}
if (this.msg.FrID===0) {
this.msg.FrID = ''
}
this.loading= false
}, null)
},
handleCurrentChange(val) { //翻页
......
......@@ -702,8 +702,8 @@
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize
:total=total>
:page-size='msg.pageSize'
:total='total'>
</el-pagination>
</div>
<el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="zhuanBox" center :before-close="closeChangeMachie">
......
......@@ -241,13 +241,13 @@
</td>
</tr>
<tr>
<td colspan="2" class="">挂账金额<br/><span class="_font_size12">{{$t('fnc.daxie')}}</span></td>
<td colspan="2" class="">挂账金额<br/><span class="_font_size12">{{$t('fnc.daxie')}}</span></td>
<td colspan="3">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span>
<span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span>
</td>
<td colspan="2" class="">
挂账金额<br/><span class="_font_size12">{{$t('fnc.xiaoxie')}}</span>
挂账金额<br/><span class="_font_size12">{{$t('fnc.xiaoxie')}}</span>
</td>
<td colspan="3">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
......
......@@ -874,6 +874,9 @@ export default {
delete x.rate;
});
//旅客名单数据组装
if(!this.$route.query.edit){
this.msg.Type = this.$route.query.Type
}
if(this.orderObj!=null&&this.orderObj.OrderSource===10){
// console.log("getGuestInfo",this.$store.getters.getGuestInfo)
let guestInfo = JSON.parse(sessionStorage.getItem("saveGuestInfo"));
......
......@@ -1026,6 +1026,9 @@ export default {
// if(this.msg.IsHave==0&&this.chosenPeople.length==0)return this.$message.error('请选择下一步审核人')
if(this.msg.BankId=='')return this.$message.error(this.$t('rule.qxzskzhanghao'));
if(!this.msg.RB_Depart_Id)return this.$message.error(this.$t('rule.qxzzdbumen'));
if(!this.$route.query.edit){
this.msg.Type = this.$route.query.Type
}
delete this.msg.DetailList;
delete this.msg.PayMoney;
delete this.msg.VorcherInos;
......
......@@ -36,25 +36,67 @@
.page_iisMg .el-date-editor .el-range-separator {
width: 9% !important;
}
.page_iisMg td span.status_Application{
color: #409EFF;
}
.page_iisMg td span.status_Cancle{
color: #909399;
}
.page_iisMg td span.status_Passed{
color: #67C23A;
}
.page_iisMg td span.status_Rejected{
color: #F56C6C;
}
.page_iisMg td span.status_owe{
color: #E6A23C;
}
.page_iisMg td span.status_Recover{
color: #67C23A;
}
.page_iisMg .cursorpointer{
text-decoration: underline;
}
.page_iisMg ._icon_btn i{
width: 30px;
height: 30px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 30px;
margin-right: 10px;
cursor: pointer;
outline: none;
}
.page_iisMg ._icon_btn i.icon-ico_commodity_defaul{background-color: #F16C3C;}
.page_iisMg ._icon_btn i.icon-ico_commodity_defaul:hover{background-color: #e87c54}
.page_iisMg ._icon_btn i.icon-ico_commodity_defaul:active{background-color: #f76630}
.page_iisMg ._icon_btn i.icon-quxiao1{background-color: #E95252;}
.page_iisMg ._icon_btn i.icon-quxiao1:hover{background-color: #ea6d6d}
.page_iisMg ._icon_btn i.icon-quxiao1:active{background-color:#e42d2d}
.page_iisMg ._icon_btn i.icon-sousuo{background-color: #47BF8C;}
.page_iisMg ._icon_btn i.icon-sousuo:hover{background-color: #66bb97}
.page_iisMg ._icon_btn i.icon-sousuo:active{background-color: #35ab79}
</style>
<template>
<div class="page_iisMg">
<ul class="_nav clearfix">
<li :class="active==1?'_active':''" @click="active=1,msg.Conditon=1,getPageList()">全部发票</li>
<li :class="active==2?'_active':''" @click="active=2,msg.Conditon=2,getPageList()">已开发票</li>
<li :class="active==3?'_active':''" @click="active=3,msg.Conditon=3,getPageList()">欠票发票</li>
<li :class="active==1?'_active':''" @click="active=1,msg.InvoiceApplyState=0,getPageList()">全部发票</li>
<li :class="active==2?'_active':''" @click="active=2,msg.InvoiceApplyState=3,getPageList()">已开发票</li>
<li :class="active==3?'_active':''" @click="active=3,msg.InvoiceApplyState=5,getPageList()">欠票发票</li>
</ul>
<div class="query-box">
<el-form class="iis_info_box clearfix" label-width="110px">
<el-row>
<el-col :span="4" :gutter="35">
<el-form-item label="团号">
<el-input placeholder v-model="msg.TCID"></el-input>
<el-input placeholder v-model="msg.TCNUM"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="订单号">
<el-input placeholder v-model="msg.TCID"></el-input>
<el-input placeholder v-model="msg.OrderId"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35" v-if="active !== 3">
......@@ -71,7 +113,7 @@
</el-form-item>
</el-col>
<el-col :span="8" :gutter="35">
<el-form-item label="开票日期">
<el-form-item label="申请日期">
<el-date-picker
class="h34"
@change="timeAdd"
......@@ -97,6 +139,58 @@
</li>
</ul>
</div>
<table class="singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width="180">团号</th>
<th>订单号</th>
<th>销售</th>
<th>客户</th>
<th>开票金额</th>
<th>差价</th>
<th>申请日期</th>
<th>状态</th>
<th>操作</th>
</tr>
<tr v-for="(item, index) in dataList" :key="index" v-loading="loading">
<td class="cursorpointer" @click="goUrlT('productQuery', item.TCNUM, '产品查询')">{{item.TCNUM}}({{item.TCID}})</td>
<td>{{item.OrderId}}</td>
<td>{{item.CreateByStr}}</td>
<td>{{item.CustomerName}}:{{item.CustomerContact}}</td>
<td>{{item.ApplyMoney}}</td>
<td>{{item.ApplyMoney - item.AactualMoney}}</td>
<td>{{item.CreateDate.replace('T', ' ')}}</td>
<td>
<span v-if="item.InvoiceApplyState === 1" class="status_Application">申请中</span>
<span v-else-if="item.InvoiceApplyState === 2" class="status_Cancle">已取消</span>
<span v-else-if="item.InvoiceApplyState === 3" class="status_Passed">已通过</span>
<span v-else-if="item.InvoiceApplyState === 4" class="status_Rejected">已拒绝</span>
<span v-else-if="item.InvoiceApplyState === 5" class="status_owe">欠票</span>
<span v-else-if="item.InvoiceApplyState === 6" class="status_Recover">发票追回</span>
</td>
<td class="_icon_btn">
<el-tooltip class="item" effect="dark" :content="$t('fnc.chakan')" placement="top">
<i class="iconfont icon-sousuo" @click="goIisDetail(item.ID)"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="追回" placement="top">
<i v-if="item.InvoiceApplyState === 5" class="iconfont icon-ico_commodity_defaul" @click="setStatus(item.ID, 6)"></i>
</el-tooltip>
<!-- <el-tooltip class="item" effect="dark" content="拒绝" placement="top">
<i v-if="item.InvoiceApplyState === 1" class="iconfont icon-quxiao1" @click="setStatus(item.ID, 4)"></i>
</el-tooltip> -->
</td>
</tr>
</table>
<div class="noDataNotice" v-if="dataList.length<1"><i class="iconfont icon-kong"></i> <p>没有找到你需要的数据</p></div>
<div v-if="dataList.length>0">
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size='msg.pageSize'
:total='total'>
</el-pagination>
</div>
</div>
</template>
<script>
......@@ -106,38 +200,90 @@ export default {
active: 1,
msg: {
TCID: 0,
TCNUM: '',
OrderId: 0,
AccountInfo: '',
ApplyMoney: 0,
AactualMoney: 0,
CompanyName: '',
DutyParagraph: '',
InvoiceApplyState: 0,
DutyParagraph:'',
sDate: '',
eDate: '',
pageIndex: 1,
pageSize: 10
pageSize: 10,
},
productionDate: []
productionDate: [],
dataList: [],
loading: false,
currentPage: 0,
total:0,
};
},
methods: {
timeAdd() {
goIisDetail: function (id) {
this.$router.push({
name: 'invoicesManagerDetail',
query: { id: id,blank: "y",}
});
},
setStatus: function (id, type) {
let msg = {
RefuseRemarks: '',
ID: id,
InvoiceApplyState: type,
}
this.apipost('InvoiceApply_get_UpdateInvoiceApply', msg, res=>{
if (res.data.resultCode == 1) {
this.getPageList()
}
}, null)
},
timeAdd: function () {
// 日期格式
if (!this.productionDate) {
this.msg.sTradeDate = "";
this.msg.eTradeDate = "";
this.msg.sDate = "";
this.msg.eDate = "";
return;
}
this.msg.sTradeDate = this.productionDate[0];
this.msg.eTradeDate = this.productionDate[1];
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
},
getPageList: function () {
this.loading = true
if (this.msg.OrderId === '') {
this.msg.OrderId = 0
}
this.apipost('InvoiceApply_get_GetInvoiceApplyList', this.msg, res=>{
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
this.dataList = res.data.data.pageData
}
this.loading = false
if (this.msg.OrderId === 0) {
this.msg.OrderId = ''
}
}, null)
},
getPageList: function() {},
goUrlAdd: function (path) {
this.$router.push({
name: path,
query: { blank: "y",}
});
}
},
goUrlT: function (path, obj, title){
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}})
},
handleCurrentChange: function (val) { //翻页
this.msg.pageIndex = val;
this.getPageList();
},
resetPageIndex: function (){ // 重置页码
this.msg.pageIndex=1;
this.currentPage = 1;
},
},
mounted() {}
mounted() {
this.getPageList();
}
};
</script>
......@@ -39,7 +39,7 @@
>
<tr>
<td width="130">部门</td>
<td>{{DepartName}}</td>
<td width="290">{{DepartName}}</td>
<td width="130">申请人</td>
<td>{{emName}}</td>
</tr>
......@@ -50,15 +50,16 @@
</td>
<td>到账金额</td>
<td>
<el-input placeholder v-model="msg.AactualMoney"></el-input>
{{orderList.moneyStr}}
</td>
</tr>
<tr class="page_iisMgadd_bank">
<td>到账银行</td>
<td colspan="3" class="_bank_td">
<el-select v-model="msg.AccountInfo" class="width100b">
{{orderList.AccountNumber}}
<!-- <el-select v-model="msg.AccountInfo" class="width100b">
<el-option v-for="(a, i) in accountList" :key="i" :value="a.ID" :label="a.allName"></el-option>
</el-select>
</el-select> -->
</td>
</tr>
<tr>
......@@ -68,7 +69,7 @@
</td>
<td>到账日期</td>
<td>
{{new Date().Format('yyyy-MM-dd')}}
{{orderList.TradeDateStr}}
</td>
</tr>
<tr>
......@@ -85,15 +86,29 @@
</tr>
<tr>
<td rowspan="2">开具内容</td>
<td>公司名称</td>
<td>公司名称
<el-select v-model="isChang" placeholder="" class="w150" @change="clearInfo">
<el-option :key="1" :value='1' label='常用公司'></el-option>
<el-option :key="2" :value='2' label='非常用公司'></el-option>
</el-select>
</td>
<td colspan="2">
<el-input placeholder v-model="msg.CompanyName"></el-input>
<el-select v-model="CompanyID" placeholder="" v-if="isChang === 1" @change="setDutyParagraph">
<el-option v-for="item in CustomerList" :key="item.ID" :value='item.ID' :label='item.CompanyName' ></el-option>
</el-select>
<template v-else>
<span style="display:flex;align-items: center;">
<el-input placeholder v-model="msg.CompanyName"></el-input>
<el-checkbox v-model="checked">保存为常用</el-checkbox>
</span>
</template>
</td>
</tr>
<tr>
<td>税号</td>
<td colspan="2">
<el-input placeholder v-model="msg.DutyParagraph"></el-input>
<el-input placeholder v-model="msg.DutyParagraph" v-if="isChang === 2"></el-input>
<span v-else>{{msg.DutyParagraph}}</span>
</td>
</tr>
<tr>
......@@ -115,32 +130,57 @@ export default {
msg: {
TCID: 0,
OrderId: 0,
AccountInfo: '',
ApplyMoney: 0,
AactualMoney: 0,
CompanyName: '',
DutyParagraph: '',
InvoiceApplyState: 1
InvoiceApplyState: 1,
CustomerId: 0,
IsDefaultInfo: 1,
},
DepartName: "",
emName: "",
accountList: [],
orderList: {},
isChang: 1,
checked: true,
CustomerList: [],
CompanyID: '',
};
},
methods: {
Addiis: function () {
if (this.msg.AccountInfo === '') return this.$message.error('请选择到账银行!')
clearInfo: function () { // 清除数据
this.msg.DutyParagraph = ''
this.msg.CompanyName = ''
},
setDutyParagraph: function () { // 绑定数据
this.CustomerList.forEach(x=>{
if (x.ID === this.CompanyID) {
this.msg.DutyParagraph = x.DutyParagraph
this.msg.CompanyName = x.CompanyName
}
})
},
Addiis: function () { // 新增接口
if (this.msg.CompanyName === '') return this.$message.error('请填写公司名称!')
if (this.msg.DutyParagraph === '') return this.$message.error('请填写税号!')
if (this.checked) {
this.msg.IsDefaultInfo = 1
} else {
this.msg.IsDefaultInfo = 0
}
this.apipost(
"InvoiceApply_get_SetInvoiceApply",
this.msg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
setTimeout(()=>{
this.$router.push({
name: 'invoicesManager'
name: 'groupTourOrder'
});
// this.$router.go(-1)
},1000)
} else {
this.$message.error(res.data.message)
......@@ -149,7 +189,7 @@ export default {
err => {}
);
},
getAccountList() {
getAccountList: function () {
//获取账户类型对应下的账户列表
this.apipost(
"FinancialInstitutions_post_GetALLAccountList",
......@@ -165,6 +205,26 @@ export default {
},
err => {}
);
},
getOrderDetail: function () { // 获取订单详情
this.apipost(
'InvoiceApply_get_GetOrderFinanceList',
{OrderId: this.msg.OrderId, OrderResource: 8, IsTravelMoney: 1},
res => {
if (res.data.resultCode == 1) {
this.orderList = res.data.data
}
},
err => {
}
)
},
getCustomerInvoiceList: function () { // 根据客户id 获取对应发票信息
this.apipost('InvoiceApply_get_GetCustomerInvoiceList', {CustomerID: this.msg.CustomerId}, res=>{
if (res.data.resultCode == 1) {
this.CustomerList = res.data.data
}
}, null)
}
},
mounted() {
......@@ -173,7 +233,10 @@ export default {
this.emName = userInfo.emName;
this.msg.OrderId = this.$route.query.OrderId;
this.msg.TCID = this.$route.query.TCID;
this.msg.CustomerId = this.$route.query.customerId;
this.getAccountList();
this.getOrderDetail();
this.getCustomerInvoiceList();
}
};
</script>
<style scoped>
.page_iisMgdetail {
width: 830px;
background-color: white;
padding: 10px;
}
.page_iisMgdetail > p {
font-size: 18px;
text-align: center;
padding-bottom: 15px;
}
.page_iisMgdetail .page_iisMgadd_table {
width: 100%;
font-size: 14px;
text-align: center;
}
.page_iisMgdetail .page_iisMgadd_table td {
padding: 10px;
}
.page_iisMgdetail .page_iisMgadd_table .page_iisMgadd_bank td._bank_td{
width: 679px;
}
.iis_save{
text-align: right;
padding: 10px 0 0 0;
}
.page_iisMgdetail .page_iisMgadd_table tr td.font-weight{
font-weight: 800;
}
.page_iisMgdetail .cursorpointer{
text-decoration: underline;
}
</style>
<template>
<div class="page_iisMgdetail">
<div class="page_iisMgdetail" v-loading="loading">
<p>发票开具申请单</p>
<table
data-v-ca5157c2
border="1"
class="page_iisMgadd_table"
style="border-collapse: collapse;"
>
<tr>
<td width="130">部门</td>
<td>{{detail.deptName}}</td>
<td width="130">申请人</td>
<td>{{detail.CreateBy}}</td>
</tr>
<tr>
<td>开具金额</td>
<td>
{{detail.ApplyMoney}}
</td>
<td>到账金额</td>
<td @click="goSaleFinacial" class="cursorpointer">
{{orderList.moneyStr}}
</td>
</tr>
<tr class="page_iisMgadd_bank">
<td>到账银行</td>
<td colspan="3" class="_bank_td">
{{orderList. AccountNumber}}
</td>
</tr>
<tr>
<td>申请日期</td>
<td>
{{detail.CreateDateStr}}
</td>
<td>到账日期</td>
<td>
{{orderList.TradeDateStr}}
</td>
</tr>
<tr>
<td>团号</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer" @click="goUrlT('productQuery', detail.TCNUM, '产品查询')">
{{detail.TCNUM}}({{detail.TCID}})
</td>
</tr>
<tr>
<td>平台ID</td>
<td colspan="3" class="w600 text-align-left font-weight">
{{detail.OrderId}}
</td>
</tr>
<tr>
<td rowspan="2">开具内容</td>
<td>公司名称</td>
<td colspan="2" class="font-weight">
{{detail.CompanyName}}
</td>
</tr>
<tr>
<td>税号</td>
<td colspan="2" class="font-weight">
{{detail.DutyParagraph}}
</td>
</tr>
<tr>
<td>备注</td>
<td colspan="3">
{{detail.Remarks}}
</td>
</tr>
</table>
<div class="iis_save">
<button class="normalBtn" @click="setStatus(3)">通过</button>
<button class="normalBtn" @click="dialogFormVisible = true">拒绝</button>
</div>
<el-dialog title="提示信息" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" >
<el-form label-width="110px">
<el-form-item label="拒绝理由">
<el-input type="textarea" v-model="msg.RefuseRemarks" class="w216"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="setStatus(4)">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
detail: {},
orderList: {},
loading: true,
dialogFormVisible: false,
AccountInfo: '',
msg: {
TCID: 0,
OrderId: 0,
AccountInfo: 0,
ApplyMoney: 0,
AactualMoney: 0,
CompanyName: 0,
DutyParagraph: 0,
RefuseRemarks: '',
ID: 0,
InvoiceApplyState: 0,
},
}
};
},
methods: {
goUrlT: function (path, obj, title){ // 跳转团页面
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}})
},
goSaleFinacial: function () { // 跳转销售财务单据
let obj = {
orderId: this.detail.OrderId,
tcnum: this.detail.TCNUM,
tcid: this.detail.TCID
}
this.$router.push({
name: 'SalesFinancialDetail',
query: {blank: 'y', tab: '销售财务单据', item: JSON.stringify(obj)}
});
},
setStatus: function (type) { // 审核发票单据
this.msg.InvoiceApplyState = type
this.apipost('InvoiceApply_get_UpdateInvoiceApply', this.msg, res=>{
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
setTimeout(()=>{
this.$router.push({
name: 'invoicesManager',
query: {blank: "y",}
});
},1000)
}
}, null)
},
getDetail: function (id) { // 获取详情
this.apipost('InvoiceApply_get_GetDetails', {ID: id}, res=>{
if (res.data.resultCode == 1) {
this.detail = res.data.data
this.getOrderDetail();
}
this.loading = false
}, null)
},
closeChangeMachie(done) { // 转交窗口关闭
done();
},
getOrderDetail: function () { // 获取交易信息详情
this.apipost(
'InvoiceApply_get_GetOrderFinanceList',
{OrderId: this.detail.OrderId, OrderResource: 8, IsTravelMoney: 1},
res => {
if (res.data.resultCode == 1) {
this.orderList = res.data.data
}
},
err => {
}
)
},
},
mounted() {}
mounted() {
let id = this.$route.query.id
this.msg.ID = id
this.getDetail(id)
}
};
</script>
......@@ -1703,6 +1703,8 @@
<span v-if="item.isChargeLossOrders==1">恢复收损单</span>
<span v-else>设为收损单</span>
</div>
<!-- item.confirmFileList.length>0 && q -->
<div v-if='((item.receivableMoney - item.invoiceApplyTotal) > 0)' @click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId)'>申请发票</div>
<div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3')"
@click='deleteItem(item)'>取消
</div>
......@@ -1790,6 +1792,18 @@
<span v-if="item.refundFinanceList.length===0" style="cursor: default;">暂无数据</span>
</div>
</div>
<div>
<div>发票单据:</div>
<div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState===6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===1" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===5" class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===3" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
</span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span>
</div>
</div>
</td>
</tr>
</tbody>
......@@ -2109,6 +2123,19 @@
}
},
methods: {
goIisDetail: function (id) { // 跳转发票详情页面
this.$router.push({
name: 'invoicesManagerDetail',
query: { id: id,blank: "y",}
});
},
// 申请发票
goUrlAdd: function (path, OrderId, TCID, customerId) {
this.$router.push({
name: path,
query: {OrderId: OrderId, TCID: TCID, customerId: customerId, blank: "y",}
});
},
// 给其他费用赋值
Yszefz(){
this.Ysze=true;
......
......@@ -84,7 +84,7 @@
color: #4d7afd;
}
.Team_Incontent {
margin: 25px 0 0 35px;
margin: 15px 0 0 35px;
}
.Team_firstTitle span {
margin-right: 10px;
......@@ -95,7 +95,7 @@
.Team_Incontent span {
margin-left: 20px;
font-size: 14px;
font-family: PingFangSC-Fine;
font-family: 'PingFangSC-Fine';
}
.Team_zhichu {
background-color: #fde2df;
......@@ -197,6 +197,14 @@
<div>&nbsp;&nbsp;&nbsp;<span>{{DataList.ExpectedCut}}</span></div>
<div>联运成本<span>{{DataList.LYCB}}</span></div>
</div>
<div class="Team_firstTitle">
<span class="Team_comCoinType Team_lirun">
<i class="iconfont icon-qian"></i>
</span>优惠
</div>
<div class="Team_Incontent">
<div>&nbsp;&nbsp;&nbsp;<span>{{DataList.TeamBalance.DiscountMoney}}</span></div>
</div>
</div>
</el-col>
<el-col :span="4">
......@@ -204,10 +212,12 @@
<div class="Team_firstTitle">
<span class="Team_comCoinType Team_lirun">
<i class="iconfont icon-qian"></i>
</span>优惠
</span>挂账信息
</div>
<div class="Team_Incontent">
<div>&nbsp;&nbsp;&nbsp;<span>{{DataList.TeamBalance.DiscountMoney}}</span></div>
<div>挂账总金额:<span>{{moneyFormat(AllCont.Income - AllCont.Expend)}}</span></div>
<div>挂账总支出:<span>{{moneyFormat(AllCont.Expend)}}</span></div>
<div>挂账总收入:<span>{{moneyFormat(AllCont.Income)}}</span></div>
</div>
</div>
</el-col>
......@@ -1230,8 +1240,43 @@
</tr>
</template>
</table>
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">挂账单据:</div>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="180">单号</th>
<th width="200">挂账金额</th>
<th width="500">挂账类型</th>
<th width="500">挂账对象</th>
<th width="500">单据状态</th>
<th width="300">创建时间</th>
<th width="200">创建人</th>
</tr>
<tr v-for="item in HangingList">
<td>
<span>{{item.FrID}}</span>
</td>
<td>
<span>{{item.Money}}</span>
</td>
<td>
<span>{{item.HangingAccountsTypeStr}}</span>
</td>
<td>
<span>{{item.RemitterName}}:{{item.AccountNumber}}</span>
</td>
<td>
<span>{{item.StatusStr}}</span>
</td>
<td>
<span>{{item.AccountNumber}}</span>
</td>
<td>
<span>{{item.createByStr}}</span>
</td>
</tr>
</table>
</div>
</div>
<div class="Team_BtnList">
......@@ -1327,11 +1372,38 @@
// 导游
Guideyf:0,
Guidesf:0,
},
AllCont: {
Income: 0,
Expend: 0,
},
HangingList: [],
};
},
methods: {
getAllCont: function () {
let msg = {
TCID: this.TCID,
FrID: 0,
UpdateBy: '-1',
RB_Branch_Id: -1,
RB_Depart_Id: -2,
sDate: '',
eDate: '',
Status: '-1',
sTradeDate: '',
eTradeDate: '',
EmployeeId:0,
ClientType: 0,
}
this.apipost('Financial_post_GetHangingAccountTotalPrice', msg, res=>{
if (res.data.resultCode===1){
this.AllCont = res.data.data;
} else {
this.$message.error(res.data.message)
}
}, null)
},
//判断数组包含字符串
isExists(array, str) {
var flag = false;
......@@ -1630,12 +1702,27 @@
}
});
},
getHangingAccountByTCIDList: function () {
this.apipost(
'Financial_post_GetHangingAccountByTCIDList',
{TCID: this.TCID},
res => {
if (res.data.resultCode == 1) {
this.HangingList = res.data.data
}
},
err => {
}
)
}
},
mounted() {
this.TCID = this.$route.query.id;
this.OutBranchId = this.$route.query.OutBranchId
this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn
this.getList();
this.getAllCont();
this.getHangingAccountByTCIDList();
}
};
</script>
\ No newline at end of file
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