src/views/wls/arrivalnotice/modules/line-list.vue
@@ -6,9 +6,11 @@
import { computed } from 'vue';
import { useRouter } from 'vue-router';
import { useVbenModal } from '@vben/common-ui';
import { message } from 'ant-design-vue';
import { Button, message } from 'ant-design-vue';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -24,6 +26,8 @@
  formType: FormType;
  noticeId: number;
}>();
const router = useRouter();
const isEditable = computed(() =>
  // 是否可编辑明细行
@@ -62,6 +66,13 @@
    handleRefresh();
  } finally {
    hideLoading();
  }
}
/** 跳转 IQC 检验单详情 */
function handleOpenIqc(row: MesWmArrivalNoticeLineApi.ArrivalNoticeLine) {
  if (row.iqcId) {
    router.push({ path: '/mes/qc/iqc', query: { id: row.iqcId } });
  }
}
@@ -111,6 +122,17 @@
          ]"
        />
      </template>
      <template #iqcCode="{ row }">
        <Button
          v-if="row.iqcCode"
          size="small"
          type="link"
          @click="handleOpenIqc(row)"
        >
          {{ row.iqcCode }}
        </Button>
        <span v-else>-</span>
      </template>
      <template #actions="{ row }">
        <TableAction
          :actions="[