Commit 7f8ea584 authored by liudong1993's avatar liudong1993

1

parent befd54a6
...@@ -173,6 +173,11 @@ ...@@ -173,6 +173,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="抵扣合并">
<el-checkbox v-model="msg.IsPlatformMergeBank" :true-label="1" :false-label="0" ></el-checkbox>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<ul> <ul>
...@@ -500,8 +505,8 @@ export default { ...@@ -500,8 +505,8 @@ export default {
BankList:[], BankList:[],
Is_Cashier:-1, Is_Cashier:-1,
Status:-1, Status:-1,
AccountNumber:'' AccountNumber:'',
IsDiJieSelect:-1
}, },
Type:2, Type:2,
AccountId:"", AccountId:"",
...@@ -966,6 +971,7 @@ export default { ...@@ -966,6 +971,7 @@ export default {
this.addMsg.FrIDs = str.substring(0,str.length-1); this.addMsg.FrIDs = str.substring(0,str.length-1);
this.addMsg.BankList = this.payMsgList; this.addMsg.BankList = this.payMsgList;
this.addMsg.Money = this.listAllMoney; this.addMsg.Money = this.listAllMoney;
this.addMsg.IsPlatformMergeBank = this.msg.IsPlatformMergeBank;
this.allLoading = true this.allLoading = true
this.apipost('Financial_post_MergeFinance',this.addMsg,r=>{ this.apipost('Financial_post_MergeFinance',this.addMsg,r=>{
if(r.data.resultCode === 1) { if(r.data.resultCode === 1) {
...@@ -991,9 +997,13 @@ export default { ...@@ -991,9 +997,13 @@ export default {
x.disabled=false x.disabled=false
}else if(x.Type===obj.Type&&x.ClientID===obj.ClientID&&x.ClientType===obj.ClientType){ }else if(x.Type===obj.Type&&x.ClientID===obj.ClientID&&x.ClientType===obj.ClientType){
x.disabled=false x.disabled=false
}else{
if(this.msg.IsPlatformMergeBank==1){
x.disabled=false
}else{ }else{
x.disabled=true x.disabled=true
} }
}
}); });
if(obj.check){ if(obj.check){
this.checkList[index] = { this.checkList[index] = {
...@@ -1034,8 +1044,18 @@ export default { ...@@ -1034,8 +1044,18 @@ export default {
this.checkList.forEach(x=>{ this.checkList.forEach(x=>{
if(x.FinanceId){ if(x.FinanceId){
count++; count++;
if(this.msg.IsPlatformMergeBank == 1){
if(x.Type==1){
allBPrice = allBPrice + x.Money; allBPrice = allBPrice + x.Money;
allWPrice = allWPrice + x.OriginalMoney; allWPrice = allWPrice + x.OriginalMoney;
}else{
allBPrice = allBPrice - x.Money;
allWPrice = allWPrice - x.OriginalMoney;
}
}else{
allBPrice = allBPrice + x.Money;
allWPrice = allWPrice + x.OriginalMoney;
}
this.addMsg.FrIDs = this.addMsg.FrIDs + x.FinanceId; this.addMsg.FrIDs = this.addMsg.FrIDs + x.FinanceId;
} }
}); });
......
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