|
@@ -200,7 +200,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- // debugger
|
|
|
// console.log("==============="+this.processData);
|
|
|
// console.log("==============="+this.processData.status);
|
|
|
// console.log("==============="+this.processData.title);
|
|
@@ -215,7 +214,6 @@ export default {
|
|
|
if (!this.processData.businessTable) {
|
|
|
this.processData.businessTable = this.processData.tableName
|
|
|
}
|
|
|
- // debugger
|
|
|
this.getAction('/tbTableInfo/query', {
|
|
|
businessTable: this.processData.businessTable,
|
|
|
taskNodeId: this.processData.key,
|
|
@@ -669,9 +667,11 @@ export default {
|
|
|
//默认时间/默认当前账号
|
|
|
defualtData(item){
|
|
|
if(item[1].label =='today'){
|
|
|
- if(item[2].label){
|
|
|
+ if(item[2].label&&item[2].label!=='ss'){
|
|
|
item[0].value =moment(new Date().toLocaleDateString()).format('YYYY-MM-DD')
|
|
|
- }else{
|
|
|
+ }else if(item[2].label&&item[2].label=='ss'){
|
|
|
+ item[0].value =moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
+ } else{
|
|
|
item[0].value =moment(new Date().toLocaleDateString()).format('YYYY-MM-DD HH:mm')
|
|
|
}
|
|
|
var that = this
|
|
@@ -743,8 +743,12 @@ export default {
|
|
|
}
|
|
|
//技能博物馆-物料申领
|
|
|
if(that.processData.businessTable == 'application_form'){
|
|
|
- that.$refs.KFB.setData({department:jnDeparment})
|
|
|
+ that.$refs.KFB.setData({create_create_name:jnDeparment})
|
|
|
}
|
|
|
+ // 技能博物馆---用车申请-创建部门
|
|
|
+ if(that.processData.businessTable == 'car_apply'){
|
|
|
+ that.$refs.KFB.setData({create_department:jnDeparment})
|
|
|
+ }
|
|
|
//技能博物馆-任务--默认当前登陆人部门
|
|
|
if(that.processData.businessTable == 'task_management'){
|
|
|
that.$refs.KFB.setData({initiate_department:jnDeparment})
|
|
@@ -991,7 +995,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- // 技能博物馆---用车申请
|
|
|
+ // 技能博物馆---用车申请-用车人
|
|
|
if(key == 'car_automobilist' && this.processData.businessTable == 'car_apply'){
|
|
|
this.dynamicData.personListJn.map(item =>{
|
|
|
if(item.label == value){
|
|
@@ -999,6 +1003,15 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ // 技能博物馆---用车申请-申请人
|
|
|
+ if(key == 'applicant' && this.processData.businessTable == 'car_apply'){
|
|
|
+ this.dynamicData.personListJn.map(item =>{
|
|
|
+ if(item.label == value){
|
|
|
+ this.$refs.KFB.setData({apply_department:item.departIds_dictText})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// // 技能博物馆---物料库存--金额计算
|
|
|
// if((key == 'unit_price'||key=='amount') && this.processData.businessTable == 'material_apply'){
|
|
@@ -1028,11 +1041,11 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- // 技能博物馆---物料申领--部门
|
|
|
+ // 技能博物馆---物料申领--申领部门
|
|
|
if(key == 'get_account' && this.processData.businessTable == 'application_form'){
|
|
|
this.dynamicData.personListJn.map(item =>{
|
|
|
if(item.label == value){
|
|
|
- this.$refs.KFB.setData({department:item.departIds_dictText})
|
|
|
+ this.$refs.KFB.setData({apply_department:item.departIds_dictText})
|
|
|
}
|
|
|
})
|
|
|
}
|