addAndEdit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. <!--
  2. * @Description: 新增/编辑弹框
  3. * @Author: Sugar.
  4. * @Date: 2023-11-24 13:55:00
  5. * @LastEditors: gcz
  6. * @LastEditTime: 2024-04-22 16:20:30
  7. * @FilePath: \great_webui\src\views\ticket\ticketMr\dialog\addAndEdit.vue
  8. * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
  9. -->
  10. <template>
  11. <el-dialog
  12. :title="title"
  13. :visible.sync="open"
  14. width="95%"
  15. append-to-body
  16. :close-on-click-modal="false"
  17. @close="cancel"
  18. >
  19. <div class="dialog-box">
  20. <div class="dialog">
  21. <el-form :model="form" ref="form" size="mini" :rules="rules" label-width="120px">
  22. <div style="display: flex;">
  23. <el-form-item label="模板名称:" prop="name">
  24. <el-input
  25. style="width: 350px;"
  26. v-model="form.name"
  27. placeholder="模板名称"
  28. clearable
  29. />
  30. </el-form-item>
  31. <el-form-item label="演出厅:" prop="auditoriumId">
  32. <el-select v-model="form.auditoriumId" @change="countBySeatTypFun" placeholder="请选择演出厅">
  33. <el-option
  34. v-for="item in performList"
  35. :key="item.id"
  36. :label="item.name"
  37. :value="item.id">
  38. </el-option>
  39. </el-select>
  40. </el-form-item>
  41. <el-form-item label="可配置数量:">
  42. {{ seatNum }}
  43. </el-form-item>
  44. </div>
  45. <el-form-item label="库存模式:" class="is-required">
  46. <div class="inventory_box">
  47. <div class="inventory_channel" style="width: 200px;">
  48. <div class="inventory_channel_header">
  49. <span>序号</span>
  50. <span>渠道名称</span>
  51. <span>数量</span>
  52. </div>
  53. <div
  54. :class="['inventory_channel_item',index == chennelAtion ?'inventory_channel_item-action':'']"
  55. v-for="(item,index) in form.chennelListForm"
  56. :key="index"
  57. @click="setDictLabel(item,index)"
  58. >
  59. <span>{{ index+1 }}</span>
  60. <span>{{ item.channelName }}</span>
  61. <span>{{ item.stockNum }}</span>
  62. </div>
  63. </div>
  64. <div class="inventory_seat" v-if="chennelAtion !== null">
  65. <el-form-item label="选择模式:" label-width="85px" class="is-required">
  66. <el-radio-group
  67. v-model="form.chennelListForm[chennelAtion].stockType"
  68. @change="setStockType"
  69. >
  70. <el-radio :label="0">根据数量</el-radio>
  71. <el-radio :label="1">根据座位</el-radio>
  72. </el-radio-group>
  73. </el-form-item>
  74. <div v-if="!form.chennelListForm[chennelAtion].stockType">
  75. <el-table ref="tables" v-loading="loading" :data="form.chennelListForm[chennelAtion].seatTypeList" border>
  76. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  77. <el-table-column label="座位类型" align="center" prop="seatTypeName" />
  78. <el-table-column label="可配置数量" align="center" prop="stock"></el-table-column>
  79. <el-table-column label="配置数量" align="center">
  80. <template slot-scope="scope">
  81. <el-input v-model="form.chennelListForm[chennelAtion].seatTypeList[scope.$index].stockNum" type="number" clearable placeholder="请输入数量"></el-input>
  82. </template>
  83. </el-table-column>
  84. </el-table>
  85. </div>
  86. <div v-else>
  87. <seatBox
  88. ref="seatBox"
  89. :isOccupyStatus="false"
  90. @selectSeat="selectSeat"
  91. />
  92. </div>
  93. </div>
  94. </div>
  95. </el-form-item>
  96. <el-form-item label="备注:" prop="remark">
  97. <el-input
  98. v-model="form.remark"
  99. type="textarea"
  100. placeholder="请输入备注"
  101. clearable
  102. />
  103. </el-form-item>
  104. </el-form>
  105. </div>
  106. <div
  107. v-if="loading"
  108. class="dialog-loading"
  109. v-loading="loading"
  110. :element-loading-text="loadingText"
  111. element-loading-spinner="el-icon-loading"
  112. element-loading-background="rgba(0, 0, 0, 0.8)"
  113. ></div>
  114. </div>
  115. <span slot="footer" class="dialog-footer">
  116. <el-button @click="cancel">关闭</el-button>
  117. <el-button
  118. v-if="model !== 'DETAILS'"
  119. type="primary"
  120. @click="submitForm"
  121. :loading="loading"
  122. >
  123. <span v-if="loading">提交中...</span>
  124. <span v-else>保存</span>
  125. </el-button>
  126. </span>
  127. <!-- 添加或修改对话框 End -->
  128. <!-- -->
  129. </el-dialog>
  130. </template>
  131. <script>
  132. import { saveAndEdit, getSelectById,countBySeatTyp,channelType } from '@/api/ticketMr/InventoryTemplate'
  133. import { getSelectById as getSeatSelectByIdApi } from "@/api/performanceHallMr/performanceHallMr";
  134. import { merchantPageList } from '@/api/performanceHallMr/performanceHallMr'
  135. import seatBox from '@/components/seatBox/index.vue';
  136. export default {
  137. name: "addAndEdit",
  138. dicts: ['system_taxrate'],
  139. components: {
  140. seatBox
  141. },
  142. data() {
  143. return {
  144. open: false,
  145. title: "编辑",
  146. model: "EDIT",
  147. loading: false,
  148. loadingText: '获取数据中...',
  149. activeName: '01',
  150. // 演员信息弹窗
  151. performerVisible: false,
  152. // 演员信息
  153. performerList: [],
  154. // 演员上传图片索引
  155. performerIndex: 0,
  156. form: {
  157. id: undefined,
  158. chennelListForm: []
  159. },
  160. formStock: {
  161. stockType: null,
  162. chennelList: [],
  163. },
  164. rules: {
  165. name: [{ required: true, message: "请输入模板名称", trigger: ["change","blur"] }],
  166. auditoriumId: [{ required: true, message: "请选择演出厅", trigger: ["change","blur"] }],
  167. chennelList: [{ required: true, message: "请输入库存模式", trigger: ["change","blur"] }],
  168. remark: [{ required: false, message: "请输入备注", trigger: ["change","blur"] }],
  169. },
  170. statusList: [
  171. {id: 1, name: '是', value: 1},
  172. {id: 2, name: '否', value: 2},
  173. ],
  174. performList: [], // 演出厅
  175. channelTypeList: [], // 渠道
  176. dictValue: '',
  177. chennelAtion: null,
  178. countBySeatTypList: [], // 座位类型
  179. stockFormList: [],// 库存
  180. dataList: [], // 座位
  181. seatNum: '',
  182. };
  183. },
  184. created() {
  185. this.getList()// 演出厅
  186. this.channelTypeFun() // 渠道
  187. },
  188. methods: {
  189. /** 演出厅列表 */
  190. getList() {
  191. merchantPageList({pageNum: 1, pageSize: 100})
  192. .then(response => {
  193. this.performList = response.data.rows;
  194. }
  195. );
  196. },
  197. /**
  198. * 打开弹框
  199. * @date 2023-11-22
  200. * @param {any} obj
  201. * @returns {any}
  202. */
  203. async openDialog(title, obj, mode) {
  204. try {
  205. this.model = mode
  206. this.loading = true
  207. this.loadingText = '获取数据中...'
  208. this.title = title
  209. this.chennelAtion = null
  210. this.open = true
  211. this.activeName = '01';
  212. if(this.channelTypeList.length<0) {
  213. await this.channelTypeFun()
  214. }
  215. if (obj){
  216. await this.getSelectByIdApi(obj)
  217. }else{
  218. this.form = {
  219. chennelListForm: this.setDataTree({})
  220. }
  221. console.log("list1====",this.form)
  222. this.setDictLabel(this.form.chennelListForm[0],0)
  223. }
  224. this.$nextTick(() => {
  225. this.$refs["form"].clearValidate();
  226. });
  227. } catch (error) {
  228. console.error("dfsdfdsf",error)
  229. }
  230. this.loading = false
  231. },
  232. /** 获取详情 */
  233. async getSelectByIdApi(row) {
  234. try {
  235. const id = row.id
  236. let res = await getSelectById({id})
  237. if(res.code == 200) {
  238. let obj = res.data;
  239. await this.countBySeatTypFun(obj.auditoriumId,true)
  240. obj.chennelListForm = this.setDataTree(obj)
  241. this.form = obj
  242. this.setDictLabel(obj.chennelListForm[0],0)
  243. console.log("list2====",this.form)
  244. }
  245. } catch (error) {
  246. console.log("error====",error)
  247. console.error("error====",error)
  248. }
  249. },
  250. setDataTree(obj){
  251. let list = []
  252. this.channelTypeList.forEach((item,index)=>{
  253. list.push({
  254. "channelType":item.dictValue,
  255. "channelName":item.dictLabel,
  256. "stockType": this.getStockType(item,obj),
  257. "stockNum": this.getStockAllNum(item,obj),
  258. "seatTypeList": [],
  259. "chennelSeatList": []
  260. })
  261. list[index].seatTypeList = this.getSeatTypeList(list[index],obj)
  262. list[index].chennelSeatList = this.getChennelSeatList(list[index],obj)
  263. })
  264. return list
  265. },
  266. /** 获取模式 */
  267. getStockType(obj,data){
  268. let stockType = 0
  269. if(data.chennelList && data.chennelList.length>0) {
  270. for(let i = 0;i < data.chennelList.length;i++) {
  271. if(obj.dictValue == data.chennelList[i].channelType) {
  272. stockType = data.chennelList[i].stockType
  273. break;
  274. }
  275. }
  276. }
  277. return stockType
  278. },
  279. /** 获取总数 */
  280. getStockAllNum(obj,data) {
  281. let num = 0
  282. let flog = false
  283. if(data.chennelList && data.chennelList.length>0) {
  284. data.chennelList.forEach((item,index)=>{
  285. if(obj.dictValue == item.channelType) {
  286. flog = true
  287. num = num + item.stockNum
  288. }
  289. })
  290. }
  291. if(flog) {
  292. return num
  293. }else {
  294. return ''
  295. }
  296. },
  297. /** 获取座位类型对应的数量 */
  298. getSeatTypeList(obj,data){
  299. let list1 = []
  300. this.countBySeatTypList.forEach((item1,index1)=>{
  301. list1.push({
  302. "seatTypeId": item1.seatTypeId,
  303. "seatTypeName": item1.seatTypeName,
  304. "stockNum": '',
  305. "stock": item1.stock,
  306. })
  307. if(obj.stockType == 0 && data.chennelList && data.chennelList.length>0) {
  308. data.chennelList.forEach((item2,index2)=>{
  309. if(item1.seatTypeId == item2.seatTypeId && obj.stockType == item2.stockType && obj.channelType == item2.channelType ) {
  310. list1[index1].stockNum = item2.stockNum
  311. }
  312. })
  313. }
  314. })
  315. return list1
  316. },
  317. /** 获取座位 */
  318. getChennelSeatList(obj,data) {
  319. let list = []
  320. let seat = {}
  321. if(data.chennelList && data.chennelList.length>0) {
  322. for(let i = 0;i<data.chennelList.length;i++) {
  323. if(obj.channelType == data.chennelList[i].channelType) {
  324. if(data.chennelList[i].chennelSeatList) {
  325. let srt = 'seat_'+ data.chennelList[i].seatTypeId
  326. if(seat[srt]) {
  327. seat[srt] = seat[srt].concat(data.chennelList[i].chennelSeatList)
  328. }else {
  329. seat[srt] = [...data.chennelList[i].chennelSeatList]
  330. }
  331. console.log("seat_",srt,seat,data.chennelList[i].chennelSeatList)
  332. }
  333. //list = data.chennelList[i].chennelSeatList ? JSON.parse(JSON.stringify(data.chennelList[i].chennelSeatList)):[]
  334. // break;
  335. }
  336. }
  337. }
  338. return JSON.stringify(seat) == '{}' ? null : seat
  339. },
  340. // setChennelList() {
  341. // },
  342. /** 价格输入事件 */
  343. changePriceAmount(key) {
  344. if(this.form[key] * 1 < 0){
  345. this.$message.error("输入需大于或等于0!");
  346. this.$set(this.form, key, '');
  347. return false
  348. }
  349. },
  350. /**
  351. * 保存
  352. * @date 2023-11-22
  353. * @returns {any}
  354. */
  355. submitForm() {
  356. this.$refs["form"].validate(async (valid,object) => {
  357. if (valid) {
  358. try {
  359. this.loading = true
  360. this.loadingText = '提交中...'
  361. console.log("this.form=====",this.form)
  362. let postMap = JSON.parse(JSON.stringify(this.form))
  363. postMap.chennelList = []
  364. for(let i = 0; i< this.form.chennelListForm.length ;i++) {
  365. let obj = {
  366. "id": null,
  367. "channelType": this.form.chennelListForm[i].channelType,
  368. "channelName": this.form.chennelListForm[i].channelName,
  369. "stockType": this.form.chennelListForm[i].stockType,
  370. }
  371. if(this.form.chennelListForm[i].stockType == 0) {
  372. if(this.form.chennelListForm[i].seatTypeList && this.form.chennelListForm[i].seatTypeList.length>0) {
  373. for(let j = 0;j< this.form.chennelListForm[i].seatTypeList.length;j++) {
  374. if(this.form.chennelListForm[i].seatTypeList[j].stockNum) {
  375. postMap.chennelList.push({
  376. ...obj,
  377. "seatTypeId": this.form.chennelListForm[i].seatTypeList[j].seatTypeId,
  378. "stockNum": this.form.chennelListForm[i].seatTypeList[j].stockNum,
  379. "chennelSeatList":null
  380. })
  381. }
  382. }
  383. }
  384. }else if(this.form.chennelListForm[i].stockType == 1 ){
  385. if(this.form.chennelListForm[i].chennelSeatList) {
  386. Object.keys(this.form.chennelListForm[i].chennelSeatList).forEach((item)=>{
  387. postMap.chennelList.push({
  388. "id": null,
  389. "channelType": this.form.chennelListForm[i].channelType,
  390. "channelName": this.form.chennelListForm[i].channelName,
  391. "stockType": this.form.chennelListForm[i].stockType,
  392. "seatTypeId": item.replace("seat_", ""),
  393. "stockNum": this.form.chennelListForm[i].chennelSeatList[item].length,
  394. "chennelSeatList": this.form.chennelListForm[i].chennelSeatList[item]
  395. })
  396. })
  397. }
  398. }
  399. }
  400. delete postMap.chennelListForm
  401. console.log("postMap=====",postMap)
  402. if(!postMap.chennelList || postMap.chennelList.length==0) {
  403. this.loading = false
  404. return
  405. }
  406. let res = await saveAndEdit(postMap)
  407. this.loading = false
  408. if(res.code) {
  409. this.$message.success(res.msg || res.message|| "操作成功");
  410. this.$emit('getList')
  411. this.cancel()
  412. }else {
  413. this.$message.error(error.msg || error.message|| "操作失败!");
  414. }
  415. } catch (error) {
  416. this.loading = false
  417. this.$message.error(error.msg || error.message|| "操作失败!");
  418. } finally {
  419. this.loading = false;
  420. }
  421. }else{
  422. // console.log('error submit!!',valid,object);
  423. if(object&&JSON.stringify(object) != '{}'){
  424. let str = ''
  425. for(let key in object){
  426. if(object.hasOwnProperty(key)){
  427. str = str + `[${object[key][0].message}]}]`
  428. }
  429. }
  430. this.$message.error(str);
  431. }
  432. }
  433. });
  434. },
  435. /**
  436. * 重置
  437. * @date 2023-11-22
  438. * @returns {any}
  439. */
  440. reset() {
  441. },
  442. /**
  443. * 关闭弹框
  444. * @date 2023-11-22
  445. * @returns {any}
  446. */
  447. cancel() {
  448. this.open = false;
  449. this.chennelAtion = null
  450. },
  451. /** 获取座位可用数量 */
  452. async countBySeatTypFun(value,type) {
  453. console.log("vlaue===",value)
  454. try {
  455. this.seatNum = ''
  456. this.chennelAtion = null
  457. if(!value) return
  458. let res = await countBySeatTyp({auditoriumId: value})
  459. let num = 0
  460. res.data.forEach((item,index)=>{
  461. num = num + item.stock
  462. })
  463. this.seatNum = num
  464. this.countBySeatTypList = res.data
  465. if(!type) {
  466. this.form.chennelListForm = this.setDataTree({})
  467. this.setDictLabel(this.form.chennelListForm[0],0)
  468. }
  469. } catch (error) {
  470. console.error("error1====",error)
  471. }
  472. },
  473. /** 获取渠道数据 */
  474. async channelTypeFun() {
  475. try {
  476. let res = await channelType({pageNum: 1, pageSize: 100})
  477. this.channelTypeList = res.data
  478. } catch (error) {
  479. console.error("dfsdfdsfsd====",error)
  480. }
  481. },
  482. setDictLabel(obj,index){
  483. this.chennelAtion = index
  484. if(obj.stockType == 1) {
  485. console.log('fsdfsdfsdfsdfsdfsdfsdfsfdsf')
  486. this.getSeatSelectById()
  487. }
  488. },
  489. setStockType(value) {
  490. console.log('fsdfsdfsdfsdfsdfsdfsdfsfdsf======',value)
  491. if(value == 1) {
  492. this.getSeatSelectById()
  493. }
  494. },
  495. /** 获取座位 */
  496. async getSeatSelectById() {
  497. if(!this.form.auditoriumId){ return }
  498. if(!this.dataList || this.dataList.length == 0 || this.dataList[0].auditoriumId !== this.form.auditoriumId) {
  499. let res = await getSeatSelectByIdApi(this.form.auditoriumId)
  500. this.dataList = res.data;
  501. }
  502. let list = []
  503. let list1 = []
  504. let list2 = []
  505. this.form.chennelListForm.forEach((item,index)=>{
  506. if(item.chennelSeatList && item.stockType == 1) {
  507. Object.keys(item.chennelSeatList).forEach((item1)=>{
  508. item.chennelSeatList[item1] ? list2 = list2.concat(item.chennelSeatList[item1]) : ''
  509. })
  510. }
  511. })
  512. if(this.form.chennelListForm[this.chennelAtion].chennelSeatList) {
  513. Object.keys(this.form.chennelListForm[this.chennelAtion].chennelSeatList).forEach((item)=>{
  514. list1 = list1.concat(this.form.chennelListForm[this.chennelAtion].chennelSeatList[item])
  515. })
  516. console.log("list2111=====",list2,list1)
  517. list = this.dataList.filter((item,index)=>{
  518. if(list1.includes(item.id)){
  519. this.dataList[index].occupyStatus = null // 解除被占用了
  520. return item
  521. }else if(!list1.includes(item.id) && list2.includes(item.id)){
  522. this.dataList[index].occupyStatus = 1 // 被占用了
  523. }
  524. if(!item.seatTypeId&&item.status != 2) {
  525. this.dataList[index].occupyStatus = 1 // 被占用了
  526. }
  527. })
  528. }else {
  529. this.dataList.forEach((item,index)=>{
  530. if(!list1.includes(item.id) && list2.includes(item.id)){
  531. this.dataList[index].occupyStatus = 1 // 被占用了
  532. }
  533. if(!item.seatTypeId&&item.status != 2) {
  534. this.dataList[index].occupyStatus = 1 // 被占用了
  535. }
  536. })
  537. }
  538. console.log("dfsdfdsfdsf====",list,this.form.chennelListForm[this.chennelAtion].chennelSeatList)
  539. this.$nextTick(() =>{
  540. this.$refs.seatBox.querySeatListFun(true,this.dataList,list)
  541. })
  542. },
  543. /** 选择座位 */
  544. selectSeat(list) {
  545. let obj = {}
  546. list.forEach((item)=>{
  547. let srt = 'seat_'+ item.seatTypeId
  548. Array.isArray(obj[srt]) ? obj[srt].push(item.id): obj[srt] = [item.id]
  549. })
  550. this.form.chennelListForm[this.chennelAtion].chennelSeatList = JSON.stringify(obj) == '{}'?null:obj
  551. this.form.chennelListForm[this.chennelAtion].stockNum = list.length>0 ? list.length : ''
  552. console.log("已选择的====",list,this.form.chennelListForm[this.chennelAtion].chennelSeatList)
  553. }
  554. },
  555. };
  556. </script>
  557. <style lang="scss" scoped>
  558. .dialog-box {
  559. width: 100%;
  560. position: relative;
  561. .dialog-loading {
  562. width: 100%;
  563. height: 100%;
  564. position: absolute;
  565. top: 0;
  566. left: 0;
  567. }
  568. }
  569. .dialog {
  570. max-height: 70vh;
  571. overflow-y: auto;
  572. .upload-btn {
  573. width: 100px;
  574. height: 100px;
  575. background-color: #fbfdff;
  576. border: dashed 1px #c0ccda;
  577. border-radius: 5px;
  578. i {
  579. font-size: 30px;
  580. margin-top: 20px;
  581. }
  582. &-text {
  583. margin-top: -10px;
  584. }
  585. }
  586. .avatar {
  587. cursor: pointer;
  588. }
  589. }
  590. .el-table{
  591. .upload-btn {
  592. width: 100px;
  593. height: 100px;
  594. background-color: #fbfdff;
  595. border: dashed 1px #c0ccda;
  596. border-radius: 5px;
  597. i {
  598. font-size: 30px;
  599. margin-top: 20px;
  600. }
  601. &-text {
  602. margin-top: -10px;
  603. }
  604. }
  605. .avatar {
  606. cursor: pointer;
  607. }
  608. }
  609. .area-container {
  610. min-height: 400px;
  611. }
  612. ::v-deep .area-wrap-city.el-cascader {
  613. line-height: normal;
  614. .el-input {
  615. cursor: pointer;
  616. width: 100% !important;
  617. height: 28px !important;
  618. .el-input__inner {
  619. display: none !important;
  620. }
  621. span.el-input__suffix {
  622. position: inherit !important;
  623. i.el-input__icon {
  624. line-height: inherit;
  625. margin-left: 5px;
  626. }
  627. }
  628. .el-input__wrapper {
  629. box-shadow: none;
  630. input {
  631. display: none;
  632. }
  633. }
  634. }
  635. .el-cascader__tags {
  636. display: none;
  637. }
  638. }
  639. .area-city-popper {
  640. .el-cascader-panel {
  641. .el-scrollbar.el-cascader-menu {
  642. .el-cascader-menu__wrap.el-scrollbar__wrap {
  643. height: 315px;
  644. }
  645. }
  646. }
  647. }
  648. .inventory_box{
  649. width: 100%;
  650. border: 1px solid #ccc;
  651. min-height: 400px;
  652. padding: 10px;
  653. box-sizing: border-box;
  654. display: flex;
  655. flex-shrink: 0;
  656. .inventory_channel {
  657. width: 200px;
  658. >div {
  659. width: 100%;
  660. box-sizing: border-box;
  661. >span {
  662. display: flex;
  663. justify-content: center;
  664. align-items: center;
  665. border-right: 1px solid #333;
  666. }
  667. >span:nth-child(1) {
  668. width: 40px;
  669. }
  670. >span:nth-child(2) {
  671. flex: auto;
  672. }
  673. >span:nth-child(3) {
  674. width: 50px;
  675. }
  676. }
  677. .inventory_channel_header {
  678. width: 100%;
  679. height: 40px;
  680. display: flex;
  681. background-color: #ccc;
  682. border-bottom: 1px solid #333;
  683. border-top: 1px solid #333;
  684. border-left: 1px solid #333;
  685. }
  686. .inventory_channel_item {
  687. width: 100%;
  688. display: flex;
  689. height: 40px;
  690. cursor: pointer;
  691. border-bottom: 1px solid #333;
  692. border-left: 1px solid #333;
  693. }
  694. .inventory_channel_item:hover {
  695. background-color: rgba(135, 206, 235,0.6);
  696. }
  697. .inventory_channel_item-action {
  698. background-color: rgba(135, 206, 235,0.6);
  699. }
  700. }
  701. .inventory_seat {
  702. flex: auto;
  703. padding-left: 20px;
  704. box-sizing: border-box;
  705. }
  706. }
  707. </style>
  708. <style>
  709. .custom-class-box {
  710. z-index: 999999 !important;
  711. }
  712. </style>