รายการแจ้งเตือนเพิ่มแนบเอกสารแนบท้ายคำสั่ง
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,
|
isReport: true,
|
||||||
isTemplate: false,
|
isTemplate: false,
|
||||||
}
|
}
|
||||||
const attachments = {
|
let attachments = {}
|
||||||
attachments: [_payload]
|
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);
|
return JSON.stringify(attachments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue