salesReturnGrabEdit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <template>
  2. <div class="salesReturnEdit-wrap">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <a-page-header :ghost="false" :backIcon="false" class="salesReturnGrabEdit-back" >
  5. <!-- 自定义的二级文字标题 -->
  6. <template slot="subTitle">
  7. <a id="salesReturnGrabEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
  8. <span style="margin: 0 15px;color: #666;">客户名称:{{ (ordeDetail&&ordeDetail.buyerName) || '--' }}</span>
  9. </template>
  10. <!-- 操作区,位于 title 行的行尾 -->
  11. <template slot="extra" v-if="$hasPermissions('B_salesReturnPrint')">
  12. <a-radio-group key="4" v-model="printerType">
  13. <a-radio value="NEEDLE">针式</a-radio>
  14. <a-radio value="INK">喷墨</a-radio>
  15. </a-radio-group>
  16. <a-button key="3" id="salesReturnEdit-preview-btn" :disabled="chooseLoadData.length==0" @click="handlePrint('preview')">打印预览</a-button>
  17. <a-button key="2" type="primary" id="salesReturnEdit-print-btn" :disabled="chooseLoadData.length==0" @click="handlePrint('print')">快捷打印</a-button>
  18. <a-button
  19. key="1"
  20. type="primary"
  21. class="button-warning"
  22. id="salesReturnEdit-export-btn"
  23. :disabled="chooseLoadData.length==0"
  24. @click="handlePrint('export')">导出Excel</a-button>
  25. </template>
  26. </a-page-header>
  27. <a-card size="small" :bordered="false" class="pages-wrap">
  28. <!-- 查询配件列表 -->
  29. <queryPart ref="queryPart" grabFlag="1" :newLoading="isInster" @add="saveProduct"></queryPart>
  30. </a-card>
  31. <a-card size="small" :bordered="false" class="pages-wrap">
  32. <!-- alert -->
  33. <a-alert style="margin-bottom: 10px;" type="info">
  34. <div slot="message" class="total-bar">
  35. <div>
  36. <span>退货总金额:{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? countData.totalAmount+'元' : '--' }};</span>
  37. <span>总款数:{{ countData&&(countData.totalCategory || countData.totalCategory==0) ? countData.totalCategory : '--' }};</span>
  38. <span>总数量:{{ countData&&(countData.totalQty || countData.totalQty==0) ? countData.totalQty : '--' }};</span>
  39. <span>废品总数量:{{ countData&&(countData.totalCelQty || countData.totalCelQty==0) ? countData.totalCelQty : '--' }};</span>
  40. </div>
  41. <div>
  42. <div>
  43. 折扣金额:
  44. <a-input-number
  45. size="small"
  46. id="discount"
  47. v-model="ordeDetail.discountAmount"
  48. :min="0"
  49. :precision="2"
  50. :max="999999"/>
  51. <a-button size="small" type="primary" @click="salesReturnDiscount" class="button-info">打折</a-button>
  52. </div>
  53. <div>
  54. 折扣:<strong>{{ ordeDetail&&(ordeDetail.discountRate || ordeDetail.discountRate==0) ? ordeDetail.discountRate+'%' : '--' }}</strong>;
  55. 折后总售价:<strong>{{ ordeDetail&&(ordeDetail.discountedAmount || ordeDetail.discountedAmount==0) ? '¥'+ordeDetail.discountedAmount : '--' }}</strong>;
  56. </div>
  57. </div>
  58. </div>
  59. </a-alert>
  60. <!-- 搜索条件 -->
  61. <div class="table-page-search-wrapper">
  62. <a-row :gutter="15">
  63. <a-col :span="18">
  64. <a-form-model layout="inline" :model="productForm" @keyup.enter.native="$refs.table.refresh(true)">
  65. <a-row :gutter="15">
  66. <a-col :md="8" :sm="24">
  67. <a-form-model-item label="产品编码">
  68. <a-input v-model="productForm.productCode" allowClear placeholder="输入产品编码" />
  69. </a-form-model-item>
  70. </a-col>
  71. <a-col :md="8" :sm="24">
  72. <a-form-model-item label="产品名称">
  73. <a-input v-model="productForm.productName" allowClear placeholder="输入产品名称" />
  74. </a-form-model-item>
  75. </a-col>
  76. <a-col :md="8" :sm="24">
  77. <a-form-model-item>
  78. <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="salesReturn-refresh">查询</a-button>
  79. <a-button style="margin-left: 5px" @click="resetForm" id="salesReturn-reset">重置</a-button>
  80. </a-form-model-item>
  81. </a-col>
  82. </a-row>
  83. </a-form-model>
  84. </a-col>
  85. <a-col :span="6">
  86. <div style="float:right;overflow: hidden;">
  87. <!-- <a-button id="salesReturn-dru">导入明细</a-button> -->
  88. <a-button
  89. size="small"
  90. type="primary"
  91. @click="salesReturnDelAll"
  92. :loading="delLoading"
  93. style="margin-left: 10px"
  94. id="salesReturn-del-all">整单删除</a-button>
  95. </div>
  96. </a-col>
  97. </a-row>
  98. </div>
  99. <!-- 已选配件列表 -->
  100. <s-table
  101. class="sTable"
  102. ref="table"
  103. size="small"
  104. :rowKey="(record) => record.id"
  105. :columns="columns"
  106. :data="loadData"
  107. :defaultLoadData="false"
  108. :scroll="{ y: 300 }"
  109. bordered>
  110. <!-- 本次退货数量 -->
  111. <template slot="qty" slot-scope="text, record">
  112. <a-input-number
  113. id="salesReturns-qty"
  114. size="small"
  115. v-model="record.qty"
  116. :precision="0"
  117. :min="0"
  118. :max="999999"
  119. placeholder="请输入"
  120. @blur="e => onCellBlur(e.target.value, record, 'qty')"
  121. style="width: 100%;" />
  122. </template>
  123. <!-- 废品数量 -->
  124. <template slot="celQty" slot-scope="text, record">
  125. <a-input-number
  126. id="salesReturns-celQty"
  127. size="small"
  128. v-model="record.celQty"
  129. :precision="0"
  130. :min="0"
  131. :max="999999"
  132. placeholder="请输入"
  133. @blur="e => onCellBlur(e.target.value, record, 'celQty')"
  134. style="width: 100%;" />
  135. </template>
  136. <!-- 退货金额小计 -->
  137. <template slot="returnAmount" slot-scope="text, record">{{ (record.price * record.qty).toFixed(2) }}</template>
  138. <!-- 仓库仓位 -->
  139. <template slot="warehouse" slot-scope="text, record, index">
  140. <a-cascader
  141. size="small"
  142. @change="e => changeWarehouseCascade(e, record, index)"
  143. v-model="record.warehouseCascade"
  144. expand-trigger="hover"
  145. :options="warehouseCascadeData"
  146. :allowClear="false"
  147. :fieldNames="{ label: 'name', value: 'sn', children: 'warehouseLocationList' }"
  148. id="bulkWarehousingOrderEdit-warehouseCascade"
  149. placeholder="请选择仓库仓位"
  150. style="width: 100%;" />
  151. </template>
  152. <!-- 操作 -->
  153. <template slot="action" slot-scope="text, record">
  154. <a-button
  155. size="small"
  156. type="primary"
  157. :loading="delLoading"
  158. class="button-error"
  159. @click="handleDel(record)"
  160. id="salesReturn-Del">删除</a-button>
  161. </template>
  162. </s-table>
  163. </a-card>
  164. </a-spin>
  165. <div class="affix-cont">
  166. <a-button
  167. size="large"
  168. style="padding: 0 60px;"
  169. type="primary"
  170. :disabled="spinning"
  171. class="button-primary"
  172. @click="handleSubmit()"
  173. id="salesReturn-handleSubmit">提交</a-button>
  174. </div>
  175. <!-- 选择客户弹框 -->
  176. <choose-custom-modal :show="openModal" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
  177. <!-- 打印 -->
  178. <div id="print"></div>
  179. </div>
  180. </template>
  181. <script>
  182. import moment from 'moment'
  183. import { STable, VSelect } from '@/components'
  184. import queryPart from './queryPart.vue'
  185. import chooseCustomModal from './chooseCustomModal.vue'
  186. import { warehouseCascadeList } from '@/api/warehouse'
  187. import { salesReturnDetail, salesReturnQueryCount, salesReturnDetailList, salesReturnDiscount, salesReturnDelAll, salesReturnDetailDel, salesReturnSaveProduct, salesReturnSubmit, salesReturnDetailPrint, salesDetailExport } from '@/api/salesReturn'
  188. export default {
  189. name: 'SalesDetail',
  190. components: {
  191. STable,
  192. VSelect,
  193. queryPart,
  194. chooseCustomModal
  195. },
  196. data () {
  197. return {
  198. spinning: false,
  199. orderId: null,
  200. orderSn: null,
  201. buyerSn: null,
  202. disabled: false,
  203. openModal: false,
  204. isInster: false, // 是否正在添加产品
  205. ordeDetail: { discountAmount: 0 },
  206. delLoading: false,
  207. warehouseCascadeData: [], // 仓库仓位
  208. // 已选产品
  209. dataSource: [],
  210. productForm: {
  211. productCode: '',
  212. productName: ''
  213. },
  214. countData: null,
  215. // 表头
  216. columns: [
  217. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  218. { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
  219. { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '12%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  220. { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
  221. { title: '销售单号', dataIndex: 'salesBillNo', align: 'center', width: '8%', customRender: function (text) { return text || '--' } },
  222. { title: '售价', dataIndex: 'price', align: 'center', width: '4%', scopedSlots: { customRender: 'price' } },
  223. { title: '单位', dataIndex: 'dealerProductEntity.unit', align: 'center', width: '4%', customRender: function (text) { return text || '--' } },
  224. { title: '销售数量', dataIndex: 'salesQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  225. { title: '本次退货数量', dataIndex: 'qty', align: 'center', width: '7%', scopedSlots: { customRender: 'qty' } },
  226. { title: '废品数量', dataIndex: 'celQty', align: 'center', width: '6%', scopedSlots: { customRender: 'celQty' } },
  227. { title: '仓库仓位', scopedSlots: { customRender: 'warehouse' }, width: '10%', align: 'center' },
  228. { title: '退货金额小计', align: 'center', scopedSlots: { customRender: 'returnAmount' }, width: '7%' },
  229. { title: '折后金额小计', dataIndex: 'discountedAmount', align: 'center', width: '7%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  230. { title: '操作', scopedSlots: { customRender: 'action' }, width: '5%', align: 'center' }
  231. ],
  232. chooseLoadData: [],
  233. // 加载数据方法 必须为 Promise 对象
  234. loadData: parameter => {
  235. this.disabled = true
  236. // 查询总计
  237. this.productForm.salesReturnBillSn = this.$route.params.sn
  238. this.getQueryCount(Object.assign(parameter, this.productForm))
  239. return salesReturnDetailList(Object.assign(parameter, this.productForm)).then(res => {
  240. const data = res.data
  241. const no = (data.pageNo - 1) * data.pageSize
  242. for (var i = 0; i < data.list.length; i++) {
  243. data.list[i].no = no + i + 1
  244. data.list[i].qtyBackups = data.list[i].qty
  245. data.list[i].celQtyBackups = data.list[i].celQty
  246. const warehouseSn = data.list[i].warehouseSn || undefined
  247. const warehouseLocationSn = data.list[i].warehouseLocationSn || undefined
  248. if (warehouseSn || warehouseLocationSn) {
  249. data.list[i].warehouseSnBackups = warehouseSn
  250. data.list[i].warehouseLocationSnBackups = warehouseLocationSn
  251. data.list[i].warehouseCascade = [warehouseSn, warehouseLocationSn]
  252. } else {
  253. data.list[i].warehouseCascade = undefined
  254. }
  255. }
  256. this.disabled = false
  257. this.chooseLoadData = data.list
  258. return data
  259. })
  260. },
  261. printerType: 'NEEDLE' // 打印机类型
  262. }
  263. },
  264. methods: {
  265. // 返回
  266. handleBack () {
  267. this.$router.push({ path: '/salesManagement/salesReturn/list', query: { closeLastOldTab: true } })
  268. },
  269. // 选择客户成功
  270. chooseCustomOk (data) {},
  271. handleEditCustom () {
  272. this.openModal = true
  273. },
  274. // 已选产品 blur
  275. onCellBlur (val, record, type) {
  276. let valBackups
  277. if (type == 'qty') {
  278. valBackups = record.qtyBackups
  279. } else if (type == 'celQty') {
  280. valBackups = record.celQtyBackups
  281. }
  282. // 光标移出,值发生改变再调用编辑接口
  283. if (val && val != valBackups) {
  284. if (Number(record.celQty) > Number(record.qty)) {
  285. this.$message.info('废品数量不可大于本次退货数量')
  286. this.reductionVal(record, type, valBackups)
  287. } else {
  288. this.saveProduct(record, 'edit')
  289. }
  290. } else {
  291. this.reductionVal(record, type, valBackups)
  292. }
  293. },
  294. reductionVal (record, type, valBackups) {
  295. if (type == 'qty') {
  296. record.qty = valBackups
  297. } else if (type == 'celQty') {
  298. record.celQty = valBackups
  299. }
  300. },
  301. // 仓库仓位 级联 列表
  302. getWarehouseCascade () {
  303. warehouseCascadeList({}).then(res => {
  304. if (res.status == 200) {
  305. res.data.map(item => {
  306. item.sn = item.warehouseSn
  307. if (item.warehouseLocationList) {
  308. item.warehouseLocationList.map(subItem => {
  309. subItem.sn = subItem.warehouseLocationSn
  310. })
  311. }
  312. })
  313. this.warehouseCascadeData = res.data
  314. } else {
  315. this.warehouseCascadeData = []
  316. }
  317. })
  318. },
  319. // 修改仓库仓位
  320. changeWarehouseCascade (val, opt, ind) {
  321. console.log(val, opt, ind)
  322. let loadData = this.chooseLoadData[ind]
  323. if (val.length < 2) {
  324. this.$message.warning('当前仓库无仓位,请选择其他仓库')
  325. const warehouseSnBackups = loadData.warehouseSnBackups || undefined
  326. const warehouseLocationSnBackups = loadData.warehouseLocationSnBackups || undefined
  327. loadData.warehouseSn = warehouseSnBackups
  328. loadData.warehouseLocationSn = warehouseLocationSnBackups
  329. if (warehouseSnBackups || warehouseLocationSnBackups) {
  330. loadData.warehouseCascade = [warehouseSnBackups, warehouseLocationSnBackups]
  331. } else {
  332. loadData.warehouseCascade = undefined
  333. }
  334. } else {
  335. loadData.warehouseSn = val[0] ? val[0] : ''
  336. loadData.warehouseLocationSn = val[1] ? val[1] : ''
  337. loadData.warehouseSnBackups = val[0] ? val[0] : ''
  338. loadData.warehouseLocationSnBackups = val[1] ? val[1] : ''
  339. loadData = this.chooseLoadData[ind]
  340. console.log(loadData)
  341. this.saveProduct(loadData, 'edit')
  342. }
  343. },
  344. // 重置列表
  345. resetForm () {
  346. this.productForm = {
  347. productName: '',
  348. productCode: ''
  349. }
  350. this.$refs.table.refresh(true)
  351. },
  352. // 明细统计
  353. getQueryCount (params) {
  354. salesReturnQueryCount(params).then(res => {
  355. this.countData = res.data || null
  356. })
  357. },
  358. // 获取单据详细
  359. getOrderDetail () {
  360. salesReturnDetail({ sn: this.orderSn }).then(res => {
  361. this.ordeDetail = res.data || null
  362. this.$refs.queryPart.pageInit(this.buyerSn, this.ordeDetail && this.ordeDetail.priceType || '')
  363. })
  364. },
  365. // 打折
  366. salesReturnDiscount () {
  367. if (this.ordeDetail.discountAmount < 0) {
  368. return
  369. }
  370. this.spinning = true
  371. salesReturnDiscount({
  372. discountAmount: this.ordeDetail.discountAmount,
  373. salesReturnSn: this.ordeDetail.salesReturnSn,
  374. id: this.ordeDetail.id
  375. }).then(res => {
  376. if (res.status == 200) {
  377. this.resetSearchForm()
  378. this.spinning = false
  379. } else {
  380. this.spinning = false
  381. }
  382. })
  383. },
  384. // 整单删除
  385. salesReturnDelAll () {
  386. const _this = this
  387. this.$confirm({
  388. title: '提示',
  389. content: '确认要整单删除吗?',
  390. centered: true,
  391. closable: true,
  392. onOk () {
  393. _this.delLoading = true
  394. _this.spinning = true
  395. salesReturnDelAll({ sn: _this.ordeDetail.salesReturnSn }).then(res => {
  396. if (res.status == 200) {
  397. _this.resetSearchForm()
  398. }
  399. _this.$message.info(res.message)
  400. _this.delLoading = false
  401. _this.spinning = false
  402. })
  403. }
  404. })
  405. },
  406. // 删除产品
  407. handleDel (row) {
  408. const _this = this
  409. this.$confirm({
  410. title: '提示',
  411. content: '确认要删除吗?',
  412. centered: true,
  413. closable: true,
  414. onOk () {
  415. _this.delLoading = true
  416. _this.spinning = true
  417. salesReturnDetailDel({ id: row.id }).then(res => {
  418. if (res.status == 200) {
  419. _this.resetSearchForm(true)
  420. }
  421. _this.$message.info(res.message)
  422. _this.delLoading = false
  423. _this.spinning = false
  424. })
  425. }
  426. })
  427. },
  428. // 重置
  429. resetSearchForm (flag) {
  430. this.$refs.table.refresh(!!flag)
  431. this.getOrderDetail()
  432. },
  433. // 添加或修改产品
  434. saveProduct (row, type) {
  435. console.log(row)
  436. // 防止多次添加产品
  437. if (this.isInster) {
  438. return
  439. }
  440. this.isInster = true
  441. const params = {
  442. 'salesReturnBillSn': this.orderSn,
  443. 'salesReturnBillNo': this.ordeDetail.salesReturnNo,
  444. 'salesBillSn': row.salesBillSn,
  445. 'salesBillNo': row.salesBillNo,
  446. 'salesBillDetailSn': row.salesBillDetailSn,
  447. 'price': row.price,
  448. 'cost': row.cost,
  449. 'productSn': row.productSn,
  450. 'celQty': row.celQty,
  451. 'hasReturnQty': row.hasReturnQty,
  452. 'warehouseLocationSn': row.warehouseLocationSn,
  453. 'warehouseSn': row.warehouseSn
  454. }
  455. // 编辑
  456. if (type == 'edit') {
  457. params.id = row.id
  458. params.qty = row.qty
  459. } else {
  460. params.salesQty = row.qty
  461. }
  462. this.spinning = true
  463. salesReturnSaveProduct(params).then(res => {
  464. this.resetSearchForm(true)
  465. this.$refs.queryPart.refreshData()
  466. this.isInster = false
  467. this.spinning = false
  468. })
  469. },
  470. // 提交销售单
  471. handleSubmit () {
  472. this.spinning = true
  473. salesReturnSubmit({ sn: this.orderSn }).then(res => {
  474. if (res.status == 200) {
  475. this.handleBack()
  476. this.$message.success(res.message)
  477. this.spinning = false
  478. } else {
  479. this.spinning = false
  480. }
  481. })
  482. },
  483. // 打印预览/快捷打印
  484. handlePrint (type) {
  485. const _this = this
  486. _this.spinning = true
  487. let url = salesReturnDetailPrint
  488. let params = { sn: this.$route.params.sn, type: this.printerType }
  489. if (type == 'export') { // 导出
  490. url = salesDetailExport
  491. params = { sn: this.$route.params.sn }
  492. }
  493. url(params).then(res => {
  494. _this.spinning = false
  495. if (res.type == 'application/json') {
  496. var reader = new FileReader()
  497. reader.addEventListener('loadend', function () {
  498. const obj = JSON.parse(reader.result)
  499. _this.$notification.error({
  500. message: '提示',
  501. description: obj.message
  502. })
  503. })
  504. reader.readAsText(res)
  505. } else {
  506. if (type == 'export') { // 导出
  507. this.download(res)
  508. } else {
  509. this.print(res, type)
  510. }
  511. }
  512. })
  513. },
  514. print (data, type) {
  515. if (!data) {
  516. return
  517. }
  518. const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' }))
  519. document.getElementById('print').innerHTML = '<iframe id="printfsrge" name="printfsrge" src="' + url + '" hidden></iframe>'
  520. if (type == 'preview') { // 预览
  521. window.open(url)
  522. } else if (type == 'print') { // 打印
  523. window.frames['printfsrge'].focus()
  524. window.frames['printfsrge'].print()
  525. }
  526. },
  527. download (data) {
  528. if (!data) { return }
  529. const url = window.URL.createObjectURL(new Blob([data]))
  530. const link = document.createElement('a')
  531. link.style.display = 'none'
  532. link.href = url
  533. const a = moment().format('YYYYMMDDHHmmss')
  534. const fname = '销售退货' + a
  535. link.setAttribute('download', fname + '.xlsx')
  536. document.body.appendChild(link)
  537. link.click()
  538. },
  539. pageInit () {
  540. this.orderId = this.$route.params.id
  541. this.orderSn = this.$route.params.sn
  542. this.buyerSn = this.$route.params.buyerSn
  543. this.getOrderDetail()
  544. this.getWarehouseCascade()
  545. this.resetForm()
  546. }
  547. },
  548. mounted () {
  549. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  550. this.pageInit()
  551. }
  552. },
  553. activated () {
  554. // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
  555. if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
  556. this.pageInit()
  557. }
  558. },
  559. beforeRouteEnter (to, from, next) {
  560. next(vm => {})
  561. }
  562. }
  563. </script>
  564. <style lang="less">
  565. .salesReturnEdit-wrap{
  566. position: relative;
  567. height: 100%;
  568. padding-bottom: 51px;
  569. box-sizing: border-box;
  570. >.ant-spin-nested-loading{
  571. overflow-y: scroll;
  572. height: 100%;
  573. }
  574. .pages-wrap{
  575. margin-top: 10px;
  576. .total-bar{
  577. display: flex;
  578. align-items: center;
  579. justify-content: space-between;
  580. > div{
  581. &:last-child{
  582. display: flex;
  583. align-items: center;
  584. justify-content: space-between;
  585. > div{
  586. padding: 0 10px;
  587. }
  588. }
  589. }
  590. }
  591. }
  592. }
  593. </style>