bep40 commited on
Commit
cc21389
·
verified ·
1 Parent(s): d623973

Upload HUONG-DAN-CAP-NHAT.md

Browse files
Files changed (1) hide show
  1. HUONG-DAN-CAP-NHAT.md +63 -0
HUONG-DAN-CAP-NHAT.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HƯỚNG DẪN CẬP NHẬT 100% TÍNH NĂNG
2
+
3
+ ## Vấn đề: index.html quá lớn (177KB) nên không thể edit trực tiếp
4
+
5
+ ## Cách 1: Thay thế index.html (Khuyến nghị)
6
+ 1. Download file `index-updated.html` từ repo (file tôi đã upload)
7
+ 2. Copy toàn bộ nội dung file đó
8
+ 3. Paste vào `index.html` hiện tại
9
+ 4. Save
10
+
11
+ ## Cách 2: Chỉ thêm Script Tags (Nếu muốn giừ lại index.html hiện tại)
12
+
13
+ ### Bước 1: Mở index.html hiện tại
14
+ - Trong Hub, vào Files → index.html
15
+ - Nhấn Edit (hoặc download về)
16
+
17
+ ### Bước 2: Tìm thẻ đóng `</body>`
18
+ - Ấn Ctrl+F, tìm `</body>`
19
+
20
+ ### Bước 3: Thêm các dòng này TRƯỚC `</body>`:
21
+
22
+ ```html
23
+ <!-- Quote System -->
24
+ <script src="quote-ui.js"></script>
25
+ <script src="vai-complete-quote.js"></script>
26
+ <script src="export-functions.js"></script>
27
+
28
+ <!-- ExcelJS for export -->
29
+ <script src="https://cdn.jsdelivr.net/npm/exceljs@4.4.0/dist/exceljs.min.js"></script>
30
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
31
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
32
+ ```
33
+
34
+ ### Bước 4: Save file
35
+
36
+ ## Cách 3: Dùng GitHub (Nếu bạn có kết nối)
37
+
38
+ ### Tôi đã upload 3 file quan trọng:
39
+ 1. ✅ `quote-ui.js` - UI buttons (Lưu, Đơn hàng, GH Excel, GH PDF)
40
+ 2. ✅ `vai-complete-quote.js` - All functions (VAI_ORDERS, exportExcel, exportPDF, etc.)
41
+ 3. ✅ `export-functions.js` - Export helpers
42
+
43
+ ### Chỉ cần index.html load được 1 trong 3 file này là hoạt động.
44
+
45
+ ## KIỂM TRA SAU KHI CẬP NHẬT
46
+
47
+ Mở V.AISTUDIO Space, nhấn F12 (Console), gõ:
48
+ ```javascript
49
+ console.log('VAI_ORDERS:', VAI_ORDERS);
50
+ console.log('exportDeliveryExcel:', typeof exportDeliveryExcel);
51
+ console.log('exportDeliveryPDF:', typeof exportDeliveryPDF);
52
+ ```
53
+
54
+ Nếu thấy `function` là thành công!
55
+
56
+ ## LINK FILES:
57
+ - quote-ui.js: https://huggingface.co/bep40/V.AISTUDIO/blob/main/quote-ui.js
58
+ - vai-complete-quote.js: https://huggingface.co/bep40/V.AISTUDIO/blob/main/vai-complete-quote.js
59
+ - export-functions.js: https://huggingface.co/bep40/V.AISTUDIO/blob/main/export-functions.js
60
+
61
+ ## LƯU Ý:
62
+ File `index-updated.html` tôi upload CÓ THỂ nạp luôn các script, nhưng nó chỉ là test page.
63
+ Để có 100% tính năng, bạn cần merge các script tags vào index.html thật.