refund-logistics.page.js 658 Bytes
const Vue = require('vue');
const Logistics = require('home/refund/logistics.vue').default;
const LogisticsCompany = require('home/refund/logistics-company.vue').default;
const bus = require('plugin/vue-bus');

new Vue({
    el: '#logistics',
    data: {
        company_id: '',
        company_name: '',
        currentView: 'logistics',
    },
    components: {
        logistics: Logistics,
        logisticsCompany: LogisticsCompany
    },
    created() {
        bus.$on('changeView', obj => {
            this.currentView = obj.view;
            this.company_id = obj.company_id;
            this.company_name = obj.company_name;
        });
    }
});