Commit 7399b335 authored by huangyuanyuan's avatar huangyuanyuan

财务单据

parent d0bce402
......@@ -1231,6 +1231,7 @@ export default {
},
tuiDataList:[],
currentMoney:0,
benMoney:0,
}
},components:{
"my-FlowChartModule": myFlowChartModule,
......@@ -1243,7 +1244,8 @@ export default {
'SaleOrderModule':SaleOrderModule,
'TicketFinace':TicketFinace,
'my-HB-Bill':myhrBill,
},methods:{
},
methods:{
payMsgListShow: function (type, index) {
if(this.choiceMsg.Status==1){
this.payMsgList.forEach(x=>{
......@@ -1483,7 +1485,6 @@ export default {
}
},
Calculation(type, index){ // 计算价格
console.log('aaaaaaaaaaaa');
if (type) {
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);
......@@ -1500,10 +1501,8 @@ export default {
Rate = this.payMsg.Rate==0?1:this.payMsg.Rate,
Money = this.payMsg.OriginalMoney;
this.payMsg.allMoney = (Money*Rate)+fee;
console.log(this.payMsg,'payMsg');
}
// console.log(Rate+"+"+fee+"+"+Money)
},
setAccountName(i, type, index){
this.accountList.forEach(x=>{
......@@ -1619,7 +1618,7 @@ export default {
},
BankAccount_post_GetCashPoolList(){ // 获取资金池账
let id = 0;
this.AccList.forEach(x=>{
this.AccListthis.AccList.forEach(x=>{
if (x.Name === this.payMsg.AccName) {
id = x.ID;
}
......@@ -1691,6 +1690,25 @@ export default {
}, err => {})
},
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 = [];
this.uploadImgList.forEach(x=>{
imgArr.push(x.src);
......@@ -1758,7 +1776,6 @@ export default {
handleAvatarSuccess(res, file) { //上传
if(res.resultCode==1){
var img_path = res.data.FullFilePath
console.log(res.data)
this.imageUrl = img_path
let obj = {
src:img_path
......@@ -1794,8 +1811,8 @@ export default {
x.UnitPrice = this.$commonUtils.addCommas(x.UnitPrice.toFixed(2))
x.Money = x.Money.toFixed(2)
x.OriginalMoney = x.OriginalMoney.toFixed(2)
this.benMoney += parseFloat(x.Money);
})
data.Money = this.$commonUtils.addCommas(data.Money.toFixed(2))
data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money)
this.FinancialFlowTemplate_post_GetProcessList(data.FrID,data.TemplateType)
......@@ -1851,7 +1868,17 @@ export default {
AccountType_post_GetList(){ //获取账户类型下拉
this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{
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{
this.$message.error(res.data.message);
}
......@@ -1922,11 +1949,11 @@ export default {
if(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(){
let userInfo=this.getLocalStorage();
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.queryMsg.FinanceId = this.$route.query.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