From 2d141bd4d1d2826ff64a097e459856b41508ca55 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 06 五月 2026 15:11:04 +0800
Subject: [PATCH] 进销存pro 1.税率选择框都改为查字典
---
src/views/financialManagement/receivable/outputInvoice.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/views/financialManagement/receivable/outputInvoice.vue b/src/views/financialManagement/receivable/outputInvoice.vue
index 1f6b0a4..3e597db 100644
--- a/src/views/financialManagement/receivable/outputInvoice.vue
+++ b/src/views/financialManagement/receivable/outputInvoice.vue
@@ -98,11 +98,12 @@
<el-col :span="12">
<el-form-item label="绋庣巼" prop="taxRate">
<el-select v-model="form.taxRate" placeholder="璇烽�夋嫨绋庣巼" style="width: 100%;" @change="calculateTax">
- <el-option label="0%" :value="0" />
- <el-option label="3%" :value="3" />
- <el-option label="6%" :value="6" />
- <el-option label="9%" :value="9" />
- <el-option label="13%" :value="13" />
+ <el-option
+ v-for="dict in tax_rate"
+ :key="dict.value"
+ :label="dict.label"
+ :value="Number(dict.value)"
+ />
</el-select>
</el-form-item>
</el-col>
@@ -140,7 +141,7 @@
</template>
<script setup>
-import { ref, reactive, onMounted, computed } from "vue";
+import { ref, reactive, onMounted, computed, getCurrentInstance } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";
import FormDialog from "@/components/Dialog/FormDialog.vue";
@@ -148,6 +149,9 @@
name: "閿�椤瑰彂绁�",
});
+const { proxy } = getCurrentInstance();
+const { tax_rate } = proxy.useDict("tax_rate");
+
const filters = reactive({
invoiceCode: "",
invoiceNo: "",
--
Gitblit v1.9.3