销售合同流程 优化创建流程
parent
c4f863a5bc
commit
314b59cf91
|
@ -336,10 +336,9 @@ public class ProcessController {
|
|||
@Transactional(rollbackFor = Exception.class)
|
||||
public void post(@RequestBody @Valid ProcessCreationForm form) throws Exception {
|
||||
ProjectProcess entity = new ProjectProcess();
|
||||
BeanUtils.copyProperties(form, entity, "sealTypes", "applyDate", "applyDept", "attachments");
|
||||
BeanUtils.copyProperties(form, entity, "sealTypes", "applyDate", "attachments");
|
||||
entity.setApplyDate(LocalDate.parse(form.getApplyDate(), formatter));
|
||||
entity.setSealTypes(SealTypeArray.of(form.getSealTypes()));
|
||||
entity.setApplyDept(String.join(",", form.getApplyDept()));
|
||||
Admin admin = InterfaceUtil.getAdmin();
|
||||
entity.setApplyPersonId(admin.getId());
|
||||
entity.setAttachmentUri(JSON.toJSONString(form.getAttachments()));
|
||||
|
|
|
@ -60,11 +60,11 @@ public class ProjectProcess implements Serializable {
|
|||
// 申请人 ID
|
||||
private Integer applyPersonId;
|
||||
|
||||
// 申请部门 部门1,部门2,部门3
|
||||
// 申请部门 部门1,部门2,部门3 (逗号分割)
|
||||
private String applyDept;
|
||||
|
||||
// 申请部门ID
|
||||
private Integer applyDeptId;
|
||||
// 申请部门ID(逗号分割)
|
||||
private String applyDeptId;
|
||||
|
||||
// 申请部门领导ID
|
||||
private Integer applyDeptLeaderId;
|
||||
|
|
|
@ -40,10 +40,11 @@ public class ProcessCreationForm {
|
|||
// 申请人
|
||||
private String applyPersonName;
|
||||
|
||||
private String[] applyDept;
|
||||
// 申请部门 部门1,部门2,部门3 (逗号分割)
|
||||
private String applyDept;
|
||||
|
||||
// 申请部门ID
|
||||
private Integer applyDeptId;
|
||||
// 申请部门ID(逗号分割)
|
||||
private String applyDeptId;
|
||||
|
||||
// 申请部门领导ID
|
||||
private Integer applyDeptLeaderId;
|
||||
|
|
|
@ -640,8 +640,8 @@
|
|||
}
|
||||
|
||||
this.selectedDepts = leveled.map(level => level.id)
|
||||
this.processForm['applyDept'] = leveled.map(level => level.name).join(',')
|
||||
this.processForm['applyDeptId'] = leveled.map(level => level.id).join(',')
|
||||
this.processForm['applyDept'] = leveled.map(level => level.name).join(',') // (逗号分割)
|
||||
this.processForm['applyDeptId'] = leveled.map(level => level.id).join(',') // (逗号分割)
|
||||
this.processForm['applyDeptLeaderId'] = opt.leaderId
|
||||
this.processForm['applyDeptLeaderName'] = opt.leaderName
|
||||
},
|
||||
|
|
|
@ -774,8 +774,8 @@
|
|||
}
|
||||
|
||||
this.selectedDepts = leveled.map(level => level.id)
|
||||
this.processForm['applyDept'] = leveled.map(level => level.name).join(',')
|
||||
this.processForm['applyDeptId'] = leveled.map(level => level.id).join(',')
|
||||
this.processForm['applyDept'] = leveled.map(level => level.name).join(',') // (逗号分割)
|
||||
this.processForm['applyDeptId'] = leveled.map(level => level.id).join(',') // (逗号分割)
|
||||
this.processForm['applyDeptLeaderId'] = opt.leaderId
|
||||
this.processForm['applyDeptLeaderName'] = opt.leaderName
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue