Ben Lin
2025-03-08 697c405ac874da346e74df40266763370355154d
ASN单
已修改4个文件
76 ■■■■ 文件已修改
src/views/tigerprojects/system/lowcode/detail/detail.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN.ts 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_DTL.ts 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/detail/detail.vue
@@ -128,7 +128,7 @@
      GetUseForm,
      GetUseModals,
    },
    ActionColumn
    ActionColumn,
  ] = isNullOrUnDef(custImport.value['default'])
    ? EntityCustFunction.value
    : custImport.value['default']();
@@ -142,22 +142,27 @@
  /* 表单中插槽渲染按钮打开模态框useModal方法 */
  const modals = GetUseModals && isFunction(GetUseModals) ? GetUseModals() : { useModalData: {} };
  const useModalData = ref(modals['useModalData']);
  const CurrTabInfo = objParams['Tabs'].filter(q=>q.entityName == props.entityName)[0];
  /* 页签信息,表格需要根据页签信息中对应的实体名来查询对应表的数据 */
  const CurrTabInfo = objParams['Tabs'].filter((q) => q.entityName == props.entityName)[0];
  const [registerTable, { getForm, reload, setProps }] = useTable({
    title: `${CurrTabInfo.tableTitle}列表`,
    api: getListByPage,
    searchInfo: { TABLE_NAME: CurrTabInfo.entityName, ...objParams['keyFieldValues'] },
    columns: GetBaseColumns(CurrTabInfo.entityName),
    api: getListByPage, //通用查询方法
    searchInfo: {
      TABLE_NAME: CurrTabInfo.entityName,
      NeedInclude: CurrTabInfo.NeedInclude,
      ...objParams['keyFieldValues'],
    }, //查询条件中的TABLE_NAME传入页签信息中对应的实体名CurrTabInfo.entityName
    columns: GetBaseColumns(CurrTabInfo.entityName), //传入页签信息中对应的实体名CurrTabInfo.entityName获取表格字段信息
    formConfig: {
      labelWidth: 140,
      schemas: GetSearchForm(CurrTabInfo.entityName),
      schemas: GetSearchForm(CurrTabInfo.entityName), //传入页签信息中对应的实体名CurrTabInfo.entityName获取查询表单的字段信息
    },
    useSearchForm: true,
    showTableSetting: true,
    bordered: true,
    canResize: true,
    showIndexColumn: false,
    actionColumn:  ActionColumn
    actionColumn: ActionColumn
      ? ActionColumn
      : {
          width: 120,
@@ -192,7 +197,7 @@
      colSlots,
    };
    const _actionItem: ActionItem[] = [];
    const actionItem = GenerateActionButton(params, buttons, openDrawer, reload,_actionItem);
    const actionItem = GenerateActionButton(params, buttons, openDrawer, reload, _actionItem);
    if (isNullOrUnDef(custImport.value['default'])) {
      return actionItem;
    }
src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts
@@ -480,6 +480,7 @@
          name: '工单批次',
          tableTitle: '批次',
          entityName: 'BIZ_MES_WO_BATCH',
          NeedInclude: false,
          key: 'batch'
        },
        // {
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN.ts
@@ -7,25 +7,16 @@
 * @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 { unref } from 'vue';
import { GetEnum, 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 { CustModalParams } from '/@/api/tigerapi/model/systemModel';
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 = {
@@ -111,8 +102,8 @@
      switch (param.cType) {
        case 'BIZ_MES_WO':
        case 'BIZ_MES_WO_Config':
          return getWoFns[param.FnName](param) as Promise<any>;
        // break;
          //   return getWoFns[param.FnName](param) as Promise<any>;
          break;
        default:
          return new Promise((resolve, reject) => {
            try {
@@ -287,14 +278,16 @@
          name: '送货单(U9)',
          tableTitle: '明细',
          entityName: 'BIZ_U9_ASN_DTL',
          key: 'BIZ_U9_ASN_DTL'
          NeedInclude: true,
          key: 'BIZ_U9_ASN_DTL',
        },
        {
          name: '送货单SN',
          tableTitle: 'SN',
          entityName: 'BIZ_U9_ASN_SN',
          key: 'BIZ_U9_ASN_SN'
        }
          NeedInclude: true,
          key: 'BIZ_U9_ASN_SN',
        },
      ],
      pageTitle: '送货单(U9)详情', //详情页面标题
      contentStr: '这里是送货单(U9)明细管理页面,可以显示送货单(U9)的所有批次详情',
@@ -309,9 +302,6 @@
    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[] = [
    {
src/views/tigerprojects/system/lowcode/entityts/BIZ_U9_ASN_DTL.ts
@@ -84,14 +84,22 @@
              sorter: true,
              resizable: true,
            },
            // {
            //   dataIndex: 'BATCH_NO',
            //   title: '工单批次号',
            //   ifShow: true,
            //   sorter: true,
            //   resizable: true,
            //   customRender: () => {},
            // },
            {
              dataIndex: 'ITEM_CODE',
              title: '物料编码',
              ifShow: true,
              sorter: true,
              resizable: true,
              customRender: () => {},
            },
            {
              dataIndex: 'ITEM_NAME',
              title: '物料名称',
              ifShow: true,
              sorter: true,
              resizable: true,
              customRender: () => {},
            },
            {
              dataIndex: 'STATUS',
              title: '状态',