<script>
import { CellGroup, Cell } from 'vant'

export default {
  name: 'SignContractOrderInfo',
  components: { CellGroup, Cell }
}
</script>

<template>
  <section class="order-info">
    <CellGroup class="mt10 fs20">
      <Cell :value="recmd.agentCode" title="销售人员工号" />
      <Cell :value="recmd.name" title="销售人员姓名" />
      <Cell :value="orderInfo.orderNo" title="投保单号"></Cell>
      <!-- 电投签名确认新增交费期间  start at 20240910 -->
      <div v-if="riskInfo">
        <Cell v-if="riskInfo.payEndYear == '1000'" title="交费期间" value="一次性交清" />
        <Cell v-else :value="riskInfo.payEndYearFlag == 'Y' ? `${riskInfo.payEndYear}年` : `至${riskInfo.payEndYear}岁`" title="交费期间" />
      </div>
      <!-- 电投签名确认新增交费期间  end at 20240910 -->
      <Cell :value="date" title="投保日期" />
      <Cell :value="orderInfo.orderAmount == undefined ? '' : orderInfo.orderAmount | moneyFormat" title="保费合计(元)" />
      <Cell v-if="cvalidateStr" :value="cvalidateStr" title="指定保单生效日" />
    </CellGroup>
  </section>
</template>

<style lang="scss" scoped></style>
