รายการแจ้งเตือนเพิ่มแนบเอกสารแนบท้ายคำสั่ง
This commit is contained in:
parent
7e474f6652
commit
2bb44003c0
1 changed files with 19 additions and 3 deletions
|
|
@ -581,9 +581,25 @@ export async function PayloadSendNoti(commandId: string) {
|
|||
isReport: true,
|
||||
isTemplate: false,
|
||||
}
|
||||
const attachments = {
|
||||
attachments: [_payload]
|
||||
};
|
||||
let attachments = {}
|
||||
if (_command.commandType.isUploadAttachment === true) {
|
||||
const _payloadAtt = {
|
||||
name: _command && _command.commandType
|
||||
? `เอกสารแนบท้ายคำสั่ง${_command.commandType.name}`
|
||||
: "",
|
||||
url: `${process.env.API_URL}/salary/file/ระบบออกคำสั่ง/แนบท้าย/${commandId}/แนบท้าย`,
|
||||
isReport: true,
|
||||
isTemplate: false,
|
||||
}
|
||||
attachments = {
|
||||
attachments: [_payload, _payloadAtt]
|
||||
};
|
||||
}
|
||||
else {
|
||||
attachments = {
|
||||
attachments: [_payload]
|
||||
};
|
||||
}
|
||||
return JSON.stringify(attachments);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue