index.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <!-- 发票审核-->
  3. <a-modal class="inventory_review_checkout_audit 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 { mergeObj } from '@/utils/objHandle';
  23. import { getStatusName } from '@/views/information/custom/setup';
  24. import { formatValue, formatTime } from '@/common/methods';
  25. export default defineComponent({
  26. name: 'inventory_review_checkout_audit',
  27. components: {},
  28. props: {
  29. selectedRow: {
  30. type: Object as PropType<QueryCustomInfoType>,
  31. default: {},
  32. },
  33. },
  34. setup(props) {
  35. const { visible, cancel } = closeModal('inventory_review_checkout_audit');
  36. const loading = ref<boolean>(false);
  37. const maskClosableFlag = ref<boolean>(false);
  38. function submit() {
  39. loading.value = true;
  40. setTimeout(() => {
  41. loading.value = false;
  42. cancel();
  43. }, 2000);
  44. }
  45. return {
  46. visible,
  47. cancel,
  48. submit,
  49. loading,
  50. formatValue,
  51. getStatusName,
  52. maskClosableFlag,
  53. };
  54. },
  55. });
  56. </script>
  57. <style lang="less">
  58. .inventory_review_checkout_audit {
  59. .ant-form.inlineForm {
  60. margin-top: 20px;
  61. }
  62. }
  63. </style>;