From cf02810189bff7585c42e576608a038390955425 Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Mon, 24 Nov 2025 16:51:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(crmQuoteInfo):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E7=A8=8E=E7=8E=87=E8=BE=93=E5=85=A5=E4=B8=BA=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A1=86=E5=B9=B6=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将税率输入组件从数字输入切换为下拉选择框,限制为6%和13% - 更新税率校验规则的触发事件,从blur改为change - 设置税率字段默认值为13% - 触发税率变动时重新计算价格,确保价格正确更新 - 修改税率输入提示文字,增强用户体验 --- src/views/oa/crm/crmQuoteInfo/edit.vue | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/views/oa/crm/crmQuoteInfo/edit.vue b/src/views/oa/crm/crmQuoteInfo/edit.vue index de522dd..b84bda2 100644 --- a/src/views/oa/crm/crmQuoteInfo/edit.vue +++ b/src/views/oa/crm/crmQuoteInfo/edit.vue @@ -205,15 +205,10 @@ - + + + + @@ -542,7 +537,7 @@ const initMaterialFormData: CrmQuoteMaterialForm & { materialFlag?: string } = { unitId: undefined, unitName: undefined, beforePrice: undefined, - taxRate: undefined, + taxRate: 13, includingPrice: undefined, subtotal: undefined, remark: undefined, @@ -552,7 +547,7 @@ const materialForm = ref({ ... const materialRules = { productName: [{ required: true, message: '产品名称不能为空', trigger: 'blur' }], amount: [{ required: true, message: '数量不能为空', trigger: 'blur' }], - taxRate: [{ required: true, message: '税率不能为空', trigger: 'blur' }] + taxRate: [{ required: true, message: '请选择税率', trigger: 'change' }] }; const saleMaterialSelectRef = ref>(); const openSaleMaterialSelect = () => saleMaterialSelectRef.value?.open();