2 天以前 46624ce480a3c14da21f39cc4ad5f7eecea2bb1e
src/views/mes/pro/bagCode/index.vue
@@ -23,6 +23,7 @@
  import BindBatchModal from "./modules/bind-batch.vue";
  import BindPalletModal from "./modules/bind-pallet.vue";
  import GenerateModal from "./modules/generate-form.vue";
  import RawGenerateModal from "./modules/raw-generate-form.vue";
  import ReplaceModal from "./modules/replace-form.vue";
  import QrTraceModal from "../components/qr-trace-modal.vue";
@@ -30,6 +31,11 @@
  const [GenerateFormModal, generateFormModalApi] = useVbenModal({
    connectedComponent: GenerateModal,
    destroyOnClose: true,
  });
  const [RawGenerateFormModal, rawGenerateFormModalApi] = useVbenModal({
    connectedComponent: RawGenerateModal,
    destroyOnClose: true,
  });
@@ -61,6 +67,11 @@
  /** 生成数据包 */
  function handleGenerate() {
    generateFormModalApi.open();
  }
  /** 生成原始袋码 */
  function handleRawGenerate() {
    rawGenerateFormModalApi.open();
  }
  /** 替换成功后展示结果并刷新列表 */
@@ -303,6 +314,7 @@
<template>
  <Page auto-content-height>
    <GenerateFormModal @success="handleRefresh" />
    <RawGenerateFormModal @success="handleRefresh" />
    <BindBatchFormModal @success="handleRefresh" />
    <BindPalletFormModal @success="handleRefresh" />
    <ReplaceFormModal @success="handleReplaceSuccess" />
@@ -318,6 +330,12 @@
              onClick: handleGenerate,
            },
            {
              label: '生成原始袋码',
              icon: ACTION_ICON.ADD,
              auth: ['mes:pro-bag-code:create'],
              onClick: handleRawGenerate,
            },
            {
              label: '录入批次',
              type: 'primary',
              auth: ['mes:pro-bag-code:update'],