张诺
2025-07-24 5f09dde37cbe8e22d7af973ee5bc3a2b72abff6e
src/views/procureMent/index.vue
@@ -85,7 +85,10 @@
// 引入字典数据
const { proxy } = getCurrentInstance();
const dialogFormVisible = ref(false);
const form = ref({});
const form = ref({
  taxRate: 13,
  freight: 20,
});
const title = ref("");
// 状态变量
const loading = ref(false);
@@ -110,6 +113,8 @@
// 方法定义
const handleQuery = () => {
  loading.value = true;
   current.value = 1;
   pageSize.value = 10;
  // 这里添加实际的查询逻辑
  getList();
};
@@ -150,6 +155,7 @@
  { prop: "purchaseQuantity", label: "采购数量", minWidth: 100 },
  { prop: "priceIncludingTax", label: "单价(含税)", minWidth: 150 },
  { prop: "totalPriceIncludingTax", label: "总价(含税)", minWidth: 100 },
  { prop: "freight", label: "运费", minWidth: 100 },
  { prop: "taxRate", label: "税率", minWidth: 100 },
  { prop: "priceExcludingTax", label: "不含税单价", minWidth: 100 },
  { prop: "registrantId", label: "登记人", minWidth: 100,
@@ -217,7 +223,8 @@
    totalPriceExcludingTax: "",
    priceIncludingTax: "",
    totalPriceIncludingTax: "",
    taxRate: "13",
    taxRate: 13,
    freight:20,
    registrantId: userInfo.value.userId,
    registrationDate: new Date().toISOString().split("T")[0],
  };
@@ -262,6 +269,7 @@
});
const handleDeleteSuccess = (row) => {
  ElMessage.success("删除成功:" + row.supplierName);
   handleQuery()
};
// 成功
const handleSuccess = (val) => {