edit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. <template>
  2. <div class="salesEdit-wrap">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <a-page-header :ghost="false" :backIcon="false" @back="handleBack" >
  5. <!-- 自定义的二级文字标题 -->
  6. <template slot="subTitle">
  7. <a id="salesEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
  8. <span style="margin: 0 15px;color: #666;">客户名称:{{ detailData&&detailData.buyerName }}</span>
  9. </template>
  10. </a-page-header>
  11. <a-card size="small" :bordered="false" class="salesEdit-cont">
  12. <div slot="title">
  13. <div class="p-title">
  14. 选择产品
  15. </div>
  16. </div>
  17. <!-- 查询配件列表 -->
  18. <queryPart ref="partQuery" :newLoading="isInster" @add="insterProduct"></queryPart>
  19. </a-card>
  20. <a-card size="small" :bordered="false" class="salesEdit-cont">
  21. <div slot="title">
  22. <a-row :gutter="15" type="flex">
  23. <a-col :span="2">
  24. <div class="p-title">
  25. 已选产品
  26. </div>
  27. </a-col>
  28. <a-col :span="16" v-if="activeName">
  29. <div class="p-notes">
  30. <a-icon style="color: #FF9900;" type="bell" /> 已选产品可参加<span>{{ activeName }}</span>的促销活动,促销产品为指定产品
  31. </div>
  32. </a-col>
  33. </a-row>
  34. </div>
  35. <!-- 总计 -->
  36. <a-alert type="info" style="margin-bottom: 10px;">
  37. <div slot="message" class="total-bar">
  38. <div>
  39. <span v-if="$hasPermissions('B_isShowPrice')">总售价:<strong>{{ detailData&&(detailData.totalCommonAmount || detailData.totalCommonAmount==0) ? '¥'+detailData.totalCommonAmount : '--' }}</strong>;</span>
  40. 总款数:<strong>{{ detailData&&(detailData.totalCommonCategory || detailData.totalCommonCategory==0) ? detailData.totalCommonCategory : '--' }}</strong>;
  41. 总数量:<strong>{{ detailData&&(detailData.totalCommonQty || detailData.totalCommonQty==0) ? detailData.totalCommonQty : '--' }}</strong>;
  42. </div>
  43. </div>
  44. </a-alert>
  45. <!-- 筛选条件 -->
  46. <a-row :gutter="15">
  47. <a-col :span="24">
  48. <div class="table-page-search-wrapper" style="position: relative;width: 100%;">
  49. <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
  50. <a-row :gutter="15">
  51. <a-col :md="6" :sm="24">
  52. <a-form-item label="产品编码" prop="productCode">
  53. <a-input id="salesEdit-productCode" v-model.trim="queryParam.productCode" placeholder="请输入产品编码" allowClear />
  54. </a-form-item>
  55. </a-col>
  56. <a-col :md="6" :sm="24">
  57. <a-form-item label="产品名称" prop="productName">
  58. <a-input id="salesEdit-productName" v-model.trim="queryParam.productName" placeholder="请输入产品名称" allowClear />
  59. </a-form-item>
  60. </a-col>
  61. <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
  62. <a-button type="primary" class="button-info" @click="$refs.table.refresh(true)" :disabled="disabled" id="salesEdit-refresh">查询</a-button>
  63. <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="salesEdit-reset">重置</a-button>
  64. </a-col>
  65. </a-row>
  66. </a-form>
  67. <div style="position: absolute;right: 0;top: 3px;">
  68. <span>已选{{ selectTotal }}项</span>
  69. <a-button
  70. style="margin:0 15px;"
  71. size="small"
  72. type="danger"
  73. class="button-info"
  74. id="salesEdit-plDel-btn"
  75. @click="handleBatchDel">批量删除</a-button>
  76. <a-button
  77. size="small"
  78. type="primary"
  79. class="button-info"
  80. id="salesEdit-import-btn"
  81. @click="openGuideModal=true">导入产品</a-button>
  82. </div>
  83. </div>
  84. </a-col>
  85. </a-row>
  86. <!-- 已选配件列表 -->
  87. <s-table
  88. class="sTable"
  89. ref="table"
  90. size="small"
  91. :rowKey="(record) => record.id"
  92. :columns="columns"
  93. :data="loadData"
  94. :row-selection="{ columnWidth: 40 }"
  95. @rowSelection="rowSelectionFun"
  96. :defaultLoadData="false"
  97. :scroll="{ y: 300 }"
  98. bordered>
  99. <!-- 产品编码 -->
  100. <template slot="productCode" slot-scope="text, record">
  101. <a-badge count="缺" v-if="Number(record.stockQty) < Number(record.unpushedQty)">
  102. <div style="padding-right: 15px;">{{ text }}</div>
  103. </a-badge>
  104. <span v-if="!(Number(record.stockQty) < Number(record.unpushedQty))">{{ text }}</span>
  105. </template>
  106. <!-- 产品名称 -->
  107. <template slot="productName" slot-scope="text, record">
  108. <div class="ellipsisCon">
  109. <a-tooltip placement="rightBottom">
  110. <template slot="title">
  111. <span>{{ text }}</span>
  112. </template>
  113. <span class="ellipsisText">{{ text }}</span>
  114. </a-tooltip>
  115. <a-badge :number-style="{ backgroundColor: '#52c41a' }" count="活动" v-if="record.promotableFlag == 1"></a-badge>
  116. </div>
  117. </template>
  118. <!-- 销售数量 -->
  119. <template slot="salesNums" slot-scope="text, record">
  120. <a-input-number
  121. id="salesEdit-qty"
  122. size="small"
  123. v-model="record.qty"
  124. :precision="0"
  125. :min="1"
  126. :max="999999"
  127. placeholder="请输入"
  128. @blur="e => onCellBlur(e.target.value, record)"
  129. style="width: 100%;" />
  130. </template>
  131. <!-- 当前库存 -->
  132. <template slot="stockQty" slot-scope="text, record">
  133. <div v-if="record.stockQty || record.stockQty==0">
  134. <p style="margin: 0;" v-if="Number(record.stockQty) < Number(record.unpushedQty)">{{ record.stockQty }}(<span class="redStyle">缺{{ Number(record.unpushedQty) - Number(record.stockQty) }}</span>)</p>
  135. <p style="margin: 0;" v-else>{{ record.stockQty }}</p>
  136. </div>
  137. <span v-else>--</span>
  138. </template>
  139. <!-- 操作 -->
  140. <template slot="action" slot-scope="text, record">
  141. <a-button
  142. size="small"
  143. type="link"
  144. :loading="delLoading"
  145. class="button-error"
  146. @click="handleDel(record)"
  147. >删除</a-button>
  148. <a-button
  149. size="small"
  150. type="link"
  151. :loading="delLoading"
  152. class="button-warning"
  153. @click="handleSelCx(record)"
  154. v-if="record.promotableFlag == 1"
  155. >选择促销品</a-button>
  156. </template>
  157. </s-table>
  158. </a-card>
  159. <a-card size="small" :bordered="false" class="salesEdit-cont">
  160. <div slot="title">
  161. <div class="p-title">
  162. 已选促销品
  163. </div>
  164. </div>
  165. <!-- 总计 -->
  166. <a-alert type="info" style="margin-bottom: 10px;">
  167. <div slot="message" class="total-bar">
  168. <div>
  169. <span v-if="$hasPermissions('B_isShowCost')">总成本:<strong>{{ detailData&&(detailData.totalPromoCost || detailData.totalPromoCost==0) ? '¥'+detailData.totalPromoCost : '--' }}</strong>;</span>
  170. 总款数:<strong>{{ detailData&&(detailData.totalPromoCategory || detailData.totalPromoCategory==0) ? detailData.totalPromoCategory : '--' }}</strong>;
  171. 总数量:<strong>{{ detailData&&(detailData.totalPromoQty || detailData.totalPromoQty==0) ? detailData.totalPromoQty : '--' }}</strong>;
  172. </div>
  173. <div>
  174. </div>
  175. </div>
  176. </a-alert>
  177. <!-- 已选促销品列表 -->
  178. <queryPromotable ref="promotable" :delLoading="delLoading" @onCellBlur="onCellBlur" @del="handleDel"></queryPromotable>
  179. </a-card>
  180. </a-spin>
  181. <div class="affix-cont">
  182. <a-button
  183. size="large"
  184. style="padding: 0 60px;"
  185. :disabled="spinning"
  186. type="primary"
  187. class="button-primary"
  188. @click="handleSubmit()"
  189. id="productInfoList-handleSubmit">提交</a-button>
  190. </div>
  191. <!-- 添加产品 -->
  192. <ChooseActive
  193. ref="activeProduct"
  194. :openModal="newActive"
  195. @ok="addNewActive"
  196. :newLoading="isInster"
  197. @close="closeActive"></ChooseActive>
  198. <!-- 导入产品 -->
  199. <importGuideModal :openModal="openGuideModal" :params="{salesBillSn: $route.params.sn}" @close="closeGuideModel" @ok="hanldeOk" />
  200. </div>
  201. </template>
  202. <script>
  203. import { commonMixin } from '@/utils/mixin'
  204. import { STable, VSelect } from '@/components'
  205. import queryPart from './queryPart.vue'
  206. import queryPromotable from './queryPromotable.vue'
  207. import ChooseActive from './chooseActive.vue'
  208. import ImportGuideModal from './importGuideModal.vue'
  209. import { salesDetailBySn, salesWriteSubmit, getPromoacActiveList } from '@/api/sales'
  210. import { salesDetailStockList, salesDetailInsert, salesDetailUpdateQty, salesDetailDel, salesDetailBatchDel, salesDetailDelAll, addPromoGoods, salesBatchInsert } from '@/api/salesDetail'
  211. export default {
  212. name: 'SalesEdit',
  213. mixins: [commonMixin],
  214. components: { STable, VSelect, queryPart, queryPromotable, ChooseActive, ImportGuideModal },
  215. data () {
  216. return {
  217. spinning: false,
  218. salesBillSn: null, // 销售单sn
  219. disabled: false, // 查询、重置按钮是否可操作
  220. chooseDisabled: false,
  221. isInster: false, // 是否正在添加产品
  222. delLoading: false,
  223. newActive: false, // 选择促销品
  224. detailData: { discountAmount: 0, id: null, salesBillSn: '' }, // 订单基础数据
  225. dataSource: [],
  226. productForm: {
  227. salesBillSn: '',
  228. promotionFlag: 0
  229. },
  230. activeName: '', // 促销活动
  231. nowData: null,
  232. // 加载数据方法 必须为 Promise 对象
  233. loadData: parameter => {
  234. this.disabled = true
  235. this.productForm.salesBillSn = this.$route.params.sn
  236. return salesDetailStockList(Object.assign(parameter, this.productForm, this.queryParam)).then(res => {
  237. let data
  238. if (res.status == 200) {
  239. data = res.data
  240. const no = (data.pageNo - 1) * data.pageSize
  241. for (var i = 0; i < data.list.length; i++) {
  242. data.list[i].no = no + i + 1
  243. data.list[i].qtyBackups = data.list[i].qty
  244. }
  245. this.disabled = false
  246. this.dataSource = data.list
  247. this.$refs.promotable.getData(this.salesBillSn)
  248. }
  249. return data
  250. })
  251. },
  252. openGuideModal: false, // 导入产品引导
  253. queryParam: {
  254. productCode: '',
  255. productName: ''
  256. },
  257. rowSelectionInfo: null
  258. }
  259. },
  260. computed: {
  261. selectTotal () {
  262. return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
  263. },
  264. columns () {
  265. const arr = [
  266. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  267. { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '20%', align: 'center', sorter: true },
  268. { title: '产品名称', dataIndex: 'productEntity.name', scopedSlots: { customRender: 'productName' }, width: '25%', align: 'left' },
  269. // { title: '售价', dataIndex: 'price', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  270. { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: '8%', align: 'center' },
  271. { title: '库存', dataIndex: 'stockQty', scopedSlots: { customRender: 'stockQty' }, width: '8%', align: 'center' },
  272. { title: '单位', dataIndex: 'productEntity.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  273. // { title: '售价小计', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  274. { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
  275. ]
  276. if (this.$hasPermissions('B_isShowPrice')) { // 售价权限
  277. arr.splice(3, 0, { title: '售价', dataIndex: 'price', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
  278. arr.splice(7, 0, { title: '售价小计', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
  279. }
  280. return arr
  281. }
  282. },
  283. methods: {
  284. // 表格选中项
  285. rowSelectionFun (obj) {
  286. this.rowSelectionInfo = obj || null
  287. },
  288. // 批量删除已选产品
  289. handleBatchDel () {
  290. const _this = this
  291. if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && _this.rowSelectionInfo.selectedRowKeys.length < 1)) {
  292. _this.$message.warning('请在选择要删除的产品后再进行批量操作!')
  293. return
  294. }
  295. const obj = []
  296. _this.rowSelectionInfo && _this.rowSelectionInfo.selectedRows.map(item => {
  297. obj.push(item.salesBillDetailSn)
  298. })
  299. this.$confirm({
  300. title: '提示',
  301. content: '已选产品' + obj.length + '项,确认要批量删除吗?',
  302. centered: true,
  303. onOk () {
  304. _this.spinning = true
  305. salesDetailBatchDel({
  306. salesBillSn: _this.salesBillSn,
  307. salesBillDetailSnList: obj
  308. }).then(res => {
  309. if (res.status == 200) {
  310. _this.resetSearchForm(true)
  311. _this.$refs.promotable.resetCurForm()
  312. _this.$message.success(res.message)
  313. }
  314. _this.spinning = false
  315. })
  316. }
  317. })
  318. },
  319. // 已选产品 blur
  320. onCellBlur (val, record) {
  321. const _this = this
  322. // 光标移出,值发生改变再调用编辑接口
  323. if (val && val != record.qtyBackups) {
  324. _this.spinning = true
  325. salesDetailUpdateQty({
  326. salesBillDetailSn: record.salesBillDetailSn,
  327. qty: record.qty,
  328. salesBillSn: _this.salesBillSn
  329. }).then(res => {
  330. _this.resetSearchForm(true)
  331. _this.$refs.promotable.resetCurForm()
  332. if (res.status == 200) {
  333. _this.$message.success(res.message)
  334. }
  335. _this.spinning = false
  336. })
  337. } else {
  338. record.qty = record.qtyBackups
  339. }
  340. },
  341. chooseResetSearchForm () {
  342. this.queryParam.productCode = ''
  343. this.queryParam.productName = ''
  344. this.$refs.table.refresh(true)
  345. },
  346. // 重置
  347. resetSearchForm (flag) {
  348. this.queryParam.productCode = ''
  349. this.queryParam.productName = ''
  350. this.$refs.table.refresh(!!flag)
  351. this.getPromoacActiveList()
  352. this.getOrderDetail(false)
  353. this.$refs.table.clearSelected() // 清空表格选中项
  354. },
  355. // 返回
  356. handleBack () {
  357. this.$router.push({ path: '/salesManagement/salesQuery/list', query: { closeLastOldTab: true } })
  358. },
  359. // 整单删除
  360. delSalerDetailAll () {
  361. const _this = this
  362. this.$confirm({
  363. title: '提示',
  364. content: '确认要整单删除吗?',
  365. centered: true,
  366. closable: true,
  367. onOk () {
  368. _this.delLoading = true
  369. _this.spinning = true
  370. salesDetailDelAll({ salesBillSn: _this.salesBillSn }).then(res => {
  371. if (res.status == 200) {
  372. _this.resetSearchForm()
  373. _this.$refs.promotable.resetCurForm()
  374. _this.$message.success(res.message)
  375. }
  376. _this.delLoading = false
  377. _this.spinning = false
  378. })
  379. }
  380. })
  381. },
  382. // 删除产品
  383. handleDel (row) {
  384. const _this = this
  385. this.$confirm({
  386. title: '提示',
  387. content: '确认要删除吗?',
  388. centered: true,
  389. closable: true,
  390. onOk () {
  391. _this.delLoading = true
  392. _this.spinning = true
  393. salesDetailDel({ salesBillDetailSn: row.salesBillDetailSn, salesBillSn: _this.salesBillSn }).then(res => {
  394. if (res.status == 200) {
  395. _this.resetSearchForm(true)
  396. _this.$refs.promotable.resetCurForm()
  397. _this.$message.success(res.message)
  398. }
  399. _this.delLoading = false
  400. _this.spinning = false
  401. })
  402. }
  403. })
  404. },
  405. // 添加产品
  406. insterProduct (row, promotionFlag) {
  407. console.log(row)
  408. // 防止多次添加产品
  409. if (this.isInster) { return }
  410. const _this = this
  411. _this.saveNewProduct(row, promotionFlag)
  412. },
  413. // 保存添加的产品到销售列表
  414. saveNewProduct (row, promotionFlag) {
  415. this.$message.loading('正在添加产品...', 1)
  416. this.isInster = true
  417. this.spinning = true
  418. salesDetailInsert({
  419. packQty: row.productPackQty,
  420. productSn: row.productSn,
  421. showCost: row.lastStockCost,
  422. price: row.productPrice,
  423. origPrice: row.productPrice,
  424. promotionGiftsAmount: 0,
  425. usePromotionGiftsAmount: 0,
  426. qty: row.salesNums,
  427. salesBillSn: this.detailData.salesBillSn,
  428. salesBillNo: this.detailData.salesBillNo,
  429. purchaseBillSn: this.detailData.purchaseBillSn,
  430. purchaseBillNo: this.detailData.purchaseBillNo,
  431. stockSn: row.stockSn,
  432. promotableFlag: row.isJoinActivityProduct || 0, // 可促销标记 有活动的传1,没活动的传0
  433. promotionFlag: promotionFlag // 促销标记 正品传0,促销品传1
  434. }).then(res => {
  435. if (res.status == 200) {
  436. this.resetSearchForm()
  437. this.$message.success('产品添加成功', 2.5)
  438. this.spinning = false
  439. } else {
  440. this.spinning = false
  441. }
  442. this.isInster = false
  443. })
  444. },
  445. // 销售单详情
  446. getOrderDetail (flag) {
  447. salesDetailBySn({ salesBillSn: this.$route.params.sn }).then(res => {
  448. if (res.status == 200) {
  449. this.detailData = res.data
  450. if (flag) {
  451. this.$refs.partQuery.pageInit(this.detailData && this.detailData.buyerSn || '')
  452. }
  453. }
  454. })
  455. },
  456. // 提交销售单
  457. handleSubmit () {
  458. this.spinning = true
  459. salesWriteSubmit({ salesBillSn: this.salesBillSn }).then(res => {
  460. if (res.status == 200) {
  461. this.handleBack()
  462. this.$message.success(res.message)
  463. this.spinning = false
  464. } else {
  465. this.spinning = false
  466. }
  467. })
  468. },
  469. // 获取促销活动
  470. getPromoacActiveList () {
  471. const _this = this
  472. getPromoacActiveList({ salesBillSn: this.salesBillSn }).then(res => {
  473. if (res.status == 200) {
  474. _this.activeName = ''
  475. res.data.map(item => {
  476. _this.activeName += item.name + '、'
  477. })
  478. _this.activeName = _this.activeName.slice(0, _this.activeName.length - 1)
  479. }
  480. })
  481. },
  482. // 选择促销品
  483. handleSelCx (row) {
  484. // this.nowData = row
  485. this.newActive = true
  486. this.$refs.activeProduct.getData(row, this.detailData && this.detailData.buyerSn || '')
  487. },
  488. // 批量添加促销品
  489. addNewActive (list) {
  490. const temp = []
  491. list.map(item => {
  492. temp.push(Object.assign(item, {
  493. salesBillSn: this.detailData.salesBillSn,
  494. salesBillNo: this.detailData.salesBillNo,
  495. purchaseBillSn: this.detailData.purchaseBillSn,
  496. purchaseBillNo: this.detailData.purchaseBillNo
  497. }))
  498. })
  499. this.isInster == true
  500. this.spinning = true
  501. addPromoGoods(temp).then(res => {
  502. if (res.status == 200) {
  503. this.$refs.promotable.getData(this.salesBillSn)
  504. this.getOrderDetail(false)
  505. this.newActive = false
  506. this.isInster == false
  507. this.spinning = false
  508. } else {
  509. this.spinning = false
  510. }
  511. })
  512. },
  513. closeActive () {
  514. this.nowData = null
  515. this.newActive = false
  516. },
  517. closeGuideModel () {
  518. this.openGuideModal = false
  519. },
  520. // 导入产品
  521. hanldeOk (obj) {
  522. salesBatchInsert(obj).then(res => {
  523. if (res.status == 200) {
  524. this.$refs.table.refresh(true)
  525. this.getOrderDetail(false)
  526. }
  527. })
  528. },
  529. pageInit () {
  530. this.getOrderDetail(true)
  531. this.$refs.table.refresh(true)
  532. this.salesBillSn = this.$route.params.sn
  533. // 获取促销活动
  534. this.getPromoacActiveList()
  535. }
  536. },
  537. mounted () {
  538. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  539. this.pageInit()
  540. }
  541. },
  542. activated () {
  543. // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
  544. if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
  545. this.pageInit()
  546. }
  547. },
  548. beforeRouteEnter (to, from, next) {
  549. next(vm => {})
  550. }
  551. }
  552. </script>
  553. <style lang="less">
  554. .salesEdit-wrap{
  555. position: relative;
  556. height: 100%;
  557. padding-bottom: 51px;
  558. box-sizing: border-box;
  559. >.ant-spin-nested-loading{
  560. overflow-y: scroll;
  561. height: 100%;
  562. }
  563. .salesEdit-cont{
  564. margin-top: 10px;
  565. }
  566. .p-title{
  567. font-weight: bold;
  568. font-size: 16px;
  569. }
  570. .p-notes{
  571. font-size: 14px;
  572. span{
  573. color: #FF9900;
  574. }
  575. }
  576. .redStyle{
  577. font-weight: bold;
  578. color: red;
  579. }
  580. .ellipsisCon{
  581. display: flex;
  582. justify-content: space-between;
  583. align-items: center;
  584. .ellipsisText{
  585. width: 100%;
  586. overflow: hidden;
  587. text-overflow: ellipsis;
  588. display: box;
  589. display: -webkit-box;
  590. -webkit-line-clamp: 1;
  591. -webkit-box-orient: vertical;
  592. }
  593. }
  594. .total-bar{
  595. display: flex;
  596. align-items: center;
  597. justify-content: space-between;
  598. > div{
  599. &:last-child{
  600. display: flex;
  601. align-items: center;
  602. justify-content: space-between;
  603. > div{
  604. padding: 0 10px;
  605. }
  606. }
  607. }
  608. }
  609. .redBg-row{
  610. background-color: #f5cdc8;
  611. }
  612. }
  613. </style>