diff --git a/apps/web-antd/src/views/erp/finance/payment/modules/item-form.vue b/apps/web-antd/src/views/erp/finance/payment/modules/item-form.vue index 3b2289bb7..777d702db 100644 --- a/apps/web-antd/src/views/erp/finance/payment/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/finance/payment/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:payment-price', + 'update:totalPrice', + 'update:paymentPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalPaymentPrice = paymentPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:payment-price', finalPaymentPrice); + emit('update:totalPrice', totalPrice); + emit('update:paymentPrice', finalPaymentPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/finance/receipt/modules/item-form.vue b/apps/web-antd/src/views/erp/finance/receipt/modules/item-form.vue index 5563f5252..be48f695a 100644 --- a/apps/web-antd/src/views/erp/finance/receipt/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/finance/receipt/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:receipt-price', + 'update:totalPrice', + 'update:receiptPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalReceiptPrice = receiptPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:receipt-price', finalReceiptPrice); + emit('update:totalPrice', totalPrice); + emit('update:receiptPrice', finalReceiptPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/purchase/in/modules/item-form.vue b/apps/web-antd/src/views/erp/purchase/in/modules/item-form.vue index 81f33b230..d53b4fe7f 100644 --- a/apps/web-antd/src/views/erp/purchase/in/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/purchase/in/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/purchase/order/modules/item-form.vue b/apps/web-antd/src/views/erp/purchase/order/modules/item-form.vue index 106ebd322..98eb5a413 100644 --- a/apps/web-antd/src/views/erp/purchase/order/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/purchase/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/purchase/return/modules/item-form.vue b/apps/web-antd/src/views/erp/purchase/return/modules/item-form.vue index afa352131..93413dfa3 100644 --- a/apps/web-antd/src/views/erp/purchase/return/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/purchase/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/sale/order/modules/item-form.vue b/apps/web-antd/src/views/erp/sale/order/modules/item-form.vue index a9f9c8a27..f167080b0 100644 --- a/apps/web-antd/src/views/erp/sale/order/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/sale/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/sale/out/modules/item-form.vue b/apps/web-antd/src/views/erp/sale/out/modules/item-form.vue index 5b03eeb69..b451f7a90 100644 --- a/apps/web-antd/src/views/erp/sale/out/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/sale/out/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antd/src/views/erp/sale/return/modules/item-form.vue b/apps/web-antd/src/views/erp/sale/return/modules/item-form.vue index dcf559394..f345f1fb9 100644 --- a/apps/web-antd/src/views/erp/sale/return/modules/item-form.vue +++ b/apps/web-antd/src/views/erp/sale/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/finance/payment/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/finance/payment/modules/item-form.vue index 61cab62a3..47d356a7f 100644 --- a/apps/web-antdv-next/src/views/erp/finance/payment/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/finance/payment/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:payment-price', + 'update:totalPrice', + 'update:paymentPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalPaymentPrice = paymentPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:payment-price', finalPaymentPrice); + emit('update:totalPrice', totalPrice); + emit('update:paymentPrice', finalPaymentPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/finance/receipt/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/finance/receipt/modules/item-form.vue index 6f32c4d6c..4491b51e0 100644 --- a/apps/web-antdv-next/src/views/erp/finance/receipt/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/finance/receipt/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:receipt-price', + 'update:totalPrice', + 'update:receiptPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalReceiptPrice = receiptPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:receipt-price', finalReceiptPrice); + emit('update:totalPrice', totalPrice); + emit('update:receiptPrice', finalReceiptPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/purchase/in/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/purchase/in/modules/item-form.vue index c720ea3bd..683a1880e 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/in/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/purchase/in/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/purchase/order/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/purchase/order/modules/item-form.vue index f2f5aa143..c409d0413 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/order/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/purchase/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/purchase/return/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/purchase/return/modules/item-form.vue index d56218a49..349910f27 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/return/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/purchase/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/sale/order/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/sale/order/modules/item-form.vue index b1dc708e8..95c722035 100644 --- a/apps/web-antdv-next/src/views/erp/sale/order/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/sale/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/sale/out/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/sale/out/modules/item-form.vue index 80f4b832c..42af1d4b2 100644 --- a/apps/web-antdv-next/src/views/erp/sale/out/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/sale/out/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-antdv-next/src/views/erp/sale/return/modules/item-form.vue b/apps/web-antdv-next/src/views/erp/sale/return/modules/item-form.vue index d67376843..94946bd61 100644 --- a/apps/web-antdv-next/src/views/erp/sale/return/modules/item-form.vue +++ b/apps/web-antdv-next/src/views/erp/sale/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/finance/payment/modules/item-form.vue b/apps/web-ele/src/views/erp/finance/payment/modules/item-form.vue index c22e49f83..8314d48e7 100644 --- a/apps/web-ele/src/views/erp/finance/payment/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/finance/payment/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:payment-price', + 'update:totalPrice', + 'update:paymentPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalPaymentPrice = paymentPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:payment-price', finalPaymentPrice); + emit('update:totalPrice', totalPrice); + emit('update:paymentPrice', finalPaymentPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/finance/receipt/modules/item-form.vue b/apps/web-ele/src/views/erp/finance/receipt/modules/item-form.vue index 1226cad4b..09fe4b03e 100644 --- a/apps/web-ele/src/views/erp/finance/receipt/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/finance/receipt/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:total-price', - 'update:receipt-price', + 'update:totalPrice', + 'update:receiptPrice', ]); const tableData = ref([]); // 表格数据 @@ -110,8 +110,8 @@ watch( ); const finalReceiptPrice = receiptPrice - (props.discountPrice || 0); // 通知父组件更新 - emit('update:total-price', totalPrice); - emit('update:receipt-price', finalReceiptPrice); + emit('update:totalPrice', totalPrice); + emit('update:receiptPrice', finalReceiptPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/purchase/in/modules/item-form.vue b/apps/web-ele/src/views/erp/purchase/in/modules/item-form.vue index 6ec8a500c..b6ce46521 100644 --- a/apps/web-ele/src/views/erp/purchase/in/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/purchase/in/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/purchase/order/modules/item-form.vue b/apps/web-ele/src/views/erp/purchase/order/modules/item-form.vue index 0d32f3a62..9d1e89f23 100644 --- a/apps/web-ele/src/views/erp/purchase/order/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/purchase/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/purchase/return/modules/item-form.vue b/apps/web-ele/src/views/erp/purchase/return/modules/item-form.vue index 93e24edd9..5cefbf2f1 100644 --- a/apps/web-ele/src/views/erp/purchase/return/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/purchase/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/sale/order/modules/item-form.vue b/apps/web-ele/src/views/erp/sale/order/modules/item-form.vue index 0a0aef785..904230910 100644 --- a/apps/web-ele/src/views/erp/sale/order/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/sale/order/modules/item-form.vue @@ -32,8 +32,8 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:total-price', + 'update:discountPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -113,8 +113,8 @@ watch( : erpPriceMultiply(totalPrice, props.discountPercent / 100); const finalTotalPrice = totalPrice - discountPrice!; // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/sale/out/modules/item-form.vue b/apps/web-ele/src/views/erp/sale/out/modules/item-form.vue index 3ec5996b3..60581f8e1 100644 --- a/apps/web-ele/src/views/erp/sale/out/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/sale/out/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, ); diff --git a/apps/web-ele/src/views/erp/sale/return/modules/item-form.vue b/apps/web-ele/src/views/erp/sale/return/modules/item-form.vue index 3e169a983..3c70bc686 100644 --- a/apps/web-ele/src/views/erp/sale/return/modules/item-form.vue +++ b/apps/web-ele/src/views/erp/sale/return/modules/item-form.vue @@ -34,9 +34,9 @@ const props = withDefaults(defineProps(), { const emit = defineEmits([ 'update:items', - 'update:discount-price', - 'update:other-price', - 'update:total-price', + 'update:discountPrice', + 'update:otherPrice', + 'update:totalPrice', ]); const tableData = ref([]); // 表格数据 @@ -122,9 +122,9 @@ watch( const finalTotalPrice = discountedPrice + (props.otherPrice || 0); // 通知父组件更新 - emit('update:discount-price', discountPrice); - emit('update:other-price', props.otherPrice || 0); - emit('update:total-price', finalTotalPrice); + emit('update:discountPrice', discountPrice); + emit('update:otherPrice', props.otherPrice || 0); + emit('update:totalPrice', finalTotalPrice); }, { deep: true }, );