fix(workspace): 统一 ERP 金额更新事件 emit 命名
parent
019473e9bc
commit
2e397a2c64
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:payment-price',
|
'update:paymentPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:payment-price', finalPaymentPrice);
|
emit('update:paymentPrice', finalPaymentPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:receipt-price',
|
'update:receiptPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:receipt-price', finalReceiptPrice);
|
emit('update:receiptPrice', finalReceiptPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:payment-price',
|
'update:paymentPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:payment-price', finalPaymentPrice);
|
emit('update:paymentPrice', finalPaymentPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:receipt-price',
|
'update:receiptPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:receipt-price', finalReceiptPrice);
|
emit('update:receiptPrice', finalReceiptPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:payment-price',
|
'update:paymentPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
const finalPaymentPrice = paymentPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:payment-price', finalPaymentPrice);
|
emit('update:paymentPrice', finalPaymentPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
'update:receipt-price',
|
'update:receiptPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
const tableData = ref<ErpFinanceReceiptApi.FinanceReceiptItem[]>([]); // 表格数据
|
||||||
|
|
@ -110,8 +110,8 @@ watch(
|
||||||
);
|
);
|
||||||
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
const finalReceiptPrice = receiptPrice - (props.discountPrice || 0);
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:total-price', totalPrice);
|
emit('update:totalPrice', totalPrice);
|
||||||
emit('update:receipt-price', finalReceiptPrice);
|
emit('update:receiptPrice', finalReceiptPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseInApi.PurchaseInItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseOrderApi.PurchaseOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpPurchaseReturnApi.PurchaseReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOrderApi.SaleOrderItem[]>([]); // 表格数据
|
||||||
|
|
@ -113,8 +113,8 @@ watch(
|
||||||
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
: erpPriceMultiply(totalPrice, props.discountPercent / 100);
|
||||||
const finalTotalPrice = totalPrice - discountPrice!;
|
const finalTotalPrice = totalPrice - discountPrice!;
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleOutApi.SaleOutItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:items',
|
'update:items',
|
||||||
'update:discount-price',
|
'update:discountPrice',
|
||||||
'update:other-price',
|
'update:otherPrice',
|
||||||
'update:total-price',
|
'update:totalPrice',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
const tableData = ref<ErpSaleReturnApi.SaleReturnItem[]>([]); // 表格数据
|
||||||
|
|
@ -122,9 +122,9 @@ watch(
|
||||||
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
const finalTotalPrice = discountedPrice + (props.otherPrice || 0);
|
||||||
|
|
||||||
// 通知父组件更新
|
// 通知父组件更新
|
||||||
emit('update:discount-price', discountPrice);
|
emit('update:discountPrice', discountPrice);
|
||||||
emit('update:other-price', props.otherPrice || 0);
|
emit('update:otherPrice', props.otherPrice || 0);
|
||||||
emit('update:total-price', finalTotalPrice);
|
emit('update:totalPrice', finalTotalPrice);
|
||||||
},
|
},
|
||||||
{ deep: true },
|
{ deep: true },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue