index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. <a-row :gutter="24">
  20. <a-col :span="12">
  21. <a-form-item label="仓库类型">
  22. <span class="white">{{ getWareHouseTypeName(selectedRow.warehousetype) }}</span>
  23. </a-form-item>
  24. </a-col>
  25. <a-col :span="12">
  26. <a-form-item label="仓库名称">
  27. <span class="white">{{ formatValue(selectedRow.warehousename)}}</span>
  28. </a-form-item>
  29. </a-col>
  30. </a-row>
  31. <a-row :gutter="24">
  32. <a-col :span="12">
  33. <a-form-item label="仓库简称">
  34. <span class="white">{{ formatValue(selectedRow.warehousecode) }}</span>
  35. </a-form-item>
  36. </a-col>
  37. <a-col :span="12">
  38. <a-form-item label="联系人">
  39. <span class="white">{{ formatValue(selectedRow.contactname) }}</span>
  40. </a-form-item>
  41. </a-col>
  42. </a-row>
  43. <a-row :gutter="24">
  44. <a-col :span="12">
  45. <a-form-item label="联系电话">
  46. <span class="white">{{ formatValue(selectedRow.contactnum) }}</span>
  47. </a-form-item>
  48. </a-col>
  49. <a-col :span="12">
  50. <a-form-item label="状态">
  51. <span class="white">{{ gerWareHouseStatusName(selectedRow.warehousestatus) }}</span>
  52. </a-form-item>
  53. </a-col>
  54. </a-row>
  55. <a-row :gutter="24">
  56. <a-col :span="12">
  57. <a-form-item label="所在地区">
  58. <span class="white">{{ getProvinceName(selectedRow.provinceid) + getCityName(selectedRow.cityid) + getDistrictName(selectedRow.districtid) }}</span>
  59. </a-form-item>
  60. </a-col>
  61. <a-col :span="12">
  62. <a-form-item label="详细地址">
  63. <span class="white">{{ formatValue(selectedRow.address) }}</span>
  64. </a-form-item>
  65. </a-col>
  66. </a-row>
  67. </a-form>
  68. </a-modal>
  69. </template>
  70. <script lang="ts">
  71. import { defineComponent, PropType, ref } from 'vue';
  72. import { closeModal } from '@/common/setup/modal/index';
  73. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  74. import { ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
  75. import {gerWareHouseStatusName, getAddressInfo, getWareHouseTypeName} from '@/views/information/warehouse-info/setup';
  76. import { formatValue } from '@/common/methods';
  77. import {getAddress} from "@/services/go/adress";
  78. export default defineComponent({
  79. name: 'warehouse_info_btn-detail',
  80. components: {},
  81. props: {
  82. selectedRow: {
  83. type: Object as PropType<ErmcpWareHouseInfo>,
  84. default: {},
  85. },
  86. },
  87. setup(props, context) {
  88. const { visible, cancel } = closeModal('detail');
  89. const loading = ref<boolean>(false);
  90. const maskClosableFlag = ref<boolean>(false);
  91. const {getProvinceName, getCityName, getDistrictName} = getAddress();
  92. function submit() {
  93. cancel();
  94. context.emit('refresh')
  95. }
  96. return {
  97. visible,
  98. cancel,
  99. submit,
  100. loading,
  101. gerWareHouseStatusName,
  102. getWareHouseTypeName,
  103. formatValue,
  104. maskClosableFlag,
  105. getProvinceName,
  106. getCityName,
  107. getDistrictName,
  108. };
  109. },
  110. });
  111. </script>
  112. <style lang="less">
  113. </style>;