gaoluyang
2 天以前 43f105070cf75a057d1d0ce4ff330c3b19a21ab0
src/views/procurementManagement/paymentEntry/index.vue
@@ -72,7 +72,7 @@
        @selection-change="handleSelectionChange"
        :tableLoading="tableLoading"
        @pagination="pagination"
        :total="total"
        :total="page.total"
      ></PIMTable>
    </div>
    <el-dialog
@@ -269,6 +269,10 @@
      return params ? parseFloat(params).toFixed(2) : 0;
    },
  },
  {
    label: "录入人",
    prop: "issUer",
  },
]);
const tableData = ref([]);
const selectedRows = ref([]);
@@ -278,8 +282,8 @@
const page = reactive({
  current: 1,
  size: 100,
   total: 0,
});
const total = ref(0);
// 用户信息表单弹框数据
const operationType = ref("");
@@ -348,7 +352,7 @@
  invoiceListPage({ ...searchForm, ...page }).then((res) => {
    tableLoading.value = false;
    tableData.value = res.records;
    total.value = res.total;
      page.total = res.total;
  });
};
// 表格选择数据
@@ -441,6 +445,12 @@
const handleDelete = () => {
  let ids = [];
  if (selectedRows.value.length > 0) {
      // 检查是否有他人维护的数据
      const unauthorizedData = selectedRows.value.filter(item => item.issUer !== userStore.nickName);
      if (unauthorizedData.length > 0) {
         proxy.$modal.msgWarning("不可删除他人维护的数据");
         return;
      }
    ids = selectedRows.value.map((item) => item.id);
  } else {
    proxy.$modal.msgWarning("请选择数据");