huangbin 4 年之前
父節點
當前提交
6ee5515fe1
共有 1 個文件被更改,包括 17 次插入18 次删除
  1. 17 18
      src/views/business/purchase/setup.ts

+ 17 - 18
src/views/business/purchase/setup.ts

@@ -1,13 +1,12 @@
-import { QueryPurchase } from '@/services/go/ermcp/purchase';
-import { Ermcp3SellBuyContract, SellBuyContractReq } from '@/services/go/ermcp/purchase/interface';
-import { ref, Ref } from '@vue/reactivity';
-import APP from '@/services';
-import { getUserId } from '@/services/bus/account';
+// import { QueryPurchase } from '@/services/go/ermcp/purchase';
+import { MenuItem } from '@/common/components/contextMenu/interface';
 import { initData } from '@/common/methods';
 import { ColumnType, getTableHead } from '@/common/methods/table';
-import { detailButton, permissionButton, handlePermission } from '@/common/setup/buttonPermission/index';
-import { MenuItem } from '@/common/components/contextMenu/interface';
-import { openModal } from '@/common/setup/modal/index';
+import { handlePermission } from '@/common/setup/buttonPermission/index';
+import APP from '@/services';
+import { getUserId } from '@/services/bus/account';
+import { Ermcp3SellBuyContract, SellBuyContractReq } from '@/services/go/ermcp/purchase/interface';
+import { ref } from '@vue/reactivity';
 import { watchEffect } from 'vue';
 // 采购数据获取和表头数据整理
 export function handlePurchase() {
@@ -23,9 +22,9 @@ export function handlePurchase() {
             querytype: 1, // 查询类型 1-全部 2-待点价 3-履约结算 4-已完成
             userid: getUserId(), // 用户ID
         };
-        QueryPurchase(req).then((res) => {
-            customList.value = res;
-        });
+        // QueryPurchase(req).then((res) => {
+        //     customList.value = res;
+        // });
     }
 
     // ========================获取表头========================
@@ -61,19 +60,19 @@ export function btnAndComp() {
     // 配置右键菜单列表
     const contextMenuList = ref<MenuItem[]>([]);
     // 打开新增页的弹窗 返回打开弹窗的方法
-    const { openAction: addAction } = openModal('addCustomInfo');
-    // 创建详情页并写入右键菜单列表(每个页面都有,写死)
-    detailButton('customDetail', contextMenuList);
-    // 通过code跟弹窗建立联系 返回写入右键的方法
-    const { action: deleteAction } = permissionButton('purchase_pending_someprice', '点价登记', contextMenuList);
+    // const { openAction: addAction } = openModal('addCustomInfo');
+    // // 创建详情页并写入右键菜单列表(每个页面都有,写死)
+    // detailButton('customDetail', contextMenuList);
+    // // 通过code跟弹窗建立联系 返回写入右键的方法
+    // const { action: deleteAction } = permissionButton('purchase_pending_someprice', '点价登记', contextMenuList);
 
     const stop = watchEffect(() => {
         // 判断是否有权限 有就写入
-        hasPermission('custom_info_btn_delete') && deleteAction();
+        // hasPermission('custom_info_btn_delete') && deleteAction();
     });
     return {
         stop,
-        addAction,
+        // addAction,
         hasPermission,
         contextMenuList,
     };