DeductShow.vue 777 Bytes
<template>
  <BasicModal
    v-bind="$attrs"
    @register="register"
    title="扣款单"
    width="500px"
    :bodyStyle="{ height: '240px' }"
    @ok="handleOk"
  >
  </BasicModal>
</template>
<script lang="ts" setup>
  import { BasicModal, useModalInner } from '@/components/Modal';
  import { computed, ref } from 'vue';
  import type { UploadProps, UploadChangeParam } from 'ant-design-vue';
  import { InboxOutlined } from '@ant-design/icons-vue';
  import { message } from 'ant-design-vue';
  import { updateInvoiceInfo } from '@/api/project/invoice';

  const deductUrl = ref();
  const id = ref();

  const [register, { closeModal }] = useModalInner(async (data) => {
    deductUrl.value = data;
  });

  async function handleOk() {
    closeModal();
  }
</script>