addAndEdit.vue 23 KB

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