|
@@ -132,6 +132,8 @@ export default {
|
|
|
gv:this.funName,
|
|
|
handle:this.funName1
|
|
|
},
|
|
|
+ postInfo: {},//职位信息
|
|
|
+ deptInfo: {},//部门信息
|
|
|
itemModelNameList: [], // 子表字段名
|
|
|
buttonArr:[],
|
|
|
printDisable:false//打印按钮
|
|
@@ -195,7 +197,7 @@ export default {
|
|
|
index = ihEnd + 1
|
|
|
}
|
|
|
}
|
|
|
- console.log(dynamicKeyValueList)
|
|
|
+ let that = this;
|
|
|
if (dynamicKeyValueList.length > 0) {
|
|
|
// 获取数据字典数据源
|
|
|
postAction('/sys/dict/getDictItems/getDictList', dynamicKeyValueList).then(dictData => {
|
|
@@ -207,10 +209,13 @@ export default {
|
|
|
userData.result.records.forEach(user => {
|
|
|
user.label = user.realname
|
|
|
user.value = user.username
|
|
|
+ that.postInfo[user.username] = user.post
|
|
|
+ that.deptInfo[user.username] = user.deptName
|
|
|
})
|
|
|
// 存到动态数据源中
|
|
|
this.dynamicData.userList = userData.result.records
|
|
|
this.dynamicData.add = this.add // 新增按钮
|
|
|
+
|
|
|
// 获取json
|
|
|
this.jsonData = res.result.jsonContent
|
|
|
// this.jsonData.list[2].columns[0].list[0].help = "date_1663752082983,date_1663753163575,min"
|
|
@@ -592,6 +597,13 @@ export default {
|
|
|
},
|
|
|
// 表单字段数值发生改变事件
|
|
|
handleChange (value, key) {
|
|
|
+ if(key == 'proposer' && this.processData.businessTable == 'seal_apply'){//用印申请单
|
|
|
+ this.$refs.KFB.setData({apply_department:this.deptInfo[value]})
|
|
|
+ }
|
|
|
+ if(key == 'employee_name' && this.processData.businessTable == 'separation_application'){//离职申请
|
|
|
+ this.$refs.KFB.setData({job_title:this.postInfo[value]})
|
|
|
+ }
|
|
|
+
|
|
|
//改变的表单是主子表类型时
|
|
|
if((value instanceof Array) && (key.indexOf('child&')!==-1)){
|
|
|
this.tableCalculation(value)
|