index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <!-- 套保计划详情-->
  3. <a-modal class="commonModal custom-detail"
  4. title="套保计划详情"
  5. v-model:visible="visible"
  6. centered
  7. @cancel="cancel"
  8. width="890px">
  9. <template #footer>
  10. <a-button key="submit"
  11. type="primary"
  12. :loading="loading"
  13. @click="submit">关闭
  14. </a-button>
  15. </template>
  16. <a-form class="inlineForm"
  17. :form="form"
  18. @submit="handleSearch">
  19. <fieldset class="formFieldSet">
  20. <legend>套保计划</legend>
  21. <a-row :gutter="24">
  22. <a-col :span="12">
  23. <a-form-item label="计划类型">
  24. <span class="white">{{ getPlanContractType(selectedRow.contracttype) }}</span>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :span="12">
  28. <a-form-item label="计划名称">
  29. <span class="white">{{ formatValue(selectedRow.hedgeplanno) }}</span>
  30. </a-form-item>
  31. </a-col>
  32. </a-row>
  33. <a-row :gutter="24">
  34. <a-col :span="12">
  35. <a-form-item label="现货品种">
  36. <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
  37. </a-form-item>
  38. </a-col>
  39. <a-col :span="12">
  40. <a-form-item label="商品">
  41. <span class="white">{{ formatValue(selectedRow.wrstandardname) }}</span>
  42. </a-form-item>
  43. </a-col>
  44. </a-row>
  45. <a-row :gutter="24">
  46. <a-col :span="12">
  47. <a-form-item label="计划量">
  48. <span class="white">{{ formatValue(selectedRow.planqty) }}</span>
  49. </a-form-item>
  50. </a-col>
  51. <a-col :span="12">
  52. <a-form-item label="标仓系数">
  53. <span class="white">{{ formatValue(selectedRow.convertfactor) }}</span>
  54. </a-form-item>
  55. </a-col>
  56. </a-row>
  57. <a-row :gutter="24">
  58. <a-col :span="12">
  59. <a-form-item label="交易用户">
  60. <span class="white">{{ formatValue(selectedRow.tradeusername) }}</span>
  61. </a-form-item>
  62. </a-col>
  63. <a-col :span="12">
  64. <a-form-item label="结算币种">
  65. <span class="white">{{ formatValue(selectedRow.currencyname) }}</span>
  66. </a-form-item>
  67. </a-col>
  68. </a-row>
  69. <a-row :gutter="24">
  70. <a-col :span="12">
  71. <a-form-item label="状态">
  72. <span
  73. class="white">{{ formatValue(getPlanStatusName(selectedRow.hedgeplanstatus)) }}</span>
  74. </a-form-item>
  75. </a-col>
  76. </a-row>
  77. <a-row :gutter="24">
  78. <a-col :span="12">
  79. <a-form-item label="备注">
  80. <span class="white">{{ formatValue(selectedRow.remark) }}</span>
  81. </a-form-item>
  82. </a-col>
  83. </a-row>
  84. </fieldset>
  85. <fieldset class="formFieldSet">
  86. <legend>审核信息</legend>
  87. <a-row :gutter="24">
  88. <a-col :span="12">
  89. <a-form-item label="审核时间">
  90. <span class="white">{{ formatValue(selectedRow.audittime) }}</span>
  91. </a-form-item>
  92. </a-col>
  93. <a-col :span="12">
  94. <a-form-item label="审核人">
  95. <span class="white">{{ formatValue(selectedRow.auditname) }}</span>
  96. </a-form-item>
  97. </a-col>
  98. </a-row>
  99. <a-row :gutter="24">
  100. <a-col :span="12">
  101. <a-form-item label="审核意见">
  102. <span class="white">{{ formatValue(selectedRow.auditremark) }}</span>
  103. </a-form-item>
  104. </a-col>
  105. </a-row>
  106. </fieldset>
  107. </a-form>
  108. </a-modal>
  109. </template>
  110. <script lang="ts">
  111. import { defineComponent, PropType } from 'vue';
  112. import { Ermcp3HedgePlan } from '@/services/go/ermcp/plan/interface';
  113. import { formatValue } from '@/common/methods';
  114. import { getPlanContractType, getPlanStatusName } from '@/views/business/plan/setup';
  115. import { getPayCurrencyTypeEnumList } from '@/common/constants/enumsList';
  116. import { _closeModal } from '@/common/setup/modal/modal';
  117. export default defineComponent({
  118. name: 'plan-detail',
  119. emits: ['cancel', 'update'],
  120. props: {
  121. selectedRow: {
  122. type: Object as PropType<Ermcp3HedgePlan>,
  123. default: {},
  124. },
  125. },
  126. setup(props, context) {
  127. const { visible, cancel } = _closeModal(context);
  128. function submit() {
  129. cancel();
  130. }
  131. return {
  132. visible,
  133. cancel,
  134. submit,
  135. formatValue,
  136. getPlanContractType,
  137. getPayCurrencyTypeEnumList,
  138. getPlanStatusName,
  139. };
  140. },
  141. });
  142. </script>
  143. <style lang="less">
  144. .custom-detail {
  145. .ant-form.inlineForm {
  146. margin-top: 20px;
  147. }
  148. }
  149. </style>;