Commit ff750ecd authored by youjie's avatar youjie

no message

parent e9d3b079
......@@ -302,15 +302,18 @@
</el-select>
</td>
<td>
<el-input v-model="item.OriginalMoney" @change="Calculation(1,index)" @blur="item.show=false,CalculationMoney" :placeholder="$t('rule.qsrjine')" type="number" class=" _border_b_1"></el-input>
<el-input v-model="item.OriginalMoney" @change="Calculation(1,index)"
@blur="item.show=false,CalculationMoney()"
:placeholder="$t('rule.qsrjine')" type="number" class=" _border_b_1"></el-input>
</td>
<td>
<p>{{item.CurrenName}}</p>
</td>
<td>
<el-input v-model="item.Rate" @blur="item.show=false,CalculationMoney" @change="Calculation(1,index)" type="number" class=" _border_b_1"></el-input>
<el-input v-model="item.Rate" @blur="item.show=false,CalculationMoney()" @change="Calculation(1,index)"
type="number" class=" _border_b_1"></el-input>
</td>
<td>{{moneyFormat(item.allMoney)}} <i @click="deleteRow(item,index),CalculationMoney" class="_delete_row iconfont icon-img_delete_small"></i></td>
<td>{{moneyFormat(item.allMoney)}} <i @click="deleteRow(item,index),CalculationMoney()" class="_delete_row iconfont icon-img_delete_small"></i></td>
</tr>
</template>
<tr>
......@@ -548,13 +551,13 @@ export default {
this.msg.eTradeDate = this.$route.query.eTradeDate?this.$route.query.eTradeDate:"";
this.productionDate = [this.msg.sTradeDate, this.msg.eTradeDate];
this.productionDateByTC=[this.msg.QStartDate, this.msg.QEndDate];
this.getList();
this.getList();
this.bankaccount_post_GetListS("query");
}
if(this.$route.query.ID){
this.accType = parseInt(this.$route.query.TypeId);
this.accType = parseInt(this.$route.query.TypeId);
this.AccountId=parseInt(this.$route.query.ID);
let mon1=moment().format("YYYY-MM-DD");
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.sTradeDate=mon2;
......@@ -566,7 +569,7 @@ export default {
})
this.bankaccount_post_GetList();
this.getList();
}
},methods:{
//选择付款对象出现全选框
......@@ -594,9 +597,9 @@ export default {
})
}
if(status){
this.$router.push({ name: "CapitalAllocationDetail",query:{"id":item.FinanceId,blank:'y'} })
this.$router.push({ name: "CapitalAllocationDetail",query:{"id":item.FinanceId,blank:'y'} })
}else{
this.$router.push({ name: "FinancialDocumentsDetail",query:{"id":item.FinanceId,blank:'y'} })
this.$router.push({ name: "FinancialDocumentsDetail",query:{"id":item.FinanceId,blank:'y'} })
}
},
goUrl(path,id){
......@@ -681,7 +684,7 @@ export default {
}, err => {})
},
getList(){ //获取列表
this.checkList=[];
this.checkList=[];
this.loadingTable = true
if( this.msg.ClientID == '' ){
this.msg.ClientID = 0;
......@@ -736,7 +739,7 @@ export default {
})
});
this.DataList = data
if( this.msg.ClientID == 0 ){
this.msg.ClientID = '';
}
......@@ -928,6 +931,23 @@ export default {
if(r.data.resultCode === 1) {
this.addChuNa = false;
this.saveMsg=[];
this.payMsgList = []
this.payMsg = {
ID:0,
FinanceId:'',
Type:'',
AccountId:'',
OriginalMoney:0,
CurrencyId:'',
Rate:0,
Fee:0,
Name:'',
CurrenName:'',
Account:'',
balance:'',
allMoney:0,
show:false,
}
this.getList()
}else{
this.$message.error(r.data.message)
......@@ -1025,6 +1045,7 @@ export default {
this.payMsg.allMoney = allBPrice * 1;
this.addMsg.FrIDs = s;
this.addChuNa = true;
this.listAllMoney = allBPrice * 1
}else{
this.$message.error(this.$t('fnc.a_qxzdanju'))
}
......@@ -1053,10 +1074,11 @@ export default {
this.CalculationMoney();
},
CalculationMoney(){
// this.listAllMoney = 0;
// this.payMsgList.forEach(x=>{
// this.listAllMoney = this.listAllMoney + x.allMoney
// })
this.listAllMoney = 0;
this.payMsgList.forEach(x=>{
// this.listAllMoney = this.listAllMoney + x.allMoney
this.listAllMoney += x.allMoney
})
},
financeinfo_post_GetCostTypeList(){ // 费用类型
this.apipost('financeinfo_post_GetCostTypeList',{Name:'',type:0,DepartIDs:this.DepartIDs},res=>{
......@@ -1086,7 +1108,7 @@ export default {
this.picIsShow= false;
// this.hideFlashMan = true;
}else{
if(i.Content.substring(i.Content.lastIndexOf('.')+1,i.Content.length).toUpperCase()=='PDF'){
if(i.Content.substring(i.Content.lastIndexOf('.')+1,i.Content.length).toUpperCase()=='PDF'){
this.previewPDF(i.Url)
}else{
window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url)
......@@ -1145,4 +1167,4 @@ export default {
this.getCompanyList();
}
}
</script>
\ No newline at end of file
</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