create.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <template>
  2. <div class="app-container">
  3. <div class="base-info">
  4. <div class="base-info-title">基础信息</div>
  5. <!-- 基础信息 -->
  6. <div class="base-info-form">
  7. <el-form :model="form" :rules="rules" ref="form" label-width="100px">
  8. <el-form-item label="盲票类型" prop="type">
  9. <el-radio-group v-model="form.type" size="small" :disabled="form.disabled" @change="$refs['form'].clearValidate();changeType($event)">
  10. <el-radio label="online">线上盲票</el-radio>
  11. <el-radio label="offline">线下盲票</el-radio>
  12. </el-radio-group>
  13. </el-form-item>
  14. <el-form-item label="盲票组名称" prop="title">
  15. <el-col :xs="{span: 22, offset: 0}" :sm=" {span: 18, offset: 0}" :lg="{span: 10, offset: 0}">
  16. <el-input
  17. v-model="form.title"
  18. size="small"
  19. placeholder="请输入盲票组名称"
  20. ></el-input>
  21. </el-col>
  22. </el-form-item>
  23. <el-form-item label="图片" prop="picUrl">
  24. <Upload v-model="ticketPicUrl" :limit="3" :fileSize="0.5" @change="$refs.form.validateField(['picUrl'])"/>
  25. </el-form-item>
  26. <div class="tip" v-if="form.type != 'offline'">
  27. 请上传图片,jpg、png格式;线上盲票第1张为封面图,第2张为奖品图,第3张为主题图;大小不超过500k
  28. </div>
  29. <div class="tip" v-else>
  30. 上传1张图片,支持jpg、png格式上传,大小不超过500k;
  31. </div>
  32. <el-form-item label="面值" prop="facePrice">
  33. <el-input
  34. v-model="form.facePrice "
  35. style="width: 240px"
  36. size="small"
  37. placeholder="请输入面值" :disabled="form.disabled"
  38. >
  39. <template slot="append">元</template>
  40. </el-input>
  41. </el-form-item>
  42. <el-form-item label="售价" prop="salePrice">
  43. <el-input
  44. v-model="form.salePrice"
  45. style="width: 240px"
  46. size="small"
  47. placeholder="请输入售价"
  48. >
  49. <template slot="append">元</template>
  50. </el-input>
  51. </el-form-item>
  52. <el-form-item label="预付售票价" prop="prePrice">
  53. <el-input
  54. v-model="form.prePrice"
  55. style="width: 240px"
  56. size="small"
  57. placeholder="请输入预付售票价"
  58. >
  59. <template slot="append">元 / 张</template>
  60. </el-input>
  61. </el-form-item>
  62. <div class="tip" v-if="form.type != 'offline'">
  63. 如果为0则不作为预售票购买
  64. </div>
  65. <el-form-item
  66. label="划线价"
  67. prop="originPrice"
  68. v-if="form.type != 'offline'"
  69. >
  70. <el-input
  71. v-model="form.originPrice"
  72. style="width: 240px"
  73. size="small"
  74. placeholder="请输入划线价"
  75. >
  76. <template slot="append">元</template>
  77. </el-input>
  78. </el-form-item>
  79. <div class="tip" v-if="form.type != 'offline'">
  80. 划线价为0或不填,则不显示划线价
  81. </div>
  82. <el-form-item label="盲票总数" prop="quantity">
  83. <el-input
  84. v-model="form.quantity"
  85. style="width: 240px"
  86. size="small"
  87. placeholder="请输入盲票总数" :disabled="form.disabled"
  88. >
  89. <template slot="append">张</template>
  90. </el-input>
  91. </el-form-item>
  92. <el-form-item label="每包张数" prop="pkgUnit">
  93. <el-input
  94. v-model="form.pkgUnit"
  95. style="width: 240px"
  96. size="small"
  97. placeholder="请输入每包张数" :disabled="form.disabled"
  98. >
  99. <template slot="append">张</template>
  100. </el-input>
  101. </el-form-item>
  102. <el-form-item
  103. label="采购单价"
  104. prop="pkgSalePrice"
  105. v-if="form.type == 'offline'"
  106. >
  107. <el-input
  108. v-model="form.pkgSalePrice"
  109. style="width: 240px"
  110. size="small"
  111. placeholder="请输入采购单价"
  112. >
  113. <template slot="append">元/包</template>
  114. </el-input>
  115. </el-form-item>
  116. <el-form-item label="佣金系数" prop="saleCommRate">
  117. <el-input
  118. v-model="form.saleCommRate"
  119. style="width: 240px"
  120. size="small"
  121. placeholder="请输入佣金系数"
  122. >
  123. <template slot="append">%</template>
  124. </el-input>
  125. </el-form-item>
  126. <div class="tip">
  127. 例如:一张盲票用户支付10元,盲票佣金系数90%,门店佣金比例20%,那么门店佣金为10元*90%*20%=1.8元
  128. </div>
  129. <el-form-item label="销售范围" prop="saleChannelType" v-if="form.type == 'offline'">
  130. <el-radio-group v-model="form.saleChannelType" size="small" @change="$refs['form'].clearValidate()">
  131. <el-radio :label="1">所有渠道</el-radio>
  132. <el-radio :label="2">指定渠道</el-radio>
  133. </el-radio-group>
  134. </el-form-item>
  135. <el-form-item label="渠道" prop="channelIdList" v-if="form.saleChannelType == 2">
  136. <el-select
  137. v-model="form.channelIdList"
  138. placeholder="请选择渠道"
  139. style="width: 240px;"
  140. filterable
  141. clearable
  142. multiple
  143. >
  144. <el-option
  145. v-for="(item, index) in channelList"
  146. :key="index"
  147. :label="item.name"
  148. :value="item.channelId">
  149. <div>
  150. <span style="float: left;">{{item.name}} </span>
  151. <span style="float: right;">{{item.mobile}}</span>
  152. </div>
  153. </el-option>
  154. </el-select>
  155. </el-form-item>
  156. <div class="tip" v-if="form.type == 'offline'">注:盲票只对所选渠道下的门店可见</div>
  157. </el-form>
  158. </div>
  159. <!-- 关联商品设置 -->
  160. <div class="base-info-title" v-if="form.type != 'offline'">商品设置(购买即可提货)</div>
  161. <award-form ref="awardFrom" @close="close" v-model="goodsList" :id="ids" @goodsCommand="goodsCommand" v-if="form.type != 'offline'"></award-form>
  162. <!-- 奖级设置 -->
  163. <div class="base-info-title" >奖级设置</div>
  164. <!-- 奖级列表 -->
  165. <awards-list ref="awards" :id="ids" v-model="awardsList" @handleCommand="handleCommand" @close="close" />
  166. <!-- 保存 -->
  167. <div class="save-btn">
  168. <el-button size="small" @click="back"> 取 消 </el-button>
  169. <div class="ge"></div>
  170. <el-button type="primary" size="small" @click="submitForm">
  171. 保 存
  172. </el-button>
  173. </div>
  174. </div>
  175. <!-- 添加商品 -->
  176. <goods-add :dialog-visible="goodsTableVisible" @close="close" @confirmGoods="confirmGoods" v-if="goodsTableVisible" />
  177. <!-- 添加券 -->
  178. <coupon-add :dialog-visible="couponTableVisible" @close="close" @confirmCoupon="confirmCoupon" v-if="couponTableVisible" />
  179. <!-- 添加券包 -->
  180. <coupon-pkg-add :dialog-visible="couponPkgTableVisible" @close="close" @confirmCouponPkg="confirmCouponPkg" v-if="couponPkgTableVisible" />
  181. <!-- 添加盲豆 -->
  182. <coin-add :dialog-visible="coinTableVisible" @close="close" @confirmCoin="confirmCoin" v-if="coinTableVisible" />
  183. <!-- 添加商品 -->
  184. <goods-add-form :dialog-visible="goodsVisibleForm" @close="close" @confirmGoodsForm="confirmGoodsForm" v-if="goodsVisibleForm" ></goods-add-form>
  185. </div>
  186. </template>
  187. <script>
  188. import Upload from '@/components/DragImageUpload'
  189. import { publicFileGetUrl } from "@/api/common";
  190. import CustomFieldsMixin from "@/mixins/CustomFields";
  191. import { ticketBoxCreate, setListDetail, ticketBoxDetail} from "@/api/business/ticket";
  192. import { listAllChannel} from "@/api/admin/channel";
  193. import { accMul, accDiv } from "@/utils/util";
  194. import AwardsList from "./components/AwardsList"
  195. import GoodsAdd from "./components/GoodsAdd"
  196. import CouponAdd from "./components/CouponAdd"
  197. import CouponPkgAdd from "./components/CouponPkgAdd"
  198. import CoinAdd from "./components/CoinAdd"
  199. import AwardForm from "./components/AwardForm"
  200. import GoodsAddForm from "./components/GoodsAddForm"
  201. export default {
  202. name: "TicketCreate",
  203. mixins: [CustomFieldsMixin],
  204. components: {
  205. AwardsList,
  206. GoodsAdd,
  207. CouponAdd,
  208. CouponPkgAdd,
  209. CoinAdd,
  210. Upload,
  211. AwardForm,
  212. GoodsAddForm
  213. },
  214. data() {
  215. return {
  216. loading: false,
  217. id: this.$route.query.id,
  218. ids: this.$route.query.id?this.$route.query.id:0,
  219. form: {
  220. type: "online", //盲票类型
  221. title: "", // 盲票名称
  222. picUrl: "", // 图片
  223. facePrice: "", // 面值
  224. salePrice: "", // 售价
  225. prePrice: 0, //预购价
  226. quantity: "", // 数量
  227. pkgUnit: 200, // 张数
  228. pkgSalePrice: 0, // 单价
  229. saleCommRate: "", // 基数
  230. originPrice: 0, //划线价
  231. disabled: false,
  232. saleChannelType: 1
  233. },
  234. // 上级渠道列表
  235. channelList:[],
  236. rules: {
  237. type: [
  238. { required: true, message: "请选择盲票类型", trigger: "change" },
  239. ],
  240. title: [
  241. { required: true, message: "请输入盲票组名称", trigger: "blur" },
  242. ],
  243. picUrl: [
  244. {
  245. required: true,
  246. message: "请上传盲票图片",
  247. trigger: ["blur", "change"],
  248. },
  249. ],
  250. facePrice: [
  251. { required: true, message: "请输入面值", trigger: "blur" },
  252. {
  253. pattern:
  254. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  255. message: "请输入合法的金额数字,最多两位小数",
  256. trigger: ["blur", "change"],
  257. },
  258. ],
  259. salePrice: [
  260. { required: true, message: "请输入售价", trigger: "blur" },
  261. {
  262. pattern:
  263. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  264. message: "请输入合法的金额数字,最多两位小数",
  265. trigger: ["blur", "change"],
  266. },
  267. ],
  268. prePrice: [
  269. { required: true, message: "请输入预付售票价", trigger: "blur" },
  270. {
  271. pattern:
  272. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  273. message: "请输入合法的金额数字,最多两位小数",
  274. trigger: ["blur", "change"],
  275. },
  276. ],
  277. quantity: [
  278. { required: true, message: "请输入数量", trigger: "blur" },
  279. {
  280. pattern: /^([1-9]\d*)$/,
  281. message: "请输入合法的数字",
  282. trigger: ["blur", "change"],
  283. },
  284. ],
  285. originPrice: [{
  286. pattern:
  287. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  288. message: "请输入合法的金额数字,最多两位小数",
  289. trigger: ["blur", "change"],
  290. },],
  291. pkgUnit: [
  292. { required: true, message: "请输入每包张数", trigger: "blur" },
  293. {
  294. pattern: /^([1-9]\d*)$/,
  295. message: "请输入合法的数字",
  296. trigger: ["blur", "change"],
  297. },
  298. ],
  299. pkgSalePrice: [
  300. { required: true, message: "请输入采购单价", trigger: "blur" },
  301. {
  302. pattern:
  303. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  304. message: "请输入合法的金额数字,最多两位小数",
  305. trigger: ["blur", "change"],
  306. },
  307. ],
  308. saleCommRate: [
  309. { required: true, message: "请输入分佣基数", trigger: "blur" },
  310. {
  311. pattern:
  312. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  313. message: "请输入合法的数字,最多两位小数",
  314. trigger: ["blur", "change"],
  315. },
  316. ],
  317. saleChannelType: [
  318. { required: true, message: "请选择销售范围", trigger: "change" },
  319. ],
  320. channelIdList: [
  321. { required: true, message: "请选择渠道", trigger: "change" },
  322. ],
  323. },
  324. // 奖级列表
  325. awardsList: [],
  326. //关联商品列表
  327. goodsList: [],
  328. goodsTableVisible: false, // 添加商品弹框
  329. couponTitle: "", // 券名称
  330. couponTableVisible: false, // 添加卡券弹框
  331. couponPkgTableVisible: false, // 添加券包弹框
  332. coinTableVisible: false, // 添加盲豆弹框
  333. pageParams: {
  334. pageNum: 1,
  335. pageSize: 10,
  336. },
  337. goodsVisibleForm: false, //添加关联商品弹框
  338. };
  339. },
  340. computed: {
  341. ticketPicUrl: {
  342. get() {
  343. return this.form.picUrl ? this.form.picUrl.split(',').map(item => {
  344. return {
  345. fileName: item
  346. }
  347. }) : []
  348. },
  349. set(val) {
  350. this.$set(this.form, 'picUrl', val.map(item => { return item.fileName }).toString())
  351. }
  352. }
  353. },
  354. created() {
  355. this.getChannelList()
  356. if (this.id) {
  357. let data = {
  358. boxId: this.id
  359. }
  360. ticketBoxDetail(data).then(res => {
  361. const { awardsList, goodsList, type, title, picUrl, facePrice, salePrice, prePrice, quantity, originPrice, pkgUnit, pkgSalePrice, saleCommRate, saleChannelType, channelList } = res.data
  362. this.form = {
  363. disabled:true,
  364. title, picUrl, quantity, pkgUnit, saleCommRate, saleChannelType,
  365. channelIdList: channelList.map(item => item.channelId),
  366. type: JSON.parse(type).value,
  367. facePrice:accDiv(facePrice, 100),
  368. salePrice:accDiv(salePrice, 100),
  369. prePrice:accDiv(prePrice,100),
  370. pkgSalePrice:accDiv(pkgSalePrice, 100),
  371. originPrice:accDiv(originPrice, 100)
  372. }
  373. if(awardsList){
  374. awardsList.forEach((item) => {
  375. item.isEdit = true,
  376. item.prizeList.forEach((ele) => {
  377. (ele.picUrl = publicFileGetUrl + ele.picUrl.split(',')[0]),
  378. (ele.prizeType = JSON.parse(ele.prizeType).value);
  379. });
  380. });
  381. this.$nextTick(() => {
  382. this.$refs.awards.add(3, awardsList)
  383. this.$refs.awards.changetype(JSON.parse(type).value)
  384. })
  385. this.awardsList = awardsList
  386. }
  387. if(goodsList){
  388. goodsList.forEach((item) => {
  389. (item.picUrl = publicFileGetUrl + item.picUrl.split(',')[0]),
  390. // (item.prizeType = JSON.parse(item.prizeType).value);
  391. (item.prizeType = 'goods');
  392. });
  393. this.$nextTick(() => {
  394. this.$refs.awardFrom.add(goodsList)
  395. })
  396. // this.goodsList = goodsList
  397. }
  398. })
  399. }
  400. },
  401. methods: {
  402. // 获取上级渠道下拉列表
  403. getChannelList(){
  404. listAllChannel().then(response => {
  405. this.channelList = response.data || [];
  406. });
  407. },
  408. // 保存
  409. submitForm() {
  410. const subForm = this.$refs["form"];
  411. subForm.validate((valid) => {
  412. if (valid) {
  413. if (this.form.type != "offline" && this.goodsList.length < 1) {
  414. this.$message.error("关联商品不能为空");
  415. return
  416. }
  417. // let prizeIndex = this.awardsList.findIndex((item) => {
  418. // return !item.prizeList.length;
  419. // });
  420. // // 判断没有设置奖品的奖级
  421. // if (prizeIndex != -1) {
  422. // this.$message.error(
  423. // `请设置${this.awardsList[prizeIndex].name}的奖品!`
  424. // );
  425. // return;
  426. // }
  427. if (this.form.quantity > 100000) {
  428. this.$message.error("盲票数量超出限制,请重新填写!");
  429. return;
  430. }
  431. let prizeIndex = this.awardsList.findIndex((item) => {
  432. return !item.prizeList.length && item.quantity > 0;
  433. });
  434. // 判断没有设置奖品的奖级
  435. if (prizeIndex != -1) {
  436. this.$message.error(
  437. `请设置${this.awardsList[prizeIndex].name}的奖品!`
  438. );
  439. return;
  440. }
  441. if (this.form.quantity % this.form.pkgUnit != 0) {
  442. this.$message.error("每包数量错误!");
  443. return;
  444. }
  445. let quantityTotal = 0;
  446. this.awardsList.forEach((item) => {
  447. quantityTotal += item.quantity;
  448. });
  449. if (this.form.quantity != quantityTotal) {
  450. this.$message.error("盲票数量和奖品数量不一致!");
  451. return;
  452. }
  453. // if (this.form.saleCommRate > 100) {
  454. // this.$message.error("分佣基数不能大于100!");
  455. // return;
  456. // }
  457. this.awardsList.forEach((item) => {
  458. item.prizeList = item.prizeList.map((ele) => {
  459. return {
  460. ...ele,
  461. refId: ele.goodsId || ele.couponId || ele.id,
  462. prizeType: ele.prizeType,
  463. quantity: ele.quantity,
  464. value: Number(ele.coinValue),
  465. };
  466. });
  467. });
  468. let filterArr = this.awardsList.filter((item) => {
  469. return item.prizeList.length != 0;
  470. });
  471. let filterArr2 = filterArr.filter((item) => {
  472. return item.quantity != 0;
  473. });
  474. for (let i = 0; i < filterArr2.length; i++) {
  475. if(filterArr2[i].awardsLabel == "" || filterArr2[i].awardsLabel == undefined){
  476. this.$message.error("关联奖级不能为空");
  477. return
  478. }
  479. }
  480. if (this.form.type == "offline") {
  481. this.form.originPrice = null
  482. for (let i = 0; i < filterArr2.length; i++) {
  483. for (let j = 0; j < filterArr2[i].prizeList; j++) {
  484. filterArr2[i].prizeList[j].quantity = null
  485. }
  486. }
  487. }
  488. let data = {
  489. ...this.form,
  490. facePrice: accMul(this.form.facePrice, 100),
  491. salePrice: accMul(this.form.salePrice, 100),
  492. prePrice: accMul(this.form.prePrice, 100),
  493. pkgSalePrice: accMul(this.form.pkgSalePrice, 100),
  494. originPrice: accMul(this.form.originPrice, 100),
  495. awardsList: filterArr2,
  496. goodsList: this.goodsList
  497. };
  498. if (this.id){
  499. data.boxId = this.id
  500. }
  501. let request = this.id ? setListDetail : ticketBoxCreate;
  502. const loading = this.$loading({
  503. lock: true,
  504. text: "保存中",
  505. spinner: "el-icon-loading",
  506. background: "rgba(0, 0, 0, 0.4)",
  507. });
  508. request(data)
  509. .then((res) => {
  510. loading.close();
  511. if (res.code == 0) {
  512. this.msgSuccess("保存成功");
  513. this.$store.dispatch("tagsView/delView", this.$route);
  514. this.$router.go(-1);
  515. }
  516. })
  517. .catch(() => {
  518. loading.close();
  519. });
  520. } else {
  521. this.getFormErrorMessage(subForm);
  522. return false;
  523. }
  524. });
  525. },
  526. // 关闭弹框
  527. close() {
  528. this.goodsTableVisible = false;
  529. this.couponTableVisible = false;
  530. this.couponPkgTableVisible = false;
  531. this.coinTableVisible = false;
  532. this.goodsVisibleForm = false;
  533. },
  534. changeType(e) {
  535. this.$refs.awards.changetype(e)
  536. },
  537. // 添加奖品种类
  538. handleCommand(e) {
  539. if (e == "goods") {
  540. this.goodsTableVisible = true;
  541. } else if (e == "coupon") {
  542. this.couponTableVisible = true;
  543. } else if (e == "coupon_pkg") {
  544. this.couponPkgTableVisible = true;
  545. } else if (e == "coin") {
  546. this.coinTableVisible = true;
  547. }
  548. },
  549. goodsCommand() {
  550. this.goodsVisibleForm = true;
  551. },
  552. // 确认选中商品
  553. confirmGoods(arr) {
  554. this.$refs.awards.add(1, arr)
  555. },
  556. // 确认选中卡券
  557. confirmCoupon(arr) {;
  558. this.$refs.awards.add(1, arr)
  559. },
  560. // 确认选中券包
  561. confirmCouponPkg(arr) {;
  562. this.$refs.awards.add(1, arr)
  563. },
  564. // 确认输入盲豆
  565. confirmCoin(obj) {
  566. this.$refs.awards.add(2, obj)
  567. },
  568. //选中的关联商品
  569. confirmGoodsForm(arr) {
  570. this.$refs.awardFrom.add(arr)
  571. },
  572. // 取消
  573. back() {
  574. this.$store.dispatch("tagsView/delView", this.$route);
  575. this.$router.go(-1);
  576. },
  577. },
  578. };
  579. </script>
  580. <style lang="scss" scoped>
  581. .base-info-title {
  582. padding: 10px;
  583. border-bottom: 1px solid #eaeaea;
  584. margin-bottom: 20px;
  585. }
  586. .tip {
  587. padding-left: 100px;
  588. height: 32px;
  589. margin-bottom: 20px;
  590. color: #828282;
  591. font-size: 14px;
  592. }
  593. .save-btn {
  594. display: flex;
  595. align-content: center;
  596. justify-content: center;
  597. margin-bottom: 100px;
  598. .ge {
  599. width: 100px;
  600. }
  601. }
  602. .prize {
  603. width: 1000px;
  604. margin-bottom: 50px;
  605. background: #f9f9f9;
  606. border: 1px solid #bbbbbb;
  607. font-size: 14px;
  608. &-top {
  609. padding: 10px 20px;
  610. margin-bottom: 10px;
  611. display: flex;
  612. align-content: center;
  613. justify-content: space-around;
  614. border-bottom: 1px solid #bbbbbb;
  615. div {
  616. line-height: 36px;
  617. }
  618. }
  619. &-btn {
  620. border-top: 1px solid #bbbbbb;
  621. padding: 10px;
  622. }
  623. }
  624. .dialog-search {
  625. display: flex;
  626. line-height: 32px;
  627. margin-bottom: 20px;
  628. .ge {
  629. width: 40px;
  630. }
  631. }
  632. .dialog-btn {
  633. display: flex;
  634. align-content: center;
  635. justify-content: flex-end;
  636. padding: 40px 0 0;
  637. .ge {
  638. width: 40px;
  639. }
  640. }
  641. </style>