sendProductsModal.vue 23 KB

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