index.vue 4.9 KB

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