sendProductsModal.vue 22 KB

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