feat(order): add PDF export functionality and readonly order display

- Implemented PDF export feature using html2canvas and jspdf
- Added export button with loading state and disabled UI during export
- Created OrderInfoDisplay component for readonly order information
- Updated dependencies to include html2canvas and jspdf
- Modified webpack config to transpile html2canvas related packages
- Replaced OrderInfo component with OrderInfoDisplay in approval views
- Adjusted form labels and layout for better readability
- Fixed data loading state management
- Improved UI styling for PDF export mode
dev_1.0.0
chenhao 2025-11-21 09:18:14 +08:00
parent 99cc370025
commit 7cca3a439f
2 changed files with 3 additions and 3 deletions

View File

@ -245,9 +245,9 @@ export default {
});
},
//
handleDiscountChange(value) {
handleDiscountChange(value, finalTotal) {
this.selectedDiscount = value;
//todo
this.order.actualPurchaseAmount = finalTotal;
},
//
handleTaxRateChange(product) {

View File

@ -285,7 +285,7 @@ export default {
},
methods: {
handleDiscountChange(value) {
this.$emit('discount-change', value);
this.$emit('discount-change', value, this.finalTotal);
},
handleTaxRateChange(product) {
//