Create function sendDeviceInfor to mail

This commit is contained in:
joseph le 2023-10-09 16:41:09 +07:00
parent 869008a066
commit e7ede1a3b9
1 changed files with 5 additions and 4 deletions

View File

@ -53,6 +53,7 @@ export const sendDeviceInfora = async () => {
linesInventory[index],
linesInventory[index + 1]
);
let backgroundColor = index%2===0?"rgb(200 200 200 / 39%)":"white"
const showInventory = [];
let check = true;
let begin = 0;
@ -154,7 +155,7 @@ export const sendDeviceInfora = async () => {
extraItem: "yes",
});
html += `<tr><td>${PID}</td>
html += `<tr style='background-color:${backgroundColor}'><td>${PID}</td>
<td>${VID}</td>
<td>${SN}</td>
<td></td>
@ -203,7 +204,7 @@ export const sendDeviceInfora = async () => {
extraItem: "no",
});
html += `<tr><td>${PID}</td>
html += `<tr style='background-color:${backgroundColor}'><td>${PID}</td>
<td>${VID}</td>
<td>${SN}</td>
<td>${RAM}</td>
@ -246,7 +247,7 @@ export const sendDeviceInfora = async () => {
extraItem: "yes",
});
html += `<tr><td>${PID}</td>
html += `<tr style='background-color:${backgroundColor}'><td>${PID}</td>
<td>${VID}</td>
<td>${SN}</td>
<td></td>
@ -264,7 +265,7 @@ export const sendDeviceInfora = async () => {
extraItem: "no",
});
html += `<tr><td>${PID}</td>
html += `<tr style='background-color:${backgroundColor}'><td>${PID}</td>
<td>${VID}</td>
<td>${SN}</td>
<td></td>