add.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <template>
  2. <div>
  3. <el-button size="small" type="primary" @click="show">新 建</el-button>
  4. <el-drawer
  5. title="新建客户"
  6. :visible.sync="dialogFormVisible"
  7. size="600px"
  8. direction="rtl"
  9. :show-close="false"
  10. append-to-body
  11. @close="onClose">
  12. <div class="drawer__panel">
  13. <el-row :gutter="20">
  14. <el-form :model="form" :rules="rules" ref="form" label-width="100px" label-position="right" size="mini">
  15. <el-col :span="20">
  16. <el-form-item label="客户名称:" prop="enterprisename">
  17. <el-input v-model="form.enterprisename" placeholder="请输入客户名称" style="width: 100%"></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="4">
  21. <el-popover
  22. placement="right"
  23. width="900"
  24. v-model="businessShow"
  25. trigger="manual">
  26. <el-input
  27. style="width:300px;margin-bottom: 10px"
  28. placeholder="请输入内容"
  29. v-model="form.enterprisename"
  30. clearable
  31. @clear="businessSearch"
  32. size="mini"
  33. @keyup.enter.native="businessSearch">
  34. <i slot="prefix" class="el-icon-search" @click="businessSearch"></i>
  35. </el-input>
  36. <el-table :data="businessData" @row-click="businessSelect" :header-cell-style="{background:'#EEEEEE',color:'#333'}" size="mini">
  37. <el-table-column width="260" label="客户名称">
  38. <template slot-scope="scope">
  39. <span style="margin-left: 10px">{{ scope.row.companyName?scope.row.companyName:'--' }}</span>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="客户地址">
  43. <template slot-scope="scope">
  44. <span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
  45. </template>
  46. </el-table-column>
  47. <el-table-column width="200" label="客户税号">
  48. <template slot-scope="scope">
  49. <span style="margin-left: 10px">{{ scope.row.taxNum?scope.row.taxNum:'--' }}</span>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <el-button size="mini" type="primary" style="width: 100%" @click="businessSearch" slot="reference" :disabled="form.enterprisename === ''">工商查询</el-button>
  54. </el-popover>
  55. </el-col>
  56. <el-col :span="24">
  57. <el-form-item label="企业简称:" prop="abbreviation">
  58. <el-input v-model="form.abbreviation" placeholder="请输入企业简称" style="width: 100%"></el-input>
  59. </el-form-item>
  60. </el-col>
  61. <!-- <el-col :span="24">
  62. <el-form-item label="erp编号:" prop="erpagentnum">
  63. <el-input v-model="form.erpagentnum" placeholder="请输入erp编号" style="width: 100%"></el-input>
  64. </el-form-item>
  65. </el-col>-->
  66. <el-col :span="24" >
  67. <el-form-item label="客户类型:" prop="type">
  68. <el-select v-model="form.type" placeholder="请选择客户类型" style="width: 100%">
  69. <el-option
  70. v-for="item in options.type"
  71. :key="item.value"
  72. :label="item.value"
  73. :value="item.value">
  74. <!-- <span style="float: left">{{ item.value }}</span>
  75. <span v-if="item.remarks !== ''" style="float: right; color: #8492a6; font-size: 10px">{{ item.remarks }}</span>-->
  76. <span style="float: left">{{ item.value }}</span>
  77. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  78. </el-option>
  79. </el-select>
  80. </el-form-item>
  81. </el-col>
  82. <el-col :span="24">
  83. <el-form-item label="客户等级:" >
  84. <el-select v-model="form.grade" placeholder="请选择客户等级" style="width: 100%">
  85. <el-option
  86. v-for="item in options.customerGrade"
  87. :key="item.rowindex"
  88. :label="item.value "
  89. :value="item.value">
  90. <span style="float: left">{{ item.value }}</span>
  91. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  92. </el-option>
  93. </el-select>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="24">
  97. <el-form-item label="客户分类:" >
  98. <el-select v-model="form.customergrade" placeholder="请选择客户分类" style="width: 100%">
  99. <el-option
  100. v-for="item in options.customerClassification"
  101. :key="item.rowindex"
  102. :label="item.value "
  103. :value="item.value">
  104. <span style="float: left">{{ item.value }}</span>
  105. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  106. </el-option>
  107. </el-select>
  108. </el-form-item>
  109. </el-col>
  110. <!-- <el-col :span="24">
  111. <el-form-item label="客户行业:" >
  112. <el-select v-model="form.industry" placeholder="请选择所属行业" style="width: 100%">
  113. <el-option
  114. v-for="item in options.industryData"
  115. :key="item.value"
  116. :label="item.value"
  117. :value="item.value">
  118. </el-option>
  119. </el-select>
  120. </el-form-item>
  121. </el-col>-->
  122. <el-col :span="24">
  123. <el-form-item label="客户行业:" >
  124. <el-select
  125. ref="sle"
  126. style="width:100%;"
  127. v-model="form.industry"
  128. multiple
  129. placeholder="请选择所属行业"
  130. size="mini"
  131. >
  132. <el-option
  133. v-for="item in options.industryData"
  134. :key="item.value"
  135. :label="item.value"
  136. :value="item.value"
  137. >
  138. <span style="float: left">{{ item.value }}</span>
  139. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  140. </el-option>
  141. </el-select>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="24">
  145. <el-form-item label="税号:" prop="taxno">
  146. <el-input v-model="form.taxno" placeholder="请输入企业税号" style="width: 100%"></el-input>
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="24">
  150. <el-form-item label="法人:" prop="contact">
  151. <el-input v-model="form.contact" placeholder="请输入法人信息" style="width: 100%"></el-input>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="24">
  155. <el-form-item label="联系电话:" prop="telephone">
  156. <el-input v-model="form.telephone" placeholder="请输入联系电话" style="width: 100%"></el-input>
  157. </el-form-item>
  158. </el-col>
  159. <el-col :span="24">
  160. <el-form-item label="省市县:" prop="province">
  161. <el-cascader
  162. style="width: 100%"
  163. v-model="value"
  164. :options="basicData.data().areaData"
  165. @change="cascaderChange" clearable>
  166. </el-cascader>
  167. </el-form-item>
  168. </el-col>
  169. <el-col :span="24">
  170. <el-form-item label="详细地址:" prop="address">
  171. <el-input v-model="form.address" placeholder="请输入详细地址" style="width: 100%"></el-input>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="24">
  175. <el-form-item label="上级企业:" >
  176. <el-popover
  177. placement="bottom"
  178. width="700"
  179. trigger="click"
  180. v-model="customerShow"
  181. @show="customerList">
  182. <el-input
  183. style="width:300px;margin-bottom: 10px"
  184. placeholder="请输入内容"
  185. v-model="customerParam.content.where.condition"
  186. clearable
  187. @clear="customerList(customerParam.content.pageNumber = 1)"
  188. size="mini"
  189. @keyup.enter.native="customerList(customerParam.content.pageNumber = 1)">
  190. <i slot="prefix" class="el-icon-search" @click="customerList(customerParam.content.pageNumber = 1)"></i>
  191. </el-input>
  192. <el-table :data="customer.customerData" @row-click="customerData" height="396px" :header-cell-style="{background:'#EEEEEE',color:'#333'}" size="mini">
  193. <el-table-column
  194. label="客户编号"
  195. width="180">
  196. <template slot-scope="scope">
  197. <span style="margin-left: 10px">{{ scope.row.sa_customersid?scope.row.sa_customersid:'--' }}</span>
  198. </template>
  199. </el-table-column>
  200. <el-table-column
  201. label="客户名称"
  202. width="200">
  203. <template slot-scope="scope">
  204. <span style="margin-left: 10px">{{ scope.row.enterprisename?scope.row.enterprisename:'--'}}</span>
  205. </template>
  206. </el-table-column>
  207. <el-table-column
  208. label="地址"
  209. >
  210. <template slot-scope="scope">
  211. <span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
  212. </template>
  213. </el-table-column>
  214. </el-table>
  215. <div class="container normal-panel" style="text-align:right">
  216. <el-pagination
  217. background
  218. small
  219. @size-change="handleSizeChangeCustomer"
  220. @current-change="handleCurrentChangeCustomer"
  221. :page-sizes="[10,20,50,100,]"
  222. layout="total,sizes, prev, pager, next, jumper"
  223. :current-page="customer.currentPage"
  224. :total="customer.total">
  225. </el-pagination>
  226. </div>
  227. <el-input slot="reference" :readonly="true" v-model="form.superiorenterprisename" autocomplete="off" placeholder="请选择客户" @input="selectCustomer"></el-input>
  228. </el-popover>
  229. </el-form-item>
  230. </el-col>
  231. <el-col :span="24">
  232. <el-form-item label="客户来源:" >
  233. <el-input v-model="form.source" placeholder="请输入客户来源" style="width: 100%"></el-input>
  234. </el-form-item>
  235. </el-col>
  236. <el-col :span="24">
  237. <el-form-item label="归属经销商:" >
  238. <el-select v-model="form.sa_agentsid" placeholder="请选择经销商" style="width: 100%">
  239. <el-option
  240. v-for="item in options.distributor"
  241. :key="item.sa_agentsid"
  242. :label="item.enterprisename "
  243. :value="item.sa_agentsid">
  244. </el-option>
  245. </el-select>
  246. </el-form-item>
  247. </el-col>
  248. </el-form>
  249. </el-row>
  250. </div>
  251. <div class="fixed__btn__panel">
  252. <el-button size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
  253. <!-- <el-button size="small" type="primary" @click="duplicateChecking" class="normal-btn-width">查 重</el-button>-->
  254. <duplicateCheck ref="check" :data="form" @onSuccess="onClose" @onCheck="onCheck"></duplicateCheck>
  255. <el-button size="small" type="primary" :loading="loading" @click="onSave" class="normal-btn-width">确 定</el-button>
  256. </div>
  257. </el-drawer>
  258. <enterprise
  259. :visible="visibleEnterprise"
  260. :index="index"
  261. :sa_projectid="form.sa_projectid"
  262. v-if="visibleEnterprise"
  263. @onEnterprise="onEnterprise">
  264. </enterprise>
  265. </div>
  266. </template>
  267. <script>
  268. import {mapGetters} from 'vuex'
  269. import enterprise from '@/SDrpManagement/salerPrivatecustomer/components/enterprise'
  270. // import duplicateCheck from "@/SDrpManagement/salerPrivatecustomer/components/duplicateCheck";
  271. import duplicateCheck from "@/components/duplicatesCheck/customerCheck";
  272. export default {
  273. name: "add",
  274. components:{enterprise,duplicateCheck},
  275. data(){
  276. return {
  277. dialogFormVisible:false,
  278. visibleEnterprise:false,
  279. customerShow:false,
  280. checkResults:'',
  281. index:'',
  282. businessData:[],
  283. businessParam:{
  284. "id": 20221208103601,
  285. "content": {
  286. "pageNumber":1,
  287. "pageSize":5,
  288. "keyword":''
  289. },
  290. },
  291. businessShow:false,
  292. total:0,
  293. currentPage:0,
  294. form:{
  295. sa_customersid: 0,//新增是传0
  296. parentid: 0, //上级客户ID,默认或没有上级的时候传0
  297. sys_enterpriseid: 0, //合作企业档案ID,新增是传0,更新
  298. enterprisename:"",//客户名称(企业名称)
  299. type: "", //客户类型
  300. source: "", //客户来源
  301. province:"",//非必填,可选
  302. city:"",//非必填,可选
  303. county:"",//非必填,可选
  304. address:"",//非必填,可选
  305. abbreviation:"",//非必填,可选
  306. taxno:"",//税号,非必填,可选
  307. grade:'',// 客户等级(商户等级)
  308. industry:[],//非必填,可选,所属行业
  309. contact:"",//非必填,可选
  310. phonenumber:"",//非必填,可选
  311. customergrade:"",
  312. ispublic:0,//1:公海客户,0:私域客户,自己新建的
  313. telephone: "",
  314. sa_agentsid: "",
  315. erpagentnum:""
  316. },
  317. value:'',
  318. options:{
  319. type:[],
  320. parentCustomers:[],
  321. /* gradeData:[],*/
  322. customerGrade:[],
  323. industryData:[],
  324. customerClassification:[],
  325. distributor:[]
  326. },
  327. rules:{
  328. enterprisename: [
  329. { required: true, message: '请输入客户名称', trigger: 'change,blur' },
  330. ],
  331. type: [
  332. { required: true, message: '还未选择客户类型', trigger: 'change' },
  333. ],
  334. contact: [
  335. { required: true, message: '请输入法人', trigger: 'change' },
  336. ],
  337. telephone: [
  338. { required: true, message: '请输入联系电话', trigger: 'change' },
  339. { pattern:/^1[3-9]\d{9}$/, message: '请输入正确手机号码',trigger: 'change' }
  340. ],
  341. province: [
  342. { required: true, message: '请选择省市县', trigger: 'blur' },
  343. ],
  344. },
  345. customerParam:{
  346. "id": 20220920083901,
  347. "content": {
  348. "pageNumber": 1,
  349. "pageSize": 10,
  350. "where": {
  351. "condition": "",
  352. "type":2,
  353. "sa_projectid":""
  354. }
  355. }
  356. },
  357. customer:{
  358. customerData:[],
  359. total:0,
  360. currentPage:0,
  361. },
  362. }
  363. },
  364. computed:{
  365. ...mapGetters({
  366. dataToForm:'dataToForm',
  367. loading:'loading'
  368. })
  369. },
  370. methods:{
  371. show(){
  372. this.dialogFormVisible = true
  373. this.typeList()
  374. /*this.parentCustomer()*/
  375. this.gradeList()
  376. this.industryList()
  377. this.queryCustomerGrade()
  378. this.queryDistributor()
  379. },
  380. /*工商查询*/
  381. async businessSearch(){
  382. this.businessParam.content.keyword = this.form.enterprisename
  383. const res = await this.$api.requested(this.businessParam)
  384. console.log(res,"工商查询结果")
  385. this.businessData = res.data
  386. this.total = res.total
  387. this.currentPage = res.pageNumber
  388. this.businessShow = true
  389. },
  390. /*选择工商信息*/
  391. businessSelect(val){
  392. console.log("选择的工商信息",val)
  393. this.$confirm('是否以查询的工商信息更新客户信息?', '提示', {
  394. confirmButtonText: '确定',
  395. cancelButtonText: '取消',
  396. type: 'warning'
  397. }).then(() => {
  398. this.businessShow = false
  399. this.form.enterprisename = val.companyName
  400. this.form.address = val.address === "-" ? '' : val.address
  401. this.form.taxno = val.taxNum
  402. this.value = [val.regProvince,val.regCity,val.regArea]
  403. this.form.province = val.regProvince
  404. this.form.city = val.regCity
  405. this.form.county = val.regArea
  406. this.form.contact = val.legalPerson
  407. }).catch(() => {
  408. this.businessShow = false
  409. this.$message({
  410. type: 'info',
  411. message: '已取消更新'
  412. });
  413. })
  414. },
  415. /*handleSizeChange(val) {
  416. // console.log(`每页 ${val} 条`);
  417. this.param.content.pageSize = val
  418. this.businessSearch()
  419. },
  420. handleCurrentChange(val) {
  421. // console.log(`当前页: ${val}`);
  422. this.param.content.pageNumber = val
  423. this.businessSearch()
  424. },*/
  425. /*查重检查*/
  426. onCheck(){
  427. this.$refs.form.validate((valid) => {
  428. if (!valid) return false
  429. this.$refs.check.queryRule()
  430. })
  431. },
  432. /*自动查重判断*/
  433. duplicateCheck(){
  434. this.$refs.form.validate(async (valid) => {
  435. if (!valid) return false
  436. const res = await this.$api.requested({
  437. "id": 20221208172002,
  438. "content": {
  439. "sa_customersid":this.form.sa_customersid,
  440. "enterprisename":this.form.enterprisename,
  441. "taxno":this.form.taxno,
  442. "address":this.form.address
  443. },
  444. })
  445. console.log(res,"查重结果")
  446. if (res.data.length !== 0){
  447. console.log("重复")
  448. }
  449. this.checkResults = res.data.length
  450. this.onSave()
  451. })
  452. },
  453. onSave(){
  454. this.$refs.form.validate((valid) => {
  455. if (!valid) return false
  456. this.$refs.check.creatShow = true
  457. this.$store.commit('setLoading',true)
  458. this.$refs.check.queryRule(() => {
  459. this.$store.commit('setLoading',false)
  460. })
  461. })
  462. },
  463. onClose () {
  464. this.$refs['form'].resetFields();
  465. this.form = {
  466. sa_customersid:0,
  467. sys_enterpriseid:0,
  468. enterprisename:'',
  469. type:'',
  470. source:'',
  471. parentid:0,
  472. superiorenterprisename:'',
  473. abbreviation:'',
  474. taxno:'',
  475. customergrade:'',
  476. industry:'',
  477. phonenumber:'',
  478. province:'',
  479. city:'',
  480. county:'',
  481. address:'',
  482. ispublic:0
  483. }
  484. this.dialogFormVisible = false
  485. this.checkResults = ''
  486. this.value = ''
  487. this.businessShow = false
  488. this.$emit('onSuccess')
  489. },
  490. /*客户类型列表*/
  491. async typeList(){
  492. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  493. const res = await this.$api.requested({
  494. "classname": "sysmanage.develop.optiontype.optiontype",
  495. "method": "optiontypeselect",
  496. "content": {
  497. "pageNumber": 1,
  498. "pageSize": 20,
  499. "typename": "customertypemx",
  500. "parameter": {
  501. "siteid": siteid
  502. }
  503. }
  504. })
  505. this.options.type = res.data
  506. },
  507. async customerList(){
  508. const res = await this.$api.requested(this.customerParam)
  509. this.customer.customerData = res.data
  510. this.customer.total = res.total
  511. this.customer.currentPage = res.pageNumber
  512. },
  513. selectCustomer(){
  514. this.customerParam.content.where.condition = this.form.enterprisename
  515. this.customerList()
  516. },
  517. /*客户选择信息*/
  518. customerData(val){
  519. this.form.parentid = val.sa_customersid
  520. this.form.superiorenterprisename = val.enterprisename
  521. this.customerShow = false
  522. },
  523. /*客户分页*/
  524. handleSizeChangeCustomer(val) {
  525. // console.log(`每页 ${val} 条`);
  526. this.customerParam.content.pageSize = val
  527. this.customerList()
  528. },
  529. handleCurrentChangeCustomer(val) {
  530. // console.log(`当前页: ${val}`);
  531. this.customerParam.content.pageNumber = val
  532. this.customerList()
  533. },
  534. enterpriseList(){
  535. this.visibleEnterprise = true
  536. },
  537. /*上级客户列表*/
  538. onEnterprise(data){
  539. this.visibleEnterprise = false
  540. console.log("企业信息",data)
  541. this.form.parentid = data.sa_customersid
  542. this.form.superiorenterprisename = data.enterprisename
  543. },
  544. /*/!*上级客户*!/
  545. async parentCustomer(){
  546. const res = await this.$api.requested({
  547. "id": 20221014101002,
  548. "content": {
  549. "pageNumber": 1,
  550. "pageSize": 20,
  551. "where": {
  552. "condition": ""
  553. }
  554. }
  555. })
  556. console.log(res)
  557. this.options.parentCustomers = res.data
  558. },*/
  559. /*省市县*/
  560. cascaderChange (val) {
  561. this.form.province = val[0]
  562. if (val.length === 1)
  563. return this.form = Object.assign({},this.form,{province:val[0],city:'',county:''})
  564. this.form = Object.assign({},this.form,{province:val[0],city:val[1],county:val[2]})
  565. this.$refs.form.validateField('province')
  566. },
  567. /*客户分类*/
  568. async gradeList(){
  569. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  570. const res = await this.$api.requested({
  571. "classname": "sysmanage.develop.optiontype.optiontype",
  572. "method": "optiontypeselect",
  573. "content": {
  574. "pageNumber": 1,
  575. "pageSize": 20,
  576. "typename": "customergrade",
  577. "parameter": {
  578. "siteid": siteid
  579. }
  580. }
  581. })
  582. console.log("客户等级",res.data)
  583. /*for (var i=0;i<res.data.length; i++){
  584. if (res.data[i].remarks !== ''){
  585. this.options.gradeData[i] = res.data[i].value + "——" + res.data[i].remarks
  586. }else{
  587. this.options.gradeData[i] = res.data[i].value
  588. }
  589. }*/
  590. this.options.customerClassification = res.data
  591. console.log("处理后客户等级",this.options.customerClassification)
  592. },
  593. /*客户等级*/
  594. queryCustomerGrade(){
  595. this.$store.dispatch('optiontypeselect','agentgrade').then(res=>{
  596. this.options.customerGrade = res.data
  597. })
  598. },
  599. /*行业列表*/
  600. async industryList(){
  601. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  602. const res = await this.$api.requested({
  603. "classname": "sysmanage.develop.optiontype.optiontype",
  604. "method": "optiontypeselect",
  605. "content": {
  606. "pageNumber": 1,
  607. "pageSize": 20,
  608. "typename": "industry",
  609. "parameter": {
  610. "siteid": siteid
  611. }
  612. }
  613. })
  614. this.options.industryData = res.data
  615. },
  616. /*所属经销商*/
  617. async queryDistributor(){
  618. var sessionData = sessionStorage.getItem('active_account')
  619. sessionData = JSON.parse(sessionData)
  620. const res = await this.$api.requested({
  621. "id": 20230214162602,
  622. "content": {
  623. "hrid": sessionData.hrid,
  624. "pageNumber": 1,
  625. "pageSize": 20,
  626. "where": {
  627. "condition": ""
  628. }
  629. },
  630. })
  631. this.options.distributor = res.data
  632. console.log(this.options.distributor,'经销商')
  633. }
  634. }
  635. }
  636. </script>
  637. <style scoped>
  638. /deep/.el-input__prefix {
  639. display: flex;
  640. align-items: center;
  641. }
  642. </style>