import CpsProcessDetail from "@/views/Goods/Detail/modules/CpsProcessDetail";
import PopupWithIframe from "@/components/PopupWithIframe";
import bainian from "@/api/detail.bainian.zhongshen";
import huagui from "@/api/detail.huagui.shouxian";
import huatai from "@/api/detail.huatai.zhongjixian";
import taikang from "@/api/detail.taikang.yiliaobaozhang";
import zhongan from "@/api/detail.zhongan.yiwai";

export default {
  data() {
    return {
      popupShow: false,
      processDetail: [],
      claims: {
        TKYLX001: taikang.processDetail,
        HTDQZJX001: huatai.processDetail,
        ZAYWX001: zhongan.processDetail,
        BNZJX001: bainian.processDetail,
        HGSX001: huagui.processDetail
      }
    };
  },
  components: {
    PopupWithIframe,
    CpsProcessDetail
  },
  methods: {
    showIframe(id) {
      this.popupShow = true;
      this.processDetail = this.claims[id];
    }
  }
};
