shopOperation.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <template>
  2. <div class="m-container">
  3. <h2>
  4. <el-page-header
  5. @back="onCancel"
  6. :content="pageTitle[pageType] + '商品'"
  7. ></el-page-header>
  8. </h2>
  9. <div class="m-core">
  10. <el-form :model="form" :rules="rules" ref="form" label-width="120px">
  11. <el-form-item label="货号" prop="sn">
  12. <el-input
  13. v-model.trim="form.sn"
  14. :disabled="pageDisabled"
  15. placeholder="请输入货号"
  16. style="width: 400px"
  17. ></el-input>
  18. </el-form-item>
  19. <el-form-item label="品牌" prop="brand">
  20. <el-input
  21. v-model.trim="form.brand"
  22. :disabled="pageDisabled"
  23. placeholder="请输入品牌"
  24. style="width: 400px"
  25. ></el-input>
  26. </el-form-item>
  27. <!-- <el-form-item label="备查货号" prop="supplyChannel" v-if="pageType == 'create'">
  28. <el-input v-model.trim="form.supplyChannel" placeholder="请输入备查货号" style="width: 400px"></el-input>
  29. </el-form-item> -->
  30. <el-form-item label="商品名称" prop="name">
  31. <el-input
  32. v-model.trim="form.name"
  33. placeholder="请输入商品名称"
  34. :disabled="pageDisabled"
  35. style="width: 400px"
  36. ></el-input>
  37. </el-form-item>
  38. <el-form-item label="商品类型" prop="type">
  39. <el-select
  40. v-model.trim="form.type"
  41. placeholder="请选择商品类型"
  42. :disabled="pageDisabled"
  43. style="width: 400px !important"
  44. >
  45. <el-option
  46. v-for="(item, index) in goodsType"
  47. :key="index"
  48. :label="item.label"
  49. :value="item.value"
  50. ></el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item label="商品分类" prop="goodsCategoryId">
  54. <el-select
  55. v-model.trim="form.goodsCategoryId"
  56. placeholder="请选择商品分类"
  57. :disabled="pageDisabled"
  58. style="width: 400px !important"
  59. filterable
  60. >
  61. <el-option
  62. v-for="item in categoryList"
  63. :key="item.value"
  64. :label="item.label"
  65. :value="item.value"
  66. >
  67. </el-option>
  68. </el-select>
  69. </el-form-item>
  70. <el-form-item label="所属分部" prop="organIdList">
  71. <select-all v-model.trim="form.organIdList"
  72. filterable
  73. placeholder="请选择所属分部"
  74. style="width: 400px !important"
  75. multiple
  76. :disabled="pageDisabled || pageType == 'update'"
  77. clearable>
  78. <el-option v-for="item in selects.branchs"
  79. :key="item.id"
  80. :label="item.name"
  81. :value="item.id.toString()"></el-option>
  82. </select-all>
  83. </el-form-item>
  84. <el-form-item label="商品型号" prop="specification">
  85. <el-input
  86. v-model.trim="form.specification"
  87. placeholder="请输入商品型号"
  88. :disabled="pageDisabled"
  89. style="width: 400px"
  90. ></el-input>
  91. </el-form-item>
  92. <!-- <el-form-item label="内部库存" prop="stockCount">
  93. <el-input type="number" :disabled="pageType != 'create'" v-model.trim="form.stockCount" placeholder="请输入内部库存" style="width: 400px"></el-input>
  94. </el-form-item>
  95. <el-form-item label="税务库存" prop="taxStockCount">
  96. <el-input type="number" :disabled="pageType != 'create'" v-model.trim="form.taxStockCount" placeholder="请输入税务库存" style="width: 400px"></el-input>
  97. </el-form-item> -->
  98. <el-form-item label="库存类型" prop="stockType">
  99. <el-select
  100. v-model="form.stockType"
  101. placeholder="请选择库存类型"
  102. :disabled="pageDisabled"
  103. style="width: 400px !important"
  104. >
  105. <el-option
  106. v-for="(item, index) in stockType"
  107. :key="index"
  108. :label="item.label"
  109. :value="item.value"
  110. ></el-option>
  111. </el-select>
  112. </el-form-item>
  113. <el-form-item label="市场价" prop="marketPrice">
  114. <el-input
  115. type="number"
  116. placeholder="请输入市场价"
  117. :disabled="pageDisabled"
  118. @mousewheel.native.prevent
  119. v-model.trim="form.marketPrice"
  120. style="width: 400px"
  121. ></el-input>
  122. </el-form-item>
  123. <el-form-item label="零售价" prop="discountPrice">
  124. <el-input
  125. type="number"
  126. placeholder="请输入零售价"
  127. @mousewheel.native.prevent
  128. :disabled="pageDisabled"
  129. v-model.trim="form.discountPrice"
  130. style="width: 400px"
  131. ></el-input>
  132. </el-form-item>
  133. <el-form-item label="商品团购价" prop="groupPurchasePrice">
  134. <el-input
  135. type="number"
  136. placeholder="请输入商品团购价"
  137. @mousewheel.native.prevent
  138. :disabled="pageDisabled"
  139. v-model.trim="form.groupPurchasePrice"
  140. style="width: 400px"
  141. ></el-input>
  142. </el-form-item>
  143. <el-form-item label="学员是否展示" prop="clientShow">
  144. <el-select
  145. v-model="form.clientShow"
  146. :disabled="pageDisabled"
  147. placeholder="请选择学员是否展示"
  148. style="width: 400px !important"
  149. >
  150. <el-option label="是" :value="1"></el-option>
  151. <el-option label="否" :value="0"></el-option>
  152. </el-select>
  153. </el-form-item>
  154. <el-form-item label="管理端是否展示" prop="educationalShow">
  155. <el-select
  156. v-model="form.educationalShow"
  157. placeholder="请选择教务端是否展示"
  158. :disabled="pageDisabled"
  159. style="width: 400px !important"
  160. >
  161. <el-option label="是" :value="1"></el-option>
  162. <el-option label="否" :value="0"></el-option>
  163. </el-select>
  164. </el-form-item>
  165. <el-form-item label="乐团是否展示" prop="musicGroupShow">
  166. <el-select
  167. v-model="form.musicGroupShow"
  168. :disabled="pageDisabled"
  169. placeholder="请选择乐团是否展示"
  170. style="width: 400px !important"
  171. >
  172. <el-option label="是" :value="1"></el-option>
  173. <el-option label="否" :value="0"></el-option>
  174. </el-select>
  175. </el-form-item>
  176. <el-form-item label="乐团收费模式" prop="courseViewType">
  177. <select-all v-model.trim="form.courseViewType"
  178. filterable
  179. placeholder="请选择乐团收费模式"
  180. style="width: 400px !important"
  181. multiple
  182. :disabled="pageDisabled || (form.musicGroupShow != 0 && form.musicGroupShow != 1)"
  183. clearable>
  184. <el-option label="课程收费" value="0"></el-option>
  185. <el-option label="系统收费" value="1"></el-option>
  186. <el-option label="云教练收费" value="2"></el-option>
  187. </select-all>
  188. </el-form-item>
  189. <el-form-item label="是否库存预警" prop="stockWarning">
  190. <el-select
  191. v-model="form.stockWarning"
  192. placeholder="请选择库存预警"
  193. :disabled="pageDisabled"
  194. style="width: 400px !important"
  195. >
  196. <el-option label="是" :value="1"></el-option>
  197. <el-option label="否" :value="0"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. <el-form-item label="是否参与置换" prop="replacementShow">
  201. <el-select
  202. v-model="form.replacementShow"
  203. placeholder="请选择库存预警"
  204. :disabled="pageDisabled"
  205. style="width: 400px !important"
  206. >
  207. <el-option label="是" :value="1"></el-option>
  208. <el-option label="否" :value="0"></el-option>
  209. </el-select>
  210. </el-form-item>
  211. <el-form-item label="商品图片" prop="image">
  212. <el-upload
  213. class="avatar-uploader"
  214. action="/api-web/uploadFile"
  215. accept=".jpg, .jpeg, .png"
  216. :headers="headers"
  217. :disabled="pageDisabled"
  218. :show-file-list="false"
  219. :on-success="handleAvatarSuccess"
  220. :before-upload="beforeAvatarUpload"
  221. >
  222. <img v-if="form.image" :src="form.image" class="avatar" />
  223. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  224. </el-upload>
  225. </el-form-item>
  226. <el-form-item label="商品描述" prop="brief">
  227. <el-input
  228. type="textarea"
  229. v-model.trim="form.brief"
  230. :disabled="pageDisabled"
  231. style="width: 400px"
  232. ></el-input>
  233. </el-form-item>
  234. <el-form-item label="商品详情" prop="desc">
  235. <el-input
  236. type="textarea"
  237. v-model.trim="form.desc"
  238. :disabled="pageDisabled"
  239. style="width: 400px"
  240. ></el-input>
  241. </el-form-item>
  242. <el-form-item v-if="!pageDisabled">
  243. <el-button @click="onSubmit('form')" type="primary"
  244. >保存</el-button
  245. >
  246. <el-button @click="onReSet('form')">重置</el-button>
  247. </el-form-item>
  248. </el-form>
  249. </div>
  250. </div>
  251. </template>
  252. <script>
  253. import {
  254. categoryListTree,
  255. goodsAdd,
  256. goodsUpdate,
  257. goodsSingleQuery,
  258. } from "@/api/businessManager";
  259. import { getToken } from "@/utils/auth";
  260. import { goodsType, stockType } from "@/utils/searchArray";
  261. let validPrice = (rule, value, callback) => {
  262. if ((value == "" && typeof value == "string") || value == null) {
  263. callback(new Error("请输入金额"));
  264. } else if (value < 0) {
  265. callback(new Error("输入金额必须大于或等于0"));
  266. } else if (value >= 100000) {
  267. callback(new Error("输入金额必须小于100000"));
  268. } else {
  269. callback();
  270. }
  271. };
  272. let validStock = (rule, value, callback) => {
  273. if ((value == "" && typeof value == "string") || value == null) {
  274. callback(new Error("请输入库存"));
  275. } else if (value < 0) {
  276. callback(new Error("库存数量必须大于或等于0"));
  277. } else {
  278. callback();
  279. }
  280. };
  281. export default {
  282. name: "shopOperation",
  283. data() {
  284. return {
  285. goodsType: goodsType,
  286. stockType: stockType,
  287. categoryList: [],
  288. pageType: null,
  289. pageTitle: {
  290. create: "添加",
  291. update: "修改",
  292. look: "查看",
  293. copy: "复制"
  294. },
  295. pageDisabled: false,
  296. headers: {
  297. Authorization: getToken(),
  298. },
  299. form: {
  300. sn: null,
  301. brand: null,
  302. supplyChannel: null,
  303. name: null,
  304. type: null,
  305. goodsCategoryId: null,
  306. organIdList: [],
  307. specification: null,
  308. stockCount: null,
  309. taxStockCount: null,
  310. stockType: null,
  311. marketPrice: null,
  312. discountPrice: null,
  313. groupPurchasePrice: null,
  314. clientShow: null,
  315. educationalShow: null,
  316. musicGroupShow: null,
  317. courseViewType: [],
  318. stockWarning: null,
  319. image: null,
  320. brief: null,
  321. desc: null,
  322. replacementShow:null
  323. },
  324. rules: {
  325. sn: [{ required: true, message: "请输入商品货号", trigger: "blur" }],
  326. brand: [
  327. {
  328. required: true,
  329. message: "请输入品牌",
  330. trigger: "blur",
  331. },
  332. {
  333. min: 2,
  334. max: 30,
  335. message: "长度在 2 到 30 个字符",
  336. trigger: "blur",
  337. },
  338. ],
  339. supplyChannel: [
  340. { required: true, message: "请输入备查货号", trigger: "blur" },
  341. ],
  342. name: [
  343. {
  344. required: true,
  345. message: "请输入商品名称",
  346. trigger: "blur",
  347. },
  348. {
  349. min: 2,
  350. max: 30,
  351. message: "长度在 2 到 30 个字符",
  352. trigger: "blur",
  353. },
  354. ],
  355. type: [
  356. {
  357. required: true,
  358. message: "请选择商品分类",
  359. trigger: "change",
  360. },
  361. ],
  362. goodsCategoryId: [
  363. {
  364. required: true,
  365. message: "请选择商品类型",
  366. trigger: "change",
  367. },
  368. ],
  369. organIdList: [
  370. {
  371. required: true,
  372. message: '请选择所属分部',
  373. trigger: "change"
  374. }
  375. ],
  376. specification: [
  377. {
  378. required: true,
  379. message: "请输入商品型号",
  380. trigger: "blur",
  381. },
  382. {
  383. min: 2,
  384. max: 30,
  385. message: "长度在 2 到 30 个字符",
  386. trigger: "blur",
  387. },
  388. ],
  389. stockCount: [
  390. { required: true, validator: validStock, trigger: "blur" },
  391. ],
  392. taxStockCount: [
  393. { required: true, validator: validStock, trigger: "blur" },
  394. ],
  395. stockType: [
  396. { required: true, message: "请选择库存类型", trigger: "change" },
  397. ],
  398. marketPrice: [
  399. {
  400. required: true,
  401. validator: validPrice,
  402. trigger: "blur",
  403. },
  404. ],
  405. discountPrice: [
  406. {
  407. required: true,
  408. validator: validPrice,
  409. trigger: "blur",
  410. },
  411. ],
  412. groupPurchasePrice: [
  413. {
  414. required: true,
  415. validator: validPrice,
  416. trigger: "blur",
  417. },
  418. ],
  419. clientShow: [
  420. { required: true, message: "请选择学员是否展示", trigger: "change" },
  421. ],
  422. replacementShow:[
  423. { required: true, message: "是否参与乐器置换", trigger: "change" },
  424. ],
  425. educationalShow: [
  426. {
  427. required: true,
  428. message: "请选择教务端是否展示",
  429. trigger: "change",
  430. },
  431. ],
  432. musicGroupShow: [
  433. { required: true, message: "请选择乐团是否展示", trigger: "change" },
  434. ],
  435. courseViewType: [
  436. { required: true, message: "请选乐团收费模式", trigger: 'change' },
  437. ],
  438. stockWarning: [
  439. { required: true, message: "请选择是否库存预警", trigger: "change" },
  440. ],
  441. image: [
  442. {
  443. required: true,
  444. message: "请选择图片",
  445. trigger: "blur",
  446. },
  447. ],
  448. brief: [
  449. {
  450. required: true,
  451. message: "请输入商品描述",
  452. trigger: "blur",
  453. },
  454. ],
  455. desc: [
  456. {
  457. required: true,
  458. message: "请输入商品详情",
  459. trigger: "blur",
  460. },
  461. ],
  462. },
  463. Fsearch: null,
  464. Frules: null,
  465. imageWidthM: 400,
  466. imageHeightM: 400,
  467. };
  468. },
  469. mounted() {
  470. // 获取分部
  471. this.$store.dispatch("setBranchs");
  472. this.init();
  473. },
  474. methods: {
  475. init() {
  476. let query = this.$route.query;
  477. if (query.paramInfo) {
  478. let paramInfo = JSON.parse(query.paramInfo);
  479. this.pageType = paramInfo.type;
  480. this.id = paramInfo.id;
  481. }
  482. this.pageDisabled = this.pageType == "look" ? true : false;
  483. this.getList();
  484. this.getCatagory();
  485. },
  486. onSubmit(formName) {
  487. this.$refs[formName].validate((valid) => {
  488. if (valid) {
  489. let tempForm = JSON.parse(JSON.stringify(this.form))
  490. if(tempForm.courseViewType) {
  491. tempForm.courseViewType = tempForm.courseViewType.join(',')
  492. }
  493. if(tempForm.organIdList) {
  494. tempForm.organIdList = tempForm.organIdList.join(',')
  495. }
  496. if (this.pageType == "create" || this.pageType == 'copy') {
  497. if (tempForm.id) {
  498. // 判断有没有Id,如果有则删除
  499. delete tempForm.id;
  500. }
  501. tempForm.status = "NO"; // 默认上架
  502. goodsAdd(tempForm).then((res) => {
  503. this.messageTips("保存", res);
  504. });
  505. } else if (this.pageType == "update") {
  506. goodsUpdate(tempForm).then((res) => {
  507. this.messageTips("保存", res);
  508. });
  509. }
  510. } else {
  511. this.$nextTick(() => {
  512. let isError = document.getElementsByClassName("is-error");
  513. isError[0].scrollIntoView({
  514. block: "center",
  515. behavior: "smooth",
  516. });
  517. });
  518. return false;
  519. }
  520. });
  521. },
  522. messageTips(title, res) {
  523. if (res.code == 200) {
  524. this.$message.success(title + "成功");
  525. this.$store.dispatch("delVisitedViews", this.$route);
  526. this.$router.push({
  527. path: "/shopList",
  528. query: {
  529. pageInfo: this.Frules,
  530. searchForm: this.Fsearch,
  531. },
  532. });
  533. } else {
  534. this.$message.error(res.msg);
  535. }
  536. },
  537. onCancel() {
  538. this.$store.dispatch("delVisitedViews", this.$route);
  539. this.$router.push({
  540. path: "/shopList",
  541. });
  542. },
  543. onReSet(formName) {
  544. this.$refs[formName].resetFields();
  545. },
  546. getList() {
  547. if (this.pageType == "create") {
  548. this.form = {
  549. sn: null,
  550. brand: null,
  551. supplyChannel: null,
  552. name: null,
  553. type: null,
  554. goodsCategoryId: null,
  555. organIdList: [],
  556. specification: null,
  557. stockCount: null,
  558. taxStockCount: null,
  559. stockType: null,
  560. marketPrice: null,
  561. discountPrice: null,
  562. groupPurchasePrice: null,
  563. clientShow: null,
  564. educationalShow: null,
  565. musicGroupShow: null,
  566. courseViewType: [],
  567. stockWarning: null,
  568. image: null,
  569. brief: null,
  570. desc: null,
  571. };
  572. if (this.$refs["form"]) {
  573. this.$refs["form"].resetFields();
  574. }
  575. } else {
  576. goodsSingleQuery(this.id).then((res) => {
  577. if (res.code == 200) {
  578. let result = res.data;
  579. let courseViewType = null
  580. if(result.courseViewType) {
  581. courseViewType = result.courseViewType.split(',')
  582. }
  583. let organIdList = []
  584. if(result.organIdList) {
  585. organIdList = result.organIdList.split(',')
  586. }
  587. this.form = {
  588. id: result.id,
  589. sn: result.sn,
  590. brand: result.brand,
  591. supplyChannel: result.supplyChannel,
  592. name: result.name,
  593. type: result.type,
  594. goodsCategoryId: result.goodsCategoryId,
  595. organIdList: organIdList,
  596. specification: result.specification,
  597. stockCount: result.stockCount,
  598. taxStockCount: result.taxStockCount,
  599. stockType: result.stockType,
  600. marketPrice: result.marketPrice,
  601. discountPrice: result.discountPrice,
  602. groupPurchasePrice: result.groupPurchasePrice,
  603. clientShow: result.clientShow,
  604. educationalShow: result.educationalShow,
  605. musicGroupShow: result.musicGroupShow,
  606. courseViewType: courseViewType,
  607. stockWarning: result.stockWarning,
  608. image: result.image,
  609. brief: result.brief,
  610. desc: result.desc,
  611. replacementShow:result.replacementShow
  612. };
  613. }
  614. });
  615. }
  616. },
  617. getCatagory() {
  618. categoryListTree({
  619. delFlag: 0,
  620. rows: 9999,
  621. }).then((res) => {
  622. let result = res.data;
  623. if (res.code == 200) {
  624. let tempArray = [];
  625. result.rows.forEach((row) => {
  626. tempArray.push({
  627. label: row.name,
  628. value: row.id,
  629. });
  630. });
  631. this.categoryList = tempArray;
  632. }
  633. });
  634. },
  635. handleAvatarSuccess(res, file) {
  636. this.form.image = res.data.url;
  637. },
  638. beforeAvatarUpload(file) {
  639. const imageType = {
  640. "image/png": true,
  641. "image/jpeg": true,
  642. };
  643. const isImage = imageType[file.type];
  644. const isLt2M = file.size / 1024 / 1024 < 2;
  645. const imageWidth = this.imageWidthM;
  646. const imageHeigh = this.imageHeightM;
  647. const _URL = window.URL || window.webkitURL;
  648. const isSize = new Promise((resolve, reject) => {
  649. const img = new Image();
  650. img.onload = function () {
  651. if (imageWidth && imageHeigh) {
  652. this.width === imageWidth && this.height === imageHeigh
  653. ? resolve()
  654. : reject(`请上传${imageWidth}x${imageHeigh}尺寸图片`);
  655. } else if (imageWidth && !imageHeigh) {
  656. this.width === imageWidth
  657. ? resolve()
  658. : reject(`请上传宽为${imageWidth}的图片`);
  659. } else if (!imageWidth && imageHeigh) {
  660. this.height === imageHeigh
  661. ? resolve()
  662. : reject(`请上传高为${imageHeigh}的图片`);
  663. } else {
  664. resolve();
  665. }
  666. };
  667. img.src = _URL.createObjectURL(file);
  668. }).then(
  669. () => {
  670. return file;
  671. },
  672. (src) => {
  673. this.$message.error(src);
  674. this.uploadImgLoading = false;
  675. return Promise.reject();
  676. }
  677. );
  678. if (!isImage) {
  679. this.$message.error("只能上传图片格式!");
  680. }
  681. if (!isLt2M) {
  682. this.$message.error("上传头像图片大小不能超过 2MB!");
  683. }
  684. return isImage && isLt2M && isSize;
  685. },
  686. },
  687. };
  688. </script>
  689. <style lang="scss" scoped>
  690. .el-button--primary {
  691. background: #14928a;
  692. border-color: #14928a;
  693. color: #fff;
  694. &:hover,
  695. &:active,
  696. &:focus {
  697. background: #14928a;
  698. border-color: #14928a;
  699. color: #fff;
  700. }
  701. }
  702. .el-row {
  703. margin-top: 40px;
  704. }
  705. .el-col {
  706. display: flex;
  707. align-items: center;
  708. margin-bottom: 20px;
  709. justify-content: flex-end;
  710. margin-right: 50%;
  711. }
  712. .el-input-group {
  713. width: 200px;
  714. margin: 0 20px;
  715. }
  716. /deep/.el-tree-node__content {
  717. height: 40px !important;
  718. }
  719. /deep/.avatar-uploader .el-upload {
  720. border: 1px dashed #d9d9d9;
  721. border-radius: 6px;
  722. cursor: pointer;
  723. position: relative;
  724. overflow: hidden;
  725. }
  726. .avatar-uploader .el-upload:hover {
  727. border-color: #409eff;
  728. }
  729. .avatar-uploader-icon {
  730. font-size: 28px;
  731. color: #8c939d;
  732. width: 120px;
  733. height: 120px;
  734. line-height: 120px;
  735. text-align: center;
  736. }
  737. .avatar {
  738. width: 120px;
  739. height: 120px;
  740. display: block;
  741. }
  742. .el-select__tags .el-tag.el-tag--info.el-tag--small.el-tag--light {
  743. max-width: 95px;
  744. }
  745. </style>