index.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <!-- 新增客户资料 -->
  3. <a-modal class="add-custom"
  4. title="新增客户资料"
  5. v-model:visible="visible"
  6. @cancel="cancel"
  7. centered
  8. :maskClosable="maskClosableFlag"
  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. <a-select class="typeSelect"
  23. style="width: 200px"
  24. placeholder="请选择客户类型">
  25. <a-select-option value="1">
  26. 客户一
  27. </a-select-option>
  28. <a-select-option value="2">
  29. 客户二
  30. </a-select-option>
  31. </a-select>
  32. </a-form-item>
  33. </a-col>
  34. <a-col :span="12">
  35. <a-form-item label="企业名称">
  36. <a-input class="dialogInput"
  37. style="width: 200px"
  38. placeholder="请输入企业名称" />
  39. </a-form-item>
  40. </a-col>
  41. </a-row>
  42. <a-row :gutter="24">
  43. <a-col :span="12">
  44. <a-form-item label="企业简称">
  45. <a-input class="dialogInput"
  46. style="width: 200px"
  47. placeholder="请输入企业简称" />
  48. </a-form-item>
  49. </a-col>
  50. <a-col :span="12">
  51. <a-form-item label="证件类型">
  52. <a-select class="inlineFormSelect"
  53. style="width: 200px"
  54. placeholder="请选择证件类型">
  55. <a-select-option value="1">
  56. 客户一
  57. </a-select-option>
  58. <a-select-option value="2">
  59. 客户二
  60. </a-select-option>
  61. </a-select>
  62. </a-form-item>
  63. </a-col>
  64. </a-row>
  65. <a-row :gutter="24">
  66. <a-col :span="12">
  67. <a-form-item label="法定代表人">
  68. <a-input class="dialogInput"
  69. style="width: 200px"
  70. placeholder="请输入法定代表人" />
  71. </a-form-item>
  72. </a-col>
  73. <a-col :span="12">
  74. <a-form-item label="证件号码">
  75. <a-input class="dialogInput"
  76. style="width: 200px"
  77. placeholder="请输入证件号码" />
  78. </a-form-item>
  79. </a-col>
  80. </a-row>
  81. <a-row :gutter="24">
  82. <a-col :span="12">
  83. <a-form-item label="纳税人识别号">
  84. <a-input class="dialogInput"
  85. style="width: 200px"
  86. placeholder="请输入纳税人识别号" />
  87. </a-form-item>
  88. </a-col>
  89. <a-col :span="12">
  90. <a-form-item label="营业执照">
  91. <div class="upload">
  92. <a-upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
  93. :transform-file="transformFile">
  94. <a-button class="uploadBtn">上传</a-button>
  95. </a-upload>
  96. <div class="look">查看附件</div>
  97. </div>
  98. </a-form-item>
  99. </a-col>
  100. </a-row>
  101. <a-row :gutter="24">
  102. <a-col :span="12">
  103. <a-form-item label="联系人">
  104. <a-input class="dialogInput"
  105. style="width: 200px"
  106. placeholder="请输入联系人" />
  107. </a-form-item>
  108. </a-col>
  109. <a-col :span="12">
  110. <a-form-item label="联系人手机号">
  111. <a-input class="dialogInput"
  112. style="width: 200px"
  113. placeholder="请输入联系人手机号" />
  114. </a-form-item>
  115. </a-col>
  116. </a-row>
  117. <a-row :gutter="24">
  118. <a-col :span="12">
  119. <a-form-item label="联系电话">
  120. <a-input class="dialogInput"
  121. style="width: 200px"
  122. placeholder="请输入联系电话" />
  123. </a-form-item>
  124. </a-col>
  125. <a-col :span="12">
  126. <a-form-item>
  127. &nbsp;
  128. </a-form-item>
  129. </a-col>
  130. </a-row>
  131. <a-row :gutter="24">
  132. <a-col :span="24">
  133. <a-form-item label="通讯地址">
  134. <a-select class="inlineFormSelect"
  135. style="width: 205px"
  136. placeholder="请选择省">
  137. <a-select-option value="1">
  138. 客户一
  139. </a-select-option>
  140. <a-select-option value="2">
  141. 客户二
  142. </a-select-option>
  143. </a-select>
  144. <a-select class="inlineFormSelect"
  145. style="width: 205px"
  146. placeholder="请选择市">
  147. <a-select-option value="1">
  148. 客户一
  149. </a-select-option>
  150. <a-select-option value="2">
  151. 客户二
  152. </a-select-option>
  153. </a-select>
  154. <a-select class="inlineFormSelect"
  155. style="width: 205px"
  156. placeholder="请选择县(区)">
  157. <a-select-option value="1">
  158. 客户一
  159. </a-select-option>
  160. <a-select-option value="2">
  161. 客户二
  162. </a-select-option>
  163. </a-select>
  164. </a-form-item>
  165. </a-col>
  166. </a-row>
  167. <a-row :gutter="24">
  168. <a-col :span="24">
  169. <a-form-item label="&nbsp;">
  170. <a-input class="dialogInput"
  171. style="width: 635px"
  172. placeholder="请输入详细地址" />
  173. </a-form-item>
  174. </a-col>
  175. </a-row>
  176. <a-row :gutter="24">
  177. <a-col :span="24">
  178. <a-form-item label="备注">
  179. <a-input class="dialogInput"
  180. style="width: 635px"
  181. placeholder="请输入备注" />
  182. </a-form-item>
  183. </a-col>
  184. </a-row>
  185. </a-form>
  186. </a-modal>
  187. </template>
  188. <script lang="ts">
  189. import { defineComponent, ref } from 'vue';
  190. import { closeModal } from '@/common/setup/modal/index';
  191. import { initData } from '@/common/methods/index';
  192. export default defineComponent({
  193. name: 'add-custom',
  194. components: {},
  195. setup() {
  196. const { visible, cancel } = closeModal('custom_info_btn_add');
  197. const loading = ref<boolean>(false);
  198. const maskClosableFlag = ref<boolean>(false);
  199. function submit() {
  200. loading.value = true;
  201. setTimeout(() => {
  202. loading.value = false;
  203. cancel();
  204. }, 2000);
  205. }
  206. initData(() => {});
  207. return {
  208. visible,
  209. cancel,
  210. submit,
  211. loading,
  212. maskClosableFlag
  213. };
  214. },
  215. });
  216. </script>
  217. <style lang="less">
  218. .add-custom {
  219. }
  220. </style
  221. >;