Commit 9a535913 authored by 华国豪's avatar 华国豪 🙄

新增追加团款

parent ea07231f
......@@ -914,6 +914,9 @@ export default {
})
}
}
if (this.orderObj && this.orderObj.TravelReplenish){
this.msg.TravelReplenish = this.orderObj.TravelReplenish
}
this.loading = true;
this.msg.Description=this.Description;
this.apipost('Financial_post_Set',this.msg,res=>{
......@@ -1047,12 +1050,12 @@ export default {
if (t>=0) {
this.msg.detailList[t].CostTypeName = x.Name;
if (x.ID === 56) {
this.msg.detailList[t].Remark = `地接费领取自动生成:${this.orderObj.TCNUMS}`;
this.msg.detailList[t].Remark = this.orderObj.TCNUMS ? `地接费领取自动生成:${this.orderObj.TCNUMS}` : '';
}
}else{
this.detailList.CostTypeName = x.Name;
if (x.ID === 56) {
this.detailList.Remark = `地接费领取自动生成:${this.orderObj.TCNUMS}`;
this.detailList.Remark = this.orderObj.TCNUMS ? `地接费领取自动生成:${this.orderObj.TCNUMS}` : '';
}
}
}
......
......@@ -55,6 +55,7 @@
<!-- </template> -->
</template>
</table>
</div>
</template>
<script>
......@@ -64,6 +65,7 @@ export default {
loading: true,
dataList: [],
currencyList: [],
};
},created(){
this.apipost("financeinfo_post_GetList", {Name: ""}, res=>{
......
......@@ -546,6 +546,89 @@
</td>
</tr>
</table>
<table border="0" cellspacing="1" class="leaderReimbursementTable">
<tr>
<th :colspan="7">
<span >追加团款</span>
</th>
<th :colspan="1"><input
type="button"
value="制单"
class="leader2Btn"
@click="ZhuiJiaTuanKuan()"></th>
</tr>
<tr>
<th>单号</th>
<th>所属公司</th>
<th>单据类型</th>
<th>费用类型</th>
<th>交易方式</th>
<th>金额</th>
<th>付款对象</th>
<th>制单人员</th>
</tr>
<tr class="_item_list" v-for="(item,index) in zhuijiaList">
<td>{{item.BranchName}}</td>
<td class="Bill_par">
<el-popover
popper-class="detailsIT_Journal"
placement="bottom-start"
trigger="click">
<template v-if="item.Type!=1&&item.Type!=7&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-Bill>
</template>
<template v-else-if="item.Type==1&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-RVB-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-RVB-Bill>
</template>
<template v-else-if="item.Type==7&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-GZ-Bill :ID="item.FrID" :width="'1000px'" :color="colorSon"></my-GZ-Bill>
</template>
<template v-else-if="item.Is_Merge===1&&item.modelShow">
<my-HB-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-HB-Bill>
</template>
<span slot="reference" @click="item.modelShow = true" class="text_d PingFangSC" >{{item.FrID}}</span>
</el-popover>
</td>
<td><span class="_bg__" :class="item.Type==1 || item.Type==5?'_bg_green':'_bg_red'">{{item.TypeName}}</span></td>
<td>
<template v-for="(s,si) in item.CostTypeList">
<span class="_tag_span">{{s}}</span><br/>
</template>
</td>
<td class="_number">
<template v-if="item.TradeWayList&&item.TradeWayList.length>0">
<div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList">
<p class="_fex_cen clearfix"><span class="_bold">{{tw.Alias}}</span><span class="_bank_name">{{item.TradeWayList[0].TypeName}}</span><span class="_bank_type" :class="tw.AccountType=='私'?'':'_bank_type2'">{{tw.AccountType==""?$t('fnc.no'):tw.AccountType}}</span> </p>
<p>{{tw.BankNo}}</p>
</div>
</template>
<template v-else>
<div class="_pad5">
{{$t('fnc.no')}}
</div>
</template>
</td>
<td>
<p>{{item.Type==1 ? $t('fnc.yingshou') : $t('fnc.yingfu') }}:<span class="">{{moneyFormat(item.Money)}}</span></p>
<p>{{item.Type==1 ? $t('fnc.shishou') : $t('fnc.shifu') }}:<span class="">{{moneyFormat(item.PayMoney)}}</span></p>
</td>
<td>
<template v-if='item.Type===1'>
<span class="_color_gar">{{$t('fnc.huikuanren')}}</span><span>{{item.RemitterName}}</span>
</template>
<template v-if='item.Type===2'>
<span class="_color_gar">{{$t('fnc.fkduixiang')}}</span><span>{{item.RemitterName}}</span>
</template>
<template v-if='item.Type===4'>
<span class="_color_gar">{{$t('fnc.no')}}</span>
</template>
</td>
<td valign="middle">
<img class="_head_img" :src="item.EmPhoto" alt="">
<span>{{item.EmName}}</span>
</td>
</tr>
</table>
<div v-if='picIsShow' class="viewBigPicLayer">
<i class="el-icon-circle-close-outline clolseViewBigPicLayer" @click="picIsShow=false,picObj=[]"></i>
<el-carousel height="600px" :initial-index='initialIndex' :interval="5000" trigger="click">
......@@ -574,6 +657,7 @@
TCIDs: '',
NewCombinationNum: ''
},
zhuijiaList:[],
list: [],
nav: [],
TravelDayNum: 0,
......@@ -601,6 +685,40 @@
commonHotelInfo
},
methods: {
ZhuiJiaTuanKuan(){
let TCIDARR = [this.$route.query.id]
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
TCIDList: TCIDARR,
TravelReplenish: this.$route.query.NewCombinationNum ? this.$route.query.NewCombinationNum : this.$route.query.id
}
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query: {
"Type": 2,
"companyID": '',
"path": "",
'blank': 'y',
'orderObj': JSON.stringify(orderObj),
}
});
},
getzhuijiaList(){
this.apipost(
'Financial_post_GetTravelFinanceReplenishList', {
TravelReplenish: this.$route.query.NewCombinationNum ? this.$route.query.NewCombinationNum : this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.zhuijiaList = res.data.data.list
}
},
err => {}
)
},
getHangingAccountByTCIDList: function () {
this.apipost(
'Financial_post_GetHangingAccountByTCIDList', {
......@@ -913,6 +1031,7 @@
this.getList();
this.getTotalNav();
this.getHangingAccountByTCIDList()
this.getzhuijiaList()
}
}
......@@ -974,5 +1093,52 @@
background: #fff;
text-align: center;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
}
.Receipt_box{padding: 15px;color: #c94052;width: 614px;background-color: rgba(242, 242, 242, 1);border: 1px solid rgba(228, 228, 228, 1)}
.Receipt_box.color_blur{color: #106BAF;}
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
.rb_tit{font-size: 18px;text-align: center}
.rb_stit{font-size: 14px;text-align: center}
.rb_stit span{display: inline-block;border-bottom: 2px solid #C94052;padding: 0 20px}
.rb_top_row{display: flex;justify-content: space-between;font-size: 12px;}
.rb_top_row span._r_name{color: #333333}
.rb_top_row span._r_bold{font-weight: bold}
.rb_top_row ._r_time span{color: #333333}
._r_mb5{margin-bottom: 5px;}
.Receipt_table{width: 100%;font-size: 14px;text-align: center}
.Receipt_table .th{font-weight: 200 !important}
._r_mt10{margin-top: 10px;}
._bg__{display: inline-block;padding: 2px 8px;color: white;border-radius: 4px}
._bg_red{background-color: #E95252;}
._bg_green{background-color: #2BB87C}
.text_d{text-decoration: underline;cursor: pointer;}
.PingFangSC{font-weight: bold}
.Bill_par{position: relative;}
tr._item_list{border-bottom: 1px solid #E5E5E5;height: 78px;}
tr._item_list td{border-bottom: 1px solid #e5e5e5; padding: 10px;}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child{border-left: 1px solid #e5e5e5;}
tr._item_list td:last-child{border-right: 1px solid #e5e5e5;}
._head_img{width: 28px;height: 28px;border-radius: 50%;vertical-align:middle;}
._btn_group{font-size: 14px;}
.icon-daiqueren{color: #4BCA81}
.icon-yiqueren{color: #4BCA81}
.icon-yiquxiao{color: #959595}
.icon-shenhebohui{color: #E95252}
.icon-icon-zancun{color: #FF9C01}
.singeRowTable tr:hover{background-color: white}
._TradeWayList{padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width: 230px}
._bold{font-weight: bold}
._bank_name,._bank_type{display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;}
._bank_name{margin-left: 10px;}
._bank_type{background-color: #2AAEF2}
._bank_type2{background-color: #FF9C01}
</style>
<style>
.el-dialog__header {
background-color: #E95252!important;
padding: 20px 40px 10px;
}
.el-dialog__header .el-dialog__title{
color:white;
}
.hollowFixedBtn{ background: #fff; color: #E95252; padding: 0 15px; height:30px;border:1px solid #E95252; cursor: pointer; border-radius: 15px;margin-left: 10px;}
.hollowFixedBtn:hover{ box-shadow:2px 0px 4px rgba(144,6,6,0.25)}
.hollowFixedBtn:active{border-color: #CD2929;}
.normalBtn{ color: #fff; padding: 0 15px; height:30px; background:#E95252; border: 1px solid #E95252; cursor: pointer; border-radius: 15px;margin-left: 10px;}
.normalBtn:hover{background: #E95252;box-shadow:2px 0px 4px rgba(144,6,6,0.25)}
.normalBtn:active{background: #CD2929;}
.leaderPayTable {
width: 100%;
margin: 10px auto;
......@@ -91,6 +104,45 @@ input[type="number"] {
.w150{
width: 150px !important;
}
.Receipt_box{padding: 15px;color: #c94052;width: 614px;background-color: rgba(242, 242, 242, 1);border: 1px solid rgba(228, 228, 228, 1)}
.Receipt_box.color_blur{color: #106BAF;}
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
.rb_tit{font-size: 18px;text-align: center}
.rb_stit{font-size: 14px;text-align: center}
.rb_stit span{display: inline-block;border-bottom: 2px solid #C94052;padding: 0 20px}
.rb_top_row{display: flex;justify-content: space-between;font-size: 12px;}
.rb_top_row span._r_name{color: #333333}
.rb_top_row span._r_bold{font-weight: bold}
.rb_top_row ._r_time span{color: #333333}
._r_mb5{margin-bottom: 5px;}
.Receipt_table{width: 100%;font-size: 14px;text-align: center}
.Receipt_table .th{font-weight: 200 !important}
._r_mt10{margin-top: 10px;}
._bg__{display: inline-block;padding: 2px 8px;color: white;border-radius: 4px}
._bg_red{background-color: #E95252;}
._bg_green{background-color: #2BB87C}
.text_d{text-decoration: underline;cursor: pointer;}
.PingFangSC{font-weight: bold}
.Bill_par{position: relative;}
tr._item_list{border-bottom: 1px solid #E5E5E5;height: 78px;}
tr._item_list td{border-bottom: 1px solid #e5e5e5; padding: 10px;}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child{border-left: 1px solid #e5e5e5;}
tr._item_list td:last-child{border-right: 1px solid #e5e5e5;}
._head_img{width: 28px;height: 28px;border-radius: 50%;vertical-align:middle;}
._btn_group{font-size: 14px;}
.icon-daiqueren{color: #4BCA81}
.icon-yiqueren{color: #4BCA81}
.icon-yiquxiao{color: #959595}
.icon-shenhebohui{color: #E95252}
.icon-icon-zancun{color: #FF9C01}
.singeRowTable tr:hover{background-color: white}
._TradeWayList{padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width: 230px}
._bold{font-weight: bold}
._bank_name,._bank_type{display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;}
._bank_name{margin-left: 10px;}
._bank_type{background-color: #2AAEF2}
._bank_type2{background-color: #FF9C01}
</style>
<template>
......@@ -232,7 +284,7 @@ input[type="number"] {
<tr>
<th width="">使用日期</th>
<th width="">高速公路费</th>
<!-- <th width="">预计总金额</th>-->
<!-- <th width="">预计总金额</th>-->
<th width="">实付金额</th>
<th width="">备注</th>
<th width="40">操作</th>
......@@ -590,6 +642,82 @@ input[type="number"] {
</td> -->
</tr>
</table>
<table border="0" cellspacing="1" class="leaderPayTable">
<tr>
<th :colspan="8">追加团款</th>
</tr>
<tr>
<th>单号</th>
<th>所属公司</th>
<th>单据类型</th>
<th>费用类型</th>
<th>交易方式</th>
<th>金额</th>
<th>付款对象</th>
<th>制单人员</th>
</tr>
<tr class="_item_list" v-for="(item,index) in zhuijiaList">
<td>{{item.BranchName}}</td>
<td class="Bill_par">
<el-popover
popper-class="detailsIT_Journal"
placement="bottom-start"
trigger="click">
<template v-if="item.Type!=1&&item.Type!=7&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-Bill>
</template>
<template v-else-if="item.Type==1&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-RVB-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-RVB-Bill>
</template>
<template v-else-if="item.Type==7&&item.modelShow&&(item.Is_Merge===0||item.Is_Merge===null)">
<my-GZ-Bill :ID="item.FrID" :width="'1000px'" :color="colorSon"></my-GZ-Bill>
</template>
<template v-else-if="item.Is_Merge===1&&item.modelShow">
<my-HB-Bill :ID="item.FrID" :width="widthSon" :color="colorSon"></my-HB-Bill>
</template>
<span slot="reference" @click="item.modelShow = true" class="text_d PingFangSC" >{{item.FrID}}</span>
</el-popover>
</td>
<td><span class="_bg__" :class="item.Type==1 || item.Type==5?'_bg_green':'_bg_red'">{{item.TypeName}}</span></td>
<td>
<template v-for="(s,si) in item.CostTypeList">
<span class="_tag_span">{{s}}</span><br/>
</template>
</td>
<td class="_number">
<template v-if="item.TradeWayList&&item.TradeWayList.length>0">
<div class="_TradeWayList" v-for="(tw,twIn) in item.TradeWayList">
<p class="_fex_cen clearfix"><span class="_bold">{{tw.Alias}}</span><span class="_bank_name">{{item.TradeWayList[0].TypeName}}</span><span class="_bank_type" :class="tw.AccountType=='私'?'':'_bank_type2'">{{tw.AccountType==""?$t('fnc.no'):tw.AccountType}}</span> </p>
<p>{{tw.BankNo}}</p>
</div>
</template>
<template v-else>
<div class="_pad5">
{{$t('fnc.no')}}
</div>
</template>
</td>
<td>
<p>{{item.Type==1 ? $t('fnc.yingshou') : $t('fnc.yingfu') }}:<span class="">{{moneyFormat(item.Money)}}</span></p>
<p>{{item.Type==1 ? $t('fnc.shishou') : $t('fnc.shifu') }}:<span class="">{{moneyFormat(item.PayMoney)}}</span></p>
</td>
<td>
<template v-if='item.Type===1'>
<span class="_color_gar">{{$t('fnc.huikuanren')}}</span><span>{{item.RemitterName}}</span>
</template>
<template v-if='item.Type===2'>
<span class="_color_gar">{{$t('fnc.fkduixiang')}}</span><span>{{item.RemitterName}}</span>
</template>
<template v-if='item.Type===4'>
<span class="_color_gar">{{$t('fnc.no')}}</span>
</template>
</td>
<td valign="middle">
<img class="_head_img" :src="item.EmPhoto" alt="">
<span>{{item.EmName}}</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" class="leaderPayTable" v-if="TotalPriceData.length>0">
<tr>
<th>币种</th>
......@@ -605,10 +733,10 @@ input[type="number"] {
>
<td>{{item.CurrencyStr}}</td>
<td>{{moneyFormat(item.PlanPrice)}}</td>
<td>{{moneyFormat(item.PlanTotalPrice)}}</td>
<td>{{moneyFormat(item.PlanTotalPrice + zhuijiaMoney)}}</td>
<td>{{moneyFormat(item.ExpendTotalPrice)}}</td>
<!-- <td>{{index == 0 ? moneyFormat(AllBZPrice) : moneyFormat(item.ExpendTotalPrice)}}</td> -->
<td>{{index == 0 ? moneyFormat(item.PlanTotalPrice - AllBZPrice): moneyFormat(item.PlanTotalPrice - item.ExpendTotalPrice)}}</td>
<td>{{index == 0 ? moneyFormat(item.PlanTotalPrice + zhuijiaMoney - AllBZPrice): moneyFormat(item.PlanTotalPrice + zhuijiaMoney - item.ExpendTotalPrice)}}</td>
</tr>
<tr v-if="!TotalPriceData.length">
<td colspan="5">暂无数据</td>
......@@ -757,8 +885,7 @@ input[type="number"] {
type="button"
value="制单"
class="leader2Btn"
@click="goZhiDan2(item, index)"
>
@click="opendialog(item, index, item.price)">
</td>
</tr>
<tr v-if="!listCost.length">
......@@ -897,14 +1024,76 @@ input[type="number"] {
</div>
</div>
<a :href="blankUrl" id="blankLink" target="_blank" style="display:none">1</a>
<el-dialog title="选择账户" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" v-loading="dialogFormVisibleLoding">
<el-form label-width="110px">
<el-form-item label="付款类型">
<el-select filterable v-model='lingjiandiMsg.IsPublic' class="">
<el-option :label="$t('fnc.gongzhang')" :value='1' :key='1'></el-option>
<el-option :label="$t('fnc.sizhang')" :value='0' :key='0'></el-option>
<el-option :label="$t('fnc.rmbxianjin')" :value='2' :key='2'></el-option>
<el-option :label="$t('fnc.wbxianjin')" :value='3' :key='3'></el-option>
<el-option :label="$t('fnc.zjinchi')" :value='4' :key='4'></el-option>
<el-option :label="$t('fnc.ptxnzhanghu')" :value='5' :key='5'></el-option>
<el-option :label="$t('fnc.djxnzhanghu')" :value='6' :key='6'></el-option>
<el-option :label="$t('fnc.szxiangdi')" :value='7' :key='7'></el-option>
<el-option label="原路退款" :value='8' :key='8'></el-option>
<el-option label="地接预支款" :value='9' :key='9'></el-option>
</el-select>
</el-form-item>
<el-form-item label="账户">
<el-select filterable v-model='lingjiandiMsg.ClientID' class="">
<el-option v-for='item in ClientAccountListS'
:label='item.AccountHolder'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="币种">
<el-select filterable v-model='lingjiandiMsg.CurrencyId' class="">
<el-option v-for='item in currencyList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="预计付款日期">
<el-date-picker clearable class="w190 _border_b_1"
v-model="lingjiandiMsg.PayDate"
type="datetime"
:placeholder="$t('fnc.qxzrqshijian')"
align="right">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="goZhiDan2">{{$t('pub.sureBtn')}}</button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
zhuijiaList: [],
zhuijiaMoney: 0,
dialogFormVisibleLoding: false,
dialogFormVisibleIndex: 0,
lingjiandiObj: {},
lingjiandiMsg: {
IsPublic: "",
ClientType: '',
ClientID: '',
CurrencyId: '',
PayDate: '',
},
isUpdate: false,
loading: false,
dialogFormVisible: false,
msg: {
TCIDs: "",
NewCombinationNum: ""
......@@ -939,9 +1128,70 @@ export default {
listCost: [],
BaoZhangPrice: {},
AllBZPrice: 0,
ClientAccountListS: [],
currencyList:[],
};
},
methods: {
getzhuijiaList(){
this.apipost(
'Financial_post_GetTravelFinanceReplenishList', {
TravelReplenish: this.$route.query.NewCombinationNum ? this.$route.query.NewCombinationNum : this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.zhuijiaList = res.data.data.list
this.zhuijiaMoney = res.data.data.TotalMoney
}
},
err => {}
)
},
opendialog: function (item, index, price){
if (!price) {
return this.$message.error('请输入金额')
}
this.lingjiandiObj = item
this.dialogFormVisible = true
this.dialogFormVisibleIndex = index
},
getCurrencyList: function(id){
this.apipost("financeinfo_post_GetList", {Name: ""}, res=>{
if (res.data.resultCode === 1) {
let data = res.data.data;
this.currencyList = data
}
}, null)
},
closeChangeMachie(done) { // 弹=窗口关闭
done();
},
financeinfo_post_GetClientAccountList(){ //获取付款 对象类型 新增用
let msg = {
ID:0,
Type: 7,
ObjID:0,
CardNum:''
}
this.apipost('financeinfo_post_GetClientAccountList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
this.ClientAccountListS = data;
// data.forEach(x=>{
// let obj = {
// ID:x.ID,
// Name:x.AccountHolder,
// Nom:x.CardNum,
// OpenBankName:x.OpenBankName,
// allName:x.CardNum,
// ObjID:x.ObjID,
// }
// ClientAccountList.push(obj)
// })
// this.ClientAccountListS = ClientAccountList;
}
}, err => {})
},
// 全部明细
godetailAll: function (name){
this.godetail(name)
......@@ -1072,7 +1322,24 @@ export default {
}
}, null)
},
goZhiDan2: function (obj, index) {
goZhiDan2: function () {
if (!this.lingjiandiMsg.IsPublic) {
this.$message.error('请选择付款类型')
return
}
if (!this.lingjiandiMsg.ClientID) {
this.$message.error('请选择账户')
return
}
if (!this.lingjiandiMsg.CurrencyId) {
this.$message.error('请选择币种')
return
}
if (!this.lingjiandiMsg.PayDate) {
this.$message.error('请选择预计付款日期')
return
}
let obj = this.lingjiandiObj
let inputPrice = obj.price ? parseFloat(obj.price) : 0
let userinfo = this.getLocalStorage()
if(inputPrice<=0){
......@@ -1090,15 +1357,13 @@ export default {
return
}
// type 1 零件地 自动生成 2 领队人头费 跳转
let BType = 4,
AccountId = 19,
let BType = 7,
ClientID = this.lingjiandiMsg.ClientID,
IsRelevanceTravel = 1,
TemplateId = 71,
RB_Branch_Id = userinfo.RB_Branch_id,
OrderSource = 6;
if (obj.Type == 2) {
BType = 1;
AccountId = 7;
IsRelevanceTravel = 0;
TemplateId = obj.OutBranchId === 0 ? 72 : 73;
RB_Branch_Id = obj.OutBranchId;
......@@ -1106,11 +1371,13 @@ export default {
}
// 自动生成
let msg = {
CurrencyId: this.lingjiandiMsg.CurrencyId,
PayDate: this.lingjiandiMsg.PayDate,
TemplateId: 71,
RB_Branch_Id: RB_Branch_Id,
IsPublic: 0,
BType: BType,
AccountId: AccountId,
ClientType: BType,
ClientID: ClientID,
CostTypeID: 180,
WBMoney: obj.price,
Remark: "",
......@@ -1119,19 +1386,20 @@ export default {
OrderID: 0,
vorcherInos: [{FrIdStr:''}],
Description: "",
RemitterName: obj.LeaderOrGuidName,
TradeDate: new Date().Format("yyyy-MM-dd"),
OrderSource: OrderSource,
}
this.apipost('Financial_post_SetFinanceInfoCommonForIn', msg, res=>{
this.dialogFormVisibleLoding = true
this.apipost('Financial_post_SetFinanceInfoCommonForOut', msg, res=>{
if (res.data.resultCode == 1) {
obj.FrId.push(res.data.data)
this.listCost[index] = obj
this.listCost[this.dialogFormVisibleIndex] = obj
this.$forceUpdate()
this.$message.success("制单成功")
} else {
this.$message.error(res.data.message)
}
this.dialogFormVisibleLoding = false
this.dialogFormVisible = false
}, null)
},
goZhiDan: function(obj) {
......@@ -1531,6 +1799,9 @@ export default {
this.getTotalPrice();
this.getNavT();
this.getnewList();
this.financeinfo_post_GetClientAccountList()
this.getCurrencyList();
this.getzhuijiaList()
}
};
</script>
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