salesReturnEdit.vue 22 KB

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