index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <!-- 款项详情-->
  3. <a-modal class="finance_review_funds_detail custom-detail"
  4. title="款项详情"
  5. v-model:visible="visible"
  6. centered
  7. :maskClosable="maskClosableFlag"
  8. @cancel="cancel"
  9. width="890px">
  10. <template #footer>
  11. <a-button key="submit"
  12. type="primary"
  13. :loading="loading.loading"
  14. @click="submit">关闭</a-button>
  15. </template>
  16. </a-modal>
  17. </template>
  18. <script lang="ts">
  19. import { defineComponent, PropType, reactive, ref, watchEffect } from 'vue';
  20. import { closeModal } from '@/common/setup/modal/index';
  21. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  22. import { getStatusName } from '@/views/information/custom/setup';
  23. import { formatValue, formatTime } from '@/common/methods';
  24. export default defineComponent({
  25. name: 'finance_review_funds_detail',
  26. components: {},
  27. props: {
  28. selectedRow: {
  29. type: Object as PropType<QueryCustomInfoType>,
  30. default: {},
  31. },
  32. },
  33. setup(props) {
  34. const { visible, cancel } = closeModal('detail');
  35. const loading = ref<boolean>(false);
  36. const maskClosableFlag = ref<boolean>(false);
  37. function submit() {
  38. loading.value = true;
  39. setTimeout(() => {
  40. loading.value = false;
  41. cancel();
  42. }, 2000);
  43. }
  44. return {
  45. visible,
  46. cancel,
  47. submit,
  48. loading,
  49. formatValue,
  50. getStatusName,
  51. maskClosableFlag,
  52. };
  53. },
  54. });
  55. </script>
  56. <style lang="less">
  57. .finance_review_funds_detail {
  58. .ant-form.inlineForm {
  59. margin-top: 20px;
  60. }
  61. }
  62. </style>;