Commit a35b95d0 authored by youjie's avatar youjie

no message

parent 26183764
......@@ -1645,7 +1645,18 @@ tr._item_list td:last-child {
<i
v-if="active==1 && istransaction == true && item.Type==1"
class="iconfont icon-shezhi1"
@click="goSet(item)"
@click="goSet(item,1)"
></i>
</el-tooltip>
<el-tooltip
class="item"
content="付款对象设置"
placement="top"
>
<i
v-if="active==1 && istransaction == true && item.Type==1"
class="iconfont icon-shezhi1"
@click="goSet(item,2)"
></i>
</el-tooltip>
</td>
......@@ -2087,6 +2098,49 @@ tr._item_list td:last-child {
</button>
</div>
</el-dialog>
<el-dialog
title="修改付款对象"
width="290px"
:visible.sync="PaymentSync"
center>
<el-form class="cdForm" label-width="90px">
<el-form-item label="客户类型" prop="ClientType">
<el-select filterable v-model='transTax.ClientType' :placeholder="$t('fnc.khleixing')"
@change="GetClientAccountList(transTax.ClientType)" class="w135 _border_b_1">
<el-option v-for='item in ClientTypeList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="客户名称" prop="ClientID">
<template v-if="msg.ClientType==7&&msg.IsPublic!=2&&msg.IsPublic!=3">
<el-select v-if="msg.IsLeader==1" filterable v-model='transTax.ClientID' :placeholder="$t('fnc.khmingcheng')"
class="w135 _border_b_1">
<el-option v-for='item in ClientAccountList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</template>
<template v-if="msg.ClientType!=7&&msg.IsPublic!=2&&msg.IsPublic!=3">
<el-select filterable v-model='transTax.ClientID' :placeholder="$t('fnc.khmingcheng')"
class="w135 _border_b_1">
<el-option v-for='item in ClientAccountList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</template>
<template v-if="(msg.IsPublic==2||msg.IsPublic==3)&&msg.IsLeader==1">
<el-input v-model='msg.RemitterName' :placeholder="$t('system.ph_name')" class="w135 _border_b_1">
</el-input>
</template>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="PaymentSync = false">
{{ $t("pub.cancelBtn") }}
</button>
<button class="normalBtn" type="primary" @click="handlingSurePayment" :loading="transTax.loading">
{{ $t("pub.sureBtn") }}
</button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -2203,6 +2257,7 @@ export default {
DataList: [],
GetFinancLogList: [],
StatusList: [],
ClientAccountListS: [],
ClientAccountList: [],
ClientTypeList: [],
accountList: [],
......@@ -2300,8 +2355,11 @@ export default {
transTax:{
Fee:'0.00',
loading: true,
FrId:0
}
FrId:0,
ClientType:'',
ClientID:''
},
PaymentSync: false
};
},
created() {
......@@ -3102,18 +3160,30 @@ export default {
err => {}
);
},
GetClientAccountList(i) { //获取客户名称并且根据费用类型和付款对象获取客户账号
this.msg.AccountNumber = '';
this.transTax.ClientID = ''
this.ClientTypeList.forEach(x => {
if (x.ID == i) {
this.msg.RemitterName = x.Name;
this.financeinfo_post_GetClientAccountList(this.transTax.ClientType);
}
})
},
financeinfo_post_GetClientAccountList(t) {
// 获取对象类型
let msg = {
ID: 0,
Type: t,
ObjID: 0,
CardNum: ""
};
CardNum: ''
}
this.apipost(
"financeinfo_post_GetClientAccountList",
msg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
let ClientAccountList = [];
data.forEach(x => {
......@@ -3501,6 +3571,34 @@ export default {
});
}
},
// 确定付款对象
handlingSurePayment(){
if (this.transTax.loading) return;
this.transTax.loading = true;
if (this.transTax.ClientType && this.transTax.ClientType != "" && this.transTax.ClientID && this.transTax.ClientID != "") {
this.apipost(
"Financial_post_UpdateFinancePayClient",
{ FrId: this.transTax.FrId, ClientType: this.transTax.ClientType, ClientID: this.transTax.ClientID},
res => {
if (res.data.resultCode == 1) {
this.Success("修改成功");
this.getPageList();
this.PaymentSync = false;
this.transTax.FrId = ''
this.transTax.ClientType = ''
this.transTax.ClientID = ''
}
this.transTax.loading = false;
},
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.Error("请选择付款对象");
}
},
// 确定编辑手续费
handlingSureFee(){
if (this.transTax.loading) return;
......@@ -3513,6 +3611,7 @@ export default {
if (res.data.resultCode == 1) {
this.Success("修改成功");
this.getPageList();
this.transTax.FrId = ''
this.handlingFeeSync = false;
}
this.transTax.loading = false;
......@@ -3527,11 +3626,16 @@ export default {
}
},
// 编辑手续费
goSet(item){
this.handlingFeeSync = true
this.transTax.loading = false
this.transTax.Fee = "0.00";
goSet(item,type){
this.transTax.FrId = item.FrID
this.transTax.loading = false
if(type==1){
this.handlingFeeSync = true
this.transTax.Fee = "0.00";
}else{
this.PaymentSync = true
}
},
goEit(type, id, edit, Conditon, pageIndex, item, iscopy = 1) {
//iscopy是否复制 现在只做type为1和2
......
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