stat2025 commited on
Commit
35f6a40
·
verified ·
1 Parent(s): e8b1f12

Upload 6 files

Browse files
Files changed (1) hide show
  1. app.js +14 -3
app.js CHANGED
@@ -26,8 +26,19 @@ const toast = document.getElementById("toast");
26
 
27
  const PAGE_SIZE = 24;
28
  const STATE_KEY = "icsInquiryFilters";
29
- const CONTACT_MESSAGE = (name) =>
30
- `السلام عليكم ورحمة الله وبركاته\n\nأستاذي الكريم،\nنأمل تزويدنا بموقع منشأة (${name || "العينة"})، وذلك لاستكمال بيانات الزيارة الميدانية.\n\nشاكرين لكم تعاونكم.`;
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  let rows = [];
33
  let visibleRows = [];
@@ -243,7 +254,7 @@ function createCoordinatesBlock(row) {
243
  item.append(note);
244
 
245
  if (phone) {
246
- const message = CONTACT_MESSAGE(row.establishmentName);
247
  const actions = document.createElement("div");
248
  actions.className = "contact-actions";
249
  const copyPhoneButton = document.createElement("button");
 
26
 
27
  const PAGE_SIZE = 24;
28
  const STATE_KEY = "icsInquiryFilters";
29
+ const CONTACT_MESSAGE = (row) =>
30
+ [
31
+ "السلام عليكم ورحمة الله وبركاته",
32
+ "",
33
+ "أستاذي الكريم،",
34
+ "نأمل تزويدنا بموقع المنشأة التالية، وذلك لاستكمال بيانات الزيارة الميدانية:",
35
+ "",
36
+ `منشأة: ${row.establishmentName || "-"}`,
37
+ `السجل التجاري: ${row.commercialRecord || "-"}`,
38
+ `المدينة: ${row.city || "-"}`,
39
+ "",
40
+ "شاكرين لكم تعاونكم.",
41
+ ].join("\n");
42
 
43
  let rows = [];
44
  let visibleRows = [];
 
254
  item.append(note);
255
 
256
  if (phone) {
257
+ const message = CONTACT_MESSAGE(row);
258
  const actions = document.createElement("div");
259
  actions.className = "contact-actions";
260
  const copyPhoneButton = document.createElement("button");