sen
2026-01-29 fea2d693c33fdbcb4c8304a96a4e584829cb437b
ui/admin-ui3/src/components/ClaimBillDialog/index.vue
@@ -36,11 +36,11 @@
        <el-descriptions-item label="待认领金额">
          <span class="text-danger font-bold">{{ remainingAmountDr }}</span>
        </el-descriptions-item v-if="isViewMode">
          <el-descriptions-item label="关联账单类型">
          <span  v-if="detail.incomeExpenseFlag == 0">
        <el-descriptions-item label="关联账单类型">
          <span v-if="detail.incomeExpenseFlag == 0">
            客户
          </span>
          <span  v-if="detail.incomeExpenseFlag == 1">
          <span v-if="detail.incomeExpenseFlag == 1">
            供应商
          </span>
        </el-descriptions-item>
@@ -158,7 +158,7 @@
import { addFundFlowClaimDetailClaim } from "@/api/cwgl/fundFlow";
import { delFundFlowClaimDetail, } from "@/api/cwgl/fundFlowClaimDetail";
import { listFundFlowClaimDetail } from "@/api/cwgl/fundFlowClaimDetail";
import {  getFundFlow, } from "@/api/cwgl/fundFlow";
import { getFundFlow, } from "@/api/cwgl/fundFlow";
const { proxy } = useCurrentInstance();
const { sys_income_expenses } = proxy.useDict('sys_income_expenses');
@@ -261,7 +261,7 @@
// --- 新增:获取列表数据的方法 ---
const getList = async () => {
  if (!detail.value.id) return;
  loading.value = true;
  try {
    const res = await listFundFlowClaimDetail({
@@ -270,11 +270,11 @@
    });
    if (res.code === 200) {
      detail.value.claimDetails = res.rows;
     detail.value.claimDetails.forEach((item: any) => {
      if (item.$edit === undefined) {
        item.$edit = false;
      }
    });
      detail.value.claimDetails.forEach((item: any) => {
        if (item.$edit === undefined) {
          item.$edit = false;
        }
      });
      total.value = res.total;
    }
  } catch (error) {
@@ -283,8 +283,8 @@
    loading.value = false;
  }
};
const handleExport =()=>{
  proxy.download("/cwgl/fundFlowClaimDetail/export",{...queryParams.value})
const handleExport = () => {
  proxy.download("/cwgl/fundFlowClaimDetail/export", { ...queryParams.value })
}
// 打开弹窗
@@ -400,8 +400,13 @@
    return delFundFlowClaimDetail(row.id);
  }).then((res) => {
    if (res.code == 200) {
    proxy.$modal.msgSuccess("删除成功");
      getList(); // 使用统一的 getList 方法
      getFundFlow(detail.value.id).then((res) => {
        if (res.code == 200) {
          detail.value = res.data;
          getList(); // 使用统一的 getList 方法
          proxy.$modal.msgSuccess("删除成功");
        }
      });
    }
@@ -424,7 +429,7 @@
// 回填弹窗选中的数据
const receivablForm = (data: any) => {
    const defaultCompanyType = detail.value.incomeExpenseFlag == 0 ? '客户' : '供应商';
  const defaultCompanyType = detail.value.incomeExpenseFlag == 0 ? '客户' : '供应商';
  if (currentRowIndex.value !== null && data) {
    const row = detail.value.claimDetails[currentRowIndex.value];