+
+
- {{ displayPrice(totalAmount) }}
+ {{
+ displayPrice(totalAmount, "元", 2)
+ }}
- {{ receiveAmountForm.receiveAmount && displayPrice(Number(totalAmount) - storePrice(receiveAmountForm.receiveAmount)) }}
+ {{
+ receiveAmountForm.receiveAmount &&
+ displayPrice(Number(totalAmount) - storePrice(receiveAmountForm.receiveAmount), "元", 2)
+ }}
@@ -272,7 +279,7 @@ const dataRules = ref({
// 可编辑表格校验规则
const validRules = ref>({
unitId: [{ required: true, message: "必须选择" }],
- quantity: [{ required: true, type: "number", min: 1, max: 99, message: "数值范围1~99" }],
+ quantity: [{ required: true, type: "number", min: 1, message: "必需大于等于0" }],
})
// 收款金额表单校验规则
diff --git a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
index a827ced..a5f6050 100644
--- a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
+++ b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
@@ -125,18 +125,20 @@
{{
row.purchasePrice
- ? displayPrice(row.purchasePrice)
- : displayPrice(row.erpUnitVos?.find((item: any) => item.id == row.unitId)?.purchasePrice)
+ ? displayPrice(row.purchasePrice, "元", 2)
+ : displayPrice(row.erpUnitVos?.find((item: any) => item.id == row.unitId)?.purchasePrice, "元", 2)
}}
- {{ displayPrice(row.quantity * parseFloat(row.purchasePrice)) }}
+ {{ displayPrice(row.quantity * parseFloat(row.purchasePrice), "元", 2) }}
- {{ displayPrice(Number(row.erpUnitVos?.find((item: any) => item.id == row.unitId)?.purchasePrice) * row.quantity) }}
+ {{
+ displayPrice(Number(row.erpUnitVos?.find((item: any) => item.id == row.unitId)?.purchasePrice) * row.quantity, "元", 2)
+ }}
@@ -147,18 +149,23 @@
-
-
+
+
- {{ displayPrice(totalAmount) }}
+ {{
+ displayPrice(totalAmount, "元", 2)
+ }}
- {{ receiveAmountForm.receiveAmount && displayPrice(Number(totalAmount) - storePrice(receiveAmountForm.receiveAmount)) }}
+ {{
+ receiveAmountForm.receiveAmount &&
+ displayPrice(Number(totalAmount) - storePrice(receiveAmountForm.receiveAmount), "元", 2)
+ }}
@@ -272,7 +279,7 @@ const dataRules = ref({
// 可编辑表格校验规则
const validRules = ref>({
unitId: [{ required: true, message: "必须选择" }],
- quantity: [{ required: true, type: "number", min: 1, max: 99, message: "数值范围1~99" }],
+ quantity: [{ required: true, type: "number", min: 1, message: "必需大于等于0" }],
})
// 收款金额表单校验规则