4 天以前 22229c67d87f0fae4c4bc90db106b8a1e2c49b53
src/views/salesManagement/salesLedger/index.vue
@@ -936,7 +936,7 @@
<script setup>
  import { getToken } from "@/utils/auth";
  import pagination from "@/components/PIMTable/Pagination.vue";
  import { onMounted, ref, getCurrentInstance } from "vue";
  import { onMounted, ref, computed, getCurrentInstance } from "vue";
  import { addShippingInfo, batchAdd } from "@/api/salesManagement/deliveryLedger.js";
  import { ElMessageBox, ElMessage } from "element-plus";
  import { UploadFilled, Download } from "@element-plus/icons-vue";
@@ -965,6 +965,9 @@
  import { listCustomerPrivatePool } from "@/api/basicData/customerFile.js";
  const userStore = useUserStore();
  const isAdminUser = computed(() =>
    ["admin", "普通2", "最高1"].some(r => (userStore.roles || []).includes(r))
  );
  const { proxy } = getCurrentInstance();
  const tableData = ref([]);
  const productData = ref([]);
@@ -1276,16 +1279,16 @@
    }
    return true;
  };
  const canEditLedger = row => isCurrentUserMaintainer(row);
  const canDeleteLedger = row => isCurrentUserMaintainer(row);
  const canEditLedger = row => isCurrentUserMaintainer(row) || isAdminUser.value;
  const canDeleteLedger = row => isCurrentUserMaintainer(row) || isAdminUser.value;
  const sensitiveAmountFormatter = (row, column, cellValue) => {
    if (!isCurrentUserMaintainer(row)) {
    if (!isCurrentUserMaintainer(row) && !isAdminUser.value) {
      return "*****";
    }
    return formattedNumber(row, column, cellValue);
  };
  const sensitiveAmountFormatter4 = (row, column, cellValue) => {
    if (!isCurrentUserMaintainer(row)) {
    if (!isCurrentUserMaintainer(row) && !isAdminUser.value) {
      return "*****";
    }
    return formattedAmount4(row, column, cellValue);
@@ -1408,7 +1411,7 @@
  };
  // 子表合计方法
  const summarizeChildrenTable = (param, parentRow) => {
    if (!isCurrentUserMaintainer(parentRow)) {
    if (!isCurrentUserMaintainer(parentRow) && !isAdminUser.value) {
      const { columns } = param;
      return columns.map((column, index) => {
        if (index === 0) {