Ben Lin
2024-11-12 a42c6f16bbb177dfcc754d53d925afddead38eba
src/views/tigerprojects/system/lowcode/high/dtl.vue
@@ -49,6 +49,7 @@
  import { useI18n } from '/@/hooks/web/useI18n';
  import { Card } from 'ant-design-vue';
  import { EntityCustFunctionType } from '/@/api/tigerapi/model/basModel';
  import { useMessage } from '/@/hooks/web/useMessage';
  const { t } = useI18n();
  const ACard = Card;
@@ -67,6 +68,7 @@
  const keyFieldValues = inject('keyFieldValues') as Ref<Recordable[]>;
  const go = useGo();
  const { createErrorModal } = useMessage();
  const [registerItemAdd, { openModal: openItemModal }] = useModal();
  const cType = ref('');
  const dtlSlots = ref([] as any[]);
@@ -305,6 +307,12 @@
  function handleSuccess(d, u, item) {
    if (!isNullOrUnDef(custImport.value)) {
      /* 自定义编辑方法,根据实体名去调用 */
      if (data.value[item].some((q) => q.ITEM_CODE == d.ITEM_CODE)) {
        createErrorModal({
          title: t('sys.api.errorTip'),
          content: t(`料号[${d.ITEM_CODE}]已经存在`),
        });
      } else {
      EditOperation(data, d, u, item);
      useTables[item][1].setProps({
        dataSource: [],
@@ -315,6 +323,7 @@
      useTables[item][1].reload();
    }
  }
  }
  /**
   * @description: 弹出选择框选择成功后事件