index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <!-- 新增仓库信息 -->
  3. <a-modal class="add-warehouse" title="新增仓库信息" v-model:visible="visible" @cancel="cancel" width="890px">
  4. <template #footer>
  5. <a-button key="submit" type="primary" :loading="loading" @click="submit">完成</a-button>
  6. </template>
  7. <a-form class="inlineForm" :form="form" @submit="handleSearch">
  8. <a-row :gutter="24">
  9. <a-col :span="12">
  10. <a-form-item label="仓库类型">
  11. <a-select class="typeSelect" style="width: 200px" placeholder="请选择仓库类型">
  12. <a-select-option value="1">
  13. 仓库一
  14. </a-select-option>
  15. <a-select-option value="2">
  16. 仓库二
  17. </a-select-option>
  18. </a-select>
  19. </a-form-item>
  20. </a-col>
  21. <a-col :span="12">
  22. <a-form-item label="仓库名称">
  23. <a-input class="dialogInput" style="width: 200px" placeholder="请输入仓库名称" />
  24. </a-form-item>
  25. </a-col>
  26. </a-row>
  27. <a-row :gutter="24">
  28. <a-col :span="12">
  29. <a-form-item label="仓库简称">
  30. <a-input class="dialogInput" style="width: 200px" placeholder="请输入仓库简称" />
  31. </a-form-item>
  32. </a-col>
  33. <a-col :span="12">
  34. <a-form-item label="联系人">
  35. <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人" />
  36. </a-form-item>
  37. </a-col>
  38. </a-row>
  39. <a-row :gutter="24">
  40. <a-col :span="24">
  41. <a-form-item label="联系电话">
  42. <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系电话" />
  43. </a-form-item>
  44. </a-col>
  45. </a-row>
  46. <a-row :gutter="24">
  47. <a-col :span="24">
  48. <a-form-item label="所在地区">
  49. <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择省">
  50. <a-select-option value="1">
  51. 广东省
  52. </a-select-option>
  53. <a-select-option value="2">
  54. 湖南省
  55. </a-select-option>
  56. </a-select>
  57. <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择市">
  58. <a-select-option value="1">
  59. 深圳市
  60. </a-select-option>
  61. <a-select-option value="2">
  62. 岳阳市
  63. </a-select-option>
  64. </a-select>
  65. <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择县(区)">
  66. <a-select-option value="1">
  67. 区一
  68. </a-select-option>
  69. <a-select-option value="2">
  70. 区二
  71. </a-select-option>
  72. </a-select>
  73. </a-form-item>
  74. </a-col>
  75. </a-row>
  76. <a-row :gutter="24">
  77. <a-col :span="24">
  78. <a-form-item label="详细地址">
  79. <a-input class="dialogInput" style="width: 635px" placeholder="请输入详细地址" />
  80. </a-form-item>
  81. </a-col>
  82. </a-row>
  83. </a-form>
  84. </a-modal>
  85. </template>
  86. <script lang="ts">
  87. import { defineComponent, ref } from 'vue';
  88. import { closeModal } from '@/setup/controlModal/index';
  89. import { initData } from '@/setup/methods/index';
  90. export default defineComponent({
  91. name: 'add-warehouse',
  92. components: {},
  93. setup() {
  94. const { visible, cancel } = closeModal('addCustomInfo');
  95. const loading = ref<boolean>(false);
  96. function submit() {
  97. loading.value = true;
  98. setTimeout(() => {
  99. loading.value = false;
  100. cancel();
  101. }, 2000);
  102. }
  103. initData(() => {});
  104. return {
  105. visible,
  106. cancel,
  107. submit,
  108. loading,
  109. };
  110. },
  111. });
  112. </script>
  113. <style lang="less">
  114. .add-warehouse {
  115. }
  116. .upload {
  117. display: inline-flex;
  118. .ant-btn.uploadBtn {
  119. width: 60px;
  120. height: 30px;
  121. background: @m-blue0;
  122. border: 0;
  123. padding: 0;
  124. text-align: center;
  125. font-size: 14px;
  126. color: @m-white0;
  127. .rounded-corners(3px);
  128. &:hover {
  129. background: rgba(@m-blue0, 0);
  130. color: rgba(@m-white0, 0.8);
  131. }
  132. }
  133. .look {
  134. color: @m-blue0;
  135. font-size: 14px;
  136. margin-left: 10px;
  137. cursor: pointer;
  138. }
  139. }</style
  140. >;