src/views/reportAnalysis/projectProfit/index.vue
@@ -22,7 +22,12 @@
          total: pagination.total,
        }"
        @pagination="changePage"
      ></PIMTable>
      >
      <template #customerContractNo="{ row }">
         <el-button type="primary" text @click="showDetail(row)">{{ row.customerContractNo }}
               </el-button>
        </template>
      </PIMTable>
    </div>
  </div>
</template>
@@ -32,7 +37,10 @@
import { getPurchaseList } from "@/api/procurementManagement/projectProfit";
import { onMounted, getCurrentInstance } from "vue";
import { ElMessageBox } from "element-plus";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
  const route = useRoute();
const { proxy } = getCurrentInstance();
defineOptions({
@@ -58,6 +66,8 @@
      label: "销售合同号",
      align: "center",
      prop: "customerContractNo",
      dataType: "slot",
      slot: "customerContractNo",
    },
    {
      label: "客户名称",
@@ -97,6 +107,17 @@
  ]
);
const showDetail = (row) => {
 router.push({
      path: "/salesManagement/salesLedger",
      query: {
        customerContractNo: row.customerContractNo
      },
    });
};
const changePage = ({ page }) => {
  pagination.currentPage = page;
  onCurrentChange(page);