|
@@ -135,6 +135,12 @@ export default {
|
|
|
personListJn:[],//技能博物馆人员信息下拉框
|
|
|
fundApproval:[],//技能博物馆项目信息
|
|
|
conferenceRoom:[],//技能博物馆会议室信息
|
|
|
+ unit:[ //技能博物馆-物料库存-单位
|
|
|
+ {label:'个',value:'个'},
|
|
|
+ {label:'支',value:'支'},
|
|
|
+ {label:'套',value:'套'},
|
|
|
+ {label:'台',value:'台'},
|
|
|
+ ]
|
|
|
},
|
|
|
postInfo: {},//职位信息
|
|
|
deptInfo: {},//部门信息
|
|
@@ -603,7 +609,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- //技能博物馆-任务--默认当前登陆人
|
|
|
+ //技能博物馆-物料库存
|
|
|
+ if(that.processData.businessTable == 'material_apply'){
|
|
|
+ that.$refs.KFB.setData({department:jnDeparment})
|
|
|
+ }
|
|
|
+ //技能博物馆-任务--默认当前登陆人部门
|
|
|
if(that.processData.businessTable == 'task_management'){
|
|
|
that.$refs.KFB.setData({initiate_department:jnDeparment})
|
|
|
}
|
|
@@ -791,27 +801,16 @@ 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 == 'unit_price'||key=='amount') && this.processData.businessTable == 'material_apply'){
|
|
|
+ var that = this
|
|
|
+ setTimeout(function(){
|
|
|
+ var unit_price = that.$refs.KFB.form.getFieldValue('unit_price'),
|
|
|
+ amount = that.$refs.KFB.form.getFieldValue('amount'),
|
|
|
+ sum = Number(unit_price)*Number(amount)
|
|
|
+ that.$refs.KFB.setData({money:sum})
|
|
|
+ },0)
|
|
|
+ }
|
|
|
|
|
|
//技能博物馆 ----资金审批
|
|
|
if(key == 'project_name' && this.processData.businessTable == 'bwg_capital_approval'){
|