YangYuGang
2025-03-08 8cae1dcd8d2bde01880ac4b70bdda4e61df3c7ef
送货单(U9)
已添加3个文件
920 ■■■■■ 文件已修改
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN.ts 599 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_DTL.ts 321 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_SN.ts 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN.ts
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,599 @@
/*
 * @Description: U9送货单
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-06-19 20:34:27
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-10-23 20:48:14
 */
import { Ref, h, ref, render, unref } from 'vue';
import { GetEnum, SaveEntity, convertToTree, getEntity } from '/@/api/tigerapi/system';
import { useLocale } from '/@/locales/useLocale';
import { useI18n } from '/@/hooks/web/useI18n';
import { useMessage } from '/@/hooks/web/useMessage';
import { useModal } from '/@/components/Modal';
import { ActionItem, BasicColumn, FormSchema } from '/@/components/Table';
import { useUserStore } from '/@/store/modules/user';
import { buildUUID } from '/@/utils/uuid';
import { SaveWoBatchInput } from '/@/api/tigerapi/model/mesModel';
import { CustModalParams, FunctionType } from '/@/api/tigerapi/model/systemModel';
import { SaveMesBatchWo } from '/@/api/tigerapi/mes/wo';
import { useForm } from '/@/components/Form/index';
import { cloneDeep } from 'lodash-es';
import { useProdRouteStore } from '/@/store/modules/prodRoute';
import { Tag, Tooltip } from 'ant-design-vue';
const { t } = useI18n();
const { createErrorModal } = useMessage();
const { getLocale } = useLocale();
function _default() {
  const ActionColumn: BasicColumn = {
    width: 180,
    title: '操作',
    dataIndex: 'action',
    slots: { customRender: 'action' },
    fixed: 'right',
  };
  /**
   * @description: å·¥å•管理的一些自定义方法
   * @return {*}
   */
  const methods = {
    /**
     * @description: èŽ·å–æ–°å¢žæŒ‰é’®çš„è¡Œä¸º
     * @return {*}
     */
    CreateAction: (type: string, fnName: string) => {
      return {
        action: 'drawer', //drawer(打开左侧抽屉框) | go(跳转到新的页面)
      };
    },
    /**
     * @description: æ“ä½œå­—段自定义按钮
     * @return {*}
     */
    ActionItem: (params: Recordable<any>, data, ...args): ActionItem[] => {
      data.map((x) => {
        if (x.name == 'goDetail') {
          x.onClick = goDetail.bind(null, args[5], params);
          x.tooltip = '工单批次';
        }
      });
      return data;
    },
    GetUseForm: () => {
      return {
        forminfo: useForm({
          labelWidth: 120,
          schemas: woformSchema,
          actionColOptions: {
            span: 24,
          },
          showActionButtonGroup: false,
        }),
        woinfo: useForm({
          labelWidth: 120,
          schemas: woCfgformSchema,
          actionColOptions: {
            span: 24,
          },
          showActionButtonGroup: false,
        }),
        prodinfo: useForm({
          labelWidth: 120,
          schemas: prodCfgformSchema,
          actionColOptions: {
            span: 24,
          },
          showActionButtonGroup: false,
        }),
        tmpinfo: useForm({
          labelWidth: 120,
          schemas: prodCfgformSchema,
          actionColOptions: {
            span: 24,
          },
          showActionButtonGroup: false,
        }),
      };
    },
    /**
     * @description: è‡ªå®šä¹‰æ–¹æ³•
     * @param {string} type
     * @param {array} args
     * @return {*}
     */
    CustFunc: (param: CustModalParams) => {
      switch (param.cType) {
        case 'BIZ_MES_WO':
        case 'BIZ_MES_WO_Config':
          return getWoFns[param.FnName](param) as Promise<any>;
        // break;
        default:
          return new Promise((resolve, reject) => {
            try {
              (e) => {};
              resolve(true);
            } catch {
              reject(false);
            } finally {
              // args[0][0]({ confirmLoading: false });
            }
          });
        // break;
      }
    },
    /**
     * @description: èŽ·å–å¤šè¡¨å•æ’æ§½åˆ—è¡¨
     * @return {*}
     */
    GetDtlSlots: (type: string) => {
      let result = [] as any[];
      switch (type) {
        case 'BIZ_MES_WO_Config':
          result = [
            { name: 'woinfo', slots: [], preIcons: {}, title: '工单信息' },
            {
              name: 'prodinfo',
              slots: ['addRot', 'setRot'],
              preIcons: { addRot: 'search|svg', setRot: 'config|svg' },
              title: '产品信息',
            },
            { name: 'rotinfo', slots: ['add'], preIcons: { add: 'search|svg' }, title: '工艺信息' },
          ];
          break;
        case 'BIZ_MES_WO':
          result = [
            {
              name: 'forminfo',
              slots: ['add', 'set'],
              preIcons: { add: 'search|svg', set: 'config|svg' }, //如果是多个表单,增加多个插槽。slots是弹出框按钮的插槽,preIcons是插槽对应的按钮图标
              title: '下发配置',
            },
          ];
          break;
      }
      return result;
    },
    /**
     * @description: èŽ·å–æ¨¡æ€æ¡†åº”ç”¨åˆ—è¡¨
     * @return {*}
     */
    GetUseModals: () => {
      return {
        useModalData: {
          add: useModal(),
          set: useModal(),
          addRot: useModal(),
          setRot: useModal(),
        },
      };
    },
    /**
     * @description: èŽ·å–è‡ªå®šä¹‰æ•°æ®
     * @return {*}
     */
    GetCustData: () => {
      return {
        isCustEl: {
          forminfo: false,
          woinfo: false,
          prodinfo: false,
          rotinfo: true,
        },
      };
    },
    /**
     * @description: å¼¹å‡ºé€‰æ‹©æ¡†é€‰æ‹©æˆåŠŸè¿”å›žæ–¹æ³•
     * @param {*} d
     * @param {*} u
     * @return {*}
     */
    GetSelectSuccess: (d, u) => {
      return {
        ROUTE_CODE: d.values['val'],
        // ID: d.values['id'],
        ROT_ID: d.values['id'],
      };
    },
    /**
     * @description: æ‰“开弹出选择框
     * @param {Fn} openItemModal
     * @param {array} args
     * @return {*}
     */
    OpenSelectItem: (openItemModal: Fn, ...args) => {
      const slotName = args[0];
      const openRvModal = args[1];
      const selectVals = args[2];
      switch (slotName) {
        case 'addRot':
        case 'add':
          openItemModal(true, {
            title: '工艺路线列表',
            schemas: [
              {
                field: 'ROT_CODE',
                component: 'Input',
                label: '工艺路线编码',
                colProps: {
                  span: 12,
                },
              },
            ],
            ItemColumns: [
              {
                title: t('工艺路线编码'),
                dataIndex: 'ROT_CODE',
                resizable: true,
                sorter: true,
                width: 200,
              },
              {
                title: t('工艺路线名称'),
                dataIndex: 'ROT_NAME',
                resizable: true,
                sorter: true,
                width: 180,
              },
            ],
            tableName: 'MES_ROUTE',
            rowKey: 'ROT_CODE',
            returnFieldName: ['ROUTE_CODE', 'ROT_ID'], //返回值要赋值的字段名称
            searchInfo: { TABLE_NAME: 'MES_ROUTE' },
          });
          break;
        case 'set':
          openRvModal(true, { rotId: selectVals.value['ROUTE_CODE'], slotName: slotName });
          break;
        case 'setRot':
          break;
      }
    },
    /**
     * @description: èŽ·å–æ ‡é¢˜ä¿¡æ¯
     * @param {string} type
     * @return {*}
     */
    GetTitle: () => {
      return {
        importTitle: '工单计划导入' /* æ‰“开模态窗口显示的标题 */,
      };
    },
  };
  /* ä»¥ä¸‹æ˜¯å†…部方法,不export,供上面的方法调用 */
  /**
   * @description: è‡ªå®šä¹‰æ–¹æ³•
   * @return {*}
   */
  const getWoFns: Record<string, FunctionType> = {
    /**
     * @description: å·¥å•配置保存方法
     * @param {*} e
     * @param {array} args
     * @return {*}
     */
    SaveCofig: (param: CustModalParams) => {
      return new Promise((resolve, reject) => {
        try {
          const form = param.values['prodinfo'];
          const wo = param.values['mValues'];
          const _wo = cloneDeep(wo);
          _wo.ROUTE_STATUS = 1;
          _wo.ROUTE_CODE = form.ROUTE_CODE;
          SaveEntity(_wo, true, 'BIZ_MES_WO').then((action) => {
            if (action.IsSuccessed) {
              SP_MES_PROD2WO({ rotId: form.ROT_ID, wo: wo.ORDER_NO }).then((res) => {
                if (!res.IsSuccessed) {
                  SaveEntity(wo, true, 'BIZ_MES_WO');
                }
                resolve(res);
              });
            } else {
              reject(action);
            }
          });
        } catch {
          reject(false);
        }
      });
    },
    /**
     * @description: å·¥å•下发保存方法
     * @param {CustModalParams} param
     * @return {*}
     */
    SaveWoBatch: (param: CustModalParams) => {
      return new Promise((resolve, reject) => {
        try {
          const form = param.values['forminfo'];
          const wo = param.values['mValues'];
          wo.STATUS = wo.STATUS == 3 ? wo.STATUS : 2;
          let input: SaveWoBatchInput = {
            Wo: wo,
            WoBatch: {
              ID: buildUUID(),
              CREATE_TIME: new Date(),
              CREATE_USER: useUserStore().getUserInfo.userId as string,
              UPDATE_TIME: new Date(),
              UPDATE_USER: useUserStore().getUserInfo.userId as string,
              GHOST_ROW: false,
              AUTH_ORG: useUserStore().getUserInfo.orgCode,
              AUTH_PROD: useUserStore().getUserInfo.prodCode as string,
              AUTH_WH: '',
              ORDER_NO: wo.ORDER_NO,
              STATUS: wo.STATUS,
              ITEM_CODE: wo.ITEM_CODE,
              CUST_CODE: wo.CUST_CODE,
              FACTORY: wo.FACTORY,
              WS_CODE: wo.WS_CODE,
              ACT_LINE: form.ACT_LINE,
              STD_WORKER_QTY: wo.STD_WORKER_QTY,
              ACT_WORKER_QTY: wo.ACT_WORKER_QTY,
              RELEASE_TIME: new Date(),
              RELEASE_USER: useUserStore().getUserInfo.userId as string,
              PLAN_QTY: form.RELEASE_QTY,
              INPUT_QTY: wo.INPUT_QTY,
              OUTPUT_QTY: wo.OUTPUT_QTY,
              SCRAP_QTY: wo.SCRAP_QTY,
              STOCK_IN_QTY: wo.STOCK_IN_QTY,
              UPH: wo.UPH,
              UPPH: wo.UPPH,
              REMARK: wo.REMARK,
              ACT_START_TIME: wo.ACT_START_TIME,
              ACT_END_TIME: wo.ACT_END_TIME,
              BATCH_NO: '',
            },
            IfToCust: form.IfToCust,
          };
          SaveMesBatchWo(input).then((action) => {
            resolve(action);
          });
        } catch {
          reject(false);
        }
      });
    },
    initRoute: () => {},
  };
  /**
   * @description: è·³è½¬åˆ°è¯¦æƒ…页面方法
   * @param {Fn} go
   * @return {*}
   */
  function goDetail(go: Fn, params: Recordable) {
    const id = {
      ID: params['record'].ID,
      CODE: params['record']['ORDER_NO'],
      Name: 'BIZ_U9_ASN_DTL',
      firstTabName: '送货单(U9)',
      secondTabName: '送货单SN', //'标签过程变量',
      firstTitle: '明细',
      secondTitle: '', //'过程变量',
      pageTitle: '送货单(U9)详情', //详情页面标题
      contentStr: '这里是送货单(U9)明细管理页面,可以显示送货单(U9)的所有批次详情',
      detailName: `送货单[${params['record'].ORDER_NO}]批次详情`,
      keyFieldValues: { ORDER_NO: params['record']['ORDER_NO'] },
      colSlots: params['colSlots'].value,
      SessionName: 'BIZ_U9_ASN_DTL_update',
      ifSave: false,
    };
    // å°†å¯¹è±¡è½¬æ¢ä¸ºJSON字符串并保存到sessionStorage
    sessionStorage.removeItem(`${id.SessionName}_params`);
    sessionStorage.setItem(`${id.SessionName}_params`, encodeURI(JSON.stringify(id)));
    go(`/BIZ_U9_ASN_DTL/${encodeURI(JSON.stringify({ sName: id.SessionName, Name: id.Name }))}`);
  }
  const woformSchema: FormSchema[] = [
    {
      field: 'PLAN_QTY',
      label: '工单数量',
      component: 'Input',
      required: true,
      colProps: {
        span: 24,
      },
      dynamicDisabled: ({ values }) => {
        return true;
      },
    },
    {
      field: 'RELEASE_QTY',
      label: '工单下发数量',
      component: 'Input',
      required: true,
      colProps: {
        span: 24,
      },
    },
    {
      label: '实际产线',
      field: 'ACT_LINE',
      component: 'ApiSelect',
      required: true,
      colProps: {
        span: 24,
      },
      componentProps: {
        api: getEntity,
        params: { entityName: 'MES_LINE', sqlcmd: ' 1=1 ', order: '' },
        resultField: 'Data.Items',
        labelField: 'LINE_NAME',
        valueField: 'LINE_CODE',
      },
    },
    {
      field: 'IfToCust',
      component: 'Switch',
      label: '是否保存工艺路线到客户',
      defaultValue: true,
      colProps: {
        span: 8,
      },
      labelWidth: 200,
    },
    // {
    //   label: '工艺路线',
    //   field: 'ROUTE_CODE',
    //   component: 'Input',
    //   required: true,
    //   colProps: {
    //     span: 22,
    //   },
    // },
    // {
    //   field: 'add',
    //   component: 'Input',
    //   label: '1',
    //   colSlot: 'add',
    //   defaultValue: 'MES_ROUTE',
    //   colProps: {
    //     span: 1,
    //   },
    // },
    // {
    //   field: 'set',
    //   component: 'Input',
    //   label: '1',
    //   colSlot: 'set',
    //   defaultValue: 'MES_ROUTE',
    //   colProps: {
    //     span: 1,
    //   },
    // },
  ];
  const woCfgformSchema: FormSchema[] = [
    {
      field: 'ORDER_NO',
      component: 'Input',
      label: '工单号',
      colProps: {
        span: 8,
      },
      componentProps: {
        placeholder: '请输入工单号',
        onChange: (e: any) => {
          console.log(e);
        },
      },
      dynamicDisabled: true,
    },
    {
      field: 'ORDER_TYPE',
      component: 'ApiSelect',
      label: '工单类型',
      colProps: {
        span: 8,
      },
      defaultValue: 0,
      componentProps: {
        api: GetEnum,
        params: { name: 'BIZ_MES_WO+ORDER_TYPEs' },
        resultField: 'Data',
        labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name',
        valueField: 'Value',
        placeholder: '请选择工单类型',
      },
      dynamicDisabled: true,
    },
    {
      field: 'PLAN_QTY',
      component: 'Input',
      label: '计划数量',
      colProps: {
        span: 8,
      },
      dynamicDisabled: true,
    },
  ];
  const prodCfgformSchema: FormSchema[] = [
    {
      field: 'ITEM_CODE',
      component: 'Input',
      label: '物料编码',
      required: true,
      colProps: {
        span: 12,
      },
      componentProps: {
        placeholder: '请输入物料编码',
        onChange: (e: any) => {
          console.log(e);
        },
      },
      dynamicDisabled: true,
    },
    {
      field: 'ITEM_TYPE',
      component: 'Input',
      label: '物料类型',
      colProps: {
        span: 12,
      },
    },
    {
      label: '工艺路线',
      field: 'ROUTE_CODE',
      component: 'Input',
      required: true,
      colProps: {
        span: 12,
      },
    },
    {
      field: 'addRot',
      component: 'Input',
      label: '1',
      colSlot: 'addRot',
      defaultValue: 'MES_ROUTE',
      colProps: {
        span: 1,
      },
    },
    {
      field: 'setRot',
      component: 'Input',
      label: '1',
      colSlot: 'setRot',
      defaultValue: 'MES_ROUTE',
      colProps: {
        span: 1,
      },
    },
    {
      label: '工艺路线',
      field: 'ROT_ID',
      component: 'Input',
      show: false,
      colProps: {
        span: 12,
      },
    },
    // {
    //   field: 'fieldsc',
    //   component: 'Upload',
    //   label: '打印模板',
    //   colProps: {
    //     span: 10,
    //   },
    //   rules: [{ required: true, message: '请选择上传文件' }],
    //   componentProps: {
    //     api: uploadApi,
    //     multiple: false,
    //   },
    // },
  ];
  return [methods, ActionColumn];
}
export default _default;
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_DTL.ts
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,321 @@
/*
 * @Description: é€è´§å•(U9)明细
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-06-19 20:34:27
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-09-29 21:28:37
 */
import { Tag, Tooltip } from 'ant-design-vue';
import { ActionItem, BasicColumn, FormSchema } from '/@/components/Table';
import { useI18n } from '/@/hooks/web/useI18n';
import { h } from 'vue';
import { getEntity, SaveEntity } from '/@/api/tigerapi/system';
import { useLocale } from '/@/locales/useLocale';
import { useModal } from '/@/components/Modal';
import { CustModalParams, FunctionType } from '/@/api/tigerapi/model/systemModel';
import { useForm } from '/@/components/Form';
import { useMessage } from '/@/hooks/web/useMessage';
import { UpdateWoBatchStatus } from '/@/api/tigerapi/mes/wo';
import { useUserStore } from '/@/store/modules/user';
import { formatToDateTime } from '/@/utils/dateUtil';
const { getLocale } = useLocale();
const { createMessage, createErrorModal } = useMessage();
const { t } = useI18n();
function _default() {
  const ActionColumn: BasicColumn = {
    width: 180,
    title: '操作',
    dataIndex: 'action',
    slots: { customRender: 'action' },
    fixed: 'right',
  };
  /**
   * @description: ä¸€äº›è‡ªå®šä¹‰æ–¹æ³•
   * @return {*}
   */
  const methods = {
    /**
     * @description: èŽ·å–æ–°å¢žæŒ‰é’®çš„è¡Œä¸ºï¼Œå¿…éœ€è¦æœ‰çš„æ–¹æ³•
     * @return {*}
     */
    CreateAction: (type: string) => {
      return {
        action: 'drawer', //drawer(打开左侧抽屉框) | go(跳转到新的页面)
      };
    },
    /**
     * @description: äº§å“ç»‘定工艺路线操作字段自定义按钮,必需要有的方法
     * @return {*}
     */
    ActionItem: (params: Recordable<any>, data, ...args): ActionItem[] => {
      data.map((x) => {
        // if (x.name == 'handlePause') {
        //   x.onClick = handlePause.bind(null, args, params);
        //   x.color = 'error';
        //   x.tooltip = '暂停';
        // }
        // if (x.name == 'handleStart') {
        //   x.onClick = handleStart.bind(null, args, params);
        //   x.tooltip = '取消暂停';
        // }
        // if (x.name == 'handleRelease') {
        //   x.onClick = handleRelease.bind(null, args, params);
        //   x.tooltip = '下发';
        // }
        // if (x.name == 'handleUnRelease') {
        //   x.onClick = handleUnRelease.bind(null, args, params);
        //   x.tooltip = '取消下发';
        // }
      });
      return data;
    },
    /**
     * @description: é«˜çº§è¡¨å•和详情页面返回主页面的url
     * @return {*}
     */
    GetHomeUrl: (params: {}) => {
      return `/BIZ_U9_ASN/LC/${encodeURI(JSON.stringify({ ID: 'BIZ_U9_ASN',"EntityName":"BIZ_U9_ASN", colSlots: params['colSlots'], crudColSlots: [] }))}`;
    },
    GetBaseColumns: () => {
      return [
        {
          dataIndex: 'ORDER_NO',
          title: '单据号',
          // ifShow: false,
          sorter: true,
          resizable: true,
        },
        // {
        //   dataIndex: 'BATCH_NO',
        //   title: '工单批次号',
        //   ifShow: true,
        //   sorter: true,
        //   resizable: true,
        //   customRender: () => {},
        // },
        {
          dataIndex: 'STATUS',
          title: '状态',
          ifShow: true,
          sorter: true,
          resizable: true,
          customRender: ({ record }) => {
            let color = '';
            let text = '';
            switch (
              record.STATUS //状态(0Init初始化|1Imported已导入|2Release已下发|3Working生产中|4Paused已暂停|5Closed已关闭)
            ) {
              case 0:
                text ='初始化';
                color = '#8a8a8a';
                break;
              case 1:
                text = '已导入';color = 'blue';
                break;
              case 2:
                text = '已送达';color = 'green';
                break;
              case 3:
                text = '清点中';color = 'orange';
                break;
              case 4:
                text = '上架中';color = 'red';
                break;
              case 5:
                text = '待审核';color = '#e1822c';
                break;
              case 6:
                text = '已完成';color = '#009966';
                break;
              case 7:
                text = '已作废';color = '#CCCCCC';
                break;
            }
            return h(Tooltip, { title: text }, () => h(Tag, { color: color }, () => text));
          },
        },
        {
          dataIndex: 'SUPP_CODE',
          title: '供应商编码',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'SUPP_NAME',
          title: '供应商名称',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'ORDER_DATE',
          title: '单据日期',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'DELIVERY_DATE',
          title: '送货日期',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'PLANARRIVED_DATE',
          title: '预计送达日期',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'RECEIVER',
          title: '收货人',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'RECEIVE_DATE',
          title: '收货日期',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
        {
          dataIndex: 'REMARK',
          title: '备注',
          ifShow: true,
          sorter: true,
          resizable: true,
        },
      ];
    },
    GetSearchForm: () => {
      return [
        {
          field: 'ORDER_NO',
          label: t('单据号'),
          colProps: { span: 8 },
          component: 'Input',
        },
      ];
    },
    GetCrudForm: () => {
      return [];
    },
    KeyFieldValues: (val: string, id: string) => {
      return { ORDER_NO: val };
    },
    GetUseForm: () => {
      return {
        forminfo: useForm({
          labelWidth: 120,
          schemas: [], //woformSchema,
          actionColOptions: {
            span: 24,
          },
          showActionButtonGroup: false,
        }),
      };
    },
    /**
     * @description: è‡ªå®šä¹‰æ–¹æ³•
     * @param {string} type
     * @param {array} args
     * @return {*}
     */
    CustFunc: (param: CustModalParams) => {
      // switch (param.cType) {
      //   case 'BIZ_U9_ASN_DTL':
      //     return getWoFns[param.FnName](param) as Promise<any>;
      //     break;
      //   default:
      //     return new Promise((resolve, reject) => {
      //       try {
      //         (e) => {};
      //         resolve(true);
      //       } catch {
      //         reject(false);
      //       } finally {
      //         // args[0][0]({ confirmLoading: false });
      //       }
      //     });
      //   // break;
      // }
    },
    /**
     * @description: èŽ·å–å¤šè¡¨å•æ’æ§½åˆ—è¡¨
     * @return {*}
     */
    GetDtlSlots: (type: string) => {
      let result = [] as any[];
      switch (type) {
        case 'BIZ_MES_WO_BATCH':
          result = [
            {
              name: 'forminfo',
              slots: ['add', 'set'],
              preIcons: { add: 'search|svg', set: 'config|svg' }, //如果是多个表单,增加多个插槽。slots是弹出框按钮的插槽,preIcons是插槽对应的按钮图标
              title: '下发配置',
            },
          ];
          break;
      }
      return result;
    },
    /**
     * @description: èŽ·å–æ¨¡æ€æ¡†åº”ç”¨åˆ—è¡¨
     * @return {*}
     */
    GetUseModals: () => {
      return {
        useModalData: {
          add: useModal(),
          set: useModal(),
          addRot: useModal(),
          setRot: useModal(),
        },
      };
    },
    /**
     * @description: å¼¹å‡ºé€‰æ‹©æ¡†é€‰æ‹©æˆåŠŸè¿”å›žæ–¹æ³•
     * @param {*} d
     * @param {*} u
     * @return {*}
     */
    GetSelectSuccess: (d, u) => {
      return {
        ROUTE_CODE: d.values['val'],
        // ID: d.values['id'],
        ROT_ID: d.values['id'],
      };
    },
    /**
     * @description: æ‰“开弹出选择框
     * @param {Fn} openItemModal
     * @param {array} args
     * @return {*}
     */
    OpenSelectItem: (openItemModal: Fn, ...args) => {
      const slotName = args[0];
      switch (slotName) {
        case 'addRot':
          break;
      }
    },
  };
  /* ä»¥ä¸‹æ˜¯å†…部方法,不export,供上面的方法调用 */
  return [methods, ActionColumn];
}
export default _default;
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_SN.ts