index.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <!-- 修改客户资料 -->
  3. <a-modal class="commonModal modify-custom"
  4. title="修改客户资料"
  5. v-if="visible"
  6. v-model:visible="visible"
  7. @cancel="cancel"
  8. width="890px">
  9. <template #footer>
  10. <a-button key="submit"
  11. type="primary"
  12. :loading="loading"
  13. @click="submit">完成</a-button>
  14. </template>
  15. <a-form class="inlineForm"
  16. :form="form"
  17. @submit="handleSearch">
  18. <a-row :gutter="24">
  19. <a-col :span="12">
  20. <a-form-item label="客户类型">
  21. <a-select class="typeSelect"
  22. style="width: 200px"
  23. placeholder="请选择客户类型">
  24. <a-select-option value="1">
  25. 客户一
  26. </a-select-option>
  27. <a-select-option value="2">
  28. 客户二
  29. </a-select-option>
  30. </a-select>
  31. </a-form-item>
  32. </a-col>
  33. <a-col :span="12">
  34. <a-form-item label="企业名称">
  35. <a-input class="dialogInput"
  36. style="width: 200px"
  37. placeholder="请输入企业名称" />
  38. </a-form-item>
  39. </a-col>
  40. </a-row>
  41. <a-row :gutter="24">
  42. <a-col :span="12">
  43. <a-form-item label="企业简称">
  44. <a-input class="dialogInput"
  45. style="width: 200px"
  46. placeholder="请输入企业简称" />
  47. </a-form-item>
  48. </a-col>
  49. <a-col :span="12">
  50. <a-form-item label="证件类型">
  51. <a-select class="inlineFormSelect"
  52. style="width: 200px"
  53. placeholder="请选择证件类型">
  54. <a-select-option value="1">
  55. 客户一
  56. </a-select-option>
  57. <a-select-option value="2">
  58. 客户二
  59. </a-select-option>
  60. </a-select>
  61. </a-form-item>
  62. </a-col>
  63. </a-row>
  64. <a-row :gutter="24">
  65. <a-col :span="12">
  66. <a-form-item label="法定代表人">
  67. <a-input class="dialogInput"
  68. style="width: 200px"
  69. placeholder="请输入法定代表人" />
  70. </a-form-item>
  71. </a-col>
  72. <a-col :span="12">
  73. <a-form-item label="证件号码">
  74. <a-input class="dialogInput"
  75. style="width: 200px"
  76. placeholder="请输入证件号码" />
  77. </a-form-item>
  78. </a-col>
  79. </a-row>
  80. <a-row :gutter="24">
  81. <a-col :span="12">
  82. <a-form-item label="纳税人识别号">
  83. <a-input class="dialogInput"
  84. style="width: 200px"
  85. placeholder="请输入纳税人识别号" />
  86. </a-form-item>
  87. </a-col>
  88. <a-col :span="12">
  89. <a-form-item label="营业执照">
  90. <div class="upload">
  91. <a-upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
  92. :transform-file="transformFile">
  93. <a-button class="uploadBtn">上传</a-button>
  94. </a-upload>
  95. <div class="look">查看附件</div>
  96. </div>
  97. </a-form-item>
  98. </a-col>
  99. </a-row>
  100. <a-row :gutter="24">
  101. <a-col :span="12">
  102. <a-form-item label="联系人">
  103. <a-input class="dialogInput"
  104. style="width: 200px"
  105. placeholder="请输入联系人" />
  106. </a-form-item>
  107. </a-col>
  108. <a-col :span="12">
  109. <a-form-item label="联系人手机号">
  110. <a-input class="dialogInput"
  111. style="width: 200px"
  112. placeholder="请输入联系人手机号" />
  113. </a-form-item>
  114. </a-col>
  115. </a-row>
  116. <a-row :gutter="24">
  117. <a-col :span="12">
  118. <a-form-item label="联系电话">
  119. <a-input class="dialogInput"
  120. style="width: 200px"
  121. placeholder="请输入联系电话" />
  122. </a-form-item>
  123. </a-col>
  124. <a-col :span="12">
  125. <a-form-item>
  126. &nbsp;
  127. </a-form-item>
  128. </a-col>
  129. </a-row>
  130. <a-row :gutter="24">
  131. <a-col :span="24">
  132. <a-form-item label="通讯地址">
  133. <a-select class="inlineFormSelect"
  134. style="width: 205px"
  135. placeholder="请选择省">
  136. <a-select-option value="1">
  137. 客户一
  138. </a-select-option>
  139. <a-select-option value="2">
  140. 客户二
  141. </a-select-option>
  142. </a-select>
  143. <a-select class="inlineFormSelect"
  144. style="width: 205px"
  145. placeholder="请选择市">
  146. <a-select-option value="1">
  147. 客户一
  148. </a-select-option>
  149. <a-select-option value="2">
  150. 客户二
  151. </a-select-option>
  152. </a-select>
  153. <a-select class="inlineFormSelect"
  154. style="width: 205px"
  155. placeholder="请选择县(区)">
  156. <a-select-option value="1">
  157. 客户一
  158. </a-select-option>
  159. <a-select-option value="2">
  160. 客户二
  161. </a-select-option>
  162. </a-select>
  163. </a-form-item>
  164. </a-col>
  165. </a-row>
  166. <a-row :gutter="24">
  167. <a-col :span="24">
  168. <a-form-item label="&nbsp;">
  169. <a-input class="dialogInput"
  170. style="width: 635px"
  171. placeholder="请输入详细地址" />
  172. </a-form-item>
  173. </a-col>
  174. </a-row>
  175. <a-row :gutter="24">
  176. <a-col :span="24">
  177. <a-form-item label="备注">
  178. <a-input class="dialogInput"
  179. style="width: 635px"
  180. placeholder="请输入备注" />
  181. </a-form-item>
  182. </a-col>
  183. </a-row>
  184. </a-form>
  185. </a-modal>
  186. </template>
  187. <script lang="ts">
  188. import { defineComponent, ref } from 'vue';
  189. import { closeModal } from '@/common/setup/modal/index';
  190. import { initData } from '@/common/methods/index';
  191. export default defineComponent({
  192. name: 'modify-custom',
  193. components: {},
  194. props: {
  195. // selectedRow: {
  196. // type:
  197. // }
  198. },
  199. setup() {
  200. // const { visible, cancel } = closeModal('modifyCustomInfo');
  201. const { visible, cancel } = closeModal('custom_info_btn_modify');
  202. const loading = ref<boolean>(false);
  203. function submit() {
  204. loading.value = true;
  205. setTimeout(() => {
  206. loading.value = false;
  207. cancel();
  208. }, 2000);
  209. }
  210. initData(() => {});
  211. return {
  212. visible,
  213. cancel,
  214. submit,
  215. loading,
  216. };
  217. },
  218. });
  219. </script>
  220. <style lang="less">
  221. .modify-custom {
  222. .upload {
  223. display: inline-flex;
  224. .ant-btn.uploadBtn {
  225. width: 60px;
  226. height: 30px;
  227. background: @m-blue0;
  228. border: 0;
  229. padding: 0;
  230. text-align: center;
  231. font-size: 14px;
  232. color: @m-white0;
  233. .rounded-corners(3px);
  234. &:hover {
  235. background: rgba(@m-blue0, 0);
  236. color: rgba(@m-white0, 0.8);
  237. }
  238. }
  239. .look {
  240. color: @m-blue0;
  241. font-size: 14px;
  242. margin-left: 10px;
  243. cursor: pointer;
  244. }
  245. }
  246. }
  247. </style
  248. >;