confirm-detail.vue 22.3 KB
Newer Older
1 2
<template>
  <h-view id="addCar">
3 4 5 6 7
    <transition name="trans">
      <div v-show="downNum" class="modal-show">
        <div class="down">
          <div class="top">
            录入产品信息
linxin's avatar
linxin committed
8 9
            <!-- <img src="@/assets/intoApproval/close.png"  > -->
            <span @click="downNum=false">x</span>
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
          </div>
          <div class="down-content">
            <span>请上传照片</span>
            <div class="photo">
              <!-- <img src=""> -->
            </div>
            <list-item :item-height="44">
              <item>
                <div slot="name">车架号</div>
                <input
                  slot="content"
                  v-model="rentInfo.frame_number"
                  readonly
                  placeholder="自动识别车架号"
                >
              </item>
              <item>
                <div slot="name">发动机号</div>
                <input slot="content" v-model="rentInfo.engine" readonly placeholder="自动识别发动机号" >
              </item>
linxin's avatar
linxin committed
30 31
              <item>
                <div slot="name">车辆型号 </div>
linxin's avatar
linxin committed
32
                <input slot="content" v-model="rentInfo.vehicle_model" readonly placeholder="自动识别车辆型号" >
linxin's avatar
linxin committed
33 34 35
              </item>
              <item>
                <div slot="name">合格证编号 </div>
linxin's avatar
linxin committed
36
                <input slot="content" v-model="rentInfo.certificate_number" readonly placeholder="自动识别合格证编号" >
linxin's avatar
linxin committed
37
              </item>
linxin's avatar
linxin committed
38 39 40 41
              <item>
                <div slot="name">发车日期</div>
                <input
                  slot="content"
42
                  v-model="rentInfo.departure_date"
linxin's avatar
linxin committed
43
                  readonly
linxin's avatar
linxin committed
44 45 46 47 48 49 50 51 52 53
                  placeholder="暂无数据"
                >
              </item>
              <item>
                <div slot="name">开票日期</div>
                <input
                  slot="content"
                  v-model="rentInfo.invoice_date"
                  readonly
                  placeholder="暂无数据"
linxin's avatar
linxin committed
54 55
                >
              </item>
56
            </list-item>
57
          </div>
58
        </div>
59
      </div>
60
    </transition>
61 62 63
    <h-header :proportion="[5,1,1]" class="bar-custom">
      <div slot="left" class="h-header-btn">
        <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
64
        <span>合同明细</span>
65 66
      </div>
    </h-header>
linxin's avatar
linxin committed
67
    <Tab :title="text" @getTabNum="getTabNum" />
68
    <h-content>
linxin's avatar
linxin committed
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
      <div v-show="tabNum===0">
        <div class="userInfo">承租人信息</div>
        <list-item :item-height="44">
          <item>
            <div slot="name">合同号</div>
            <input slot="content" v-model="info.project_number" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">经销商</div>
            <input slot="content" v-model="info.bp_agent_name" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">承租人</div>
            <input slot="content" v-model="info.bp_name" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">产品名称</div>
            <input slot="content" v-model="info.division_n" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">设备识别号</div>
            <input slot="content" v-model="info.product_code" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">合同金额</div>
            <input slot="content" v-model="info.total_price" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">商务政策</div>
            <input slot="content" v-model="info.product_plan_id_n" readonly placeholder="暂无数据" >
          </item>
          <item>
            <div slot="name">租赁物数量</div>
            <input slot="content" v-model="info.product_num" readonly placeholder="请输入租赁物数量" >
          </item>
        </list-item>
        <div class="userInfo">设备清单</div>
        <div
          v-for="(item,index) in equip"
          :key="index"
          class="equipment"
          @click="downNum=true;getRent(item.contract_id)"
        >
          <div class="left">
            <span>
              <img src="@/assets/contractStart/list.png" >
            </span>
          </div>
          <div class="center">
            <span>租赁物信息</span>
            <span :class="['status',item.lease_status === 'Y'?'unMantain':'mantain']">{{ item.lease_status === 'Y'?'已维护':'待维护' }}</span>
            <p>
              设备识别号
              <span>{{ item.product_code }}-{{ index+1|lengthCheck }}</span>
            </p>
          </div>
          <div class="right">
            <img src="@/assets/contractStart/into.png" >
          </div>
128 129
        </div>
      </div>
linxin's avatar
linxin committed
130
      <div v-show="tabNum===1">
131
        <list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">
李晓兵's avatar
李晓兵 committed
132
          <item :proportion="[7,1]">
133 134 135 136 137 138 139 140
            <div slot="name" class="aguremrnt-list">
              <img src="@/assets/constractSigning/npack.png" alt class="pics" >
              <p class="second first">承租人确认意见</p>
            </div>
            <div slot="content" class="in-detail" @click="goContractContent('承租人确认意见')">
              <img src="@/assets/constractSigning/detail.png" alt >
            </div>
          </item>
李晓兵's avatar
李晓兵 committed
141
          <item :proportion="[7,1]">
142 143 144 145 146 147 148 149 150
            <div slot="name" class="aguremrnt-list">
              <img src="@/assets/constractSigning/pack.png" alt class="pics" >
              <p class="second">融资租赁合同</p>
              <img :src="leasePic" alt class="read" >
            </div>
            <div slot="content" class="in-detail" @click="goContractContent('融资租赁合同')">
              <img src="@/assets/constractSigning/detail.png" alt >
            </div>
          </item>
李晓兵's avatar
李晓兵 committed
151
          <item :proportion="[7,1]">
152 153 154 155 156 157 158 159 160 161
            <div slot="name" class="aguremrnt-list">
              <img src="@/assets/constractSigning/pack.png" alt class="pics" >
              <p class="second">租赁物所有权转移及接收确认书</p>
              <img :src="agentPic" alt class="read" >
            </div>
            <div slot="content" class="in-detail" @click="goContractContent('租赁物所有权转移及接收确认书')">
              <img src="@/assets/constractSigning/detail.png" alt >
            </div>
          </item>
        </list-item>
linxin's avatar
linxin committed
162
      </div>
163
    </h-content>
linxin's avatar
linxin committed
164
    <bottom-tab v-if="!flag">
linxin's avatar
linxin committed
165 166 167
      <tab-button class="before" @click.native="takePhonto">
        <img src="@/assets/constractSigning/certification.png" >认证
      </tab-button>
168
      <tab-button class="approve" @click.native="isConfirm">确定</tab-button>
169 170 171 172
    </bottom-tab>
  </h-view>
</template>
<script>
linxin's avatar
linxin committed
173
import Tab from '@/pages/carConfirm/tab'
174
export default {
linxin's avatar
linxin committed
175 176 177
  components: {
    Tab,
  },
linxin's avatar
linxin committed
178 179 180 181 182 183 184 185 186
  filters: {
    lengthCheck: function (value) {
      if ((value.toString()).length === 1) {
        return `0${value}`
      } else {
        return value
      }
    },
  },
187 188 189 190
  data () {
    return {
      num: null,
      downNum: false,
191
      show: false,
linxin's avatar
linxin committed
192
      flag: false, // 判断是否为已确认
193 194 195 196
      leasePic: '', // 租赁合同图片
      agentPic: '', // 经销商担保协议图片
      bankPic: '', // 农行代扣授权书图片
      legalPic: '', // 法人授权书图片
linxin's avatar
linxin committed
197
      confirm_id: '',
198 199
      readed: require('@/assets/constractSigning/read.png'), // 已读
      unRead: require('@/assets/constractSigning/unread.png'), // 未读
linxin's avatar
linxin committed
200 201 202 203 204
      tabNum: 0,
      text: {
        first: '合同详情',
        second: '合同文本',
      },
linxin's avatar
linxin committed
205
      info: {
linxin's avatar
linxin committed
206 207 208 209 210 211 212 213 214
        product_plan_id: '',
        product_num: '',
        first_pay: '',
        division_n: '',
        gps_fee: '',
        bp_name: '',
        project_number: '',
        bp_agent_name: ' ',
        product_plan_id_n: '',
linxin's avatar
linxin committed
215
        product_code: '',
linxin's avatar
linxin committed
216
      },
linxin's avatar
linxin committed
217
      rentInfo: {
218 219 220 221
        frame_number: '',
        engine: '',
        manufacturer: '',
        license_plate_number: '',
222 223 224
        vehicle_model: '',
        certificate_number: '',
        departure_date: '',
linxin's avatar
linxin committed
225
        invoice_date: '',
linxin's avatar
linxin committed
226
      },
227
      products: [],
228 229 230 231 232 233 234
      equip: [
        {
          product_id: '3',
          product_code: 'GTC389',
          contract_id: '231',
        },
      ],
235 236 237 238
    }
  },
  computed: {
  },
linxin's avatar
linxin committed
239 240
  beforeRouteEnter (to, from, next) {
    next(vm => {
241 242 243 244
      if (from.name === 'ConfirmList') {
        vm.getDetail()
        vm.getEquipment()
      }
linxin's avatar
linxin committed
245
      vm.confirm_id = vm.$route.params.confirm_id
246 247
      vm.agentPic = vm.unRead
      vm.leasePic = vm.unRead
linxin's avatar
linxin committed
248 249 250 251 252
      if (vm.$route.params.confirm_status === 'SUBMIT') {
        vm.flag = false
      } else if (vm.$route.params.confirm_status === 'APPROVED') {
        vm.flag = true
      }
linxin's avatar
linxin committed
253 254
    })
  },
255
  methods: {
李晓兵's avatar
李晓兵 committed
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
    // 签约校验
    async signCheck () {
      let vm = this
      let url = process.env.basePath + 'sign_check'
      let param = {
        confirm_id: vm.confirm_id,
        data_class: 'LEASE_ITEM',
      }
      vm.hlsPopup.showLoading('请稍后!')
      let res = vm.hlsHttp.post(url, param)
      vm.hlsPopup.hideLoading()
      if (res.result === 'S') {
        return true
      } else {
        // vm.hlsPopup.showLongCenter(res.message)
      }
    },
linxin's avatar
linxin committed
273 274 275 276 277
    getTabNum (i) {
      this.tabNum = i
    },
    takePhonto () {
      let vm = this
李晓兵's avatar
李晓兵 committed
278
      hlsPopup.showConfirm({
linxin's avatar
linxin committed
279
        title: '提示',
李晓兵's avatar
李晓兵 committed
280 281 282 283 284 285 286
        content: '请自拍一张',
        onConfirm: function (index) {
          if (index === 1) {
            vm.takePhontoOpenCamera()
          } else {

          }
linxin's avatar
linxin committed
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
        },
      })
    },
    // 打开相机自拍
    takePhontoOpenCamera () {
      let vm = this
      vm.faceListUpload = []
      let obj = {
        'pkvalue': vm.$route.params.check_id,
        'source_type': 'PRJ_CDD_ITEM_CHECK',
        'picture': '',
        'filePath': '',
        'attachment_id': '',
        'user_id': 1,
        'fileName': 'face',
      }
      let cameraoptions = {
        quality: 100,
        cameraDirection: 1,
      }
      let success = function (imgdata) {
        obj.filePath = imgdata
        // obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
        vm.confirmContractSign(imgdata)
        vm.faceListUpload.push(obj)
      }
      let error = function () {
        hlsPopup.showLongCenter('请拍照')
      }
      hlsUtil.openCamera(cameraoptions, success, error)
    },
    // 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
    async confirmContractSign (faceImg) {
      let idCardImgUrl = await this.idCardImgUrlGet()
      if (idCardImgUrl) {
        this.faceIdentify(faceImg, idCardImgUrl)
      }
    },
    // 获取身份证照片
    async idCardImgUrlGet () {
      let vm = this
      let url = $config.basePath + 'prj_id_card_query'
      let param = {
        confirm_id: vm.confirm_id,
      }
      hlsPopup.showLoading('请稍候')
      let res = await vm.$post(url, param)
      hlsPopup.hideLoading()
      if (res.result === 'S' && res.info) {
        let cardUrl = process.env.filePath + 'attachment_id=' + res.info.attachment_id + '&access_token=' + window.localStorage.access_token
        return cardUrl
      } else if (res.result === 'S' && !res.info) {
        hlsPopup.showLongCenter('未找到身份证照片')
        return null
      } else {
        hlsPopup.showLongCenter(res.message)
        return null
      }
    },
    // 人脸比对
    faceIdentify (faceImg, idCardImgUrl) {
      let vm = this
      let obj = {
        'fileUrl': faceImg,
        'idCardImgUrl': idCardImgUrl,
      }
      hlsPopup.showLoading('正在比对')
      let url = process.env.ocrPath + '/baidu/ocr/face'
      hlsUtil.baiduOcrFace(obj, url, function (res) {
        hlsPopup.hideLoading()
        if (res.success) {
          vm.save_picture(vm.faceListUpload)
          let identifyScore = res.result.result.score.toFixed(0)
          hlsPopup.showPopup({
            title: '提示',
            content: `识别分数为${identifyScore},请进行活体检测`,
            onConfirm: () => {
              // 进入活体检测页面
              vm.goBodyCheck(vm.confirm_id)
            },
          })
        } else {
          hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人')
        }
      })
    },
    goBodyCheck (confirm_id) { // 活体检测
      this.$router.push({
        name: 'BodyCheck',
        params: {
          check_id: this.$route.params.check_id,
          confirm_id: confirm_id,
        },
      })
    },
    // 图片保存
    save_picture (list) {
      // alert('list' + JSON.stringify(list))
      let vm = this
      if (list.length) {
        // hlsPopup.showLoading('图片上传请稍候')
        var alreadyUploadNum = 0
        var attLength = 0
        var recordUploadInterval = setInterval(function () {
          if (alreadyUploadNum === attLength) {
            clearInterval(recordUploadInterval)
            /* hlsPopup.hideLoading()
            hlsPopup.showLongCenter('图片上传成功') */
          }
        }, 500)
        for (var i = 0; i < list.length; i++) {
          let uploadSuccess = function (res) {
            if (res.result === 'S') {
              alreadyUploadNum++
              for (var j = 0; j < list.length; j++) {
                if (list[j].filePath === res.response.filePath) {
                  list[j].attachment_id = res.response.attachment_id
                  vm.faceListUpload.push(list[j])
                  // alert('faceListUpload' + JSON.stringify(vm.faceListUpload))
                  break
                }
              }
            } else {
              hlsPopup.hideLoading()
            }
          }
          if (!list[i].attachment_id) {
            attLength++
            hlsUtil.fileUploadSvc(list[i], uploadSuccess)
          }
        }
      } else {
        hlsPopup.hideLoading()
      }
    },
李晓兵's avatar
李晓兵 committed
422 423 424 425 426 427 428 429 430 431 432 433 434 435
    async isConfirm () {
      let vm = this
      let flag = await this.signCheck()
      if (flag) { // 只有认证通过后方可进行签约操作
        this.hlsPopup.showConfirm({
          title: '提示',
          content: '您确定同意发车吗?',
          onConfirm: data => {
            if (data === 1) {
              this.confirm()
            }
          },
        })
      }
436
    },
linxin's avatar
linxin committed
437 438 439 440
    confirm () {
      let vm = this
      let url = process.env.basePath + 'do_car_confirm'
      let param = {
441
        master: {
linxin's avatar
linxin committed
442
          project_id: this.$route.params.project_id,
443
          confirm_status: 'APPROVED',
linxin's avatar
linxin committed
444
          confirm_note: '同意',
445 446
        },
      }
linxin's avatar
linxin committed
447 448 449 450 451
      hlsPopup.showLoading('请稍候')
      vm.$post(url, param).then(function (res) {
        vm.hlsPopup.hideLoading()
        if (res.result === 'S') {
          vm.equip = res.lists
452
          vm.hlsPopup.showSuccess('发车成功')
453 454 455 456 457
          setTimeout(() => {
            vm.$router.push({
              name: 'ConfirmList',
            })
          }, 2000)
linxin's avatar
linxin committed
458 459 460 461 462
        } else {
          hlsPopup.showLongCenter(res.message)
        }
      })
    },
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
    // 跳转合同详情
    goContractContent (name) {
      this.$router.push({
        name: 'ContractContent',
        params: {
          name,
          business_type: this.$route.params.business_type,
        },
      })
      if (name === '经销商担保协议') {
        setTimeout(() => {
          this.agentPic = this.readed
        }, 1000)
      } else if (name === '租赁主合同') {
        setTimeout(() => {
          this.leasePic = this.readed
        }, 1000)
      }
    },
linxin's avatar
linxin committed
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
    getEquipment () {
      let vm = this
      let url = process.env.basePath + 'car_equip_list_query'
      let param = {
        project_id: this.$route.params.project_id,
      }
      hlsPopup.showLoading('请稍候')
      vm.$post(url, param).then(function (res) {
        vm.hlsPopup.hideLoading()
        if (res.result === 'S') {
          vm.equip = res.lists
        } else {
          hlsPopup.showLongCenter(res.message)
        }
      })
    },
linxin's avatar
linxin committed
498
    getRent (e) {
linxin's avatar
linxin committed
499 500 501
      let vm = this
      let url = process.env.basePath + 'leases_info_query'
      let param = {
linxin's avatar
linxin committed
502
        contract_id: e,
linxin's avatar
linxin committed
503 504 505 506 507 508 509 510 511 512 513 514
      }
      hlsPopup.showLoading('请稍候')
      vm.$post(url, param).then(function (res) {
        vm.hlsPopup.hideLoading()
        if (res.result === 'S') {
          Object.assign(vm.rentInfo, res.info)
        } else {
          hlsPopup.showLongCenter(res.message)
        }
      })
    },

linxin's avatar
linxin committed
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
    getDetail () {
      let vm = this
      let url = process.env.basePath + 'con_contract_detial'
      let param = {
        project_id: this.$route.params.project_id,
      }
      hlsPopup.showLoading('请稍候')
      vm.$post(url, param).then(function (res) {
        vm.hlsPopup.hideLoading()
        if (res.result === 'S') {
          vm.info = res.info
        } else {
          hlsPopup.showLongCenter(res.message)
        }
      })
    },
531
  },
532 533 534 535 536 537 538
}
</script>
<style lang="less" scoped>
#addCar {
  input::placeholder {
    color: #888c8f;
  }
539 540 541 542 543 544 545 546
  .trans-enter-active,
  .trans-leave-active {
    transition: opacity 0.5s;
  }
  .trans-enter,
  .trans-leave-active {
    opacity: 0;
  }
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
     .aguremrnt-list {
      display: flex;
      flex-direction: row;

      .pic {
        margin-left: -3px;
      }

      .pics {
        //    width: 21px;
        height: 30px;
      }

      .read {
        height: 16px;
        margin-top: 8px;
        margin-left: 6px;
      }

      .second {
        height: 32px;
        line-height: 32px;
        font-family: PingFangSC-Regular;
        font-size: 14px;
        margin-left: 16px;
        color: #383f45;
        letter-spacing: 0.43px;
      }

      .first {
        margin-left: 13px;
      }
    }

   .contract-text {
        .border-red {
          border: 2px solid rgba(255, 0, 0, 0.4);
        }

        .hls-item {
          margin-top: 8px;
          background-color: #fff;
        }

        .contents {
          padding: 0;
        }

        .in-detail {
          background-color: rgba(0, 70, 156, 0.08);
          width: 48px;
          height: 56px;
          text-align: center;
          line-height: 65px;

          img {
            width: 16px;
          }
        }

        .in-all {
          //width: 96px;
          display: flex;

          img {
            width: 16px;
          }

          div {
            width: 48px;
            height: 56px;
            text-align: center;
            line-height: 65px;
          }

          div:first-child {
            background-color: rgba(252, 200, 0, 0.1);
          }

          div:nth-child(2) {
            background-color: rgba(0, 70, 156, 0.08);
          }
        }
      }
631
  .hide {
632 633 634
    display: flex;
    justify-content: flex-start;
    align-items: center;
635 636 637 638
    img {
      width: 30px;
      height: 30px;
      margin-left: 65%;
639 640
    }
  }
641 642
  .wrap {
    padding-top: 92px;
643
  }
644 645 646 647
  .modal-show {
    width: 100%;
    height: 100%;
    position: absolute;
648
    z-index: 900;
649 650 651 652 653 654 655
    background-color: rgba(56, 63, 69, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    .down {
      position: relative;
      width: 314px;
linxin's avatar
linxin committed
656
      height: 526px;
657 658 659 660 661 662 663 664 665 666 667 668 669
      background-size: 301px 24.7px;
      background-color: #fff;
    }
    .top {
      width: 100%;
      height: 44px;
      font-family: PingFangSC-Semibold;
      font-size: 16px;
      letter-spacing: 0;
      text-align: center;
      line-height: 44px;
      color: #fff;
      background: #0041c4;
linxin's avatar
linxin committed
670 671
      span{
        font-size:24px;
672
        float: right;
linxin's avatar
linxin committed
673 674 675
        margin-right:10px;
        font-family: YouYuan;
        // margin-left:100px;
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693
      }
    }
    .down-content {
      margin-top: 8px;
      span:first-child {
        font-family: PingFangSC-Regular;
        font-size: 13px;
        color: #656464;
        letter-spacing: 0;
        margin-left: 15px;
      }
      .photo {
        width: 172px;
        height: 120px;
        border: 1px solid #dcdcdd;
        border-radius: 2px;
        margin: 0 auto;
        margin-top: 12px;
694 695 696 697 698
        background: url("../../assets/contractStart/photo.png") 70px no-repeat;
        background-size: 24px 20px;
        img {
          width: 100%;
          height: 100%;
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 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758
        }
      }
    }
  }
  .userInfo {
    height: 45px;
    line-height: 45px;
    color: #0041c4;
    font-size: 15px;
    margin-left: 16px;
    position: relative;
  }
  .userInfo::before {
    content: "";
    display: block;
    width: 4px;
    height: 20px;
    background-color: #0041c4;
    position: absolute;
    left: -15px;
    top: 12px;
  }
  .equipment:not(:first-child) {
    margin-top: 2px;
  }
  .equipment {
    width: 359px;
    height: 72px;
    background-color: #fff;
    margin: 0 auto;
    display: flex;
    .left {
      flex: 1;
      span {
        display: block;
        width: 30px;
        height: 30px;
        background-color: #e8e9ed;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        margin-top: 8px;
        img {
          width: 11px;
          height: 14px;
        }
      }
    }
    .center {
      flex: 6;
      span:first-child {
        font-family: PingFangSC-Regular;
        font-size: 14px;
        color: #383f45;
        letter-spacing: 0.43px;
        margin-left: 10px;
        margin-top: 12px;
      }
linxin's avatar
linxin committed
759
     .status {
760 761 762 763 764 765 766 767 768 769 770 771
        display: inline-block;
        width: 46px;
        height: 16px;
        text-align: center;
        line-height: 16px;
        font-family: PingFangSC-Medium;
        font-size: 12px;
        color: #ffffff;
        letter-spacing: 0;
        margin-left: 21px;
        margin-top: 12px;
      }
linxin's avatar
linxin committed
772 773 774 775 776 777 778 779
      .unMantain{
        background-color: #1d3fff;
      }
      .mantain{
        background-color: #FFF;
        border:1px solid #1d3fff;
        color: #1d3fff;
      }
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807
      p {
        font-family: PingFangSC-Regular;
        font-size: 13px;
        color: rgba(56, 63, 69, 0.6);
        letter-spacing: 0.4px;
        margin-left: 10px;
        margin-top: 10px;
        span {
          font-family: Helvetica;
          font-size: 13px;
          color: rgba(56, 63, 69, 0.6);
        }
      }
    }
    .right {
      flex: 1;
      display: flex;
      align-items: center;
      img {
        width: 13px;
        height: 13px;
      }
    }
  }
  .approve {
    color: #fff;
    background-color: #0041c4;
  }
linxin's avatar
linxin committed
808 809 810 811 812 813 814 815
   .before {
      border: 1px solid #fdb62f;
      border-radius: 4px;
      color: #fdb62f;
      img{
        width: 18px;
      }
    }
816 817
}
</style>