From 8a70b3fbba77d059e9be0634c21c26bc7d364eba Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 14 Feb 2024 15:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E5=8D=95=2060%=EF=BC=88=E6=8E=A5=E5=85=A5=EF=BC=89=E3=80=90?= =?UTF-8?q?=E5=8F=AF=E4=BB=98=E6=AC=BE=E7=9A=84=E9=87=87=E8=B4=AD=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=8D=95=E5=88=97=E8=A1=A8=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/constants.ts | 11 + .../finance/payment/FinancePaymentForm.vue | 9 +- .../components/FinancePaymentItemForm.vue | 52 +++-- .../PurchaseInPaymentEnableList.vue | 199 ++++++++++++++++++ .../components/PurchaseOrderInEnableList.vue | 2 +- 5 files changed, 248 insertions(+), 25 deletions(-) create mode 100644 src/views/erp/purchase/in/components/PurchaseInPaymentEnableList.vue diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 47714945..76ce3e77 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -418,3 +418,14 @@ export const TradeOrderStatusEnum = { name: '已取消' } } + +// ========== ERP - 企业资源计划 ========== + +export const ErpBizType = { + PURCHASE_ORDER: 10, + PURCHASE_IN: 11, + PURCHASE_RETURN: 12, + SALE_ORDER: 20, + SALE_OUT: 21, + SALE_RETURN: 22 +} diff --git a/src/views/erp/finance/payment/FinancePaymentForm.vue b/src/views/erp/finance/payment/FinancePaymentForm.vue index adfadd21..3da2e6ef 100644 --- a/src/views/erp/finance/payment/FinancePaymentForm.vue +++ b/src/views/erp/finance/payment/FinancePaymentForm.vue @@ -83,6 +83,7 @@ @@ -196,11 +197,9 @@ watch( if (!val) { return } - const totalPrice = val.items.reduce((prev, curr) => prev + curr.totalPrice, 0) - const discountPrice = - val.discountPercent != null ? erpPriceMultiply(totalPrice, val.discountPercent / 100.0) : 0 - formData.value.discountPrice = discountPrice - formData.value.totalPrice = totalPrice - discountPrice + const totalPrice = val.items.reduce((prev, curr) => prev + curr.paymentPrice, 0) + formData.value.totalPrice = totalPrice + formData.value.paymentPrice = totalPrice - val.discountPrice }, { deep: true } ) diff --git a/src/views/erp/finance/payment/components/FinancePaymentItemForm.vue b/src/views/erp/finance/payment/components/FinancePaymentItemForm.vue index 54dcb8b9..03f53eab 100644 --- a/src/views/erp/finance/payment/components/FinancePaymentItemForm.vue +++ b/src/views/erp/finance/payment/components/FinancePaymentItemForm.vue @@ -59,24 +59,29 @@ - + 添加采购入库单 + + 添加采购入库单 + 添加采购退货单 + + diff --git a/src/views/erp/purchase/order/components/PurchaseOrderInEnableList.vue b/src/views/erp/purchase/order/components/PurchaseOrderInEnableList.vue index 85d1fda3..e10694a0 100644 --- a/src/views/erp/purchase/order/components/PurchaseOrderInEnableList.vue +++ b/src/views/erp/purchase/order/components/PurchaseOrderInEnableList.vue @@ -73,7 +73,7 @@ - +