dataEdit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. <!--
  2. * @Description: 新增/编辑弹框
  3. * @Author: Sugar.
  4. * @Date: 2023-11-24 13:55:00
  5. * @LastEditors: Sugar.
  6. * @LastEditTime: 2023-11-24 13:55:00
  7. * @FilePath: \cattle_webui\src\views\otaMr\dialog\dataEdit.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="80vw"
  15. append-to-body
  16. :close-on-click-modal="false"
  17. @close="cancel"
  18. >
  19. <div class="dialog">
  20. <div>
  21. <el-form :model="form" ref="form" size="small" :rules="rules" :inline="true" label-width="100px">
  22. </el-form>
  23. </div>
  24. <el-table
  25. row-key="tableId"
  26. ref="tables"
  27. v-loading="loading"
  28. :data="goodsList"
  29. border
  30. @selection-change="handleSelectionChange">
  31. <el-table-column type="selection" width="55"></el-table-column>
  32. <el-table-column label="序号" align="center" type="index" width="50"></el-table-column>
  33. <el-table-column label="票务价格ID" align="center" prop="id" />
  34. <el-table-column label="票务名称" align="center" prop="priceName" />
  35. <el-table-column label="场次开始时间" align="center" prop="timeStart" />
  36. <el-table-column label="场次结束时间" align="center" prop="timeEnd" />
  37. <el-table-column label="携程排期状态" align="center" prop="status">
  38. <template slot-scope="scope">
  39. <dict-tag :options="dict.type.tiktok_scheduling_status" :value="scope.row.status"/>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  43. <template slot-scope="scope">
  44. <el-button
  45. size="mini"
  46. type="text"
  47. v-if="scope.row.status"
  48. @click="openCalendarFun(scope.row)"
  49. >日历价格配置</el-button>
  50. <!-- <el-button
  51. size="mini"
  52. type="text"
  53. @click="submitForm1(scope.row)"
  54. >{{ scope.row.status == 1 ? '下架':'上架' }}</el-button> -->
  55. </template>
  56. </el-table-column>
  57. </el-table>
  58. </div>
  59. <span slot="footer" class="dialog-footer">
  60. <el-button @click="cancel">取消</el-button>
  61. <el-button
  62. type="primary"
  63. @click="submitForm"
  64. :disabled="!multipleSelection || multipleSelection.length == 0"
  65. :loading="loading"
  66. >
  67. <span v-if="loading">提交中...</span>
  68. <span v-else>推送已选</span>
  69. </el-button>
  70. </span>
  71. <!-- 选择日期 价格 -->
  72. <el-dialog
  73. :visible.sync="openCalendar"
  74. width="70%"
  75. class="text-dia-log-class"
  76. append-to-body
  77. :close-on-click-modal="false"
  78. @close="openPrice = false"
  79. >
  80. <div class="dialog calendar-dialog" v-loading="calendarLoading">
  81. <div>
  82. <el-button type="primary" @click="openCalendarPrice()">价格设置</el-button>
  83. <el-button type="primary" @click="checkIsClear()">一键清空</el-button>
  84. </div>
  85. <el-calendar v-model="timeValue">
  86. <template
  87. slot="dateCell"
  88. slot-scope="{date, data}">
  89. <div :class="['calendar_box', selectTime(data)]" @mouseover="mouseoverFun(data)" @click.stop="clickTimeFun(data)">
  90. <span>{{ data.day.split('-').slice(1).join('-') }}</span>
  91. <div style="width: 100%; display: flex;flex-wrap: wrap;" >
  92. <div
  93. :key="index"
  94. v-for="(item,index) in getPerFormList(data)"
  95. >
  96. {{ item.title }}:{{ item.money }}
  97. </div>
  98. </div>
  99. </div>
  100. </template>
  101. </el-calendar>
  102. </div>
  103. <span slot="footer" class="dialog-footer">
  104. <el-button @click="openCalendar = false">返回</el-button>
  105. </span>
  106. </el-dialog>
  107. <!-- 设置价格 -->
  108. <el-dialog
  109. title="价格设置"
  110. :visible.sync="openPrice"
  111. width="400px"
  112. class="text-dia-log-class"
  113. append-to-body
  114. :close-on-click-modal="false"
  115. @close="openPrice = false"
  116. >
  117. <div v-loading="priceLoading">
  118. <el-form :model="formPrice" ref="formPrice" size="small" :rules="rulesPrice" label-width="100px">
  119. <el-form-item label="日期区间">
  120. {{ showDate() }}
  121. </el-form-item>
  122. <el-form-item label="市场价" prop="originalAmount">
  123. <el-input-number v-model="formPrice.originalAmount" controls-position="right" :min="0"></el-input-number>
  124. </el-form-item>
  125. <el-form-item label="销售价" prop="saleAmount">
  126. <el-input-number v-model="formPrice.saleAmount" controls-position="right" :min="0"></el-input-number>
  127. </el-form-item>
  128. <el-form-item label="结算价" prop="costAmount">
  129. <el-input-number v-model="formPrice.costAmount" controls-position="right" :min="0"></el-input-number>
  130. </el-form-item>
  131. </el-form>
  132. </div>
  133. <span slot="footer" class="dialog-footer">
  134. <el-button @click="openPrice = false">返回</el-button>
  135. <el-button @click="submitFormPrice('formPrice','calendarPrice')">提交</el-button>
  136. </span>
  137. </el-dialog>
  138. </el-dialog>
  139. </template>
  140. <script>
  141. import {
  142. pushById,
  143. getCalendarPriceApi,
  144. setCalendarPriceApi,
  145. getPushListApi,
  146. deleteCalendarPriceApi } from "@/api/otaMr/ctrip";
  147. import moment from "moment"
  148. export default {
  149. name: "dataEdit",
  150. dicts: ['tiktok_category','tiktok_scheduling_status'],
  151. data() {
  152. return {
  153. title: "排期推送设置",
  154. model: "EDIT",
  155. open: false,
  156. loading: false,
  157. goodsList: [],
  158. form: {},
  159. rules: {
  160. poiId: [{ required: true, message: "请输入门店POIID", trigger: ["change","blur"] }],
  161. categoryId: [{ required: true, message: "请选择商品类目ID", trigger: ["change","blur"] }],
  162. },
  163. multipleSelection: [],
  164. openCalendar: false,
  165. timeValue: new Date(),
  166. timeValueObj: {
  167. prev: null,
  168. next: null,
  169. hover: null
  170. },
  171. calendarLoading: false,
  172. perFormList: [],
  173. openPrice: false,
  174. priceLoading: false,
  175. formPrice: {},
  176. rulesPrice: {
  177. originalAmount: [{ required: true, message: "请输入市场价", trigger: ["change","blur"] }],
  178. saleAmount: [{ required: true, message: "请输入销售价", trigger: ["change","blur"] }],
  179. costAmount: [{ required: true, message: "请输入结算价", trigger: ["change","blur"] }],
  180. },
  181. seatTypeId: null,
  182. calendarId: null,
  183. };
  184. },
  185. methods: {
  186. /**
  187. * 打开弹框
  188. * @date 2023-11-22
  189. * @param {any} obj
  190. * @returns {any}
  191. */
  192. async openDialog(title, obj, type) {
  193. this.loading = true
  194. this.open = true;
  195. this.goodsList = []
  196. this.multipleSelection = []
  197. this.timeValueObj = {}
  198. this.form = JSON.parse(JSON.stringify(obj))
  199. await this.getPushListFun(obj,type)
  200. this.loading = false
  201. this.$nextTick(()=>{
  202. this.goodsList.forEach((item)=>{
  203. if(item.checkFlag == 1) {
  204. this.$refs.tables.toggleRowSelection(item,true)
  205. }
  206. })
  207. this.$refs["form"].clearValidate()
  208. })
  209. },
  210. /** 获取设置的日历价格 */
  211. async getPushListFun(obj,type) {
  212. try {
  213. let res = await getPushListApi({
  214. id: obj.id
  215. })
  216. if(res.code == 200) {
  217. let list = []
  218. if(type == 'yesPush') {
  219. list = res.data
  220. }else {
  221. if( res.data && res.data.length > 0){
  222. obj.sku.forEach((item,index)=>{
  223. let obj1 = JSON.parse(JSON.stringify(item))
  224. res.data.forEach((item1,index1)=>{
  225. if(item1.id == obj1.id){
  226. obj1 = JSON.parse(JSON.stringify(item1))
  227. }
  228. })
  229. list.push({
  230. ...obj1,
  231. tableId: "id_" + index
  232. })
  233. })
  234. this.goodsList = res.data
  235. }else {
  236. obj.sku.forEach((item,index)=>{
  237. list.push({
  238. ...item,
  239. tableId: "id_" + index
  240. })
  241. })
  242. }
  243. }
  244. this.goodsList = JSON.parse(JSON.stringify(list))
  245. }
  246. } catch (error) {
  247. this.loading = false
  248. }
  249. },
  250. /**
  251. * 保存
  252. * @date 2023-11-22
  253. * @returns {any}
  254. */
  255. submitForm() {
  256. this.$refs["form"].validate(async (valid) => {
  257. if (valid) {
  258. try {
  259. if(!this.multipleSelection && this.multipleSelection.length <= 0) {
  260. this.$message.error("请选择上推送的数据!!!");
  261. return
  262. }
  263. let flog = false
  264. let list = []
  265. this.multipleSelection.forEach((item)=>{
  266. list.push({
  267. ...item,
  268. status: 0,//item.status === 0 || item.status === -1 ? 1 : -1,
  269. checkFlag: 1
  270. })
  271. // if((!item.actualAmount && item.actualAmount !=0) || (!item.originAmount && item.originAmount !=0)) {
  272. // flog = true
  273. // }
  274. })
  275. if(flog) {
  276. this.$message.error("请输入销售价和结算价!!!");
  277. return
  278. }
  279. this.loading = true;
  280. const { code } = await pushById({
  281. ...this.form,
  282. sku: list
  283. });
  284. if (code === 200) {
  285. this.$message.success("操作成功!");
  286. this.$emit("getList");
  287. this.cancel();
  288. }
  289. } catch (error) {
  290. console.error("error====",error)
  291. } finally {
  292. this.loading = false;
  293. }
  294. }else {
  295. }
  296. })
  297. },
  298. /**
  299. * 单个保存
  300. * @date 2023-11-22
  301. * @returns {any}
  302. */
  303. async submitForm1(row) {
  304. try {
  305. console.log("row====",row)
  306. let flog = false
  307. let list = []
  308. let list1 = [{...row}]
  309. let list2 = []
  310. let flog1 = -1
  311. this.multipleSelection.forEach((item,index)=>{
  312. if(row.id == item.id) {
  313. flog1 = index
  314. }
  315. list2.push({
  316. ...item,
  317. status: 0,
  318. checkFlag: 1
  319. })
  320. })
  321. if(flog1 != -1 ) {
  322. }
  323. list1.forEach((item)=>{
  324. list.push({
  325. ...item,
  326. status: 0,
  327. checkFlag: 1
  328. })
  329. })
  330. if(flog) {
  331. this.$message.error("请输入销售价和结算价!!!");
  332. return
  333. }
  334. this.loading = true;
  335. const { code } = await pushById({
  336. ...this.form,
  337. sku: list
  338. });
  339. if (code === 200) {
  340. this.$message.success("操作成功!");
  341. this.$emit("getList");
  342. this.cancel();
  343. }
  344. } catch (error) {
  345. console.error("error====",error)
  346. } finally {
  347. this.loading = false;
  348. }
  349. },
  350. /**
  351. * 重置
  352. * @date 2023-11-22
  353. * @returns {any}
  354. */
  355. reset() {
  356. this.$refs["form"].clearValidate()
  357. },
  358. /**
  359. * 关闭弹框
  360. * @date 2023-11-22
  361. * @returns {any}
  362. */
  363. cancel() {
  364. this.reset();
  365. this.open = false;
  366. },
  367. isCheck(row){
  368. let flog = false
  369. this.multipleSelection.forEach((item,index)=>{
  370. if(item.tableId == row.tableId) {
  371. flog = true
  372. }
  373. })
  374. return flog
  375. },
  376. handleSelectionChange(val) {
  377. console.log("选中了====", val)
  378. this.multipleSelection = val;
  379. },
  380. getPerFormList(data) {
  381. let list = []
  382. this.perFormList.forEach((item,index)=>{
  383. if(item.priceDate && item.priceDate.indexOf(data.day) != -1) {
  384. list = [
  385. { title: '市场价', money: item.originalAmount + '元' },
  386. { title: '销售价', money: item.saleAmount + '元' },
  387. { title: '结算价', money: item.costAmount + '元' },
  388. ]
  389. }
  390. })
  391. return list
  392. },
  393. /** 打开价格设置 */
  394. openCalendarPrice(){
  395. if( this.timeValueObj.prev && this.timeValueObj.next ) {
  396. this.openPrice = true
  397. this.formPrice = {}
  398. this.$nextTick(()=>{
  399. this.$refs.formPrice.clearValidate()
  400. })
  401. }else {
  402. this.$message.error("请选择时间区间!!!");
  403. }
  404. },
  405. checkIsClear(){
  406. if (this.timeValueObj.prev && this.timeValueObj.next) {
  407. let minTime = moment(this.timeValueObj.prev).valueOf()
  408. let maxTime = moment(this.timeValueObj.next).valueOf()
  409. let startDate = null
  410. let endDate = null
  411. if (minTime > maxTime) {
  412. startDate = this.timeValueObj.next
  413. endDate = this.timeValueObj.prev
  414. } else {
  415. startDate = this.timeValueObj.prev
  416. endDate = this.timeValueObj.next
  417. }
  418. this.$modal.confirm('确定要清空勾选"' + startDate + '——' + endDate + '"的日期范围内的数据吗?').then(()=> {
  419. this.clearCalendarPrice()
  420. }).catch(() => {});
  421. } else {
  422. this.$message.error("请选择时间区间!!!");
  423. }
  424. },
  425. /** 一键清除 */
  426. async clearCalendarPrice() {
  427. try {
  428. if( this.timeValueObj.prev && this.timeValueObj.next ) {
  429. let minTime = moment(this.timeValueObj.prev).valueOf()
  430. let maxTime = moment(this.timeValueObj.next).valueOf()
  431. let startDate = null
  432. let endDate = null
  433. if(minTime > maxTime){
  434. startDate = this.timeValueObj.next
  435. endDate = this.timeValueObj.prev
  436. }else {
  437. startDate = this.timeValueObj.prev
  438. endDate = this.timeValueObj.next
  439. }
  440. let daysList = [];
  441. let SDate = moment(startDate);
  442. let EDate = moment(endDate);
  443. daysList.push({
  444. "priceDate": SDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  445. });
  446. while (SDate.add(1, "days").isBefore(EDate)) { // 注意这里add方法处理后SDate对象已经改变。
  447. daysList.push({
  448. "priceDate": SDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  449. });
  450. }
  451. if(this.timeValueObj.next != this.timeValueObj.prev){
  452. daysList.push({
  453. "priceDate": EDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  454. });
  455. }
  456. let res = await deleteCalendarPriceApi({
  457. "id": this.form.id,
  458. "goodsId": this.form.goodsId,
  459. "seatTypeId": this.seatTypeId,
  460. "data": daysList
  461. })
  462. if(res.code == 200) {
  463. this.openPrice = false
  464. this.$modal.msgSuccess(res.msg);
  465. this.getCalendarPrice()
  466. }
  467. }else {
  468. this.$message.error("请选择时间区间!!!");
  469. }
  470. } catch (error) {
  471. }
  472. },
  473. submitFormPrice(formName,funName) {
  474. this.$refs[formName].validate((valid) => {
  475. if (valid) {
  476. this[funName]()
  477. } else {
  478. console.log('error submit!!');
  479. return false;
  480. }
  481. });
  482. },
  483. openCalendarFun(row){
  484. this.seatTypeId = row.seatTypeId
  485. this.calendarId = row.id
  486. this.$set(this,'timeValue',new Date())
  487. this.getCalendarPrice()
  488. },
  489. /** 获取设置的日历价格 */
  490. async getCalendarPrice() {
  491. try {
  492. this.timeValueObj = {}
  493. let res = await getCalendarPriceApi({
  494. "goodsId": this.form.goodsId,
  495. "seatTypeId": this.seatTypeId
  496. })
  497. if(res.code == 200) {
  498. this.openCalendar = true
  499. this.perFormList = res.data
  500. }
  501. } catch (error) {
  502. }
  503. },
  504. /** 设置价格 */
  505. async calendarPrice(type){
  506. try {
  507. if( this.timeValueObj.prev && this.timeValueObj.next ) {
  508. let minTime = moment(this.timeValueObj.prev).valueOf()
  509. let maxTime = moment(this.timeValueObj.next).valueOf()
  510. let startDate = null
  511. let endDate = null
  512. if(minTime > maxTime){
  513. startDate = this.timeValueObj.next
  514. endDate = this.timeValueObj.prev
  515. }else {
  516. startDate = this.timeValueObj.prev
  517. endDate = this.timeValueObj.next
  518. }
  519. let daysList = [];
  520. let SDate = moment(startDate);
  521. let EDate = moment(endDate);
  522. daysList.push({
  523. "id": null,
  524. "priceDate": SDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  525. "originalAmount": this.formPrice.originalAmount,
  526. "saleAmount": this.formPrice.saleAmount,
  527. "costAmount": this.formPrice.costAmount
  528. });
  529. while (SDate.add(1, "days").isBefore(EDate)) { // 注意这里add方法处理后SDate对象已经改变。
  530. daysList.push({
  531. "id": null,
  532. "priceDate": SDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  533. "originalAmount": this.formPrice.originalAmount,
  534. "saleAmount": this.formPrice.saleAmount,
  535. "costAmount": this.formPrice.costAmount
  536. });
  537. }
  538. if(this.timeValueObj.next != this.timeValueObj.prev){
  539. daysList.push({
  540. "id": null,
  541. "priceDate": EDate.startOf('day').format("YYYY-MM-DD HH:mm:ss"),
  542. "originalAmount": this.formPrice.originalAmount,
  543. "saleAmount": this.formPrice.saleAmount,
  544. "costAmount": this.formPrice.costAmount
  545. });
  546. }
  547. console.log("daysList===",daysList)
  548. daysList.forEach((item,index)=>{
  549. this.perFormList.forEach((item1,index1)=>{
  550. if(moment(item.priceDate).format("YYYY-MM-DD") == moment(item1.priceDate).format("YYYY-MM-DD") ) {
  551. daysList[index].id = item1.id
  552. }
  553. })
  554. })
  555. let res = await setCalendarPriceApi({
  556. "id": this.calendarId,
  557. "goodsId": this.form.goodsId,
  558. "seatTypeId": this.seatTypeId,
  559. "data": daysList
  560. })
  561. if(res.code == 200) {
  562. this.openPrice = false
  563. this.getCalendarPrice()
  564. }
  565. }else {
  566. this.$message.error("请选择时间区间!!!");
  567. }
  568. } catch (error) {
  569. }
  570. },
  571. /** 选中得时间 */
  572. selectTime(data) {
  573. let srt = ''
  574. let newTime = moment(data.day).startOf('day').valueOf()
  575. let newTime1 = moment().startOf('day').valueOf()
  576. if(newTime < newTime1 ) {
  577. return "disable_time"
  578. }
  579. if( this.timeValueObj ) {
  580. if( this.timeValueObj.prev && this.timeValueObj.next ) {
  581. let minTime = moment(this.timeValueObj.prev).valueOf()
  582. let maxTime = moment(this.timeValueObj.next).valueOf()
  583. if(minTime > maxTime){
  584. if(minTime >= newTime && maxTime <= newTime){
  585. srt = 'is-select_time'
  586. }
  587. }else {
  588. if(minTime <= newTime && maxTime >= newTime){
  589. srt = 'is-select_time'
  590. }
  591. }
  592. }else if( this.timeValueObj.prev && !this.timeValueObj.next && this.timeValueObj.hover ){
  593. let minTime = moment(this.timeValueObj.prev).valueOf()
  594. let maxTime = moment(this.timeValueObj.hover).valueOf()
  595. if(minTime > maxTime){
  596. if(minTime >= newTime && maxTime <= newTime){
  597. srt = 'is-select_time_hover'
  598. }
  599. }else {
  600. if(minTime <= newTime && maxTime >= newTime){
  601. srt = 'is-select_time_hover'
  602. }
  603. }
  604. }
  605. }
  606. return srt
  607. },
  608. clickTimeFun(data) {
  609. let newTime1 = moment(data.day).startOf('day').valueOf()
  610. let newTime = moment().startOf('day').valueOf()
  611. if(newTime1 < newTime ) {
  612. return
  613. }
  614. if(moment(data.day).format("YYYY-MM") != moment(this.timeValue).format("YYYY-MM") ) {
  615. return
  616. }
  617. if( !this.timeValueObj || !this.timeValueObj.prev ) {
  618. this.timeValueObj.prev = moment(data.day).format("YYYY-MM-DD")
  619. }else if( this.timeValueObj.prev && !this.timeValueObj.next ){
  620. this.timeValueObj.next = moment(data.day).format("YYYY-MM-DD")
  621. }else if( this.timeValueObj.prev && this.timeValueObj.next ) {
  622. this.timeValueObj.prev = moment(data.day).format("YYYY-MM-DD")
  623. this.timeValueObj.next = null
  624. }
  625. },
  626. mouseoverFun(data) {
  627. if(moment(data.day).format("YYYY-MM") != moment(this.timeValue).format("YYYY-MM") ) {
  628. return
  629. }
  630. if( this.timeValueObj.prev && !this.timeValueObj.next ){
  631. this.timeValueObj.hover = moment(data.day).format("YYYY-MM-DD")
  632. this.timeValue = new Date(this.timeValueObj.hover)
  633. }
  634. },
  635. showDate(){
  636. let srt = ''
  637. let minTime = moment(this.timeValueObj.prev).valueOf()
  638. let maxTime = moment(this.timeValueObj.next).valueOf()
  639. let startDate = null
  640. let endDate = null
  641. if (minTime > maxTime) {
  642. startDate = this.timeValueObj.next
  643. endDate = this.timeValueObj.prev
  644. } else {
  645. startDate = this.timeValueObj.prev
  646. endDate = this.timeValueObj.next
  647. }
  648. return startDate + "至" + endDate
  649. }
  650. },
  651. watch:{
  652. timeValue(newValue,oldValue){
  653. }
  654. }
  655. };
  656. </script>
  657. <style lang="scss" scoped>
  658. .dialog {
  659. padding: 0 30px;
  660. max-height: 65vh;
  661. overflow-y: auto;
  662. }
  663. .dialog {
  664. padding: 0 30px;
  665. .upload-btn {
  666. width: 100px;
  667. height: 100px;
  668. background-color: #fbfdff;
  669. border: dashed 1px #c0ccda;
  670. border-radius: 5px;
  671. i {
  672. font-size: 30px;
  673. margin-top: 20px;
  674. }
  675. &-text {
  676. margin-top: -10px;
  677. }
  678. }
  679. .avatar {
  680. cursor: pointer;
  681. }
  682. }
  683. .calendar-dialog ::v-deep .el-calendar-table .el-calendar-day {
  684. padding: none !important;
  685. height: auto;
  686. }
  687. .calendar_box {
  688. width: 100%;
  689. min-height: 86px;
  690. }
  691. .disable_time {
  692. user-select: none;
  693. cursor: not-allowed;
  694. }
  695. .is-select_time {
  696. background-color: rgba(30,144,255,0.8);
  697. }
  698. .is-select_time_hover {
  699. background-color: rgba(30,144,255,0.4);
  700. }
  701. </style>