index.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <!-- 入库详情-->
  3. <a-modal class="add-custom custom-detail"
  4. title="入库详情"
  5. v-model:visible="visible"
  6. centered
  7. :maskClosable="false"
  8. @cancel="cancel"
  9. width="890px">
  10. <template #footer>
  11. <a-button key="submit"
  12. type="primary"
  13. :loading="loading"
  14. @click="cancel">关闭
  15. </a-button>
  16. </template>
  17. <a-form class="inlineForm"
  18. :form="form"
  19. @submit="handleSearch">
  20. <fieldset class="formFieldSet"
  21. v-if="isShowContractInfo(selectedRow.inouttype)">
  22. <legend>合同基本信息</legend>
  23. <a-row :gutter="24">
  24. <a-col :span="12">
  25. <a-form-item label="合同编号">
  26. <span class="white">{{
  27. getContractTypeName(selectedRow.contracttype) + '/' + formatValue(selectedRow.contractno)
  28. }}</span>
  29. </a-form-item>
  30. </a-col>
  31. <a-col :span="12">
  32. <a-form-item label="定价类型">
  33. <span class="white">{{ getPriceTypeName(selectedRow.pricetype) }}</span>
  34. </a-form-item>
  35. </a-col>
  36. </a-row>
  37. <a-row :gutter="24">
  38. <a-col :span="12">
  39. <a-form-item label="销售方">
  40. <span class="white">{{ formatValue(selectedRow.sellusername) }}</span>
  41. </a-form-item>
  42. </a-col>
  43. <a-col :span="12">
  44. <a-form-item label="现货品种">
  45. <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
  46. </a-form-item>
  47. </a-col>
  48. </a-row>
  49. <a-row :gutter="24">
  50. <a-col :span="12">
  51. <a-form-item label="采购方">
  52. <span class="white">{{ formatValue(selectedRow.buyusername) }}</span>
  53. </a-form-item>
  54. </a-col>
  55. <a-col :span="12">
  56. <a-form-item label="合同签署量">
  57. <span
  58. class="white">{{ formatValue(selectedRow.contractqty) + " " + selectedRow.enumdicname}}</span>
  59. </a-form-item>
  60. </a-col>
  61. </a-row>
  62. </fieldset>
  63. <fieldset class="formFieldSet">
  64. <legend>登记信息</legend>
  65. <a-row :gutter="24">
  66. <a-col :span="12">
  67. <a-form-item label="出库类型">
  68. <span class="white">{{ InOutTypeName(selectedRow.inouttype) }}</span>
  69. </a-form-item>
  70. </a-col>
  71. <a-col :span="12">
  72. <a-form-item label="品类">
  73. <span class="white">{{ formatValue(selectedRow.wrstandardname) }}</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.brandname) }}</span>
  81. </a-form-item>
  82. </a-col>
  83. <a-col :span="12">
  84. <a-form-item label="入库仓库">
  85. <span class="white">{{ formatValue(selectedRow.warehousecode) }}</span>
  86. </a-form-item>
  87. </a-col>
  88. </a-row>
  89. <a-row :gutter="24">
  90. <a-col :span="12">
  91. <a-form-item label="入库数量">
  92. <span class="white">{{
  93. formatValue(selectedRow.qty) + getGoodsUnitEnumItemName(selectedRow.unitid)
  94. }}</span>
  95. </a-form-item>
  96. </a-col>
  97. <a-col :span="12">
  98. <a-form-item label="登记时间">
  99. <span class="white">{{ formatValue(selectedRow.applytime) }}</span>
  100. </a-form-item>
  101. </a-col>
  102. </a-row>
  103. <a-row :gutter="24">
  104. <a-col :span="12">
  105. <a-form-item label="登记人">
  106. <span class="white">{{ formatValue(selectedRow.applyname) }}</span>
  107. </a-form-item>
  108. </a-col>
  109. <a-col :span="12">
  110. <a-form-item label="状态">
  111. <span class="white">{{ getApplyStatusName(selectedRow.applystatus) }}</span>
  112. </a-form-item>
  113. </a-col>
  114. </a-row>
  115. </fieldset>
  116. <fieldset class="formFieldSet">
  117. <legend>审核信息</legend>
  118. <a-row :gutter="24">
  119. <a-col :span="12">
  120. <a-form-item label="审核时间">
  121. <span class="white">{{ formatValue(selectedRow.audittime) }}</span>
  122. </a-form-item>
  123. </a-col>
  124. <a-col :span="12">
  125. <a-form-item label="审核人">
  126. <span class="white">{{ formatValue(selectedRow.auditname) }}</span>
  127. </a-form-item>
  128. </a-col>
  129. </a-row>
  130. <a-row :gutter="24">
  131. <a-col :span="12">
  132. <a-form-item label="审核意见">
  133. <span class="white">{{ formatValue(selectedRow.auditremark) }}</span>
  134. </a-form-item>
  135. </a-col>
  136. </a-row>
  137. </fieldset>
  138. </a-form>
  139. </a-modal>
  140. </template>
  141. <script lang="ts">
  142. import { defineComponent, PropType, reactive, ref, watchEffect } from 'vue';
  143. import { closeModal } from '@/common/setup/modal/index';
  144. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  145. import { getStatusName } from '@/common/constants/enumsName';
  146. import { formatValue, formatTime } from '@/common/methods';
  147. import { Ermcp3AreaStockApply } from '@/services/go/ermcp/inventory-review/interface';
  148. import { InOutTypeName, isShowContractInfo } from '@/views/manage/inventory-review/setup';
  149. import { getContractTypeName, getPriceTypeName } from '@/common/constants/enumsName';
  150. import { getGoodsUnitEnumItemName, getApplyStatusName } from '@/common/constants/enumsName';
  151. import { _closeModal } from '@/common/setup/modal/modal';
  152. export default defineComponent({
  153. name: 'finance_review_funds_detail',
  154. emits: ['cancel', 'update'],
  155. props: {
  156. selectedRow: {
  157. type: Object as PropType<Ermcp3AreaStockApply>,
  158. default: {},
  159. },
  160. },
  161. setup(props, context) {
  162. const { visible, cancel } = _closeModal(context);
  163. const loading = ref<boolean>(false);
  164. const maskClosableFlag = ref<boolean>(false);
  165. return {
  166. visible,
  167. cancel,
  168. loading,
  169. formatValue,
  170. getStatusName,
  171. maskClosableFlag,
  172. isShowContractInfo,
  173. getContractTypeName,
  174. getPriceTypeName,
  175. InOutTypeName,
  176. getGoodsUnitEnumItemName,
  177. getApplyStatusName,
  178. };
  179. },
  180. });
  181. </script>
  182. <style lang="less">
  183. .finance_review_funds_detail {
  184. .ant-form.inlineForm {
  185. margin-top: 20px;
  186. }
  187. }
  188. </style>;