refundExamine.vue 22.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
<!-- 退款审核 - 列表 -->
<template>
  <div>
    <!-- class="order-detail" -->
    <d2-container>
      <!-- <div class="offline-account"> -->
      <div class="header"
           slot="header"
           style="padding: 10px 20px;">
        <d2-search ref="showSearch"
                   class="show-search"
                   :search-form="searchForm"
                   :label-width="labelWidth"
                   :form-data="showFormData" />
        <div class="up-btns">
          <el-button @click="handleSearch"
                     size="small"
                     type="primary">
            查询
          </el-button>
          <el-button size="small"
                     @click="handleReset">
            重置
          </el-button>
        </div>
      </div>
      <!-- </d2-container>
          <d2-container> -->
      <div class="d2-container-content">
        <d2-table-header>
          <auth-button category="Button" />
        </d2-table-header>
        <d2-table ref="recordTable"
                  :get-list-api="getListApi"
                  :search-form="searchFormSearch"
                  :table-params="tableParams"
                  :before-search-fn="beforeSearchFn">
          <div slot="auth-button"
               slot-scope="scope">
            <!-- 查看 -->
            <span style="margin-right: 10px;">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040804']" />
            </span>
            <!-- 补充 -->
            <span style="margin-right: 10px;" v-if="scope.scope.status == 8 && !scope.scope.oaApproveStatus && scope.scope.refundPayType != 2">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040810']" />
            </span>
            <!-- 审核 -->
            <span style="margin-right: 10px;"
                  v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2) && scope.scope.approveType == 1 && scope.scope.refundPayType != 2">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040805']" />
            </span>
            <!-- 结算 -->
            <span style="margin-right: 10px;"
                  v-if="scope.scope.status == 3 && scope.scope.approveType == 1 && scope.scope.refundPayType != 2">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040806']" />
            </span>
            <!-- 驳回 -->
            <span style="margin-right: 10px;"
                  v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3) && scope.scope.approveType == 1 && scope.scope.refundPayType != 2">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040807']" />
            </span>
            <!-- 下载 -->
            <span style="margin-right: 10px;"
                  v-if="scope.scope.approveType == 1 && ![7, 8].includes(scope.scope.status) && scope.scope.refundPayType != 2">
              <auth-button :data="scope.scope"
                           :show-btn-ids="['9040808']" />
              <span v-if="scope.scope.downCount != 0"
                    style="color: #2A58AD;">({{ scope.scope.downCount }})</span>
            </span>
          </div>
        </d2-table>
      </div>
    </d2-container>
    <!-- 批量审核 -->
    <examine-dialog :examine-visible="examineVisible"
                    :info-list="infos"
                    :examine-type="examineType"
                    v-if="examineVisible"
                    @dialogClose="examineDialogClose" />
    <!-- 驳回 -->
    <reject-dialog :reject-visible="rejectVisible"
                   :info-list="infos"
                   :reject-type="rejectType"
                   v-if="rejectVisible"
                   @dialogClose="rejectDialogClose" />
    <!-- 详细信息 -->
    <detail-dialog :visible.sync="detailVisible"
                   v-if="detailVisible"
                   :params-obj="recordInfo" />
    <!-- 财务结算 -->
    <settlement-dialog :settlement-visible="settlementVisible"
                       v-if="settlementVisible"
                       :params-obj="recordInfo"
                       @dialogClose="settlementDialogClose" />

    <!-- 补充 - 退款 -->
    <new-sign-refund-dialog :sign-refund-visible="signRefundVisible"
        title="运营补充"
        :detail="refundDetail"
        :order-type="1"
        :scene="refundScene"
        v-if="signRefundVisible"
        @dialogClose="refundDialogClose" />
  </div>
</template>

<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { refundExamine_status, refundExamine_approveTypeOpt, oaApproveStatusOpt, refundOrderSourceOpt, refundPayTypeOpt } from '@/common/constants.js'
import examineDialog from './components/examineDialog'
import rejectDialog from './components/rejectDialog'
import detailDialog from './components/detailDialog'
import settlementDialog from './components/settlementDialog'
import newSignRefundDialog from "./components/newSignRefundDialog"
import { getPlatformMerchant, refundApplyRecordPage, downloadPdf, getOrderDefaultInfo } from '@api/refundExamine'
export default {
  name: 'RefundExamine',
  components: {
    examineDialog,
    rejectDialog,
    detailDialog,
    settlementDialog,
    newSignRefundDialog
  },
  data() {
    return {
      userInfo: this.$store.state.d2admin.user.info,
      labelWidth: '110px',
      searchForm: {
        matchApplyCode: '',
        oaSpNo: '',
        title: '',
        platformMerchantId: '',
        status: '',
        matchBizOrderCode: '',
        payee: '',
        applyTime: '',
        approveType: '',
        oaApproveStatus: '',
        refundOrderSource: '',
        refundPayType: ''
      },
      searchFormSearch: {},
      showFormData: [{
        label: '嘀加审批编号',
        name: 'matchApplyCode',
        type: 'input',
        inputType: 'number',
        maxlength: '12',
        isClear: true
      }, {
        label: '企微审批编号',
        name: 'oaSpNo',
        type: 'input',
        inputType: 'number',
        maxlength: '12',
        isClear: true
      }, {
        label: '标题',
        name: 'title',
        type: 'input',
        maxlength: '50',
        isClear: true
      }, {
        label: '支付主体',
        name: 'platformMerchantId',
        type: 'select',
        isClear: true,
        optionList: [],
        optionId: 'merchantId',
        optionLabel: 'merchantShowName',
        optionsName: 'platformMerchantIdList'
      }, {
        label: '嘀加审批状态',
        name: 'status',
        type: 'select',
        optionList: [],
        optionId: 'confId',
        optionLabel: 'confValue',
        optionsName: 'statusList'
      }, {
        label: '业务单号',
        name: 'matchBizOrderCode',
        type: 'input',
        maxlength: '50',
        isClear: true
      }, {
        label: '服务对接',
        name: 'yqMerchantName',
        type: 'input',
        maxlength: '20',
        isClear: true
      }, {
        label: '流量方',
        name: 'shopMerchantName',
        type: 'input',
        maxlength: '20',
        isClear: true
      }, {
        label: '收款人',
        name: 'payee',
        type: 'input',
        maxlength: '20',
        isClear: true
      }, {
        label: '申请时间',
        name: "applyTime",
        type: "datePicker",
        isClear: true,
        pickerOptions: "rangePickerOptions"
      }, {
        label: '企微审批状态',
        name: 'oaApproveStatus',
        type: 'select',
        optionList: [],
        optionId: 'confId',
        optionLabel: 'confValue',
        optionsName: 'oaApproveStatusOpt'
      }, {
        label: '审批类型',
        name: 'approveType',
        type: 'select',
        optionList: [],
        optionId: 'confId',
        optionLabel: 'confValue',
        optionsName: 'approveTypeOpt'
      }, {
        label: '退款单来源',
        name: 'refundOrderSource',
        type: 'select',
        optionList: [],
        optionId: 'confId',
        optionLabel: 'confValue',
        optionsName: 'refundOrderSourceOpt'
      }, {
        label: '退款类型',
        name: 'refundPayType',
        type: 'select',
        optionList: [],
        optionId: 'confId',
        optionLabel: 'confValue',
        optionsName: 'refundPayTypeOpt'
      }],
      getListApi: refundApplyRecordPage,
      tableParams: {
        btnId: new Date().getTime() + parseInt(Math.random() * 1000),
        listName: 'list',
        mutiSelectUniqueKey: 'id',
        mutiSelectName: 'refundList',
        tableOption: { width: '200px' },
        tableColumns: [{
          label: '嘀加审批单号',
          prop: 'applyCode',
          width: '150px'
        }, {
          label: '企微审批单号',
          prop: 'oaSpNo',
          width: '150px'
        }, {
          label: '退款单来源',
          prop: 'refundOrderSource',
          width: '100px',
          formatter: (cellValue) => {
            return this.baseData.refundOrderSourceOpt.find(item => item.confId === cellValue.refundOrderSource)?.confValue
          }
        }, {
          label: '标题',
          prop: 'title',
          width: '200px'
        }, {
          label: '支付主体',
          prop: 'platformMerchantShowName',
          width: '200px'
        }, {
          label: '本次付款金额',
          prop: 'payAmount',
          width: '120px',
          formatter: (cellValue) => {
            return cellValue.payAmount ? cellValue.payAmount.toFixed(2) : '--'
          }
        }, {
          label: '收款人',
          prop: 'payee'
        }, {
          label: '开户行',
          prop: 'openAccBankName',
          width: '160px'
        }, {
          label: '银行账号',
          prop: 'bankAccountNo',
          width: '160px',
          formatter: (cellValue) => {
            return cellValue.bankAccountNo ? cellValue.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") : '--'
          }
        }, {
          label: '关联业务单号',
          prop: 'bizOrderCode',
          width: '160px',
          html: true,
          formatter: (cellValue) => {
            if (cellValue.refundApplyOrderRefList) {
              return cellValue.refundApplyOrderRefList.reduce(
                (codeString, item) => {
                  codeString =
                    codeString +
                    `<p>${item.bizOrderCode}</p>`
                  return codeString
                },
                ""
              )
            } else {
              return ""
            }
          }
        }, {
          label: '所属服务对接',
          prop: 'yqMerchantName',
          width: '200px'
        }, {
          label: '所属流量方',
          prop: 'shopMerchantName',
          width: '200px'
        }, {
          label: '申请人',
          prop: 'createdBy'
        }, {
          label: '申请时间',
          prop: 'createdDate',
          width: '150px',
          formatter: (cellValue) => {
            return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
          }
        }, {
          label: '嘀加审批状态',
          prop: 'status',
          width: '120px',
          formatter: (cellValue) => {
            return this.baseData.statusList.find(item => item.confId === cellValue.status)?.confValue
          },
          className: (cellValue) => {
            return {
              0: 'blueSpot',
              1: 'blueSpot',
              2: 'blueSpot',
              3: 'blueSpot',
              4: 'greenSpot',
              5: 'redSpot',
              6: 'blueSpot',
              7: 'blueSpot',
              8: 'blueSpot',
            }[cellValue.status]
          }
        }, {
          label: '企微审批状态',
          prop: 'oaApproveStatus',
          width: '110px',
          formatter: (cellValue) => {
            return this.baseData.oaApproveStatusOpt.find(item => item.confId === cellValue.oaApproveStatus)?.confValue
          },
          className: (cellValue) => {
            return {
              1: 'yellowSpot',
              2: 'greenSpot',
              3: 'redSpot',
              4: 'ashSpot'
            }[cellValue.oaApproveStatus]
          }
        }, {
          label: '审批类型',
          prop: 'approveType',
          width: '100px',
          formatter: (cellValue) => {
            return this.baseData.approveTypeOpt.find(item => item.confId === cellValue.approveType)?.confValue
          }
        }, {
          label: '退款类型',
          prop: 'refundPayType',
          width: '100px',
          formatter: (cellValue) => {
            return this.baseData.refundPayTypeOpt.find(item => item.confId === cellValue.refundPayType)?.confValue
          }
        }
        ]
      },
      baseData: {
        statusList: deepClone(refundExamine_status),
        approveTypeOpt: deepClone(refundExamine_approveTypeOpt),
        oaApproveStatusOpt: deepClone(oaApproveStatusOpt),
        platformMerchantIdList: [],
        refundOrderSourceOpt: deepClone(refundOrderSourceOpt),
        refundPayTypeOpt: deepClone(refundPayTypeOpt)
      },

      infos: [],
      examineVisible: false,
      examineType: '',
      rejectVisible: false,
      rejectType: '',
      detailVisible: false,
      recordInfo: {},
      settlementVisible: false,
      signRefundVisible: false,
      refundScene: '',
      refundDetail: {}
    }
  },
  computed: {
    ...mapState({
      dowloadList: (state) => state.d2admin.user.dowloadList
    })
  },
  mounted() {
    this.getPlatformMerchant()
    this.getBaseData()
  },

  methods: {
    ...mapActions({
      get: 'd2admin/base/get',
      close: 'd2admin/page/close'
    }),
    ...mapActions('d2admin/user', ['actionSetDownloadList']),

    async getBaseData() {
      this.getOptionsList()
    },

    beforeSearchFn() {
      return new Promise(resolve => {
        this.searchFormSearch = this.getParams()
        resolve()
      })
    },

    getParams() {
      var params = deepClone(this.searchForm)
      if (this.searchForm.applyTime?.length) {
        params.startCreatedDate =
          new Date(this.searchForm.applyTime[0])
            .toLocaleDateString()
            .replace(/\//g, "-") + " 00:00:00"
        params.endCreatedDate =
          new Date(this.searchForm.applyTime[1])
            .toLocaleDateString()
            .replace(/\//g, "-") + " 23:59:59"
      }
      delete params.applyTime
      return params
    },

    getOptionsList() {
      this.showFormData.forEach((item, index) => {
        if (item.type === 'select') {
          console.log('this.baseData[item.optionsName]', item.optionsName)
          if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
            const temp = {}
            temp[this.showFormData[index].optionId] = ''
            temp[this.showFormData[index].optionLabel] = '全部'
            this.baseData[item.optionsName].unshift(temp)
          }
          this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
        }
      })
    },

    getPlatformMerchant() {
      this.baseData.platformMerchantIdList = []
      var params = {}
      getPlatformMerchant(params).then(res => {
        this.baseData.platformMerchantIdList = res
        this.getOptionsList()
      })
    },

    handleSearch() {
      this.$refs.recordTable.refreshTable(false, true)
    },
    handleReset() {
      this.searchForm = {
        matchApplyCode: '',
        oaSpNo: '',
        title: '',
        platformMerchantId: '',
        status: '',
        matchBizOrderCode: '',
        approveType: '',
        oaApproveStatus: '',
        refundOrderSource: '',
        refundPayType: ''
      }
      this.$refs.recordTable.refreshTable(false, true)
    },

    // 批量运营审核
    batchOperatorAudit() {
      var selectedData = []
      console.log(this.$refs.recordTable.mutiSelectArr.refundList)
      if (this.$refs.recordTable.mutiSelectArr.refundList) {
        selectedData = this.$refs.recordTable.mutiSelectArr.refundList
      }
      this.handleBatchExamine_commit(selectedData, "运营审核")
    },

    // 批量商务审核
    batchBusinessExamine() {
      var selectedData = []
      console.log(this.$refs.recordTable.mutiSelectArr.refundList)
      if (this.$refs.recordTable.mutiSelectArr.refundList) {
        selectedData = this.$refs.recordTable.mutiSelectArr.refundList
      }
      this.handleBatchExamine_commit(selectedData, "商务审核")
    },
    // 批量财务复核
    batchFinanceExamine() {
      var selectedData = []
      console.log(this.$refs.recordTable.mutiSelectArr.refundList)
      if (this.$refs.recordTable.mutiSelectArr.refundList) {
        selectedData = this.$refs.recordTable.mutiSelectArr.refundList
      }
      this.handleBatchExamine_commit(selectedData, "财务复核")
    },
    handleBatchExamine_commit(selectedData, examineType) {
      this.infos = []
      if (!selectedData?.length) {
        this.$message({
          message: "请选择需要审核的记录;本次操作无效",
          type: "warning",
          showClose: true
        })
        return false
      }
      let _flag = true

      if (examineType == '运营审核') {
        selectedData.forEach(item => {
          if (item.status != 0) { // 非“运营审核”状态不允许批量运营审核
            _flag = false
          }
        })
        if (!_flag) {
          this.$message({
            message: "请选择待运营审核的退款记录;本次操作无效",
            type: "warning",
            showClose: true
          })
          return
        }
      } else if (examineType == '商务审核') {
        selectedData.forEach(item => {
          if (item.status != 1) { // 非“商务审核”状态不允许批量商务审核
            _flag = false
          }
        })
        if (!_flag) {
          this.$message({
            message: "请选择待商务审核的退款记录;本次操作无效",
            type: "warning",
            showClose: true
          })
          return
        }
      } else if (examineType == '财务复核') {
        selectedData.forEach(item => {
          if (item.status != 2) { // 非“财务复核”状态不允许批量财务复核
            _flag = false
          }
        })
        if (!_flag) {
          this.$message({
            message: "请选择待财务复核的退款记录;本次操作无效",
            type: "warning",
            showClose: true
          })
          return
        }
      }
      this.examineType = examineType
      this.infos = deepClone(selectedData)
      this.examineVisible = !this.examineVisible
    },

    // 审核
    handleExamine(row) {
      console.log(row)
      const selectedData = []
      selectedData.push(row)
      const obj = {
        0: '运营审核',
        1: '商务审核',
        2: '财务复核'
      }
      this.handleBatchExamine_commit(selectedData, obj[row.status])
    },

    // 关闭审核弹窗
    examineDialogClose(obj) {
      this[obj.attrName] = !this[obj.attrName]
      if (obj.flag) {
        this.$refs.recordTable.refreshTable()
      }
    },

    // 驳回
    handleReject(row) {
      console.log(row)
      this.infos = []
      const obj = {
        0: '运营驳回',
        1: '商务驳回',
        2: '财务驳回',
        3: '财务驳回'
      }
      this.rejectType = obj[row.status]
      console.log('rejectType', this.rejectType)
      this.infos.push(row)
      this.rejectVisible = !this.rejectVisible
    },

    // 关闭驳回弹窗
    rejectDialogClose(obj) {
      this[obj.attrName] = !this[obj.attrName]
      if (obj.flag) {
        this.$refs.recordTable.refreshTable()
      }
    },

    // 查看详情
    handleDetail(row) {
      this.recordInfo = row
      this.detailVisible = !this.detailVisible
    },

    // 补充
    handleSupple(row) {
      if(!row.refundApplyOrderRefList) {
        this.$message.error('没有子订单信息')
        return true
      }
      var params = {
        orderCode: row.refundApplyOrderRefList[0].bizOrderCode,
        applyCode: row.applyCode
      }
      getOrderDefaultInfo(params).then((res) => {
        console.log(res, '000')
        this.refundDetail = deepClone(res)
        let info = res.refundApplyRecordInfo
        let total = 0
        info.refundApplyDetailList.forEach((item) => {
          total += item.finalPrice
        })
        this.refundScene = row.refundApplyOrderRefList[0].sceneType + ''
        this.refundDetail.totalPrice = info.refundableTotalPrice
        this.refundDetail.applyCode = row.applyCode
        this.refundDetail.total = total
        this.refundDetail.id = info.id
        this.refundDetail.refundSubOrderCode = info.refundSubOrderCode
        this.refundDetail.refundApplyDetailList = deepClone(info.refundApplyDetailList)
        this.refundDetail.isAll = res?.refundApplyRecordInfo.refundType == 1
        this.refundDetail.isOneSubFirst = false
        this.refundDetail.orderCode = row.refundApplyOrderRefList[0].bizOrderCode
        console.log(this.refundDetail, this.refundScene, 'refundDetail---')
        this.refund()
      })
    },
    refund() {
      this.signRefundVisible = !this.signRefundVisible
    },

    refundDialogClose(flag) {
      this.signRefundVisible = !this.signRefundVisible
      if (flag) {
        this.$refs.recordTable.refreshTable()
      }
    },
    // 财务结算
    handleSettlement(row) {
      this.recordInfo = row
      this.settlementVisible = !this.settlementVisible
    },

    // 关闭财务结算弹窗
    settlementDialogClose(obj) {
      this[obj.attrName] = !this[obj.attrName]
      if (obj.flag) {
        this.$refs.recordTable.refreshTable()
      }
    },

    // 下载PDF
    handleDownload(row) {
      downloadPdf({ id: row.id }).then(res => {
        console.log(res)
        res && window.open(res)
      })
    },

    handleExport() {
      var params = this.searchFormSearch
      // 去除为null的值
      for (const key in params) {
        if (params[key] === null || params[key] === '' || params[key].length == 0) {
          delete params[key]
        }
      }
      params.method = 'dj.api.smartcarlife.refundApplyRecord.export.async'
      const list = [
        ...this.dowloadList,
        {
          name: '退款审核',
          exportParam: JSON.stringify(params),
          status: 'waiting',
          timeid: new Date().getTime()
        }
      ]
      this.actionSetDownloadList({ list, type: 'dowloadList' })
    }

  }
}

</script>
<style scoped>
.count-txt {
  font-weight: 700;
  color: #2a58ad;
  margin: 0 2px;
}

.leftSpan {
  display: inline-block;
  box-sizing: border-box;
  margin-right: 10px;
}
</style>