人员提交时,新增属性

八项作业
liujun 2024-07-08 08:41:15 +08:00
parent bac78be6e2
commit 5aa5305982
2 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,7 @@ export default {
this.getOpenerEventChannel().emit("confirm", {
DEPARTMENT_NAME: this.treeSelectData[0].DEPARTMENT_NAME,
DEPARTMENT_ID: this.treeSelectData[0].DEPARTMENT_ID,
CORP_ID: this.CORP_ID,
TYPE: this.type
});
uni.navigateBack();

View File

@ -32,8 +32,9 @@ const processSelectedPersonnelData = (formData, list) => {
for (let i = 0; i < list.length; i++) {
const item = list[i]
form.push({
TYPE_NAME: item.desc,
TYPE_NAME: item.value,
TYPE: item.code,
TYPE_DESCRIBE: item.desc,
DEPARTMENT_ID: list[i].type === '1' ? formData[item.key_id] : '',
DEPARTMENT_NAME: list[i].type === '1' ? formData[item.key_name] : '',
USER_ID: list[i].type === '0' ? formData[item.key_id] : '',