|
@@ -774,26 +774,26 @@ export default {
|
|
|
}
|
|
|
|
|
|
//技能博物馆 ----部门专项预算
|
|
|
- if(key == 'department' && this.processData.businessTable == 'bwg_department_budget'){
|
|
|
- //预算年份未选择
|
|
|
- var year = this.$refs.KFB.form.getFieldValue('budget_year')
|
|
|
- if(year == '' || !year){
|
|
|
- var that =this
|
|
|
- that.$message.error('请先选择报销年份');
|
|
|
- setTimeout(function(){
|
|
|
- that.$refs.KFB.setData({department:' '})
|
|
|
- },0)
|
|
|
- }else{ //已选择年份 获取预算金额
|
|
|
- this.getAction('/oa/budget/getSelectionList',{year:year,budgetType:'部门预算',dept:value}).then(res => {
|
|
|
- if (res.success) {
|
|
|
- var money = res.result[0].amount
|
|
|
- this.$refs.KFB.setData({budget_sum:money})
|
|
|
- } else {
|
|
|
- this.$message.error(res.message)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(key == 'department' && this.processData.businessTable == 'bwg_department_budget'){
|
|
|
+ // //预算年份未选择
|
|
|
+ // var year = this.$refs.KFB.form.getFieldValue('budget_year')
|
|
|
+ // if(year == '' || !year){
|
|
|
+ // var that =this
|
|
|
+ // that.$message.error('请先选择报销年份');
|
|
|
+ // setTimeout(function(){
|
|
|
+ // that.$refs.KFB.setData({department:' '})
|
|
|
+ // },0)
|
|
|
+ // }else{ //已选择年份 获取预算金额
|
|
|
+ // this.getAction('/oa/budget/getSelectionList',{year:year,budgetType:'部门预算',dept:value}).then(res => {
|
|
|
+ // if (res.success) {
|
|
|
+ // var money = res.result[0].amount
|
|
|
+ // this.$refs.KFB.setData({budget_sum:money})
|
|
|
+ // } else {
|
|
|
+ // this.$message.error(res.message)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
//技能博物馆 ----资金审批
|
|
|
if(key == 'project_name' && this.processData.businessTable == 'bwg_capital_approval'){
|