index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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="submit">关闭
  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 class="white">{{ formatValue(selectedRow.contractqty) + " " + selectedRow.enumdicname}}</span>
  58. </a-form-item>
  59. </a-col>
  60. </a-row>
  61. </fieldset>
  62. <fieldset class="formFieldSet">
  63. <legend>登记信息</legend>
  64. <a-row :gutter="24">
  65. <a-col :span="12">
  66. <a-form-item label="出库类型">
  67. <span class="white">{{ InOutTypeName(selectedRow.inouttype) }}</span>
  68. </a-form-item>
  69. </a-col>
  70. <a-col :span="12">
  71. <a-form-item label="品类">
  72. <span class="white">{{ formatValue(selectedRow.wrstandardname) }}</span>
  73. </a-form-item>
  74. </a-col>
  75. </a-row>
  76. <a-row :gutter="24">
  77. <a-col :span="12">
  78. <a-form-item label="品牌">
  79. <span class="white">{{ formatValue(selectedRow.brandname) }}</span>
  80. </a-form-item>
  81. </a-col>
  82. <a-col :span="12">
  83. <a-form-item label="入库仓库">
  84. <span class="white">{{ formatValue(selectedRow.warehousecode) }}</span>
  85. </a-form-item>
  86. </a-col>
  87. </a-row>
  88. <a-row :gutter="24">
  89. <a-col :span="12">
  90. <a-form-item label="入库数量">
  91. <span class="white">{{
  92. formatValue(selectedRow.qty) + getGoodsUnitEnumItemName(selectedRow.unitid)
  93. }}</span>
  94. </a-form-item>
  95. </a-col>
  96. <a-col :span="12">
  97. <a-form-item label="登记时间">
  98. <span class="white">{{ formatValue(selectedRow.applytime) }}</span>
  99. </a-form-item>
  100. </a-col>
  101. </a-row>
  102. <a-row :gutter="24">
  103. <a-col :span="12">
  104. <a-form-item label="登记人">
  105. <span class="white">{{ formatValue(selectedRow.applyname) }}</span>
  106. </a-form-item>
  107. </a-col>
  108. <a-col :span="12">
  109. <a-form-item label="状态">
  110. <span class="white">{{ getApplyStatusName(selectedRow.applystatus) }}</span>
  111. </a-form-item>
  112. </a-col>
  113. </a-row>
  114. </fieldset>
  115. <fieldset class="formFieldSet">
  116. <legend>审核信息</legend>
  117. <a-row :gutter="24">
  118. <a-col :span="12">
  119. <a-form-item label="审核时间">
  120. <span class="white">{{ formatValue(selectedRow.audittime) }}</span>
  121. </a-form-item>
  122. </a-col>
  123. <a-col :span="12">
  124. <a-form-item label="审核人">
  125. <span class="white">{{ formatValue(selectedRow.auditname) }}</span>
  126. </a-form-item>
  127. </a-col>
  128. </a-row>
  129. <a-row :gutter="24">
  130. <a-col :span="12">
  131. <a-form-item label="审核意见">
  132. <span class="white">{{ formatValue(selectedRow.auditremark) }}</span>
  133. </a-form-item>
  134. </a-col>
  135. </a-row>
  136. </fieldset>
  137. </a-form>
  138. </a-modal>
  139. </template>
  140. <script lang="ts">
  141. import { defineComponent, PropType, reactive, ref, watchEffect } from 'vue';
  142. import { closeModal } from '@/common/setup/modal/index';
  143. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  144. import { getStatusName } from '@/common/constants/enumsName';
  145. import { formatValue, formatTime } from '@/common/methods';
  146. import { Ermcp3AreaStockApply } from '@/services/go/ermcp/inventory-review/interface';
  147. import { InOutTypeName, isShowContractInfo } from '@/views/manage/inventory-review/setup';
  148. import { getContractTypeName, getPriceTypeName } from '@/common/constants/enumsName';
  149. import { getGoodsUnitEnumItemName, getApplyStatusName } from '@/common/constants/enumsName';
  150. export default defineComponent({
  151. name: 'finance_review_funds_detail',
  152. components: {},
  153. props: {
  154. selectedRow: {
  155. type: Object as PropType<Ermcp3AreaStockApply>,
  156. default: {},
  157. },
  158. },
  159. setup(props) {
  160. const { visible, cancel } = closeModal('detail');
  161. const loading = ref<boolean>(false);
  162. const maskClosableFlag = ref<boolean>(false);
  163. function submit() {
  164. cancel();
  165. }
  166. return {
  167. visible,
  168. cancel,
  169. submit,
  170. loading,
  171. formatValue,
  172. getStatusName,
  173. maskClosableFlag,
  174. isShowContractInfo,
  175. getContractTypeName,
  176. getPriceTypeName,
  177. InOutTypeName,
  178. getGoodsUnitEnumItemName,
  179. getApplyStatusName,
  180. };
  181. },
  182. });
  183. </script>
  184. <style lang="less">
  185. .finance_review_funds_detail {
  186. .ant-form.inlineForm {
  187. margin-top: 20px;
  188. }
  189. }
  190. </style>;