张诺
12 小时以前 b14930d7ac2ce362403ea28d0bae724161bc1f3c
src/pages/procurementManagement/procurementLedger/index.vue
@@ -3,7 +3,7 @@
    <!-- 使用通用页面头部组件 -->
    <PageHeader title="采购台账"
                @back="goBack" />
    <!-- 搜索和筛选区域 -->
    <!-- 搜索和筛选区 -->
    <view class="search-section">
      <view class="search-bar">
        <view class="search-input">
@@ -63,7 +63,7 @@
            </view>
            <view class="detail-row">
              <text class="detail-label">合同金额(元)</text>
              <text class="detail-value highlight">{{ item.contractAmount }}</text>
              <text class="detail-value highlight">{{ formatNumber(item.contractAmount) }}</text>
            </view>
            <up-divider></up-divider>
            <view class="detail-info">
@@ -116,15 +116,15 @@
  } from "@/api/procurementManagement/procurementLedger";
  const userStore = useUserStore();
  const approvalStatusText = {
    1: "待审核",
    1: "待审批",
    2: "审批中",
    3: "审批通过",
    4: "审批失败",
  };
  // 获取审批状态标签类型
  // 获取审批状态标签类�?
  const getApprovalStatusType = status => {
    const typeMap = {
      1: "info", // 待审核 - 灰色
      1: "info", // 待审批 - 灰色
      2: "warning", // 审批中 - 橙色
      3: "success", // 审批通过 - 绿色
      4: "error", // 审批失败 - 红色
@@ -136,6 +136,11 @@
  // 采购台账数据
  const ledgerList = ref([]);
  // 格式化金额
  const formatNumber = value => {
    return parseFloat(value || 0).toFixed(3);
  };
  // 返回上一页
  const goBack = () => {
@@ -258,7 +263,7 @@
              });
            })
            .catch(error => {
              // 对于 request 封装返回的 '500' 或其他 code,错误提示已经在 request 里 toast 过了,这里不再重复覆盖
              // 对于 request 封装返回的 '500' 或其code,错误提示已经在 request 中处理了,这里不再重复覆盖
              if (error === "500" || typeof error === "number") {
                return;
              }
@@ -290,5 +295,5 @@
<style scoped lang="scss">
  @import "@/styles/procurement-common.scss";
  // 采购台账特有样式(如有需要可在此添加)
  // 采购台账特有样式(如 需要可在此添加)
</style>