Commit a35b95d0 authored by youjie's avatar youjie

no message

parent 26183764
...@@ -1645,7 +1645,18 @@ tr._item_list td:last-child { ...@@ -1645,7 +1645,18 @@ tr._item_list td:last-child {
<i <i
v-if="active==1 && istransaction == true && item.Type==1" v-if="active==1 && istransaction == true && item.Type==1"
class="iconfont icon-shezhi1" 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> ></i>
</el-tooltip> </el-tooltip>
</td> </td>
...@@ -2087,6 +2098,49 @@ tr._item_list td:last-child { ...@@ -2087,6 +2098,49 @@ tr._item_list td:last-child {
</button> </button>
</div> </div>
</el-dialog> </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> </div>
</template> </template>
<script> <script>
...@@ -2203,6 +2257,7 @@ export default { ...@@ -2203,6 +2257,7 @@ export default {
DataList: [], DataList: [],
GetFinancLogList: [], GetFinancLogList: [],
StatusList: [], StatusList: [],
ClientAccountListS: [],
ClientAccountList: [], ClientAccountList: [],
ClientTypeList: [], ClientTypeList: [],
accountList: [], accountList: [],
...@@ -2300,8 +2355,11 @@ export default { ...@@ -2300,8 +2355,11 @@ export default {
transTax:{ transTax:{
Fee:'0.00', Fee:'0.00',
loading: true, loading: true,
FrId:0 FrId:0,
} ClientType:'',
ClientID:''
},
PaymentSync: false
}; };
}, },
created() { created() {
...@@ -3102,18 +3160,30 @@ export default { ...@@ -3102,18 +3160,30 @@ export default {
err => {} 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) { financeinfo_post_GetClientAccountList(t) {
// 获取对象类型 // 获取对象类型
let msg = { let msg = {
ID: 0,
Type: t, Type: t,
ObjID: 0, ObjID: 0,
CardNum: "" CardNum: ''
}; }
this.apipost( this.apipost(
"financeinfo_post_GetClientAccountList", "financeinfo_post_GetClientAccountList",
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
let ClientAccountList = []; let ClientAccountList = [];
data.forEach(x => { data.forEach(x => {
...@@ -3501,6 +3571,34 @@ export default { ...@@ -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(){ handlingSureFee(){
if (this.transTax.loading) return; if (this.transTax.loading) return;
...@@ -3513,6 +3611,7 @@ export default { ...@@ -3513,6 +3611,7 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("修改成功"); this.Success("修改成功");
this.getPageList(); this.getPageList();
this.transTax.FrId = ''
this.handlingFeeSync = false; this.handlingFeeSync = false;
} }
this.transTax.loading = false; this.transTax.loading = false;
...@@ -3527,11 +3626,16 @@ export default { ...@@ -3527,11 +3626,16 @@ export default {
} }
}, },
// 编辑手续费 // 编辑手续费
goSet(item){ goSet(item,type){
this.handlingFeeSync = true
this.transTax.loading = false
this.transTax.Fee = "0.00";
this.transTax.FrId = item.FrID 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) { goEit(type, id, edit, Conditon, pageIndex, item, iscopy = 1) {
//iscopy是否复制 现在只做type为1和2 //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