materialScanRegister.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <template>
  2. <gui-page :custom-header="true" :is-header-sized="false"
  3. :header-class="['gui-theme-background-color', isLandscapeScreen?'width: 100vmax;':'']"
  4. :style="[isLandscapeScreen?'width: 100vmax':'']">
  5. <template #gHeader>
  6. <view :style="[isLandscapeScreen?'height:44px;width: 100vmax':'height:44px;']"
  7. class="gui-flex gui-nowrap gui-rows gui-align-items-center">
  8. <!-- 使用组件实现返回按钮及返回首页按钮 -->
  9. <text style="font-size:44rpx;" class="gui-header-leader-btns gui-color-white font-icons"
  10. @tap="goBack">&#xe6c5;</text>
  11. <!-- 导航文本此处也可以是其他自定义内容 -->
  12. <text
  13. class="gui-h4 gui-blod gui-flex1 gui-text-center gui-color-white gui-ellipsis gui-primary-text">来料登记</text>
  14. <!-- 此处加一个右侧展位元素与左侧同宽,实现标题居中 -->
  15. <!-- 实际宽度请根据自己情况设置 -->
  16. <view style="width:40px;" />
  17. </view>
  18. </template>
  19. <template #gBody>
  20. <view class="form">
  21. <view class="card-list-flexbox">
  22. <text class="card-list-title" :style="[isPad?'font-size: 18px':'font-size: 14px']">单据信息</text>
  23. <view class="card-list-item">
  24. <text>送货单号</text>
  25. <text>{{ scanParams.deliveryOrderNo }}</text>
  26. </view>
  27. <view class="card-list-item">
  28. <text>供应商编码</text>
  29. <text>{{ scanParams.supplierCode }}</text>
  30. </view>
  31. <view class="card-list-item">
  32. <text>供应商名称</text>
  33. <text>{{ scanParams.supplierName }}</text>
  34. </view>
  35. <view class="card-list-item">
  36. <text>备注</text>
  37. <text>{{ scanParams.remark }}</text>
  38. </view>
  39. <view class="card-list-item">
  40. <text>扫码类型</text>
  41. <text>{{ scanTypeLabel }}</text>
  42. </view>
  43. </view>
  44. <view class="row">
  45. <view class="row-card">
  46. <uni-data-select v-model="scanParams.scanType" :localdata="scanTypeList" placeholder="请选择扫码类型" />
  47. </view>
  48. </view>
  49. <view class="row">
  50. <view class="row-card">
  51. <uni-easyinput ref="easyinput" v-model="scanParams.deliveryOrderNo" :input-border="false"
  52. :clearable="false" type="text" focus @focus="handleInputFocus" placeholder="扫描送货单条码"
  53. @confirm="confirmDeliverOrderNo" />
  54. <text class="font-icons" @click="handleMapass"></text>
  55. </view>
  56. </view>
  57. <!-- <view v-if="scanParams.deliveryOrderNo" class="row">
  58. <view class="row-card">
  59. <uni-easyinput ref="easyinput2" v-model="scanParams.deliverBatch" :input-border="false"
  60. :clearable="false" type="text" @focus="handleInputFocus" placeholder="扫描物料条码"
  61. @confirm="confirmMaterial" />
  62. <text class="font-icons" @click="handleScanMaterial"></text>
  63. </view>
  64. </view> -->
  65. <view class="table-title">
  66. <span>需求清单</span>
  67. </view>
  68. <view class="custom-table">
  69. <uni-table border stripe empty-text="暂无更多数据">
  70. <!-- 表头行 -->
  71. <uni-tr class="custom-table-head">
  72. <uni-th align="center" width="80px">箱数</uni-th>
  73. <uni-th align="center" width="80px">每箱数量</uni-th>
  74. <uni-th align="center" width="80px">总数量</uni-th>
  75. <uni-th align="center" width="140px">采购单号</uni-th>
  76. <uni-th align="center" width="140px">物料编码</uni-th>
  77. <uni-th align="center" width="140px">物料名称</uni-th>
  78. <uni-th align="center" width="140px">送货批次</uni-th>
  79. <uni-th align="center" width="180px">生产日期</uni-th>
  80. </uni-tr>
  81. <!-- 表格数据行 -->
  82. <uni-tr v-for="(item, key) in scanParams.detail" :key="key">
  83. <uni-td align="center"
  84. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">
  85. <uni-easyinput v-model="item.bagQty" type="number" :input-border="false" placeholder="请输入箱数" @input="handleBagQtyChange" />
  86. </uni-td>
  87. <uni-td align="center"
  88. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ item.receiptQty }}</uni-td>
  89. <uni-td align="center"
  90. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ calculateTotalQty(item) }}</uni-td>
  91. <uni-td align="center"
  92. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ item.purchaseOrderNo }}</uni-td>
  93. <uni-td align="center"
  94. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ item.materialNo }}</uni-td>
  95. <uni-td align="center"
  96. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ item.name }}</uni-td>
  97. <uni-td align="center"
  98. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">{{ item.deliverBatch }}</uni-td>
  99. <uni-td align="center"
  100. :style="item.state? 'background-color: rgba(109, 205, 50, 1);color: white;': ''">
  101. <!-- 时间选择功能,暂时注释掉 -->
  102. <!-- <uni-datetime-picker
  103. v-model="item.produceDate"
  104. type="datetime"
  105. :border="false"
  106. placeholder="选择日期时间" /> -->
  107. <uni-datetime-picker
  108. v-model="item.produceDate"
  109. type="date"
  110. :border="false"
  111. placeholder="选择日期" />
  112. </uni-td>
  113. </uni-tr>
  114. </uni-table>
  115. </view>
  116. <gui-right-menus>
  117. <!-- 扩展按钮 -->
  118. <template #menus-more>
  119. <view hover-class="gui-tap"
  120. class="menu-items gui-bg-green gui-flex gui-columns gui-justify-content-center"
  121. @click="handeleRegister">
  122. <text class="menu-text gui-block gui-text-center gui-color-white">登记</text>
  123. </view>
  124. <view hover-class="gui-tap"
  125. class="menu-items gui-bg-blue gui-flex gui-columns gui-justify-content-center"
  126. @click="handleNavigateToRegisterRecord">
  127. <text class="menu-text gui-block gui-text-center gui-color-white">登记记录</text>
  128. </view>
  129. </template>
  130. <!-- 核心按钮 -->
  131. <template #menus-primary>
  132. <view class="menu-items gui-bg-primary gui-flex gui-columns gui-justify-content-center">
  133. <text class="menu-icon gui-color-white gui-block gui-text-center gui-icons"></text>
  134. <text class="menu-text gui-color-white gui-block gui-text-center">操作</text>
  135. </view>
  136. </template>
  137. </gui-right-menus>
  138. <uni-popup ref="modalForm" type="dialog">
  139. <uni-popup-dialog type="error" cancel-text="不使用" confirm-text="继续使用" title="提示" content="此物料已过保质期!"
  140. @confirm="handleCompleteDialog" @close="handleCloseDialog" />
  141. </uni-popup>
  142. <uni-popup ref="errorTip" type="dialog">
  143. <uni-popup-dialog type="error" cancel-text="关闭" confirm-text="确认" title="提示"
  144. :content="errorTipMessage" @confirm="handleCloseErrorTipsModal"
  145. @close="handleCloseErrorTipsModal" />
  146. </uni-popup>
  147. </view>
  148. </template>
  149. </gui-page>
  150. </template>
  151. <script>
  152. import {
  153. defineComponent,
  154. ref,
  155. computed,
  156. onMounted
  157. } from 'vue'
  158. export default defineComponent({
  159. setup() {
  160. const modalForm = ref('')
  161. const errorTip = ref('')
  162. const errorTipMessage = ref('')
  163. const easyinput = ref('')
  164. const easyinput2 = ref('')
  165. const errorState = ref(0)
  166. const fdIndex = ref(0)
  167. const scanParams = ref({
  168. deliveryOrderNo: '',
  169. supplierCode: '',
  170. supplierName: '',
  171. remark: '',
  172. scanType: '',
  173. deliverBatch: '',
  174. validateFlag: -1,
  175. detail: []
  176. })
  177. const scanTypeList = ref([])
  178. const handleMapass = function() {
  179. // uni.$reqGet("scanDeliveryOrderNo", {
  180. // deliveryOrderNo: "CGSH230907000007"
  181. // })
  182. // .then(({
  183. // code,
  184. // data,
  185. // msg
  186. // }) => {
  187. // if (code === 0) {
  188. // Object.assign(scanParams.value, data);
  189. // // 给箱数补默认值
  190. // scanParams.value.detail.forEach(item => {
  191. // if (item.bagQty == null || item.bagQty === '') item.bagQty = 1
  192. // })
  193. // setInputFocus2();
  194. // } else {
  195. // // #ifdef APP-PLUS
  196. // plus.device.beep(2);
  197. // // #endif
  198. // errorTipMessage.value = msg;
  199. // errorTip.value.open();
  200. // errorState.value = 0;
  201. // }
  202. // })
  203. // #ifdef APP-PLUS
  204. const mpaasScanModule = uni.requireNativePlugin('Mpaas-Scan-Module')
  205. mpaasScanModule.mpaasScan({
  206. // 扫码识别类型,参数可多选,qrCode、barCode,不设置,默认识别所有
  207. 'scanType': ['qrCode', 'barCode'],
  208. // 是否隐藏相册,默认false不隐藏
  209. 'hideAlbum': false
  210. },
  211. (ret) => {
  212. // errorTipMessage.value = ret.resp_code + "-" + ret.resp_result;
  213. // errorTip.value.open();
  214. // errorState.value = -1;
  215. if (ret.resp_code === 1000) {
  216. uni.$reqGet('scanDeliveryOrderNo', {
  217. deliveryOrderNo: ret.resp_result,
  218. tableName: scanParams.value.scanType
  219. })
  220. .then(({
  221. code,
  222. data,
  223. msg
  224. }) => {
  225. if (code === 0) {
  226. Object.assign(scanParams.value, data)
  227. // 给箱数补默认值
  228. scanParams.value.detail.forEach(item => {
  229. if (item.bagQty == null || item.bagQty === '') item.bagQty = 1
  230. })
  231. setInputFocus2()
  232. } else {
  233. // #ifdef APP-PLUS
  234. plus.device.beep(2)
  235. // #endif
  236. errorTipMessage.value = msg
  237. errorTip.value.open()
  238. errorState.value = 0
  239. }
  240. })
  241. }
  242. })
  243. // #endif
  244. }
  245. // 扫描送货单输入框回车事件
  246. const confirmDeliverOrderNo = function(e) {
  247. uni.$reqGet('scanDeliveryOrderNo', {
  248. deliveryOrderNo: e,
  249. tableName: scanParams.value.scanType,
  250. })
  251. .then(({
  252. code,
  253. data,
  254. msg
  255. }) => {
  256. if (code === 0) {
  257. Object.assign(scanParams.value, data)
  258. // 给箱数补默认值
  259. scanParams.value.detail.forEach(item => {
  260. if (item.bagQty == null || item.bagQty === '') item.bagQty = 1
  261. })
  262. setInputFocus2()
  263. } else {
  264. // #ifdef APP-PLUS
  265. plus.device.beep(2)
  266. // #endif
  267. errorTipMessage.value = msg
  268. errorTip.value.open()
  269. errorState.value = 0
  270. }
  271. })
  272. }
  273. const handleScanMaterial = function() {
  274. // #ifdef APP-PLUS
  275. const mpaasScanModule = uni.requireNativePlugin('Mpaas-Scan-Module')
  276. mpaasScanModule.mpaasScan({
  277. // 扫码识别类型,参数可多选,qrCode、barCode,不设置,默认识别所有
  278. 'scanType': ['qrCode', 'barCode'],
  279. // 是否隐藏相册,默认false不隐藏
  280. 'hideAlbum': false
  281. },
  282. (ret) => {
  283. if (ret.resp_code === 1000) {
  284. uni.$reqGet('scanRegisterMaterial', {
  285. batchNumber: ret.resp_result
  286. })
  287. .then(({
  288. code,
  289. data,
  290. msg
  291. }) => {
  292. scanParams.value.deliverBatch = data?.deliverBatch
  293. if (code === 0) {
  294. fdIndex.value = scanParams.value.detail.findIndex(item => item
  295. ?.deliverBatch ===
  296. data?.deliverBatch)
  297. if (fdIndex.value !== -1) {
  298. if (data?.ifExpired === 1) {
  299. // 物料超过保质期
  300. modalForm.value.open()
  301. } else {
  302. setInputFocus2()
  303. scanParams.value.detail[fdIndex.value].state = true
  304. }
  305. } else {
  306. // #ifdef APP-PLUS
  307. plus.device.beep(2)
  308. // #endif
  309. errorTipMessage.value = '请扫描正确的物料'
  310. errorTip.value.open()
  311. errorState.value = 1
  312. }
  313. } else {
  314. // #ifdef APP-PLUS
  315. plus.device.beep(2)
  316. // #endif
  317. errorTipMessage.value = msg
  318. errorTip.value.open()
  319. errorState.value = 1
  320. }
  321. })
  322. }
  323. })
  324. // #endif
  325. }
  326. // 扫描物料输入框回车事件
  327. const confirmMaterial = function(e) {
  328. uni.$reqGet('scanRegisterMaterial', {
  329. batchNumber: e
  330. })
  331. .then(({
  332. code,
  333. data,
  334. msg
  335. }) => {
  336. scanParams.value.deliverBatch = data?.deliverBatch
  337. if (code === 0) {
  338. fdIndex.value = scanParams.value.detail.findIndex(item => item
  339. ?.deliverBatch ===
  340. data?.deliverBatch)
  341. if (fdIndex.value !== -1) {
  342. if (data?.ifExpired === 1) {
  343. // 物料超过保质期
  344. modalForm.value.open()
  345. } else {
  346. setInputFocus2()
  347. scanParams.value.detail[fdIndex.value].state = true
  348. }
  349. } else {
  350. // #ifdef APP-PLUS
  351. plus.device.beep(2)
  352. // #endif
  353. errorTipMessage.value = '请扫描正确的物料'
  354. errorTip.value.open()
  355. errorState.value = 1
  356. }
  357. } else {
  358. // #ifdef APP-PLUS
  359. plus.device.beep(2)
  360. // #endif
  361. errorTipMessage.value = msg
  362. errorTip.value.open()
  363. errorState.value = 1
  364. }
  365. })
  366. }
  367. const handleNavigateToRegisterRecord = function() {
  368. uni.navigateTo({
  369. url: '/pages/workbranch/warehouse/materialRegister/Record/registerRecord'
  370. })
  371. }
  372. // 登记
  373. const handeleRegister = function() {
  374. let isTrue = false
  375. if (scanParams.value.detail.length === 0) {
  376. // #ifdef APP-PLUS
  377. plus.device.beep(2)
  378. // #endif
  379. errorTipMessage.value = '登记数据不能为空'
  380. errorTip.value.open()
  381. errorState.value = 0
  382. return
  383. }
  384. if (scanParams.value.validateFlag === 0) {
  385. isTrue = true
  386. } else {
  387. isTrue = scanParams.value.detail.every(item => item.state === true)
  388. }
  389. if (isTrue) {
  390. uni.showLoading({
  391. title: '数据请求中',
  392. duration: 20000,
  393. mask: true
  394. })
  395. // 深拷贝参数对象
  396. const requestParams = JSON.parse(JSON.stringify(scanParams.value))
  397. // 转换生产日期为时间戳
  398. requestParams.detail.forEach(item => {
  399. if (item.produceDate) {
  400. // 将日期字符串转换为时间戳
  401. item.produceDate = new Date(item.produceDate).getTime()
  402. }
  403. })
  404. uni.$reqPost('incomingReceiptMasterCreate', requestParams)
  405. .then(({
  406. code,
  407. data,
  408. msg
  409. }) => {
  410. scanParams.value = {
  411. deliveryOrderNo: '',
  412. supplierCode: '',
  413. supplierName: '',
  414. remark: '',
  415. scanType: '',
  416. deliverBatch: '',
  417. validateFlag: -1,
  418. detail: []
  419. }
  420. if (code === 0) {
  421. uni.showToast({
  422. title: '来料登记成功',
  423. icon: 'none',
  424. duration: 2000
  425. })
  426. } else {
  427. // #ifdef APP-PLUS
  428. plus.device.beep(2)
  429. // #endif
  430. errorTipMessage.value = msg
  431. errorTip.value.open()
  432. errorState.value = -1
  433. }
  434. })
  435. .finally(() => {
  436. uni.hideLoading()
  437. })
  438. } else {
  439. // #ifdef APP-PLUS
  440. plus.device.beep(2)
  441. // #endif
  442. errorTipMessage.value = '请填写完整需求清单'
  443. errorTip.value.open()
  444. errorState.value = 1
  445. }
  446. }
  447. const handleCompleteDialog = function() {
  448. setInputFocus2()
  449. scanParams.value.detail[fdIndex.value].state = true
  450. modalForm.value.close()
  451. }
  452. const handleCloseDialog = function() {
  453. setInputFocus2()
  454. modalForm.value.close()
  455. }
  456. const goBack = function() {
  457. uni.$goBack('/pages/workbranch/warehouse/materialRegister/registerType')
  458. }
  459. const setInputFocus = function() {
  460. scanParams.value.deliveryOrderNo = ''
  461. easyinput.value.onBlur()
  462. easyinput.value.onFocus()
  463. }
  464. const setInputFocus2 = function() {
  465. scanParams.value.deliverBatch = ''
  466. easyinput2.value.onBlur()
  467. easyinput2.value.onFocus()
  468. }
  469. // 关闭错误信息弹窗
  470. const handleCloseErrorTipsModal = async function() {
  471. errorTip.value.close()
  472. if (errorState.value === 0) {
  473. await setInputFocus()
  474. } else if (errorState.value === 1) {
  475. await setInputFocus2()
  476. }
  477. }
  478. // 计算总数量
  479. const calculateTotalQty = function(item) {
  480. const bagQty = item.bagQty || 1
  481. const receiptQty = item.receiptQty || 0
  482. return bagQty * receiptQty
  483. }
  484. // 处理箱数变化
  485. const handleBagQtyChange = function() {
  486. // 当箱数变化时,Vue的响应式会自动触发calculateTotalQty的重新计算
  487. }
  488. // 禁用软键盘
  489. const handleInputFocus = function() {
  490. setTimeout(() => {
  491. uni.hideKeyboard()
  492. }, 100)
  493. }
  494. // 计算属性:获取扫码类型的中文标签
  495. const scanTypeLabel = computed(() => {
  496. if (!scanParams.value.scanType) return '未选择'
  497. const typeItem = scanTypeList.value.find(item => item.value === scanParams.value.scanType)
  498. return typeItem ? typeItem.text : scanParams.value.scanType
  499. })
  500. onMounted(() => {
  501. // 获取扫码类型字典数据
  502. uni.$reqGet('getDictDataPage', {
  503. dictType: 'srm_tablename_type', // 使用字典编码418
  504. pageNo: 1,
  505. pageSize: 100
  506. }).then(({ data }) => {
  507. scanTypeList.value = []
  508. const dataList = data?.list || [];
  509. for (var i = 0; i < dataList.length; i++) {
  510. scanTypeList.value.push({
  511. text: dataList[i].label,
  512. value: dataList[i].value,
  513. })
  514. }
  515. })
  516. })
  517. return {
  518. goBack,
  519. modalForm,
  520. easyinput,
  521. easyinput2,
  522. errorState,
  523. errorTip,
  524. errorTipMessage,
  525. scanParams,
  526. scanTypeList,
  527. scanTypeLabel,
  528. handleMapass,
  529. handleInputFocus,
  530. handleCompleteDialog,
  531. handleCloseDialog,
  532. handleScanMaterial,
  533. handeleRegister,
  534. confirmMaterial,
  535. confirmDeliverOrderNo,
  536. handleCloseErrorTipsModal,
  537. handleNavigateToRegisterRecord,
  538. calculateTotalQty,
  539. handleBagQtyChange
  540. }
  541. }
  542. })
  543. </script>
  544. <style lang="scss" scoped>
  545. .gui-header-leader-btns {
  546. color: black;
  547. font-size: 24px !important;
  548. }
  549. .gui-sbody {
  550. background-color: rgba(234, 239, 242, 1);
  551. }
  552. .form {
  553. margin-top: 85px;
  554. font-size: 14px;
  555. }
  556. .row {
  557. height: 55px;
  558. display: flex;
  559. justify-content: center;
  560. padding-left: 20px;
  561. padding-right: 20px;
  562. margin: 10px 0;
  563. background-color: white;
  564. .row-card {
  565. display: flex;
  566. flex-direction: row;
  567. justify-content: space-between;
  568. align-items: center;
  569. width: calc(375px - 30px);
  570. }
  571. }
  572. .input-200 {
  573. width: 200px;
  574. padding-left: 10px;
  575. }
  576. .font-icons {
  577. width: 40px;
  578. font-size: 20px;
  579. text-align: right;
  580. }
  581. .card-list-flexbox {
  582. width: calc(100vw - 24px);
  583. height: 195px;
  584. margin: 0 12px;
  585. display: flex;
  586. justify-content: center;
  587. flex-direction: column;
  588. align-items: center;
  589. overflow-y: scroll;
  590. .card-list-title {
  591. width: 100%;
  592. height: 35px;
  593. line-height: 35px;
  594. margin: 0 4px 0 4px;
  595. border-radius: 4px 4px 0 0;
  596. text-align: center;
  597. color: white;
  598. background-color: rgba(0, 160, 233, 1.0);
  599. }
  600. .card-list-item,
  601. .card-list-item-operation {
  602. width: 100%;
  603. height: 35px;
  604. margin: 0 4px 3rpx 4px;
  605. border-radius: 4px;
  606. display: flex;
  607. flex-direction: row;
  608. align-items: center;
  609. justify-content: space-between;
  610. background-color: #fff;
  611. uni-text {
  612. font-size: 14px;
  613. height: 50rpx;
  614. text-align: left;
  615. padding: 0 8px;
  616. display: flex;
  617. flex-direction: row;
  618. align-items: center;
  619. }
  620. .text-1 {
  621. flex: 1;
  622. height: 35px;
  623. justify-content: flex-start;
  624. }
  625. .text-2 {
  626. flex: 3;
  627. height: 35px;
  628. justify-content: flex-end;
  629. margin-right: 4px;
  630. padding: 2px 6px;
  631. }
  632. }
  633. }
  634. .table-title {
  635. height: 40px;
  636. line-height: 40px;
  637. margin: 4px 0 -3px 0;
  638. padding: 0 12px;
  639. font-size: 16px;
  640. font-weight: bold;
  641. background-color: white;
  642. }
  643. .custom-table {
  644. height: calc(100vh - 405px);
  645. min-height: 230px;
  646. margin: 5px 0;
  647. overflow-y: scroll;
  648. }
  649. </style>