sendProductsModal.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. <template>
  2. <a-modal
  3. centered
  4. class="promotionList-basicInfo-modal"
  5. :footer="null"
  6. :maskClosable="false"
  7. title="规则设置"
  8. v-model="isShow"
  9. @cancel="isShow=false"
  10. width="70%">
  11. <a-spin :spinning="spinning" tip="Loading...">
  12. <a-form-model
  13. id="promotionList-basicInfo-form"
  14. ref="ruleForm"
  15. :model="form"
  16. :rules="rules"
  17. :label-col="formItemLayout.labelCol"
  18. :wrapper-col="formItemLayout.wrapperCol" >
  19. <a-form-model-item label="规则简称" prop="description">
  20. <a-input
  21. size="small"
  22. id="promotionList-description"
  23. v-model.trim="form.description"
  24. allowClear
  25. placeholder="请输入规则简称(最多20个字符)"
  26. :maxLength="20"></a-input>
  27. </a-form-model-item>
  28. <a-form-model-item label="规则门槛" prop="gateFlag">
  29. <a-radio-group v-model="form.gateFlag" button-style="solid" size="small" @change="changeGateFlag">
  30. <a-radio-button value="1">
  31. </a-radio-button>
  32. <a-radio-button value="0">
  33. </a-radio-button>
  34. </a-radio-group>
  35. <div v-if="form.gateFlag && form.gateFlag === '1'">
  36. <v-select
  37. size="small"
  38. style="width:60%;"
  39. v-model="form.gateType"
  40. id="promotionList-gateType"
  41. code="PROMOTION_GATE_TYPE"
  42. placeholder="请选择"
  43. allowClear></v-select>
  44. <div v-if="form.gateType==='RATIO_AMOUNT'">
  45. 购买门槛产品金额 <a-input-number v-model="form.gateAmount" :min="0" :max="999999" :precision="2" size="small"/> %作为配额
  46. <a-tooltip title="如:填写100%,则购买10000元门槛产品,可享受10000配额购买正价产品,根据门槛金额动态调整配额">
  47. <a-icon type="question-circle" theme="filled" :style="{ fontSize: '14px', color: 'gray' }"/>
  48. </a-tooltip>
  49. </div>
  50. <div v-if="form.gateType==='MIN_AMOUNT'">
  51. 购买门槛产品满最低金额 <a-input-number v-model="form.gateAmount" :min="0" :max="999999" :precision="2" size="small"/>元,不限制配额。
  52. </div>
  53. <div class="ruleDescList" v-if="form.gateType==='FIXED_AMOUNT'">
  54. 购买满
  55. <a-input-number v-model="form.gateAmount" :min="0" :max="999999" :precision="2" size="small"/>
  56. 元门槛产品,可使用
  57. <a-input-number v-model="form.quotaAmount" :min="0" :max="999999" :precision="2" size="small"/>
  58. 元配额,采购规则中的正价商品(配额算销售额)
  59. </div>
  60. </div>
  61. </a-form-model-item>
  62. <a-form-model-item label="满赠规则" prop="regularSameFlag">
  63. <div class="ruleDescList">
  64. <a-select default-value="1" v-model="form.regularSameFlag" style="width: 100px" size="small" @change="handleFullGift">
  65. <a-select-option value="1">
  66. 同款
  67. </a-select-option>
  68. <a-select-option value="0">
  69. 不同款
  70. </a-select-option>
  71. </a-select>
  72. 产品购买满
  73. <a-input-number
  74. v-model="form.regularQty"
  75. :min="0"
  76. :step="1"
  77. :max="999999"
  78. :precision="0"
  79. size="small"/>
  80. 个正价产品,送
  81. <a-input-number
  82. v-model="form.promotionQty"
  83. :min="0"
  84. :step="1"
  85. :precision="0"
  86. :max="999999"
  87. size="small"/>
  88. 个促销产品
  89. </div>
  90. <div class="ruleDescList">
  91. <a-checkbox :checked="form.restrictFlag === '1'" size="small" @change="onChange">
  92. 限制正价产品款数
  93. </a-checkbox>
  94. <a-input-number
  95. v-if="form.restrictFlag==='1'"
  96. v-model="form.restrictCategory"
  97. :min="0"
  98. :step="1"
  99. :max="999999"
  100. :precision="0"
  101. size="small"/>
  102. </div>
  103. </a-form-model-item>
  104. <a-form-model-item label="数量叠加" prop="accrualFlag">
  105. <a-radio-group v-model="form.accrualFlag" button-style="solid" size="small">
  106. <a-radio-button value="1">
  107. </a-radio-button>
  108. <a-radio-button value="0">
  109. </a-radio-button>
  110. </a-radio-group>
  111. <span style="color:gray;">(如:满10送2,数量叠加则:满20送4,满30送6)</span>
  112. </a-form-model-item>
  113. <a-form-model-item prop="minOrderFlag">
  114. <span slot="label">
  115. <!-- <a-tooltip title="What do you want others to call you?">
  116. <a-icon type="info-circle" />
  117. </a-tooltip> -->
  118. 订单起订金额
  119. </span>
  120. <a-select v-model="form.minOrderFlag" style="width: 160px" size="small">
  121. <a-select-option value="0">
  122. 不限
  123. </a-select-option>
  124. <a-select-option value="1">
  125. 限制
  126. </a-select-option>
  127. </a-select>
  128. <a-input-number
  129. v-show="form.minOrderFlag && form.minOrderFlag=='1'"
  130. size="small"
  131. style="margin-left:10px;width:300px;"
  132. v-model="form.minOrderAmount"
  133. :min="0"
  134. :max="999999"
  135. :step="1"
  136. :precision="2"
  137. placeholder="请输入金额"/>
  138. </a-form-model-item>
  139. <a-form-model-item prop="upperLimitFlag">
  140. <span slot="label">
  141. <!-- <a-tooltip title="What do you want others to call you?">
  142. <a-icon type="info-circle" />
  143. </a-tooltip> -->
  144. 活动经费上限
  145. </span>
  146. <a-select v-model="form.upperLimitFlag" style="width: 160px" size="small">
  147. <a-select-option value="0">
  148. 不限
  149. </a-select-option>
  150. <a-select-option value="1">
  151. 限制
  152. </a-select-option>
  153. </a-select>
  154. <a-input-number
  155. v-show="form.upperLimitFlag&&form.upperLimitFlag=='1'"
  156. size="small"
  157. style="margin-left:10px;width:300px;"
  158. v-model="form.upperLimitAmount"
  159. :min="0"
  160. :step="1"
  161. :max="999999"
  162. :precision="2"
  163. placeholder="请输入金额"/>
  164. </a-form-model-item>
  165. <a-form-model-item label="促销品与正品一致" prop="regularPromotionSameFlag">
  166. <a-radio-group v-model="form.regularPromotionSameFlag" button-style="solid" size="small" :disabled="form.regularSameFlag==0">
  167. <a-radio-button value="1">
  168. </a-radio-button>
  169. <a-radio-button value="0">
  170. </a-radio-button>
  171. </a-radio-group>
  172. </a-form-model-item>
  173. </a-form-model>
  174. <a-card size="small" :bordered="false" class="pages-wrap">
  175. <div class="flex">
  176. <a-radio-group v-model="chooseVal" button-style="solid" size="small">
  177. <a-radio-button value="a" v-show="form.gateFlag==='1'">
  178. 门槛产品
  179. </a-radio-button>
  180. <a-radio-button value="b">
  181. 正价产品
  182. </a-radio-button>
  183. <a-radio-button value="c" v-show="form.regularPromotionSameFlag==='0'">
  184. 促销产品
  185. </a-radio-button>
  186. </a-radio-group>
  187. <a-button
  188. size="small"
  189. type="link"
  190. class="button-info"
  191. @click="openGuideModal=true"
  192. id="promotionList-edit-btn">+导入产品</a-button>
  193. </div>
  194. <div v-show="chooseVal=='a'"><tableType1 ref="cillProduct"></tableType1></div>
  195. <div v-show="chooseVal=='b'"><tableType1 ref="normalPriceProduct"></tableType1></div>
  196. <div v-show="chooseVal=='c'"><tableType2 ref="offerProduct"></tableType2></div>
  197. </a-card>
  198. <div class="btn-cont">
  199. <a-button id="promotionList-basicInfo-modal-back" @click="isShow = false">取消</a-button>
  200. <a-button style="margin-left: 15px;" type="primary" id="promotionList-modal-save" @click="handleSave">确定</a-button>
  201. </div>
  202. </a-spin>
  203. <!-- 导入产品 -->
  204. <importGuideModal goodFlag="1" :openModal="openGuideModal" @close="closeGuideModel" @ok="hanldeOk" />
  205. </a-modal>
  206. </template>
  207. <script>
  208. import { commonMixin } from '@/utils/mixin'
  209. import { VSelect } from '@/components'
  210. import tableType1 from './tableType1.vue'
  211. import tableType2 from './tableType2.vue'
  212. import { promotionSave, getRuleDetail } from '@/api/promotion'
  213. import ImportGuideModal from './importGuideModal.vue'
  214. export default {
  215. name: 'PromotionListBasicInfoModal',
  216. mixins: [commonMixin],
  217. components: { VSelect, tableType1, tableType2, ImportGuideModal },
  218. props: {
  219. openModal: { // 弹框显示状态
  220. type: Boolean,
  221. default: false
  222. },
  223. promotionSn: {
  224. type: [Number, String],
  225. default: ''
  226. },
  227. itemSn: {
  228. type: [Number, String],
  229. default: ''
  230. }
  231. },
  232. data () {
  233. return {
  234. isShow: this.openModal, // 是否打开弹框
  235. spinning: false,
  236. formItemLayout: {
  237. labelCol: { span: 4 },
  238. wrapperCol: { span: 17 }
  239. },
  240. form: {
  241. promotionRuleType: 'BUY_PROD_GIVE_PROD', // 买产品送产品
  242. description: '', // 简称
  243. gateFlag: '0', // 门槛
  244. gateType: undefined,
  245. gateAmount: undefined,
  246. quotaAmount: undefined,
  247. regularSameFlag: '1', // 满赠规则 不同款商品
  248. regularQty: undefined,
  249. promotionQty: undefined,
  250. restrictFlag: '0', // 限制正价产品款数
  251. restrictCategory: '',
  252. accrualFlag: undefined, // 数量叠加
  253. minOrderFlag: '0', // 起订金额
  254. minOrderAmount: undefined,
  255. upperLimitFlag: '0', // 活动经费上限
  256. upperLimitAmount: undefined,
  257. regularPromotionSameFlag: '1'
  258. },
  259. rules: {
  260. description: [ { required: true, message: '请输入规则简称', trigger: 'blur' } ],
  261. gateFlag: [ { required: true, message: '请选择规则门槛', trigger: 'change' } ],
  262. regularSameFlag: [{ required: true, message: '请选择满赠规则', trigger: 'change' }],
  263. accrualFlag: [{ required: true, message: '请选择数量是否叠加', trigger: 'change' }],
  264. minOrderFlag: [{ required: true, message: '请选择订单起订金额', trigger: 'change' }],
  265. upperLimitFlag: [{ required: true, message: '请选择活动经费上限', trigger: 'change' }],
  266. regularPromotionSameFlag: [{ required: true, message: '请选择促销品与正品是否一致', trigger: 'change' }]
  267. },
  268. chooseVal: 'a',
  269. openGuideModal: false// 导入弹窗
  270. }
  271. },
  272. methods: {
  273. // 满赠 同款 促销品与正品一致 默认是 可修改
  274. // 不同款 默认否 不可修改
  275. handleFullGift (e) {
  276. if (e === '0') {
  277. this.form.regularPromotionSameFlag = '0'
  278. } else {
  279. this.form.regularPromotionSameFlag = '1'
  280. }
  281. },
  282. // 导入
  283. closeGuideModel () {
  284. this.openGuideModal = false
  285. },
  286. hanldeOk (arr) {
  287. const resultArr = []
  288. arr.forEach(item => {
  289. const obj = {
  290. productCode: item.productCode,
  291. productSn: item.product.productSn
  292. }
  293. resultArr.push(obj)
  294. })
  295. const name = this.chooseVal == 'a' ? 'cill' : this.chooseVal == 'b' ? 'normalPrice' : 'offer'
  296. this.$refs[name + 'Product'].importRow(resultArr)
  297. },
  298. // 限制正价产品款数
  299. onChange (e) {
  300. this.form.restrictFlag = e.target.checked ? '1' : '0'
  301. },
  302. // 门槛切换 tab 按钮默认显示问题
  303. changeGateFlag (e) {
  304. if (this.chooseVal != 'c') {
  305. if (e.target.value == '0') {
  306. this.chooseVal = 'b'
  307. } else {
  308. this.chooseVal = 'a'
  309. }
  310. }
  311. },
  312. // 保存
  313. handleSave () {
  314. const _this = this
  315. this.$refs.ruleForm.validate(valid => {
  316. if (valid) {
  317. // 验证必填
  318. if (_this.form.gateFlag == '1') {
  319. if (!_this.form.gateType) {
  320. _this.$message.warning('请选择规则门槛设置类型!')
  321. return
  322. }
  323. if (!_this.form.gateAmount) {
  324. _this.$message.warning('规则门槛条件不能为空!')
  325. return
  326. }
  327. if (_this.form.gateType === 'FIXED_AMOUNT' && !_this.form.quotaAmount) {
  328. _this.$message.warning('规则门槛条件不能为空!')
  329. return
  330. }
  331. }
  332. if (!_this.form.regularQty || !_this.form.promotionQty) {
  333. _this.$message.warning('满赠规则条件不能为空!')
  334. return
  335. }
  336. if (_this.form.restrictFlag === '1' && !_this.form.restrictCategory) {
  337. _this.$message.warning('请输入限制正价产品款数个数!')
  338. return
  339. }
  340. if (_this.form.minOrderFlag == 1 && !_this.form.minOrderAmount) {
  341. _this.$message.warning('请输入订单起订限制金额数!')
  342. return
  343. }
  344. if (_this.form.upperLimitFlag == 1 && !_this.form.upperLimitAmount) {
  345. _this.$message.warning('请输入活动经费上限金额!')
  346. return
  347. }
  348. const form = JSON.parse(JSON.stringify(_this.form))
  349. let rowFlag1 = null
  350. let rowFlag2 = null
  351. let rowFlag3 = null
  352. if (form.gateFlag == '1') {
  353. form.gateProductList = this.$refs.cillProduct.getResultVal()
  354. form.gateAmount = form.gateType === 'RATIO_AMOUNT' ? form.gateAmount / 100 : form.gateAmount
  355. if (form.gateProductList.length == 0) {
  356. _this.$message.warning('请添加门槛产品!')
  357. return
  358. } else {
  359. const qtyFlag = form.gateProductList.some(newCon => { return (!newCon.unitType || !newCon.unitQty) })
  360. if (qtyFlag) {
  361. _this.$message.warning('订单起订量设置不能为空!')
  362. return
  363. }
  364. rowFlag1 = _this.isJudge(form.gateProductList)
  365. }
  366. } else {
  367. form.gateProductList = []
  368. form.gateAmount = ''
  369. form.quotaAmount = ''
  370. form.gateType = undefined
  371. }
  372. if (form.regularPromotionSameFlag == '0') {
  373. form.giftProductList = this.$refs.offerProduct.getResultVal()
  374. if (form.giftProductList.length == 0) {
  375. _this.$message.warning('请添加促销产品!')
  376. return
  377. }
  378. rowFlag2 = _this.isJudge(form.giftProductList)
  379. } else {
  380. form.giftProductList = []
  381. }
  382. form.regularProductList = this.$refs.normalPriceProduct.getResultVal()
  383. // 判断表格必填
  384. if (form.regularProductList.length == 0) {
  385. _this.$message.warning('请添加正价产品!')
  386. return
  387. } else {
  388. const qtyFlag = form.regularProductList.some(newCon => { return (!newCon.unitType || !newCon.unitQty) })
  389. if (qtyFlag) {
  390. _this.$message.warning('订单起订量设置不能为空!')
  391. return
  392. }
  393. rowFlag3 = _this.isJudge(form.regularProductList)
  394. }
  395. if (rowFlag1 || rowFlag2 || rowFlag3) {
  396. _this.$message.warning('请选择产品分类、品牌或产品!')
  397. return
  398. }
  399. form.promotionSn = _this.promotionSn
  400. _this.spinning = true
  401. promotionSave(form).then(res => {
  402. if (res.status == 200) {
  403. _this.$message.success(res.message)
  404. setTimeout(() => {
  405. _this.isShow = false
  406. _this.$emit('ok')
  407. _this.spinning = false
  408. }, 1000)
  409. } else {
  410. _this.spinning = false
  411. }
  412. })
  413. } else {
  414. return false
  415. }
  416. })
  417. },
  418. // 判断品牌,分类,产品其中一个必填
  419. isJudge (list) {
  420. let flag = null
  421. list.forEach(con => {
  422. if (con.productThisList) {
  423. if (con.productThisList.length > 0) {
  424. flag = false
  425. } else {
  426. if ((con.productTypeList && con.productTypeList.length > 0) || (con.productBrandList && con.productBrandList.length > 0)) {
  427. flag = false
  428. } else {
  429. flag = true
  430. }
  431. }
  432. } else {
  433. if ((con.productTypeList && con.productTypeList.length > 0) || (con.productBrandList && con.productBrandList.length > 0)) {
  434. flag = false
  435. } else {
  436. flag = true
  437. }
  438. }
  439. })
  440. return flag
  441. },
  442. // 重置表格
  443. resetSearchForm () {
  444. this.form = {
  445. promotionRuleType: 'BUY_PROD_GIVE_PROD', // 买产品送产品
  446. description: '', // 简称
  447. gateFlag: '0', // 门槛
  448. gateType: undefined,
  449. gateAmount: undefined,
  450. quotaAmount: undefined,
  451. regularSameFlag: '1', // 满赠规则 不同款商品
  452. regularQty: undefined,
  453. promotionQty: undefined,
  454. restrictFlag: '0', // 限制正价产品款数
  455. restrictCategory: '',
  456. accrualFlag: '1', // 数量叠加
  457. minOrderFlag: '0', // 起订金额
  458. minOrderAmount: undefined,
  459. upperLimitFlag: '0', // 活动经费上限
  460. upperLimitAmount: undefined,
  461. regularPromotionSameFlag: '1',
  462. gateProductList: undefined,
  463. giftProductList: undefined,
  464. regularProductList: undefined
  465. }
  466. this.$nextTick(() => {
  467. this.$refs.ruleForm.resetFields()
  468. this.$refs.cillProduct.reSetTableData()
  469. this.$refs.normalPriceProduct.reSetTableData()
  470. this.$refs.offerProduct.reSetTableData()
  471. })
  472. },
  473. // 获取编辑详情
  474. getDetail () {
  475. const _this = this
  476. getRuleDetail({ sn: this.itemSn }).then(res => {
  477. if (res.status == 200) {
  478. const resultObj = res.data
  479. _this.chooseVal = resultObj.gateFlag == '0' ? 'b' : 'a'
  480. if (resultObj.gateFlag === '1') {
  481. resultObj.gateAmount = resultObj.gateType === 'RATIO_AMOUNT' ? resultObj.gateAmount * 100 : resultObj.gateAmount
  482. }
  483. // 重新组成保存数据
  484. if (resultObj.gateProductList && resultObj.gateProductList.length > 0) {
  485. resultObj.gateProductList = _this.newData(resultObj.gateProductList)
  486. this.$refs.cillProduct.setTabVal(resultObj.gateProductList)
  487. }
  488. if (resultObj.regularProductList && resultObj.regularProductList.length > 0) {
  489. resultObj.regularProductList = _this.newData(resultObj.regularProductList)
  490. this.$refs.normalPriceProduct.setTabVal(resultObj.regularProductList)
  491. }
  492. if (resultObj.giftProductList && resultObj.giftProductList.length > 0) {
  493. resultObj.giftProductList = _this.newData(resultObj.giftProductList)
  494. this.$refs.offerProduct.setTabVal(resultObj.giftProductList)
  495. }
  496. this.form = { ...this.form, ...resultObj }
  497. }
  498. })
  499. },
  500. newData (list) {
  501. list.forEach(con => {
  502. // 品牌
  503. if (con.productBrandList) {
  504. const brandList = []
  505. con.productBrandList.forEach(item => {
  506. item.brandName = item.productBrandName
  507. const brandObj = {
  508. productBrandSn: item.productBrandSn
  509. }
  510. brandList.push(brandObj)
  511. })
  512. con.productBrandArr = con.productBrandList
  513. con.productBrandList = brandList
  514. }
  515. // 分类
  516. if (con.productTypeList) {
  517. const typeList = []
  518. con.productTypeList.forEach(item => {
  519. const typeObj = {}
  520. const num = 3
  521. for (var i = 0; i < num; i++) {
  522. if (item['productTypeName' + (i + 1)]) {
  523. // item.title += item['productTypeName' + (i + 1)] + (item['productTypeName' + (i + 1)] ? '/' : '')
  524. typeObj['productTypeSn' + (i + 1)] = item['productTypeSn' + (i + 1)] ? item['productTypeSn' + (i + 1)] : ''
  525. }
  526. }
  527. // item.title = item.title.slice(0, item.title.length - 1)
  528. if (item.productTypeName3) {
  529. item.title = item.productTypeName2 + '/' + item.productTypeName3
  530. } else if (!item.productTypeName3 && item.productTypeName2) {
  531. item.title = item.productTypeName2
  532. } else {
  533. item.title = item.productTypeName1
  534. }
  535. item.id = item.productTypeSn3 ? item.productTypeSn3 : item.productTypeSn2 ? item.productTypeSn2 : item.productTypeSn1
  536. typeList.push(typeObj)
  537. })
  538. con.productTypeArr = con.productTypeList
  539. con.productTypeList = typeList
  540. }
  541. // 产品
  542. if (con.productThisList) {
  543. const productList = []
  544. con.productThisList.forEach(item => {
  545. const productObj = {
  546. productCode: item.productCode,
  547. productSn: item.productSn
  548. }
  549. productList.push(productObj)
  550. })
  551. con.productThisList = productList
  552. }
  553. })
  554. return list
  555. }
  556. },
  557. watch: {
  558. // 父页面传过来的弹框状态
  559. openModal (newValue, oldValue) {
  560. this.isShow = newValue
  561. },
  562. // 重定义的弹框状态
  563. isShow (newValue, oldValue) {
  564. if (!newValue) {
  565. this.$emit('close')
  566. this.resetSearchForm()
  567. } else {
  568. if (this.itemSn) {
  569. this.getDetail()
  570. } else {
  571. this.chooseVal = this.form.gateFlag == '0' ? 'b' : 'a'
  572. }
  573. }
  574. }
  575. }
  576. }
  577. </script>
  578. <style lang="less" scoped>
  579. .promotionList-basicInfo-modal{
  580. /deep/.ant-modal-body {
  581. padding: 40px 40px 24px;
  582. max-height: 745px !important;
  583. overflow-y: scroll !important;
  584. }
  585. .ant-radio-button-wrapper{
  586. width:80px;
  587. text-align: center;
  588. }
  589. .ant-form-item{
  590. margin-bottom:5px;
  591. }
  592. .buyerBox{
  593. border:1px solid #d9d9d9;margin-top:10px;border-radius:4px;padding:4px 10px;background:#f2f2f2;max-height:130px;overflow-y:scroll;
  594. }
  595. .btn-cont {
  596. text-align: center;
  597. margin: 35px 0 10px;
  598. }
  599. .flex{
  600. display:flex;
  601. align-items:center;
  602. justify-content:space-between;
  603. }
  604. }
  605. </style>