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