feat(REQ-3300) - 调整单据列表响应按钮的逻辑
This commit is contained in:
parent
5f7cd400bb
commit
e0588f42be
@ -124,7 +124,11 @@ public class ChangeRecord extends BaseEntity<ChangeRecord> {
|
||||
*/
|
||||
@TableField(value = "stamp_status")
|
||||
private VisaStampStatusEnum stampStatus;
|
||||
|
||||
/**
|
||||
* 是否申请过用印
|
||||
*/
|
||||
@TableField(value = "applied_stamp")
|
||||
private Boolean appliedStamp;
|
||||
/**
|
||||
* 合同 ID
|
||||
*/
|
||||
|
||||
@ -326,6 +326,9 @@ public class VisaHelper {
|
||||
switch (changeRecord.getStampStatus()) {
|
||||
case UNPRINTED:
|
||||
buttons.add(VisaButtonTypeEnum.REQUEST_STAMP);
|
||||
if (changeRecord.getAppliedStamp()) {
|
||||
buttons.add(VisaButtonTypeEnum.STAMP_PROGRESS);
|
||||
}
|
||||
break;
|
||||
case WITH_PRINT:
|
||||
buttons.add(VisaButtonTypeEnum.STAMP_PROGRESS);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user