Commit 6ca25e04 authored by 黄媛媛's avatar 黄媛媛

update

parent 92a16069
...@@ -558,6 +558,7 @@ import myFlowChartModule from "./FinancialSubmodule/FlowChartModule.vue"; ...@@ -558,6 +558,7 @@ import myFlowChartModule from "./FinancialSubmodule/FlowChartModule.vue";
export default { export default {
data(){ data(){
return{ return{
maxmoneyData:0,
detailCurrDis:false, detailCurrDis:false,
Description:"", Description:"",
msg:{ msg:{
...@@ -918,6 +919,11 @@ export default { ...@@ -918,6 +919,11 @@ export default {
// return // return
// } // }
} }
// 判断付款金额与最大金额
if(this.maxmoneyData>0 && this.allPriceTo>this.maxmoneyData){
this.Error(`根据公司规定,每张付款单不能超过${this.maxmoneyData}元,超过需额外制单,谢谢配合!`)
return;
}
//旅客名单数据组装 //旅客名单数据组装
if(!this.$route.query.edit){ if(!this.$route.query.edit){
this.msg.Type = this.$route.query.Type this.msg.Type = this.$route.query.Type
...@@ -1562,7 +1568,14 @@ export default { ...@@ -1562,7 +1568,14 @@ export default {
} }
this.Description= gj+gn+gjzd+sj+sc this.Description= gj+gn+gjzd+sj+sc
} }
} },
MaxMoney(){ // 获取最大金额
this.apipost('Financial_get_GetFinanceMoneyLimit',{}, res => {
if(res.data.resultCode == 1) {
this.maxmoneyData = res.data.data;
}
}, err => {})
},
}, },
created(){ created(){
var that=this; var that=this;
...@@ -1588,7 +1601,12 @@ export default { ...@@ -1588,7 +1601,12 @@ export default {
} }
}, err => {}) }, err => {})
}, },
mounted(){ mounted(){
// 付款单新增或修改 获取最大金额
if((this.$route.query.type && this.$route.query.type==2) || (this.$route.query.Type && this.$route.query.Type==2)){
this.MaxMoney();
}
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.department = userInfo.DepartName; this.department = userInfo.DepartName;
this.EmployeeId=userInfo.EmployeeId; this.EmployeeId=userInfo.EmployeeId;
......
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