<template>
  <Container :needPadding="true">
    <template v-slot:header>
      <WlHeader :needBottomBorder="true">BOStagePopup 商机阶段选择</WlHeader>
    </template>
    <template v-slot:main>
      <Title>基础使用</Title>
      <BOStagePopup
        v-model="stagePopupData"
        :stageList="stageList"
        :stageFailList="stageFailList"
        :businessOppDetail="businessOppDetail"
      ></BOStagePopup>
      <Title>禁止编辑使用</Title>
      <BOStagePopup
        v-model="stagePopupData"
        :isEdit="false"
        :stageList="stageList"
        :stageFailList="stageFailList"
        :businessOppDetail="businessOppDetail"
      ></BOStagePopup>
    </template>
  </Container>
</template>

<script>
import Title from "../components/Title";
import Container from "../components/Container";
import { stageList, stageFailList } from "../../utils/exampleData";
export default {
  name: "BOStagePopup-Example",
  components: { Title, Container },
  data() {
    return {
      stagePopupData: { key: "1" },
      businessOppDetail: {
        business_id: "1515887288507981824",
        company_id: "1447164914925592576",
        winning_amount: "",
        winning_date: "",
        company_info: {
          company_id: "1447164914925592576",
          company_name: "泾河新城确认去百货店",
          credit_code: "92611102MAB2N5P74C",
          start_date: 1620230400000,
          address: "陕西省西咸新区泾河新城泾河新城孵",
        },
        create_time: "1650250668000",
        create_user: {
          id: "1395217652",
          userid_third: "LiYun",
          nick_name: "李云亮",
          head_img_url:
            "http://wework.qpic.cn/bizmail/PswJiagCu3USYljDM4X8PY9kv1kzibJ64OMlegpc9WwshOJhR8U9darA/0",
          position: "测试上咖啡",
        },
        customers: [
          {
            external_userid: "wmWAFzDwAAYW4Aq979NGec9azKwJ1Cmg",
            head_img_url:
              "http://wx.qlogo.cn/mmhead/5hUKx8syeicjtGfu3ZSclwpV69PPvEbqpWhUjcknzmCc/0",
            id: "1506856976999825408",
            is_rel_company: false,
            nick_name: "CHA",
            type: 1,
            unionid: "o3uHk52xLOxCoDKFfE1YdF3_BBLs",
            user_type: 1,
          },
        ],
        except_amount: 112123.12,
        except_date: 1650297600000,
        name: "商机",
        permission_level: 4,
        stage: 2,
        update_time: "1650334179000",
      },
      stageList,
      stageFailList,
    };
  },
};
</script>
