create.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  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.type == 'offline' && 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">商品设置(购买即可提货)</div>
  161. <award-form ref="awardFrom" @close="close" v-model="goodsList" :id="ids" @goodsCommand="goodsCommand"></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" ticket="goods" :iconic="iconic" @confirmGoodsForm="confirmGoodsForm" @confirmGoods="confirmGoods" v-if="goodsTableVisible" />
  177. <!-- 添加盲票商品 -->
  178. <goods-add :dialog-visible="goodsTableVisible2" @close="close" ticket="ticketGoods" :iconic="iconic" @confirmGoodsForm="confirmGoodsForm" @confirmGoods="confirmGoods" v-if="goodsTableVisible2" />
  179. <!-- 添加券 -->
  180. <coupon-add :dialog-visible="couponTableVisible" :iconic="iconic" @close="close" @confirmCouponForm="confirmCouponForm" @confirmCoupon="confirmCoupon" v-if="couponTableVisible" />
  181. <!-- 添加券包 -->
  182. <coupon-pkg-add :dialog-visible="couponPkgTableVisible" :iconic="iconic" @close="close" @confirmCouponPkgForm="confirmCouponPkgForm" @confirmCouponPkg="confirmCouponPkg" v-if="couponPkgTableVisible" />
  183. <!-- 添加盲豆 -->
  184. <coin-add :dialog-visible="coinTableVisible" @close="close" @confirmCoin="confirmCoin" v-if="coinTableVisible" />
  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. export default {
  201. name: "TicketCreate",
  202. mixins: [CustomFieldsMixin],
  203. components: {
  204. AwardsList,
  205. GoodsAdd,
  206. CouponAdd,
  207. CouponPkgAdd,
  208. CoinAdd,
  209. Upload,
  210. AwardForm,
  211. },
  212. data() {
  213. return {
  214. loading: false,
  215. id: this.$route.query.id,
  216. ids: this.$route.query.id?this.$route.query.id:0,
  217. form: {
  218. type: "online", //盲票类型
  219. title: "", // 盲票名称
  220. picUrl: "", // 图片
  221. facePrice: "", // 面值
  222. salePrice: "", // 售价
  223. prePrice: 0, //预购价
  224. quantity: "", // 数量
  225. pkgUnit: 200, // 张数
  226. pkgSalePrice: 0, // 单价
  227. saleCommRate: "", // 基数
  228. originPrice: 0, //划线价
  229. disabled: false,
  230. saleChannelType: 1
  231. },
  232. // 上级渠道列表
  233. channelList:[],
  234. rules: {
  235. type: [
  236. { required: true, message: "请选择盲票类型", trigger: "change" },
  237. ],
  238. title: [
  239. { required: true, message: "请输入盲票组名称", trigger: "blur" },
  240. ],
  241. picUrl: [
  242. {
  243. required: true,
  244. message: "请上传盲票图片",
  245. trigger: ["blur", "change"],
  246. },
  247. ],
  248. facePrice: [
  249. { required: true, message: "请输入面值", trigger: "blur" },
  250. {
  251. pattern:
  252. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  253. message: "请输入合法的金额数字,最多两位小数",
  254. trigger: ["blur", "change"],
  255. },
  256. ],
  257. salePrice: [
  258. { required: true, message: "请输入售价", trigger: "blur" },
  259. {
  260. pattern:
  261. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  262. message: "请输入合法的金额数字,最多两位小数",
  263. trigger: ["blur", "change"],
  264. },
  265. ],
  266. prePrice: [
  267. { required: true, message: "请输入预付售票价", trigger: "blur" },
  268. {
  269. pattern:
  270. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  271. message: "请输入合法的金额数字,最多两位小数",
  272. trigger: ["blur", "change"],
  273. },
  274. ],
  275. quantity: [
  276. { required: true, message: "请输入数量", trigger: "blur" },
  277. {
  278. pattern: /^([1-9]\d*)$/,
  279. message: "请输入合法的数字",
  280. trigger: ["blur", "change"],
  281. },
  282. ],
  283. originPrice: [{
  284. pattern:
  285. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  286. message: "请输入合法的金额数字,最多两位小数",
  287. trigger: ["blur", "change"],
  288. },],
  289. pkgUnit: [
  290. { required: true, message: "请输入每包张数", trigger: "blur" },
  291. {
  292. pattern: /^([1-9]\d*)$/,
  293. message: "请输入合法的数字",
  294. trigger: ["blur", "change"],
  295. },
  296. ],
  297. pkgSalePrice: [
  298. { required: true, message: "请输入采购单价", trigger: "blur" },
  299. {
  300. pattern:
  301. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  302. message: "请输入合法的金额数字,最多两位小数",
  303. trigger: ["blur", "change"],
  304. },
  305. ],
  306. saleCommRate: [
  307. { required: true, message: "请输入分佣基数", trigger: "blur" },
  308. {
  309. pattern:
  310. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  311. message: "请输入合法的数字,最多两位小数",
  312. trigger: ["blur", "change"],
  313. },
  314. ],
  315. saleChannelType: [
  316. { required: true, message: "请选择销售范围", trigger: "change" },
  317. ],
  318. channelIdList: [
  319. { required: true, message: "请选择渠道", trigger: "change" },
  320. ],
  321. },
  322. // 奖级列表
  323. awardsList: [],
  324. //关联商品列表
  325. goodsList: [],
  326. goodsTableVisible: false, // 添加商品弹框
  327. goodsTableVisible2: false, // 添加盲票商品弹框
  328. couponTitle: "", // 券名称
  329. couponTableVisible: false, // 添加卡券弹框
  330. couponPkgTableVisible: false, // 添加券包弹框
  331. coinTableVisible: false, // 添加盲豆弹框
  332. pageParams: {
  333. pageNum: 1,
  334. pageSize: 10,
  335. },
  336. iconic: '',//区分添加的是关联商品还是奖品
  337. };
  338. },
  339. computed: {
  340. ticketPicUrl: {
  341. get() {
  342. return this.form.picUrl ? this.form.picUrl.split(',').map(item => {
  343. return {
  344. fileName: item
  345. }
  346. }) : []
  347. },
  348. set(val) {
  349. this.$set(this.form, 'picUrl', val.map(item => { return item.fileName }).toString())
  350. }
  351. }
  352. },
  353. created() {
  354. this.getChannelList()
  355. if (this.id) {
  356. let data = {
  357. boxId: this.id
  358. }
  359. ticketBoxDetail(data).then(res => {
  360. const { awardsList, goodsList, type, title, picUrl, facePrice, salePrice, prePrice, quantity, originPrice, pkgUnit, pkgSalePrice, saleCommRate, saleChannelType, channelList } = res.data
  361. this.form = {
  362. disabled:true,
  363. title, picUrl, quantity, pkgUnit, saleCommRate, saleChannelType,
  364. channelIdList: channelList.map(item => item.channelId),
  365. type: JSON.parse(type).value,
  366. facePrice:accDiv(facePrice, 100),
  367. salePrice:accDiv(salePrice, 100),
  368. prePrice:accDiv(prePrice,100),
  369. pkgSalePrice:accDiv(pkgSalePrice, 100),
  370. originPrice:accDiv(originPrice, 100)
  371. }
  372. if(awardsList){
  373. awardsList.forEach((item) => {
  374. item.isEdit = true
  375. item.prizeList.forEach((ele) => {
  376. (ele.picUrl = publicFileGetUrl + ele.picUrl.split(',')[0]),
  377. (ele.prizeType = JSON.parse(ele.prizeType).value);
  378. });
  379. });
  380. this.$nextTick(() => {
  381. this.$refs.awards.add(3, awardsList)
  382. this.$refs.awards.changetype(JSON.parse(type).value)
  383. })
  384. this.awardsList = awardsList
  385. }
  386. if(goodsList){
  387. goodsList.forEach((item) => {
  388. (item.picUrl = publicFileGetUrl + item.picUrl.split(',')[0]),
  389. // (item.prizeType = JSON.parse(item.prizeType).value);
  390. (item.type = JSON.parse(item.type).value);
  391. });
  392. if(this.$refs.awardFrom) {
  393. this.$nextTick(() => {
  394. this.$refs.awardFrom.add(3,goodsList)
  395. })
  396. }
  397. // this.goodsList = goodsList
  398. }
  399. })
  400. }
  401. },
  402. methods: {
  403. // 获取上级渠道下拉列表
  404. getChannelList(){
  405. listAllChannel().then(response => {
  406. this.channelList = response.data || [];
  407. });
  408. },
  409. // 保存
  410. submitForm() {
  411. const subForm = this.$refs["form"];
  412. subForm.validate((valid) => {
  413. if (valid) {
  414. // let prizeIndex = this.awardsList.findIndex((item) => {
  415. // return !item.prizeList.length;
  416. // });
  417. // // 判断没有设置奖品的奖级
  418. // if (prizeIndex != -1) {
  419. // this.$message.error(
  420. // `请设置${this.awardsList[prizeIndex].name}的奖品!`
  421. // );
  422. // return;
  423. // }
  424. if (this.form.quantity > 100000) {
  425. this.$message.error("盲票数量超出限制,请重新填写!");
  426. return;
  427. }
  428. let prizeIndex = this.awardsList.findIndex((item) => {
  429. return !item.prizeList.length && item.quantity > 0;
  430. });
  431. // 判断没有设置奖品的奖级
  432. if (prizeIndex != -1) {
  433. this.$message.error(
  434. `请设置${this.awardsList[prizeIndex].name}的奖品!`
  435. );
  436. return;
  437. }
  438. if (this.form.quantity % this.form.pkgUnit != 0) {
  439. this.$message.error("每包数量错误!");
  440. return;
  441. }
  442. let quantityTotal = 0;
  443. this.awardsList.forEach((item) => {
  444. quantityTotal += item.quantity;
  445. });
  446. if (this.form.quantity != quantityTotal) {
  447. this.$message.error("盲票数量和奖品数量不一致!");
  448. return;
  449. }
  450. // if (this.form.saleCommRate > 100) {
  451. // this.$message.error("分佣基数不能大于100!");
  452. // return;
  453. // }
  454. this.awardsList.forEach((item) => {
  455. item.prizeList = item.prizeList.map((ele) => {
  456. return {
  457. ...ele,
  458. refId: ele.goodsId || ele.couponId || ele.id,
  459. prizeType: ele.prizeType,
  460. quantity: ele.quantity,
  461. value: Number(ele.coinValue),
  462. };
  463. });
  464. });
  465. let filterArr = this.awardsList.filter((item) => {
  466. return item.prizeList.length != 0;
  467. });
  468. let filterArr2 = filterArr.filter((item) => {
  469. return item.quantity != 0;
  470. });
  471. // for (let i = 0; i < filterArr2.length; i++) {
  472. // if(filterArr2[i].awardsLabel == "" || filterArr2[i].awardsLabel == undefined){
  473. // this.$message.error("关联奖级不能为空");
  474. // return
  475. // }
  476. // }
  477. if (this.form.type == "offline") {
  478. this.form.originPrice = null
  479. for (let i = 0; i < filterArr2.length; i++) {
  480. for (let j = 0; j < filterArr2[i].prizeList; j++) {
  481. filterArr2[i].prizeList[j].quantity = null
  482. }
  483. }
  484. }
  485. if (this.form.type != "offline" && this.goodsList.length < 1) {
  486. this.$message.error("关联商品不能为空");
  487. return
  488. }
  489. let data = {
  490. ...this.form,
  491. facePrice: accMul(this.form.facePrice, 100),
  492. salePrice: accMul(this.form.salePrice, 100),
  493. prePrice: accMul(this.form.prePrice, 100),
  494. pkgSalePrice: accMul(this.form.pkgSalePrice, 100),
  495. originPrice: accMul(this.form.originPrice, 100),
  496. awardsList: filterArr2,
  497. goodsList: this.goodsList
  498. };
  499. if (this.id){
  500. data.boxId = this.id
  501. }
  502. let request = this.id ? setListDetail : ticketBoxCreate;
  503. const loading = this.$loading({
  504. lock: true,
  505. text: "保存中",
  506. spinner: "el-icon-loading",
  507. background: "rgba(0, 0, 0, 0.4)",
  508. });
  509. request(data)
  510. .then((res) => {
  511. loading.close();
  512. if (res.code == 0) {
  513. this.msgSuccess("保存成功");
  514. this.$store.dispatch("tagsView/delView", this.$route);
  515. this.$router.go(-1);
  516. }
  517. })
  518. .catch(() => {
  519. loading.close();
  520. });
  521. } else {
  522. this.getFormErrorMessage(subForm);
  523. return false;
  524. }
  525. });
  526. },
  527. // 关闭弹框
  528. close() {
  529. this.goodsTableVisible = false;
  530. this.goodsTableVisible2 = false;
  531. this.couponTableVisible = false;
  532. this.couponPkgTableVisible = false;
  533. this.coinTableVisible = false;
  534. },
  535. changeType(e) {
  536. this.$refs.awards.changetype(e)
  537. },
  538. // 添加奖品种类
  539. handleCommand(e) {
  540. if (e == "goods") {
  541. this.iconic = 'goods'
  542. this.goodsTableVisible = true;
  543. } else if (e == "coupon") {
  544. this.iconic = 'coupon'
  545. this.couponTableVisible = true;
  546. } else if (e == "coupon_pkg") {
  547. this.iconic = 'couponPkg'
  548. this.couponPkgTableVisible = true;
  549. } else if (e == "coin") {
  550. this.coinTableVisible = true;
  551. }else if(e == "ticketGoods") {
  552. this.iconic = 'goods'
  553. this.goodsTableVisible2 = true;
  554. }
  555. },
  556. goodsCommand(e) {
  557. if (e == "goods") {
  558. this.iconic = 'goodsForm'
  559. this.goodsTableVisible = true;
  560. } else if (e == "coupon") {
  561. this.iconic = 'couponForm'
  562. this.couponTableVisible = true;
  563. } else if (e == "coupon_pkg") {
  564. this.iconic = 'couponPkgForm'
  565. this.couponPkgTableVisible = true;
  566. }else if (e == "ticketGoods") {
  567. this.iconic = 'goodsForm'
  568. this.goodsTableVisible2 = true;
  569. }
  570. },
  571. // 确认选中商品
  572. confirmGoods(arr) {
  573. this.$refs.awards.add(1, arr)
  574. },
  575. // 确认选中卡券
  576. confirmCoupon(arr) {
  577. this.$refs.awards.add(1, arr)
  578. },
  579. // 确认选中券包
  580. confirmCouponPkg(arr) {
  581. this.$refs.awards.add(1, arr)
  582. },
  583. // 确认输入盲豆
  584. confirmCoin(obj) {
  585. this.$refs.awards.add(2, obj)
  586. },
  587. //选中的关联商品
  588. confirmGoodsForm(arr) {
  589. this.$refs.awardFrom.add(1,arr)
  590. },
  591. // 确认选中关联卡券
  592. confirmCouponForm(arr) {
  593. this.$refs.awardFrom.add(1, arr)
  594. },
  595. // 确认选中关联券包
  596. confirmCouponPkgForm(arr) {
  597. this.$refs.awardFrom.add(1, arr)
  598. },
  599. // 取消
  600. back() {
  601. this.$store.dispatch("tagsView/delView", this.$route);
  602. this.$router.go(-1);
  603. },
  604. },
  605. };
  606. </script>
  607. <style lang="scss" scoped>
  608. .base-info-title {
  609. padding: 10px;
  610. border-bottom: 1px solid #eaeaea;
  611. margin-bottom: 20px;
  612. }
  613. .tip {
  614. padding-left: 100px;
  615. height: 32px;
  616. margin-bottom: 20px;
  617. color: #828282;
  618. font-size: 14px;
  619. }
  620. .save-btn {
  621. display: flex;
  622. align-content: center;
  623. justify-content: center;
  624. margin-bottom: 100px;
  625. .ge {
  626. width: 100px;
  627. }
  628. }
  629. .prize {
  630. width: 1000px;
  631. margin-bottom: 50px;
  632. background: #f9f9f9;
  633. border: 1px solid #bbbbbb;
  634. font-size: 14px;
  635. &-top {
  636. padding: 10px 20px;
  637. margin-bottom: 10px;
  638. display: flex;
  639. align-content: center;
  640. justify-content: space-around;
  641. border-bottom: 1px solid #bbbbbb;
  642. div {
  643. line-height: 36px;
  644. }
  645. }
  646. &-btn {
  647. border-top: 1px solid #bbbbbb;
  648. padding: 10px;
  649. }
  650. }
  651. .dialog-search {
  652. display: flex;
  653. line-height: 32px;
  654. margin-bottom: 20px;
  655. .ge {
  656. width: 40px;
  657. }
  658. }
  659. .dialog-btn {
  660. display: flex;
  661. align-content: center;
  662. justify-content: flex-end;
  663. padding: 40px 0 0;
  664. .ge {
  665. width: 40px;
  666. }
  667. }
  668. </style>