Commit 7399b335 authored by huangyuanyuan's avatar huangyuanyuan

财务单据

parent d0bce402
...@@ -1231,6 +1231,7 @@ export default { ...@@ -1231,6 +1231,7 @@ export default {
}, },
tuiDataList:[], tuiDataList:[],
currentMoney:0, currentMoney:0,
benMoney:0,
} }
},components:{ },components:{
"my-FlowChartModule": myFlowChartModule, "my-FlowChartModule": myFlowChartModule,
...@@ -1243,7 +1244,8 @@ export default { ...@@ -1243,7 +1244,8 @@ export default {
'SaleOrderModule':SaleOrderModule, 'SaleOrderModule':SaleOrderModule,
'TicketFinace':TicketFinace, 'TicketFinace':TicketFinace,
'my-HB-Bill':myhrBill, 'my-HB-Bill':myhrBill,
},methods:{ },
methods:{
payMsgListShow: function (type, index) { payMsgListShow: function (type, index) {
if(this.choiceMsg.Status==1){ if(this.choiceMsg.Status==1){
this.payMsgList.forEach(x=>{ this.payMsgList.forEach(x=>{
...@@ -1483,7 +1485,6 @@ export default { ...@@ -1483,7 +1485,6 @@ export default {
} }
}, },
Calculation(type, index){ // 计算价格 Calculation(type, index){ // 计算价格
console.log('aaaaaaaaaaaa');
if (type) { if (type) {
this.payMsgList[index].Fee = isNaN(parseFloat(this.payMsgList[index].Fee))?0:parseFloat(this.payMsgList[index].Fee); this.payMsgList[index].Fee = isNaN(parseFloat(this.payMsgList[index].Fee))?0:parseFloat(this.payMsgList[index].Fee);
this.payMsgList[index].Rate = isNaN(parseFloat(this.payMsgList[index].Rate))?0:parseFloat(this.payMsgList[index].Rate); this.payMsgList[index].Rate = isNaN(parseFloat(this.payMsgList[index].Rate))?0:parseFloat(this.payMsgList[index].Rate);
...@@ -1500,10 +1501,8 @@ export default { ...@@ -1500,10 +1501,8 @@ export default {
Rate = this.payMsg.Rate==0?1:this.payMsg.Rate, Rate = this.payMsg.Rate==0?1:this.payMsg.Rate,
Money = this.payMsg.OriginalMoney; Money = this.payMsg.OriginalMoney;
this.payMsg.allMoney = (Money*Rate)+fee; this.payMsg.allMoney = (Money*Rate)+fee;
console.log(this.payMsg,'payMsg');
} }
// console.log(Rate+"+"+fee+"+"+Money)
}, },
setAccountName(i, type, index){ setAccountName(i, type, index){
this.accountList.forEach(x=>{ this.accountList.forEach(x=>{
...@@ -1619,7 +1618,7 @@ export default { ...@@ -1619,7 +1618,7 @@ export default {
}, },
BankAccount_post_GetCashPoolList(){ // 获取资金池账 BankAccount_post_GetCashPoolList(){ // 获取资金池账
let id = 0; let id = 0;
this.AccList.forEach(x=>{ this.AccListthis.AccList.forEach(x=>{
if (x.Name === this.payMsg.AccName) { if (x.Name === this.payMsg.AccName) {
id = x.ID; id = x.ID;
} }
...@@ -1691,6 +1690,25 @@ export default { ...@@ -1691,6 +1690,25 @@ export default {
}, err => {}) }, err => {})
}, },
AuditOrRefund(){ // 保存 AuditOrRefund(){ // 保存
// console.log("保存")
let that=this;
if(this.AuditOrRefundMsg.Status=='5'){
if(that.GetDetail.AccountNumber.indexOf("东航平台")!=-1){
if(this.allMoney==0){
this.Error("请将信息填写完整!")
return;
}else{
if(this.allMoney>parseFloat(that.benMoney) + 5 || this.allMoney<parseFloat(that.benMoney) - 5){
this.Error("请检查实付金额!")
return;
}
}
// console.log("benMoney",this.benMoney)
// console.log(parseFloat(that.benMoney) - 5)
// console.log(parseFloat(that.benMoney) + 5)
}
}
let imgArr = []; let imgArr = [];
this.uploadImgList.forEach(x=>{ this.uploadImgList.forEach(x=>{
imgArr.push(x.src); imgArr.push(x.src);
...@@ -1758,7 +1776,6 @@ export default { ...@@ -1758,7 +1776,6 @@ export default {
handleAvatarSuccess(res, file) { //上传 handleAvatarSuccess(res, file) { //上传
if(res.resultCode==1){ if(res.resultCode==1){
var img_path = res.data.FullFilePath var img_path = res.data.FullFilePath
console.log(res.data)
this.imageUrl = img_path this.imageUrl = img_path
let obj = { let obj = {
src:img_path src:img_path
...@@ -1794,8 +1811,8 @@ export default { ...@@ -1794,8 +1811,8 @@ export default {
x.UnitPrice = this.$commonUtils.addCommas(x.UnitPrice.toFixed(2)) x.UnitPrice = this.$commonUtils.addCommas(x.UnitPrice.toFixed(2))
x.Money = x.Money.toFixed(2) x.Money = x.Money.toFixed(2)
x.OriginalMoney = x.OriginalMoney.toFixed(2) x.OriginalMoney = x.OriginalMoney.toFixed(2)
this.benMoney += parseFloat(x.Money);
}) })
data.Money = this.$commonUtils.addCommas(data.Money.toFixed(2)) data.Money = this.$commonUtils.addCommas(data.Money.toFixed(2))
data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money) data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money)
this.FinancialFlowTemplate_post_GetProcessList(data.FrID,data.TemplateType) this.FinancialFlowTemplate_post_GetProcessList(data.FrID,data.TemplateType)
...@@ -1851,7 +1868,17 @@ export default { ...@@ -1851,7 +1868,17 @@ export default {
AccountType_post_GetList(){ //获取账户类型下拉 AccountType_post_GetList(){ //获取账户类型下拉
this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{ this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.AccList = res.data.data; let data=res.data.data;
if(this.RB_Post_Id!=5){
data.forEach(item=>{
if(item.Name!="公社资金池" && item.Name!="水口资金池" && item.Name!="橡胶资金池" && item.Name!="地接部专户" && item.Name!="老挝购物店资金池"){
this.AccList.push(item);
}
})
}else{
this.AccList = res.data.data;
}
}else{ }else{
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -1922,11 +1949,11 @@ export default { ...@@ -1922,11 +1949,11 @@ export default {
if(this.$route.query.pageIndex){ if(this.$route.query.pageIndex){
this.pageIndex = this.$route.query.pageIndex; this.pageIndex = this.$route.query.pageIndex;
} }
this.ISGZ = this.$route.query.ISGZ ? true : false this.ISGZ = this.$route.query.ISGZ ? true : false;
},mounted(){ },mounted(){
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
this.userId = userInfo.EmployeeId; this.userId = userInfo.EmployeeId;
this.RB_Post_Id = userInfo.RB_Post_Id this.RB_Post_Id = userInfo.RB_Post_Id;
this.ID = this.$route.query.id; this.ID = this.$route.query.id;
this.queryMsg.FinanceId = this.$route.query.id; this.queryMsg.FinanceId = this.$route.query.id;
this.Financial_post_GetDetail(this.ID); this.Financial_post_GetDetail(this.ID);
......
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