人员提交时,新增属性

八项作业
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", { this.getOpenerEventChannel().emit("confirm", {
DEPARTMENT_NAME: this.treeSelectData[0].DEPARTMENT_NAME, DEPARTMENT_NAME: this.treeSelectData[0].DEPARTMENT_NAME,
DEPARTMENT_ID: this.treeSelectData[0].DEPARTMENT_ID, DEPARTMENT_ID: this.treeSelectData[0].DEPARTMENT_ID,
CORP_ID: this.CORP_ID,
TYPE: this.type TYPE: this.type
}); });
uni.navigateBack(); uni.navigateBack();

View File

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