edit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. <template>
  2. <div v-if="showPage" class="jg-page-wrap purchaseNewOrderEdit-wrap">
  3. <a-page-header :ghost="false" :backIcon="false" class="header-bar">
  4. <!-- 自定义的二级文字标题 -->
  5. <template slot="subTitle">
  6. <p class="billno">单号:{{ detail&&detail.purchaseBillNo }}</p>
  7. <a-button type="link" class="button-default" @click="isShowBisiceInfo=!isShowBisiceInfo" style="margin-left:10px;vertical-align:middle;">
  8. <a-icon :type="isShowBisiceInfo ? 'eye-invisible' : 'eye'"/>
  9. 查看信息
  10. </a-button>
  11. <a-button id="purchaseNewOrderEdit-back-btn" type="link" @click="handleBack" class="button-default"> <a-icon type="rollback" /> 返回列表</a-button>
  12. </template>
  13. <!-- 操作区,位于 title 行的行尾 -->
  14. <template slot="extra">
  15. <div style="margin-top: 5px;">
  16. <PrintPanel ref="printBox" v-if="$hasPermissions('B_purchasePrint')" :disabled="localDataSource.length==0" @handlePrint="handlePrint"></PrintPanel>
  17. <a-divider type="vertical" v-if="detail&&detail.totalCategory" />
  18. <a-button type="link" v-if="detail&&detail.totalCategory" @click="showSearch=!showSearch" :class="showSearch?'button-error':'button-default'"> <a-icon type="search" /> 筛选</a-button>
  19. <a-divider type="vertical" v-if="detail&&detail.totalCategory" />
  20. <a-button v-if="detail&&detail.totalCategory" id="purchaseNewOrderEdit-add-btn" type="link" @click="openChooseProduct=true"><a-icon type="plus" />添加产品</a-button>
  21. <a-divider type="vertical" />
  22. <a-dropdown>
  23. <a-menu slot="overlay" @click="handleActions">
  24. <a-menu-item key="3" v-if="$hasPermissions('M_shoppingCart')">
  25. <a-icon type="shopping" /> 购物车
  26. </a-menu-item>
  27. <a-menu-item key="2">
  28. <a-icon type="funnel-plot" />上次缺货
  29. </a-menu-item>
  30. <a-menu-item key="1">
  31. <a-icon type="import" />产品导入
  32. </a-menu-item>
  33. </a-menu>
  34. <a-button type="link" class="button-default"> <a-icon type="unordered-list" /> 更多</a-button>
  35. </a-dropdown>
  36. </div>
  37. </template>
  38. </a-page-header>
  39. <!-- 产品列表 -->
  40. <div ref="tableSearch" class="choosedList-cont">
  41. <!-- 基础信息 -->
  42. <div class="baseInfo-bar" v-if="isShowBisiceInfo">
  43. <a-descriptions size="small">
  44. <div slot="title">基础信息</div>
  45. <a-descriptions-item label="供应商">
  46. {{ detail&&detail.purchaseTargetName || '--' }}
  47. </a-descriptions-item>
  48. <a-descriptions-item label="支付方式">
  49. {{ detail&&detail.settleStyleSnDictValue || '--' }}
  50. </a-descriptions-item>
  51. <a-descriptions-item label="收货人">
  52. {{ detail&&detail.consigneeName || '--' }}({{ detail&&detail.consigneeTel || '--' }})
  53. </a-descriptions-item>
  54. <a-descriptions-item label="收货地址" span="3">
  55. <div v-if="detail&&(detail.shippingAddressProvinceName || detail.shippingAddressCityName || detail.shippingAddressCountyName || detail.shippingAddress)">
  56. {{ detail&&detail.shippingAddressProvinceName || '' }}
  57. {{ detail&&detail.shippingAddressCityName || '' }}
  58. {{ detail&&detail.shippingAddressCountyName || '' }}
  59. {{ detail&&detail.shippingAddress || '' }}
  60. <a-button type="link" @click="openAddrModal=true">更换地址 >></a-button>
  61. </div>
  62. <div v-else><a-button type="link" @click="openAddrModal=true">选择地址 >></a-button></div>
  63. </a-descriptions-item>
  64. </a-descriptions>
  65. </div>
  66. <!-- 已选产品 -->
  67. <div class="purchaseTable">
  68. <div class="choosed-table" v-if="detail&&detail.totalCategory">
  69. <!-- 搜索条件 -->
  70. <div class="table-page-search-wrapper" v-if="showSearch">
  71. <a-row :gutter="15">
  72. <a-col :span="24">
  73. <a-form-model :model="productForm" layout="inline" @keyup.enter.native="getTableData()" >
  74. <a-row :gutter="15">
  75. <a-col :md="5" :sm="24">
  76. <a-form-model-item label="产品编码">
  77. <a-input v-model.trim="productForm.productCode" allowClear placeholder="输入产品编码" />
  78. </a-form-model-item>
  79. </a-col>
  80. <a-col :md="5" :sm="24">
  81. <a-form-model-item label="产品名称">
  82. <a-input v-model.trim="productForm.productName" allowClear placeholder="输入产品名称" />
  83. </a-form-model-item>
  84. </a-col>
  85. <a-col :md="8" :sm="24">
  86. <div style="margin-bottom: 10px;">
  87. <a-button type="primary" @click="getTableData()" :disabled="purchaseDisabled" id="purchaseNewOrderEdit-refresh">查询</a-button>
  88. <a-button style="margin-left: 5px" @click="resetPurchaseForm" id="purchaseNewOrderEdit-reset">重置</a-button>
  89. </div>
  90. </a-col>
  91. </a-row>
  92. </a-form-model>
  93. </a-col>
  94. </a-row>
  95. </div>
  96. <!-- 列表 -->
  97. <a-spin :spinning="spinning" tip="Loading...">
  98. <ve-table
  99. border-y
  100. :border-around="false"
  101. :max-height="tableHeight"
  102. :row-style-option="{clickHighlight: true}"
  103. :cellSelectionOption="{enable: false}"
  104. :virtual-scroll-option="{enable: true}"
  105. :columns="chooseColumns"
  106. :table-data="localDataSource"
  107. row-key-field-name="id"
  108. />
  109. </a-spin>
  110. </div>
  111. <div class="choosed-table" v-else>
  112. <div v-if="!spinning&&localDataSource.length==0">
  113. <a-empty
  114. :image="simpleImage"
  115. :image-style="{
  116. height: '60px',
  117. }"
  118. >
  119. <span slot="description"> 暂无产品 </span>
  120. <a-button type="primary" class="button-error" @click="openChooseProduct=true"><a-icon type="plus" />立即添加产品</a-button>
  121. </a-empty>
  122. </div>
  123. <div style="text-align: center;padding: 30px 50px;" v-if="spinning">
  124. <a-spin :spinning="spinning" tip="Loading..."></a-spin>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- 底部栏 -->
  129. <div class="footer-bar" v-if="detail&&detail.totalCategory">
  130. <!-- 总计 -->
  131. <div>
  132. <div style="display: inline-block;">
  133. 产品总款数:<span style="color:#666">{{ detail && (detail.totalCategory || detail.totalCategory==0) ? detail.totalCategory : '--' }}</span>,
  134. 采购总数量:<span style="color:#666">{{ detail && (detail.totalQty || detail.totalQty==0) ? detail.totalQty : '--' }}</span>,
  135. </div>
  136. <div style="display: inline-block;" v-if="$hasPermissions('M_ShowAllCost')">
  137. 采购金额合计: <strong>{{ detail && (detail.discountedAmount || detail.discountedAmount==0) ?toThousands(detail.discountedAmount, 2) : '--' }}</strong>
  138. </div>
  139. </div>
  140. <div>
  141. <a-button
  142. type="primary"
  143. id="purchaseNewOrderEdit-submit-btn"
  144. size="large"
  145. class="button-primary"
  146. :loading="subLoading"
  147. @click="handleSubmit"
  148. style="padding: 0 60px;">提交</a-button>
  149. </div>
  150. </div>
  151. </div>
  152. <!-- 导入产品 -->
  153. <importGuideModal :openModal="openGuideModal" :params="{purchaseBillSn: $route.params.sn}" @close="openGuideModal=false" @ok="hanldeOks" />
  154. <!-- 选择地址 -->
  155. <choose-address-modal :openModal="openAddrModal" @ok="handleAddrOk" @close="openAddrModal=false" />
  156. <!-- 添加产品 -->
  157. <chooseProductModal
  158. ref="chooseProduct"
  159. :isDealerUp="isDealerUp"
  160. :purchaseBillSn="$route.params.sn"
  161. :showModal="openChooseProduct"
  162. @close="openChooseProduct=false"
  163. @add="handleAdd"
  164. ></chooseProductModal>
  165. <!-- 上次缺货 -->
  166. <outStockModal :openModal="openOutStockModal" :paramsData="paramsData" @close="openOutStockModal=false" @ok="hanldeOkOutStock" />
  167. <!-- 购物车 -->
  168. <shopingCatModal :showModal="openShopCatModal" :paramsData="paramsData" @close="openShopCatModal=false" @ok="getOrderDetail(false, true)"></shopingCatModal>
  169. </div>
  170. </template>
  171. <script>
  172. import { Empty } from 'ant-design-vue'
  173. import { commonMixin } from '@/utils/mixin'
  174. import { STable, VSelect } from '@/components'
  175. import ImportGuideModal from './importGuideModal.vue'
  176. import outStockModal from './outStockModal.vue'
  177. import chooseAddressModal from '@/views/common/receivingAddress/chooseAddressModal.vue'
  178. import { purchaseDetailBySn, purchaseWriteSubmit, purchaseDetailPrint, purchaseDetailExport, purchaseDetailAddress } from '@/api/purchase'
  179. import { purchaseDetailList, purchaseDetailSave, purchaseDetailDel, purchaseDetailCount, purchaseDetailCancelList } from '@/api/purchaseDetail'
  180. // 选择产品
  181. import chooseProductModal from './chooseProductModal.vue'
  182. // 打印
  183. import PrintPanel from '@/views/common/printPanel.vue'
  184. import { hdPrint } from '@/libs/JGPrint'
  185. const shopingCatModal = () => import(/* webpackChunkName: "shopingCatModal" */ '@/views/common/shopingCatModal.vue')
  186. const qtyComp = {
  187. name: "qtyComp",
  188. template: `
  189. <a-input-number
  190. size="small"
  191. v-model="row.qty"
  192. :precision="0"
  193. :min="1"
  194. :max="999999"
  195. @blur="e => that.qtyBlur(e.target.value, row)"
  196. style="width: 100%;"
  197. placeholder="请输入" />
  198. `,
  199. props: {
  200. row: Object,
  201. column: Object,
  202. rowIndex: Number,
  203. that: Object
  204. },
  205. };
  206. const actionComp = {
  207. name: "actionComp",
  208. template: `
  209. <a-button
  210. size="small"
  211. type="link"
  212. class="button-error"
  213. :loading="row.delLoading"
  214. @click="that.handleDel(row)"
  215. >删除</a-button>
  216. `,
  217. props: {
  218. row: Object,
  219. column: Object,
  220. rowIndex: Number,
  221. that: Object
  222. },
  223. };
  224. export default {
  225. name: 'PurchaseEdit',
  226. components: { STable, VSelect, ImportGuideModal, outStockModal, PrintPanel, chooseAddressModal, chooseProductModal, shopingCatModal },
  227. mixins: [commonMixin],
  228. data () {
  229. return {
  230. isShowBisiceInfo: false,
  231. showPage: false,
  232. spinning: false,
  233. detail: null, // 详细信息
  234. openChooseProduct: false,
  235. openShopCatModal: false,
  236. tableHeight: 0,
  237. simpleImage: Empty.PRESENTED_IMAGE_SIMPLE,
  238. // -------已选产品-------------
  239. subLoading: false,
  240. orderCountData: null,
  241. delLoading: false,
  242. showSearch: false,
  243. productForm: {
  244. productName: '',
  245. productCode: '',
  246. orderBy: 'purchase_bill_detail.CREATE_DATE desc'
  247. },
  248. purchaseDisabled: false, // 查询、重置按钮是否可操作
  249. localDataSource: [],
  250. openGuideModal: false, // 导入产品引导
  251. openOutStockModal: false,
  252. paramsData: null,
  253. openAddrModal: false // 选择地址弹框是否显示
  254. }
  255. },
  256. computed: {
  257. isDealerUp () {
  258. return this.detail && this.detail.purchaseTargetType == 'DEALER_UP'
  259. },
  260. chooseColumns () {
  261. const _this = this
  262. const arr = [
  263. { title: '序号', key: "a", field: 'no', width: '5%', align: 'center', operationColumn: false },
  264. { title: '产品编码',key: "b", field: 'productCode', width: '10%', align: 'center', operationColumn: false},
  265. { title: '产品名称',key: "c", field: 'productName', width: '25%', align: 'center', operationColumn: false,ellipsis: {showTitle: true} },
  266. { title: '可用库存',key: "j", field: 'currentStockQty', width: '10%', align: 'center', operationColumn: false},
  267. { title: '采购数量',key: "d", width: '10%', align: 'center', operationColumn: false,
  268. renderBodyCell: ({ row, column, rowIndex }, h) => {
  269. return <qtyComp row={row} column={column} rowIndex={rowIndex} that={_this} />
  270. }},
  271. { title: '单位',key: "e", field: 'productUnit', width: '10%', align: 'center', operationColumn: false },
  272. { title: '操作',key: "f", width: '10%', align: 'center', operationColumn: false,
  273. renderBodyCell: ({ row, column, rowIndex }, h) => {
  274. return <actionComp row={row} column={column} rowIndex={rowIndex} that={_this} />
  275. }}
  276. ]
  277. if (this.$hasPermissions('M_ShowAllCost')) {
  278. arr.splice(4, 0, { title: '采购单价',key: "h", field: 'discountedPriceText', width: '10%', align: 'right', operationColumn: false})
  279. arr.splice(6, 0, { title: '采购金额',key: "i", field: 'discountedAmountText', width: '10%', align: 'right', operationColumn: false})
  280. }
  281. return arr
  282. }
  283. },
  284. methods: {
  285. handleActions(e){
  286. if(e.key == 1){
  287. this.openGuideModal=true
  288. }
  289. if(e.key == 2){
  290. this.handleOutStock()
  291. }
  292. if(e.key == 3){
  293. this.hanldCart()
  294. }
  295. },
  296. getTableData(){
  297. this.disabled = true
  298. this.spinning = true
  299. // 查询总计
  300. const params = Object.assign({ pageNo: 1, pageSize: 10000 }, this.productForm, { purchaseBillSn: this.$route.params.sn })
  301. purchaseDetailList(params).then(res => {
  302. const data = res.data
  303. const no = (data.pageNo - 1) * data.pageSize
  304. for (var i = 0; i < data.list.length; i++) {
  305. const row = data.list[i]
  306. row.no = no + i + 1
  307. row.qtyBackups = row.qty
  308. row.productCode = row.dealerProductEntity.code || '--'
  309. row.productName = row.dealerProductEntity.name || '--'
  310. row.productUnit = row.dealerProductEntity.unit || '--'
  311. row.discountedPriceText = (row.discountedPrice||row.discountedPrice==0)?this.toThousands(row.discountedPrice, 2):'--'
  312. row.discountedAmountText = (row.discountedAmount||row.discountedAmount==0)?this.toThousands(row.discountedAmount, 2):'--'
  313. row.currentStockQty = (row.currentStockQty||row.currentStockQty==0)?row.currentStockQty:'--'
  314. }
  315. this.localDataSource = data.list
  316. this.disabled = false
  317. this.spinning = false
  318. })
  319. },
  320. // 获取采购单基本信息
  321. getOrderDetail (noRefashTable, isReset, flag) {
  322. this.spinning = true
  323. purchaseDetailBySn({ sn: this.$route.params.sn }).then(res => {
  324. if (res.status == 200) {
  325. this.detail = res.data
  326. if (!noRefashTable) {
  327. if (this.detail.totalCategory) {
  328. if (isReset) {
  329. this.resetPurchaseForm()
  330. } else {
  331. this.getTableData()
  332. }
  333. } else {
  334. this.localDataSource = []
  335. this.spinning = false
  336. }
  337. } else {
  338. this.spinning = false
  339. }
  340. } else {
  341. this.spinning = false
  342. }
  343. })
  344. },
  345. // 删除产品
  346. handleDel (row) {
  347. const _this = this
  348. this.$confirm({
  349. title: '提示',
  350. content: '确认要删除吗?',
  351. centered: true,
  352. closable: true,
  353. onOk () {
  354. row.delLoading = true
  355. purchaseDetailDel({ id: row.id }).then(res => {
  356. if (res.status == 200) {
  357. _this.getOrderDetail(false, false, true)
  358. _this.$message.success(res.message)
  359. row.delLoading = false
  360. } else {
  361. row.delLoading = false
  362. }
  363. })
  364. }
  365. })
  366. },
  367. // 修改数量后
  368. qtyBlur (val, record) {
  369. // 光标移出,值发生改变再调用编辑接口
  370. if (val != record.qtyBackups) {
  371. this.handleAdd(record, 1)
  372. }
  373. },
  374. // 重置已选产品列表
  375. resetPurchaseForm () {
  376. this.productForm.productName = ''
  377. this.productForm.productCode = ''
  378. this.$nextTick(() => {
  379. this.getTableData()
  380. })
  381. },
  382. // 添加或修改
  383. handleAdd (row, type) {
  384. let params = {}
  385. if (type == 0 && !row.qty) {
  386. this.$message.warning('请输入数量后再添加!')
  387. this.$refs.chooseProduct.spinning = false
  388. return
  389. }
  390. // 添加
  391. if (type == 0) {
  392. params.productSn = row.productSn
  393. params.purchaseBillSn = this.detail.purchaseBillSn
  394. params.purchaseBillNo = this.detail.purchaseBillNo
  395. params.price = row.purchasePrice
  396. params.qty = row.qty
  397. } else { // 编辑
  398. // 清空成本价或数量时,值应保持未清空前的值,因成本价和数量都不可为空
  399. if (!row.qty) {
  400. row.qty = row.qtyBackups
  401. return
  402. }
  403. params = row
  404. }
  405. this.addLoading = true
  406. purchaseDetailSave(params).then(res => {
  407. if (res.status == 200) {
  408. this.getOrderDetail(false, true, true)
  409. this.$message.success(res.message)
  410. if (type == 0) {
  411. row.qtyBackups = row.qty
  412. }
  413. } else {
  414. row.qty = row.qtyBackups
  415. }
  416. this.addLoading = false
  417. this.$refs.chooseProduct.spinning = false
  418. })
  419. },
  420. // 提交
  421. handleSubmit () {
  422. const _this = this
  423. if (_this.detail && !_this.detail.totalCategory) {
  424. this.$message.info('请添加产品')
  425. return false
  426. }
  427. this.subLoading = true
  428. purchaseWriteSubmit({ id: this.detail.id }).then(res => {
  429. if (res.status == 200) {
  430. this.$message.success(res.message)
  431. setTimeout(() => {
  432. _this.handleBack()
  433. }, 1000)
  434. }
  435. _this.subLoading = false
  436. })
  437. },
  438. // 导入产品
  439. hanldeOks () {
  440. this.getOrderDetail(false, true, true)
  441. },
  442. // 打开购物车
  443. hanldCart () {
  444. this.paramsData = {
  445. purchaseBillSn: this.$route.params.sn,
  446. purchaseBillNo: this.detail && this.detail.purchaseBillNo ? this.detail.purchaseBillNo : undefined
  447. }
  448. this.openShopCatModal = true
  449. },
  450. // 上次缺货
  451. handleOutStock () {
  452. // 校验是否存在历史采购单,且上次采购存在缺货产品
  453. purchaseDetailCancelList({ pageNo: 1, pageSize: 5 }).then(res => {
  454. if (res.status == 200) {
  455. const purchaseBillNo = res.data && res.data.list && res.data.list[0].purchaseBillNo || '--'
  456. this.paramsData = {
  457. purchaseBillSn: this.$route.params.sn,
  458. purchaseBillNo: purchaseBillNo
  459. }
  460. this.openOutStockModal = true
  461. }
  462. })
  463. },
  464. // 地址保存
  465. handleAddrOk (data) {
  466. const params = {
  467. purchaseBillSn: this.$route.params.sn,
  468. shippingAddressProvinceName: data.provinceName,
  469. shippingAddressCityName: data.cityName,
  470. shippingAddressCountyName: data.countyName,
  471. shippingAddress: data.addr,
  472. consigneeName: data.consigneeName,
  473. consigneeTel: data.consigneeTel
  474. }
  475. purchaseDetailAddress(params).then(res => {
  476. if (res.status == 200) {
  477. this.openAddrModal = false
  478. this.getOrderDetail(true)
  479. }
  480. })
  481. },
  482. // 上次缺货 导入成功
  483. hanldeOkOutStock () {
  484. this.getOrderDetail(false, true, true)
  485. this.paramsData = null
  486. this.openOutStockModal = false
  487. },
  488. // 打印预览/快捷打印
  489. handlePrint (type, printerType) {
  490. const _this = this
  491. if (type == 'preview') {
  492. _this.openChooseProduct = false
  493. _this.openOutStockModal = false
  494. }
  495. _this.$store.state.app.printLoading = true
  496. let url = purchaseDetailPrint
  497. let params = { sn: this.$route.params.sn, type: printerType }
  498. if (type == 'export') { // 导出
  499. url = purchaseDetailExport
  500. params = { sn: this.$route.params.sn }
  501. }
  502. // 打印或导出
  503. hdPrint(printerType, type, url, params, '采购单', function () {
  504. _this.$store.state.app.printLoading = false
  505. _this.$refs.printBox.hovered = false
  506. })
  507. },
  508. // 返回列表
  509. handleBack () {
  510. this.$router.push({ name: 'purchaseOrderNewList' })
  511. },
  512. setTableH () {
  513. this.tableHeight = window.innerHeight - (this.isShowBisiceInfo ? 127 : 0) - (this.showSearch ? 42 : 0) - 210
  514. },
  515. pageInit () {
  516. this.$nextTick(() => {
  517. this.setTableH()
  518. this.getOrderDetail(false, true)
  519. })
  520. }
  521. },
  522. watch: {
  523. isShowBisiceInfo (newValue, oldValue) {
  524. this.setTableH()
  525. },
  526. showSearch(newValue, oldValue){
  527. if(this.isShowBisiceInfo){
  528. this.isShowBisiceInfo = false
  529. }else{
  530. this.setTableH()
  531. }
  532. },
  533. '$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
  534. this.setTableH()
  535. }
  536. },
  537. mounted () {
  538. this.showPage = true
  539. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  540. this.pageInit()
  541. }
  542. },
  543. activated () {
  544. this.showPage = true
  545. // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
  546. if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
  547. this.pageInit()
  548. }
  549. },
  550. beforeRouteEnter (to, from, next) {
  551. next(vm => {})
  552. }
  553. }
  554. </script>
  555. <style lang="less">
  556. .purchaseNewOrderEdit-wrap{
  557. position: relative;
  558. height: 100%;
  559. box-sizing: border-box;
  560. .choosedList-cont{
  561. position: relative;
  562. background-color: #fff;
  563. height: calc(100% - 60px);
  564. }
  565. }
  566. </style>