From 7ffd709598b1e44289d9f7bb23ae6b8583aebc3a Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 08 四月 2026 16:39:29 +0800
Subject: [PATCH] 销售台账和采购台账,税率改成可输入
---
src/views/procurementManagement/procurementLedger/index.vue | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index 1eb1e39..ff2eae8 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -624,8 +624,11 @@
prop="taxRate"
v-if="currentSupplierType === 1">
<el-select v-model="productForm.taxRate"
- placeholder="璇烽�夋嫨"
+ placeholder="璇烽�夋嫨鎴栬緭鍏�"
clearable
+ filterable
+ remote
+ :remote-method="handleTaxRateRemote"
@change="mathNum">
<el-option label="1"
value="1" />
@@ -633,6 +636,9 @@
value="6" />
<el-option label="13"
value="13" />
+ <el-option v-if="customTaxRate"
+ :label="customTaxRate"
+ :value="customTaxRate" />
</el-select>
</el-form-item>
</el-col>
@@ -1049,6 +1055,7 @@
const productOperationType = ref("");
const productOperationIndex = ref("");
const currentId = ref("");
+ const customTaxRate = ref("");
const productFormData = reactive({
productForm: {
productId: "",
@@ -1917,6 +1924,20 @@
const day = String(today.getDate()).padStart(2, "0");
return `${year}-${month}-${day}`;
}
+ // 澶勭悊绋庣巼杩滅▼鎼滅储
+ const handleTaxRateRemote = query => {
+ if (query) {
+ // 楠岃瘉杈撳叆鏄惁涓烘暟瀛椾笖鍦�0-100涔嬮棿
+ const num = parseFloat(query);
+ if (!isNaN(num) && num > 0 && num < 100) {
+ customTaxRate.value = query;
+ } else {
+ customTaxRate.value = "";
+ }
+ } else {
+ customTaxRate.value = "";
+ }
+ };
const mathNum = () => {
if (!productForm.value.taxRate) {
proxy.$modal.msgWarning("璇峰厛閫夋嫨绋庣巼");
--
Gitblit v1.9.3