mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 16:34:00 +00:00
216 lines
25 KiB
Vue
216 lines
25 KiB
Vue
<template>
|
|
<div class="row d-none" :class="[{'d-flex': $store.getters.isAdmin}]" v-if="$store.getters.isAdmin && company" >
|
|
<div class="col-8">
|
|
<div class="row m-b-20">
|
|
<div class="col bg-white p-t-10 p-b-15 p-r-20 shadow-sm">
|
|
<customer-profile-component :data="company"></customer-profile-component>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col no-padding">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row tabsContainer">
|
|
<div class="col">
|
|
<div class="row m-l-0 m-r-0 d-none d-md-flex">
|
|
<div class="col-7">
|
|
<div class="row">
|
|
<div class="col m-r-5">
|
|
<div class="row fs-12 text-center">
|
|
<div class="col p-t-15 p-b-15 bg-master-lighter active tabButton" tab-name="transfers">
|
|
<div class="row justify-content-center">
|
|
<div class="col-auto">
|
|
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
|
width="35" height="35"
|
|
viewBox="0 0 172 172"
|
|
style=" fill:#000000;"><defs><linearGradient x1="86" y1="104.14063" x2="86" y2="140.57775" gradientUnits="userSpaceOnUse" id="color-1_44825_gr1"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="16.125" x2="86" y2="159.93044" gradientUnits="userSpaceOnUse" id="color-2_44825_gr2"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g><path d="M121.41588,139.75h-70.83175c-2.53431,0 -3.66575,-3.18469 -1.6985,-4.78106l33.72544,-27.40175c1.97531,-1.60444 4.80256,-1.60444 6.77787,0l33.72544,27.40175c1.96725,1.59638 0.83581,4.78106 -1.6985,4.78106z" fill="url(#color-1_44825_gr1)"></path><path d="M148.135,71.77238l-8.385,-8.385v-28.42031c0,-4.46125 -3.63081,-8.09206 -8.09206,-8.09206h-2.65794v-2.65794c0,-4.46125 -3.63081,-8.09206 -8.09206,-8.09206h-69.81587c-4.46125,0 -8.09206,3.63081 -8.09206,8.09206v2.65794h-2.65794c-4.46125,0 -8.09206,3.63081 -8.09206,8.09206v28.42031l-8.385,8.385c-1.5265,1.52381 -2.365,3.55019 -2.365,5.70825v64.95688c0,7.40944 6.02806,13.4375 13.4375,13.4375h102.125c7.40944,0 13.4375,-6.02806 13.4375,-13.4375v-64.95688c0,-2.15806 -0.84119,-4.18444 -2.365,-5.70825zM77.60156,91.96356l-0.30906,0.24725c-1.28731,-1.79525 -2.0425,-3.92375 -2.0425,-6.21081c0,-5.92862 4.82138,-10.75 10.75,-10.75c5.92863,0 10.75,4.82138 10.75,10.75c0,2.26287 -0.70413,4.41019 -2.01294,6.235l-0.34131,-0.27412c-4.93962,-3.95063 -11.84919,-3.95063 -16.79419,0.00269zM86,69.875c-8.89294,0 -16.125,7.23206 -16.125,16.125c0,3.53406 1.14487,6.85581 3.18738,9.59438l-10.578,8.46025l-3.35937,-2.6875v-55.88388c6.95256,-1.06963 12.16094,-6.28069 13.23325,-13.23325h27.2835c1.06963,6.95256 6.28069,12.16094 13.23325,13.23325v55.88656l-3.35937,2.6875l-10.56994,-8.45488c2.07744,-2.79231 3.17931,-6.10869 3.17931,-9.60244c0,-8.89294 -7.23206,-16.125 -16.125,-16.125zM58.179,107.5l-31.304,25.04481v-50.08694zM145.125,82.45519v50.08963l-31.30669,-25.04481zM144.33488,75.5725c0.11825,0.11825 0.18006,0.27412 0.27412,0.4085l-4.859,3.88612v-8.8795zM131.65794,32.25c1.49962,0 2.71706,1.21744 2.71706,2.71706v49.20275l-5.375,4.3v-56.21981zM51.09206,21.5h69.81856c1.49694,0 2.71438,1.21744 2.71438,2.71706v68.55275l-5.375,4.3v-56.75731h-2.6875c-6.22694,0 -10.75,-4.52306 -10.75,-10.75v-2.6875h-37.625v2.6875c0,6.22694 -4.52306,10.75 -10.75,10.75h-2.6875v56.75731l-5.375,-4.3v-68.55275c0,-1.49962 1.21744,-2.71706 2.71706,-2.71706zM40.34206,32.25h2.65794v56.21981l-5.375,-4.3v-49.20275c0,-1.49963 1.21744,-2.71706 2.71706,-2.71706zM32.25,70.98763v8.88219l-4.859,-3.88881c0.09406,-0.13438 0.15587,-0.29025 0.27412,-0.4085zM137.0625,150.5h-102.125c-4.44513,0 -8.0625,-3.61738 -8.0625,-8.0625v-3.00463l54.08325,-43.27144c2.96969,-2.37306 7.11381,-2.37306 10.08081,0l54.08594,43.26875v3.00731c0,4.44513 -3.61737,8.0625 -8.0625,8.0625z" fill="url(#color-2_44825_gr2)"></path></g></g></svg>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="fs-12 m-t-5">Transfers</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col m-r-5">
|
|
<div class="row fs-12 text-center">
|
|
<div class="col p-t-15 p-b-15 bg-master-lighter tabButton" tab-name="PO">
|
|
<div class="row justify-content-center">
|
|
<div class="col-auto">
|
|
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
|
width="35" height="35"
|
|
viewBox="0 0 172 172"
|
|
style=" fill:#000000;"><defs><linearGradient x1="112.875" y1="81.96875" x2="112.875" y2="105.71013" gradientUnits="userSpaceOnUse" id="color-1_44814_gr1"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="15.67619" x2="86" y2="158.96562" gradientUnits="userSpaceOnUse" id="color-2_44814_gr2"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient><linearGradient x1="72.5625" y1="15.67619" x2="72.5625" y2="158.96562" gradientUnits="userSpaceOnUse" id="color-3_44814_gr3"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient><linearGradient x1="45.6875" y1="15.67619" x2="45.6875" y2="158.96562" gradientUnits="userSpaceOnUse" id="color-4_44814_gr4"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient><linearGradient x1="45.6875" y1="15.67619" x2="45.6875" y2="158.96562" gradientUnits="userSpaceOnUse" id="color-5_44814_gr5"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g><path d="M123.625,94.0625c0,5.93669 -4.81331,10.75 -10.75,10.75v0c-5.93669,0 -10.75,-4.81331 -10.75,-10.75v0c0,-5.93669 4.81331,-10.75 10.75,-10.75v0c5.93669,0 10.75,4.81331 10.75,10.75z" fill="url(#color-1_44814_gr1)"></path><path d="M150.5,53.75h-21.5v-29.5625c0,-4.44513 -3.61738,-8.0625 -8.0625,-8.0625h-96.75c-4.44513,0 -8.0625,3.61737 -8.0625,8.0625v110.1875v2.6875v10.75c0,4.44512 3.61737,8.0625 8.0625,8.0625h96.75c4.44512,0 8.0625,-3.61738 8.0625,-8.0625v-10.75v-2.6875v-10.75h21.5c2.96431,0 5.375,-2.41069 5.375,-5.375v-48.375v-10.75c0,-2.96431 -2.41069,-5.375 -5.375,-5.375zM150.5,64.5h-75.25v-5.375h75.25zM150.5,85.785v16.555c-8.22106,1.18519 -14.72481,7.68894 -15.91,15.91h-43.43c-1.18519,-8.22106 -7.68894,-14.72481 -15.91,-15.91v-16.555c8.22106,-1.18519 14.72481,-7.68894 15.91,-15.91h43.43c1.18519,8.22106 7.68894,14.72481 15.91,15.91zM75.25,69.875h10.47856c-1.07231,5.25675 -5.22181,9.40625 -10.47856,10.47856v-7.79106zM75.25,107.77144c5.25675,1.07231 9.40625,5.22181 10.47856,10.47856h-10.47856zM120.9375,150.5h-96.75c-1.4835,0 -2.6875,-1.204 -2.6875,-2.6875v-3.182c0.84388,0.301 1.7415,0.4945 2.6875,0.4945h96.75c0.946,0 1.84363,-0.1935 2.6875,-0.4945v3.182c0,1.4835 -1.204,2.6875 -2.6875,2.6875zM123.625,134.375v2.6875c0,1.4835 -1.204,2.6875 -2.6875,2.6875h-96.75c-1.4835,0 -2.6875,-1.204 -2.6875,-2.6875v-2.6875v-110.1875c0,-1.4835 1.204,-2.6875 2.6875,-2.6875h96.75c1.4835,0 2.6875,1.204 2.6875,2.6875v29.5625h-48.375c-2.96431,0 -5.375,2.41069 -5.375,5.375v10.75v2.6875v45.6875c0,2.96431 2.41069,5.375 5.375,5.375h48.375zM140.02144,118.25c1.07231,-5.25675 5.22181,-9.40625 10.47856,-10.47856v10.47856zM150.5,80.35356c-5.25675,-1.07231 -9.40625,-5.22181 -10.47856,-10.47856h10.47856z" fill="url(#color-2_44814_gr2)"></path><path d="M32.25,37.625h80.625v5.375h-80.625z" fill="url(#color-3_44814_gr3)"></path><path d="M32.25,59.125v43c0,2.96431 2.41069,5.375 5.375,5.375h21.5v-53.75h-21.5c-2.96431,0 -5.375,2.41069 -5.375,5.375zM37.625,75.25h16.125v10.75h-16.125zM37.625,102.125v-10.75h16.125v10.75zM53.75,69.875h-16.125v-10.75h16.125z" fill="url(#color-4_44814_gr4)"></path><path d="M32.25,118.25h26.875v5.375h-26.875z" fill="url(#color-5_44814_gr5)"></path></g></g></svg>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="fs-12 m-t-5">Billing</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="row justify-content-end">
|
|
<div class="col-6">
|
|
<div class="row fs-12 text-center">
|
|
<div class="col p-t-15 p-b-15 bg-master-lighter tabButton" tab-name="profile" @click="refreshCompanyDetails()">
|
|
<div class="row justify-content-center">
|
|
<div class="col-auto">
|
|
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
|
width="35" height="35"
|
|
viewBox="0 0 172 172"
|
|
style=" fill:#000000;"><defs><linearGradient x1="98.09375" y1="78.38631" x2="98.09375" y2="93.17294" gradientUnits="userSpaceOnUse" id="color-1_43985_gr1"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="73.90625" y1="78.38631" x2="73.90625" y2="93.17294" gradientUnits="userSpaceOnUse" id="color-2_43985_gr2"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="98.98869" x2="86" y2="111.08513" gradientUnits="userSpaceOnUse" id="color-3_43985_gr3"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="12.09375" x2="86" y2="158.68613" gradientUnits="userSpaceOnUse" id="color-4_43985_gr4"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g><path d="M98.09375,79.28125c-3.71066,0 -6.71875,3.00809 -6.71875,6.71875c0,3.71066 3.00809,6.71875 6.71875,6.71875c3.71066,0 6.71875,-3.00809 6.71875,-6.71875c0,-3.71066 -3.00809,-6.71875 -6.71875,-6.71875z" fill="url(#color-1_43985_gr1)"></path><path d="M73.90625,79.28125c-3.71066,0 -6.71875,3.00809 -6.71875,6.71875c0,3.71066 3.00809,6.71875 6.71875,6.71875c3.71066,0 6.71875,-3.00809 6.71875,-6.71875c0,-3.71066 -3.00809,-6.71875 -6.71875,-6.71875z" fill="url(#color-2_43985_gr2)"></path><path d="M75.25,99.4375c0,5.93669 4.81331,10.75 10.75,10.75c5.93669,0 10.75,-4.81331 10.75,-10.75z" fill="url(#color-3_43985_gr3)"></path><path d="M86,16.125c-38.53069,0 -69.875,31.34431 -69.875,69.875c0,38.53069 31.34431,69.875 69.875,69.875c38.53069,0 69.875,-31.34431 69.875,-69.875c0,-38.53069 -31.34431,-69.875 -69.875,-69.875zM86,21.5c35.56369,0 64.5,28.93631 64.5,64.5c0,15.61975 -5.58463,29.96025 -14.85919,41.13219c-5.63569,-7.59756 -12.9,-13.76806 -21.29306,-18.10569c2.61762,-3.63619 4.54456,-7.78569 5.6115,-12.2765h0.97825c7.40944,0 13.4375,-6.02806 13.4375,-13.4375c0,-7.40944 -6.02806,-13.4375 -13.4375,-13.4375h-0.13706c-1.38137,-18.00894 -16.44481,-32.25 -34.80044,-32.25c-18.35562,0 -33.41906,14.24106 -34.80044,32.25h-0.13706c-7.40944,0 -13.4375,6.02806 -13.4375,13.4375c0,7.40944 6.02806,13.4375 13.4375,13.4375h0.97556c1.06694,4.4935 2.99656,8.64569 5.61688,12.28188c-8.39037,4.33762 -15.66275,10.50544 -21.29844,18.09763c-9.27187,-11.17194 -14.8565,-25.50975 -14.8565,-41.1295c0,-35.56369 28.93631,-64.5 64.5,-64.5zM61.28306,56.39181c0.17737,0.01075 0.34938,0.04569 0.52944,0.04569c5.72169,0 10.36838,-4.50156 10.68819,-10.14531c1.68775,-0.87075 3.46956,-1.58294 5.32663,-2.11775c0.04837,0.50256 0.11019,1.00512 0.11019,1.51306c0,8.89294 -7.23206,16.125 -16.125,16.125c-1.08844,0 -2.15537,-0.12094 -3.20081,-0.33056c0.72831,-1.78987 1.62325,-3.49375 2.67137,-5.09012zM108.26863,53.18025c-1.10188,0.37356 -2.26287,0.56975 -3.45612,0.56975c-5.5255,0 -10.03513,-4.20325 -10.63175,-9.57288c5.53625,1.59906 10.39794,4.77031 14.08788,9.00313zM88.69556,43.13706c0.07256,8.82844 7.27238,15.98794 16.11694,15.98794c2.33812,0 4.58488,-0.5375 6.66231,-1.48619c0.91106,1.548 1.677,3.182 2.29781,4.89394c-2.795,1.28194 -5.83456,1.96725 -8.96012,1.96725c-11.80887,0 -21.41937,-9.57288 -21.49194,-21.36294c0.88419,-0.08063 1.77375,-0.13706 2.67944,-0.13706c0.90838,0 1.806,0.05644 2.69556,0.13706zM56.4375,72.5625c0,-2.02369 0.20694,-3.999 0.59663,-5.90981c1.55337,0.35475 3.14975,0.53481 4.77837,0.53481c8.36888,0 15.61706,-4.816 19.16725,-11.81425c4.48812,8.60269 13.47781,14.50175 23.83275,14.50175c3.58513,0 7.06813,-0.76325 10.32269,-2.12313c0.258,1.5695 0.42731,3.16856 0.42731,4.81063v16.125c0,16.29969 -13.26281,29.5625 -29.5625,29.5625c-16.29969,0 -29.5625,-13.26281 -29.5625,-29.5625zM86,123.625c9.68844,0 18.46312,-3.96944 24.79756,-10.36031c1.91888,0.94063 3.78937,1.95919 5.57925,3.10138c-8.041,8.04369 -18.90925,12.63394 -30.37681,12.63394c-11.46487,0 -22.33313,-4.58756 -30.37681,-12.63394c1.78719,-1.14219 3.65769,-2.16612 5.57656,-3.10675c6.33444,6.39625 15.11181,10.36569 24.80025,10.36569zM120.9375,75.25c4.44512,0 8.0625,3.61737 8.0625,8.0625c0,4.44512 -3.61738,8.0625 -8.0625,8.0625v-2.6875zM51.0625,88.6875v2.6875c-4.44512,0 -8.0625,-3.61738 -8.0625,-8.0625c0,-4.44512 3.61738,-8.0625 8.0625,-8.0625zM86,150.5c-17.96863,0 -34.23875,-7.39331 -45.9455,-19.28819c3.16319,-4.43438 6.91763,-8.3635 11.16388,-11.69063c9.10256,9.44119 21.58331,14.85381 34.78163,14.85381c13.201,0 25.68175,-5.41263 34.78163,-14.85381c4.24356,3.32712 8.00069,7.25356 11.16388,11.69063c-11.70944,11.89487 -27.97688,19.28819 -45.9455,19.28819z" fill="url(#color-4_43985_gr4)"></path></g></g></svg>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="fs-12 m-t-5">Customer Profile</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row no-margin">
|
|
<div class="col bg-white padding-25">
|
|
<div class="row tabsContainer tabContent" tab-name="transfers">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<list-component style="min-height: auto;" section="customerTransferListSection" :endpoint="route('api.booking.list')" :options="{company_id:company.id}">
|
|
<template slot="list" slot-scope="{data}">
|
|
<booking-component :data="data" section="customerTransferListSection"></booking-component>
|
|
</template>
|
|
</list-component>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row tabsContainer hide tabContent" tab-name="PO">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<list-component key="2" section="paymentVerificationSection" :endpoint="route('api.transaction.list')" :options="{'type': 1, 'status': 3,'issuer_in':[this.id]}">
|
|
<template slot="list" slot-scope="{data}">
|
|
<payment-verification-component section="paymentVerificationSection" :data="data" :no_action="true"></payment-verification-component>
|
|
</template>
|
|
</list-component>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row tabsContainer hide tabContent" tab-name="profile">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col">
|
|
<company-details-component :company_details="company" section="customerProfileSection"></company-details-component>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col m-b-15">
|
|
<wallet-component :data="company" :creditable=true></wallet-component>
|
|
</div>
|
|
</div>
|
|
<booking-form-component :data="company" section="customerProfileSection"></booking-form-component>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
id: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
data(){
|
|
return {
|
|
section: 'customerProfileSection',
|
|
company: null,
|
|
company_details: {},
|
|
bookingFilters: {
|
|
reference: '',
|
|
type: 0,
|
|
currency: 0,
|
|
created_before: '',
|
|
created_after: '',
|
|
status: ''
|
|
},
|
|
address_id:0,
|
|
address:{},
|
|
displayAddressForm:false,
|
|
}
|
|
},
|
|
computed: {
|
|
pendingQueue () {
|
|
return this.$store.getters.isInCompleteQueue(this.section);
|
|
},
|
|
filteredBookings() {
|
|
return this.company.bookings.filter(booking => {
|
|
return (this.bookingFilters.reference.trim() ? booking.marking.toLowerCase().includes(this.bookingFilters.reference.toLowerCase()) : true)
|
|
&& (this.bookingFilters.type !== 0 ? booking.service.id === this.bookingFilters.type : true)
|
|
&& (this.bookingFilters.currency !== 0 ? booking.convertible_currency.id === this.bookingFilters.currency : true )
|
|
&& (this.bookingFilters.created_before.trim() ? Date.parse(booking.created_at.replace( /(\d{2})-(\d{2})-(\d{4})/, "$2/$1/$3")) < Date.parse(this.bookingFilters.created_before.replace( /(\d{2})-(\d{2})-(\d{4})/, "$2/$1/$3")) : true)
|
|
&& (this.bookingFilters.created_before.trim() ? Date.parse(booking.created_at.replace( /(\d{2})-(\d{2})-(\d{4})/, "$2/$1/$3")) > Date.parse(this.bookingFilters.created_after.replace( /(\d{2})-(\d{2})-(\d{4})/, "$2/$1/$3")) : true)
|
|
})
|
|
}
|
|
},
|
|
|
|
watch: {
|
|
pendingQueue(inComplete){
|
|
if(inComplete){
|
|
this.fetchCompany();
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
this.$store.dispatch('updateListQueue', {'name': this.section});
|
|
},
|
|
methods: {
|
|
refreshCompanyDetails(){
|
|
this.company_details = this.company ;
|
|
},
|
|
fetchCompany(){
|
|
this.submit(route('api.company.show', this.id), 'get', this.section, false, false)
|
|
},
|
|
successHandler(response){
|
|
this.$store.dispatch('completeList', {'name': this.section, 'data': []});
|
|
this.company = response.payload.data;
|
|
}
|
|
}
|
|
}
|
|
</script> |