zhangwei
2025-08-29 e1b04baf60478e3de9e41e1fc39e1e4346321817
src/views/system/dept/utils/hook.tsx
@@ -2,7 +2,7 @@
import editForm from "../form.vue";
import { handleTree } from "@/utils/tree";
import { message } from "@/utils/message";
import { zhaobiaoPageOrder, findWechatOpenId } from "@/api/item/index";
import { zhaobiaoPageOrder } from "@/api/item/index";
import {
  getCaigoufangshiList,
@@ -25,7 +25,7 @@
import type { PaginationProps } from "@pureadmin/table";
import { useUserStoreHook } from "@/store/modules/user";
import pdfPreview from "../../component/pdfPreview.vue";
import pdfPreview from "../../component/pdfPreview2.vue";
// const nowRole = computed(() => {
//   return useUserStoreHook().nowRole;
// });
@@ -120,7 +120,7 @@
    {
      label: "采购人",
      prop: "caigourenmingcheng",
      minWidth: 70
      minWidth: 120
    },
    {
      label: "项目名称",
@@ -315,7 +315,6 @@
    }
  };
  async function onSearch() {
    findWechatOpenId();
    const obj = cloneDeep(form);
    obj.tousu = obj.tousu.join("");
    obj.zhiyi = obj.zhiyi.join("");
@@ -351,7 +350,7 @@
  }
  async function openDialog(title = "新增", row?: FormItemProps) {
    const { result } = title == "新增" ? await addgetcontact() : "";
    const { result } = title == "新增" ? await addgetcontact() : {};
    addDialog({
      title: `${title}项目`,