gaoluyang
4 天以前 787ccc59ba89bacc075562a161ecf02bc76ebadc
src/views/mes/pd/archive/index.vue
@@ -18,12 +18,12 @@
const detailRef = ref<InstanceType<typeof Detail>>();
function handleDetail(row: MesPdArchiveApi.Archive) {
  detailRef.value?.open(row.id!);
  detailRef.value?.open(row.productCode!);
}
async function handleExport() {
  const data = await exportPdArchive(await gridApi.formApi.getValues());
  downloadFileFromBlobPart({ fileName: '设计归档台账.xls', source: data });
  downloadFileFromBlobPart({ fileName: '归档台账.xls', source: data });
}
const [Grid, gridApi] = useVbenVxeGrid({
@@ -53,7 +53,7 @@
  <Page auto-content-height>
    <Detail ref="detailRef" />
    <Grid table-title="产品版本归档台账">
    <Grid table-title="归档台账">
      <template #toolbar-tools>
        <TableAction
          :actions="[
@@ -67,8 +67,8 @@
          ]"
        />
      </template>
      <template #code="{ row }">
        <Button type="link" @click="handleDetail(row)">{{ row.code }}</Button>
      <template #archiveCode="{ row }">
        <Button type="link" @click="handleDetail(row)">{{ row.archiveCode }}</Button>
      </template>
    </Grid>
  </Page>