index.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <!-- 发票登记详情-->
  3. <a-modal class="add-custom 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"
  14. @click="submit">关闭
  15. </a-button>
  16. </template>
  17. <a-form class="inlineForm"
  18. :form="form"
  19. @submit="handleSearch">
  20. <fieldset class="formFieldSet">
  21. <legend>合同基本信息</legend>
  22. <a-row :gutter="24">
  23. <a-col :span="12">
  24. <a-form-item label="合同编号">
  25. <span class="white">{{
  26. getContractTypeName(selectedRow.contracttype) + '/' + formatValue(selectedRow.contractno)
  27. }}</span>
  28. </a-form-item>
  29. </a-col>
  30. <a-col :span="12">
  31. <a-form-item label="点价类型">
  32. <span class="white">{{ getPriceTypeName(selectedRow.pricetype) }}</span>
  33. </a-form-item>
  34. </a-col>
  35. </a-row>
  36. <a-row :gutter="24">
  37. <a-col :span="12">
  38. <a-form-item label="销售方">
  39. <span class="white">{{ formatValue(selectedRow.sellusername) }}</span>
  40. </a-form-item>
  41. </a-col>
  42. <a-col :span="12">
  43. <a-form-item label="现货品种">
  44. <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
  45. </a-form-item>
  46. </a-col>
  47. </a-row>
  48. </fieldset>
  49. <fieldset class="formFieldSet">
  50. <legend>待审核登记信息</legend>
  51. <a-row :gutter="24">
  52. <a-col :span="12">
  53. <a-form-item label="类型">
  54. <span class="white">{{ invoiceStatusName(selectedRow.contracttype) }}</span>
  55. </a-form-item>
  56. </a-col>
  57. <a-col :span="12">
  58. <a-form-item label="发票金额">
  59. <span class="white">{{ formatValue(selectedRow.invoiceamount) }}</span>
  60. </a-form-item>
  61. </a-col>
  62. </a-row>
  63. <a-row :gutter="24">
  64. <a-col :span="12">
  65. <a-form-item label="发票附件">
  66. <span class="white">{{ formatValue(selectedRow.invoiceamount) }}</span>
  67. </a-form-item>
  68. </a-col>
  69. <a-col :span="12">
  70. <a-form-item label="登记时间">
  71. <span class="white">{{ formatValue(selectedRow.applytime) }}</span>
  72. </a-form-item>
  73. </a-col>
  74. </a-row>
  75. <a-row :gutter="24">
  76. <a-col :span="12">
  77. <a-form-item label="登记人">
  78. <span class="white">{{ formatValue(selectedRow.applyname) }}</span>
  79. </a-form-item>
  80. </a-col>
  81. </a-row>
  82. </fieldset>
  83. </a-form>
  84. </a-modal>
  85. </template>
  86. <script lang="ts">
  87. import {defineComponent, PropType, reactive, ref, watchEffect} from 'vue';
  88. import {closeModal} from '@/common/setup/modal/index';
  89. import {QueryCustomInfoType} from '@/services/go/ermcp/customInfo/interface';
  90. import {mergeObj} from '@/utils/objHandle';
  91. import {getStatusName} from '@/views/information/custom/setup';
  92. import {formatValue, formatTime} from '@/common/methods';
  93. import {QryBussinessFpRsp} from "@/services/go/ermcp/finance-review/interface";
  94. import {invoiceStatusName} from "@/views/manage/finance-review/setup";
  95. import {getContractTypeName, getPriceTypeName} from "@/views/information/spot-contract/setup";
  96. export default defineComponent({
  97. name: 'finance_review_invoice_detail',
  98. components: {},
  99. props: {
  100. selectedRow: {
  101. type: Object as PropType<QryBussinessFpRsp>,
  102. default: {},
  103. },
  104. },
  105. setup(props, context) {
  106. const {visible, cancel} = closeModal('detail');
  107. const loading = ref<boolean>(false);
  108. const maskClosableFlag = ref<boolean>(false);
  109. function submit() {
  110. context.emit('refresh');
  111. cancel()
  112. }
  113. return {
  114. visible,
  115. cancel,
  116. submit,
  117. loading,
  118. formatValue,
  119. getStatusName,
  120. maskClosableFlag,
  121. invoiceStatusName,
  122. getPriceTypeName,
  123. getContractTypeName,
  124. };
  125. },
  126. });
  127. </script>
  128. <style lang="less">
  129. .finance_review_invoice_detail {
  130. .ant-form.inlineForm {
  131. margin-top: 20px;
  132. }
  133. }
  134. </style>;