e-correspondence-enquiry.js 1016 Bytes
import {
	mapState
} from "vuex";
import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

import Auth from '@components/auth/auth.vue';
import ECorrespondenceHeadList from "./e-correspondence-head-list.vue";

import {
	formatMoney,
	getInsuredPeriod,
	getBenefitType,
	getPayPeriod,
	getPayType,
	getMoneyName,
	getPayMode,
	getPolicyName
} from "@/utils/biz.js";

export default {
	name: "ECorrespondenceEnquiry",
	data() {
		return {
			showForm: false,
			dataForm: null,
			insuranceForm: {
				f1: true,
				f2: true,
				f3: true,
				f4: true,
				f5: true,
			},
			policy: null,
		}
	},
	methods: {
		handlePolicySelect() {

		},
		userLogout() {
			this.showForm = false;
		},
		userLogin(data) {
			this.showForm = true;
		}
	},
	computed: {
		...mapState({
			userInfo: state => state.userInfo
		}),
		i18n() {
			return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
		},
	},
	components: {
		Auth,
		ECorrespondenceHeadList,
	},
}