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 modemaster
parent
99cc370025
commit
7cca3a439f
|
|
@ -245,9 +245,9 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 处理现金折扣变化
|
// 处理现金折扣变化
|
||||||
handleDiscountChange(value) {
|
handleDiscountChange(value, finalTotal) {
|
||||||
this.selectedDiscount = value;
|
this.selectedDiscount = value;
|
||||||
//todo 计算价格
|
this.order.actualPurchaseAmount = finalTotal;
|
||||||
},
|
},
|
||||||
// 处理税率变化
|
// 处理税率变化
|
||||||
handleTaxRateChange(product) {
|
handleTaxRateChange(product) {
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleDiscountChange(value) {
|
handleDiscountChange(value) {
|
||||||
this.$emit('discount-change', value);
|
this.$emit('discount-change', value, this.finalTotal);
|
||||||
},
|
},
|
||||||
handleTaxRateChange(product) {
|
handleTaxRateChange(product) {
|
||||||
// 验证税率范围并限制小数位数
|
// 验证税率范围并限制小数位数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue