{"version":3,"sources":["webpack:///./src/components/ContractRenewelForm.vue?6b89","webpack:///./src/views/contracts/requestDetails/RequestsBase.vue?35e7","webpack:///./src/views/contracts/requestDetails/RequestsBase.vue?cfff","webpack:///./src/components/ContractRenewelForm.vue?f453","webpack:///./src/components/ContractRenewelForm.vue","webpack:///./src/components/ContractRenewelForm.vue?b9c4","webpack:///./src/components/ContractRenewelForm.vue?d5d7","webpack:///./src/components/ContractEditForm.vue?30d5","webpack:///./src/components/ContractEditForm.vue","webpack:///./src/components/ContractEditForm.vue?c41e","webpack:///./src/components/ContractEditForm.vue?6551","webpack:///./src/views/contracts/requestDetails/RequestsBase.vue","webpack:///./src/views/contracts/requestDetails/RequestsBase.vue?3c5a","webpack:///./src/views/contracts/requestDetails/RequestsBase.vue?e52c","webpack:///./src/views/approvalRequests/requestDetails/RequestsBase.vue?80a4","webpack:///./src/views/superAdmin/buyers/buyerDetails/buyerDetails.vue?4d87","webpack:///./src/views/superAdmin/buyers/buyerDetails/buyerDetails.vue","webpack:///./src/views/superAdmin/buyers/buyerDetails/buyerDetails.vue?5f42","webpack:///./src/views/superAdmin/buyers/buyerDetails/buyerDetails.vue?06ef","webpack:///./src/views/buyerRequests/quickQuotes/QuickQuotes.vue?e29f","webpack:///./src/components/ContractEditForm.vue?f40d","webpack:///../../../src/components/VGrid/grid.ts","webpack:///../../../src/components/VGrid/VContainer.ts","webpack:///./src/components/StartEndDate.vue?b43d","webpack:///./src/views/superAdmin/quickQuotes/quickQuotesDetails/SuperAdminQuickQuotes.vue?a245","webpack:///./src/views/superAdmin/quickQuotes/quickQuotesDetails/SuperAdminQuickQuotes.vue","webpack:///./src/views/superAdmin/quickQuotes/quickQuotesDetails/SuperAdminQuickQuotes.vue?8071","webpack:///./src/views/superAdmin/quickQuotes/quickQuotesDetails/SuperAdminQuickQuotes.vue?8311","webpack:///./src/views/superAdmin/quickQuotes/quickQuotesDetails/SuperAdminQuickQuotes.vue?cf66","webpack:///./src/views/superAdmin/buyers/buyerDetails/buyerDetails.vue?6e5d","webpack:///./src/views/approvalRequests/requestDetails/RequestsBase.vue?336a","webpack:///./src/views/approvalRequests/requestDetails/RequestsBase.vue","webpack:///./src/views/approvalRequests/requestDetails/RequestsBase.vue?5fcb","webpack:///./src/views/approvalRequests/requestDetails/RequestsBase.vue?2f35","webpack:///./src/views/buyerRequests/quickQuotes/QuickQuotes.vue?b424","webpack:///./src/views/buyerRequests/quickQuotes/QuickQuotes.vue","webpack:///./src/views/buyerRequests/quickQuotes/QuickQuotes.vue?d62d","webpack:///./src/views/buyerRequests/quickQuotes/QuickQuotes.vue?71ab","webpack:///./src/components/StartEndDate.vue?07d7","webpack:///./src/components/StartEndDate.vue","webpack:///./src/components/StartEndDate.vue?59f1","webpack:///./src/components/StartEndDate.vue?8542"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_e","contractLoading","contract","staticClass","_v","_s","title","$t","latestLinkedContract","startDate","expirationDate","status","scopedSlots","_u","key","fn","ref","on","_g","_b","openEditContractDialog","staticStyle","domProps","openRenewContractDialog","openArchiveContractDialog","openDeleteContractDialog","$event","closeRenewContractDialog","model","value","callback","$$v","renewContractDialog","expression","onSaved","id","closeEditContractDialog","editContractDialog","summary","selectedCategory","selectedCompany","closeArchiveContractDialog","archiveContractDialog","archiveContract","closeDeleteContractDialog","deleteContractDialog","deleteContract","buyerDetails","staticRenderFns","team","selectedOwner","contractValue","outlined","rounded","format","proxy","reminderDate","handleFileChange","attachedFiles","openFileSelection","addMoreFiles","target","files","cancel","saving","save","namespace","ContractRenewelForm","Vue","constructor","name","minimumDate","Date","teamFoundAutocomplete","renewContract","teamLoading","toFixed","timerId","email","approver","created","minDate","getTeam","renewContractRequest","length","Toast","error","toString","ContractApiService","Id","contractId","ExpirationDate","StartDate","ReminderDate","Owner","ContractValue","Number","then","catch","err","finally","TeamApiService","res","today","tomorrow","setDate","getDate","newFiles","Array","from","filter","file","includes","push","fileInput","$refs","click","__decorate","Prop","Component","components","ConfirmDialog","component","VAutocomplete","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCol","VFileInput","VIcon","VRow","VSpacer","VTextField","categories","companies","ContractEditForm","categoriesLoading","companiesLoading","addCategoryDialog","categoryType","CategoryType","searchText","getAllCategories","getCompanies","editContractRequest","editContract","Title","Summary","Category","Company","CategoryApiService","Contract","map","x","obj","ContactsApiService","VTextarea","auth","ContractRequestBase","editRequestDialog","deleteRequestDialog","endRequestDialog","awaitingApprovalRequestDialog","remindAllDialog","approveDialog","cancelRequestDialog","isApproverExist","requestStatusEnum","ContractBaseStatus","Archive","ContractStatusEnum","requestId","$route","params","BuyersApiService","getBuyerDetails","loadContract","ContractsApiService","getContract","createdDate","DateService","formatTableDateString","undefined","supplier","category","success","$router","path","Getter","IS_BUYER_SUBSCRIBED","IS_ACCOUNT_APPROVER","LoadingSpinner","ContractBaseStatusChip","VContainer","VDialog","VList","VListItem","VListItemIcon","VListItemTitle","VMenu","VTab","VTabs","redirected","routerViewKey","SuperAdminBuyerDetails","quickQuoteFormDialogKey","createQuickQuoteDialog","quickQuoteId","AuthRedirectService","handleAuthRouteRedirect","isSuperAdmin","IS_ACCOUNT_SUPER_ADMIN","VGrid","extend","functional","props","String","tag","type","default","h","data","children","trim","classes","Object","keys","startsWith","join","Grid","fluid","Boolean","mergeData","class","concat","buyerRequestLoading","buyerRequest","endDate","state","IsEligibleForActions","BuyerRequestState","InProgress","AwaitingResponses","AwaitingApproval","rejectDialog","closeEditRequestDialog","deleteRequest","endRequest","awaitingApprovalRequest","remindAll","requestApproval","SuperAdminQuickQuotes","loadQuickQuote","BuyerRequestsApiService","deleteBuyerRequest","replace","endBuyerRequest","awaitingApprovalBuyerRequest","sendReminderToSuppliers","personContactIds","sendToAll","IsApproved","approveOrRejectBuyerRequest","getQuickQuote","checkIfApproverExist","Ended","Approved","Rejected","isAccountApprover","buyerId","QuickQuoteForm","BuyerRequestStateChip","StartEndDate","VDivider","approvalRequestLoading","approvalRequest","requestStatus","currentRequestStatus","RequestStatus","ApprovalRequestStatusEnum","cancelRequest","RequestBase","ApprovalRequestState","ApprovalRequestBaseStatus","loadApprovalRequest","ApprovalRequestsApiService","getApprovalRequest","rejectedCount","approvedCount","totalCount","sendReminderToApprovers","cancelApprovalRequest","location","reload","ApprovalRequestStateChip","ApprovalRequestBaseStatusChip","QuickQuotes","formattedStartDate","formattedEndDate","onStartDateChange","newVal","formatDateString","onEndDateChange","Watch"],"mappings":"2GAAA,yBAAgjB,EAAG,G,6DCAnjB,yBAAmlB,EAAG,G,6FCAtlB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAAEN,EAAmB,gBAAEI,EAAG,kBAAkBJ,EAAIO,MAAOP,EAAIQ,iBAAmBR,EAAIS,SAAU,CAACL,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACM,YAAY,iCAAiC,CAACN,EAAG,KAAK,CAACJ,EAAIW,GAAGX,EAAIY,GAAGZ,EAAIS,SAASI,UAAUT,EAAG,MAAM,CAACM,YAAY,wBAAwB,CAACN,EAAG,MAAM,CAACM,YAAY,wBAAwB,CAACN,EAAG,MAAM,CAACM,YAAY,oBAAoB,CAACV,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIc,GAAG,wCAAwC,OAAOV,EAAG,MAAM,GAAG,CAACJ,EAAIW,GAAGX,EAAIY,GAAGZ,EAAIS,SAASM,qBAAqBC,kBAAkBZ,EAAG,MAAM,CAACM,YAAY,wBAAwB,CAACN,EAAG,MAAM,CAACM,YAAY,wBAAwB,CAACN,EAAG,MAAM,CAACM,YAAY,oBAAoB,CAACV,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIc,GAAG,6CAA6C,OAAOV,EAAG,MAAM,GAAG,CAACJ,EAAIW,GAAGX,EAAIY,GAAGZ,EAAIS,SAASM,qBAAqBE,uBAAu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A1CC,c,oBAIQ,KAAAsO,mBAAqB,GACrB,KAAAC,iBAAmB,GAECC,kBAAkBC,GAC5CpT,KAAKiT,mBAAqBrH,OAAYyH,iBAAiBrT,KAAKe,WAGpCuS,gBAAgBF,GACxCpT,KAAKkT,iBAAmBtH,OAAYyH,iBAAiBrT,KAAKqP,SAG3D/J,UACCtF,KAAKiT,mBAAqBrH,OAAYyH,iBAAiBrT,KAAKe,WAC5Df,KAAKkT,iBAAmBtH,OAAYyH,iBAAiBrT,KAAKqP,WAhBnD1H,gBAAPC,kBAAM,gCACCD,gBAAPC,kBAAM,8BAKaD,gBAAnB4L,eAAM,cAAY,sCAID5L,gBAAjB4L,eAAM,YAAU,oCAXG/B,EAAY,gBAHhC3J,eAAU,CACVC,WAAY,MAEQ0J,WCpBkX,I,wBCQnYxJ,EAAY,eACd,EACAlI,EACAwD,GACA,EACA,KACA,KACA,MAIa,OAAA0E,E","file":"js/request.dfb5f57f.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractRenewelForm.vue?vue&type=style&index=0&id=3cf691e2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractRenewelForm.vue?vue&type=style&index=0&id=3cf691e2&lang=scss&scoped=true&\"","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=style&index=0&id=8f0dbaf6&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=style&index=0&id=8f0dbaf6&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.contractLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.contractLoading && _vm.contract)?[_c('v-row',[_c('v-col',{staticClass:\"d-flex align-center flex-wrap\"},[_c('h1',[_vm._v(_vm._s(_vm.contract.title))]),_c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-16\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsBasePage.StartDate'))+\" \")]),_c('div',{},[_vm._v(_vm._s(_vm.contract.latestLinkedContract.startDate))])])]),_c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-16\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RequestsBasePage.ExpirationDate'))+\" \")]),_c('div',{},[_vm._v(_vm._s(_vm.contract.latestLinkedContract.expirationDate))])])]),_c('div',{staticClass:\"header-details pl-16\"},[_c('ContractBaseStatusChip',{attrs:{\"state\":_vm.contract.latestLinkedContract.status}})],1),_c('v-spacer'),_c('v-menu',{staticClass:\"d-print-none\",attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"d-print-none\",attrs:{\"color\":\"blue-grey darken-1\",\"large\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"depressed\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" \"+_vm._s(_vm.$t('ApprovalRequestsPage.actions'))+\" \"),_c('v-icon',[_vm._v(\"ri-arrow-down-s-fill\")])],1)]}}],null,false,1452485164)},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":_vm.openEditContractDialog}},[_c('v-list-item-icon',{staticStyle:{\"margin-right\":\"1rem\"}},[_c('v-icon',{attrs:{\"color\":\"#4879c4\"},domProps:{\"textContent\":_vm._s('ri-edit-2-fill')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('Contract.RequestsBasePage.edit')))])],1),_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":_vm.openRenewContractDialog}},[_c('v-list-item-icon',{staticStyle:{\"margin-right\":\"1rem\"}},[_c('v-icon',{attrs:{\"color\":\"green\"},domProps:{\"textContent\":_vm._s('ri-secure-payment-fill')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('Contract.RequestsBasePage.renew')))])],1),_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":_vm.openArchiveContractDialog}},[_c('v-list-item-icon',{staticStyle:{\"margin-right\":\"1rem\"}},[_c('v-icon',{attrs:{\"color\":\"yellow\"},domProps:{\"textContent\":_vm._s('ri-archive-fill')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('Contract.RequestsBasePage.archive')))])],1),_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":_vm.openDeleteContractDialog}},[_c('v-list-item-icon',{staticStyle:{\"margin-right\":\"1rem\"}},[_c('v-icon',{attrs:{\"color\":\"red\"},domProps:{\"textContent\":_vm._s('ri-delete-bin-5-fill')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('Contract.RequestsBasePage.delete')))])],1)],1)],1)],1)],1),_c('v-dialog',{attrs:{\"width\":\"600\"},on:{\"click:outside\":function($event){return _vm.closeRenewContractDialog()}},model:{value:(_vm.renewContractDialog),callback:function ($$v) {_vm.renewContractDialog=$$v},expression:\"renewContractDialog\"}},[_c('ContractRenewelForm',{attrs:{\"cancel\":_vm.closeRenewContractDialog,\"onSaved\":_vm.onSaved,\"contractId\":_vm.contract.id}})],1),_c('v-dialog',{attrs:{\"width\":\"700\"},on:{\"click:outside\":function($event){return _vm.closeEditContractDialog()}},model:{value:(_vm.editContractDialog),callback:function ($$v) {_vm.editContractDialog=$$v},expression:\"editContractDialog\"}},[_c('ContractEditForm',{attrs:{\"cancel\":_vm.closeEditContractDialog,\"onSaved\":_vm.onSaved,\"contractId\":_vm.contract.id,\"title\":_vm.contract.title,\"summary\":_vm.contract.summary,\"selectedCategory\":_vm.selectedCategory,\"selectedCompany\":_vm.selectedCompany}})],1),_c('v-dialog',{attrs:{\"width\":\"600\"},on:{\"click:outside\":function($event){return _vm.closeArchiveContractDialog()}},model:{value:(_vm.archiveContractDialog),callback:function ($$v) {_vm.archiveContractDialog=$$v},expression:\"archiveContractDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('Contract.ArchiveContractDialog.actionText'),\"color\":'yellow',\"header\":_vm.$t('Contract.ArchiveContractDialog.header'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('Contract.ArchiveContractDialog.cancelText'),\"action\":function () { return _vm.archiveContract(); },\"message\":_vm.$t('Contract.ArchiveContractDialog.message'),\"cancelAction\":function () { return (_vm.archiveContractDialog = false); }}})],1),_c('v-dialog',{attrs:{\"width\":\"600\"},on:{\"click:outside\":function($event){return _vm.closeDeleteContractDialog()}},model:{value:(_vm.deleteContractDialog),callback:function ($$v) {_vm.deleteContractDialog=$$v},expression:\"deleteContractDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('Contract.DeleteContractDialog.actionText'),\"color\":'error',\"header\":_vm.$t('Contract.DeleteContractDialog.header'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('Contract.DeleteContractDialog.cancelText'),\"action\":function () { return _vm.deleteContract(); },\"message\":_vm.$t('Contract.DeleteContractDialog.message'),\"cancelAction\":function () { return (_vm.deleteContractDialog = false); }}})],1),_c('v-tabs',{staticClass:\"d-print-none\",attrs:{\"showArrows\":true}},[_c('v-tab',{attrs:{\"to\":'/contracts/' + _vm.contract.id + '/responses',\"exact\":\"\"}},[_vm._v(_vm._s(_vm.$t('Contract.RequestsBasePage.Details')))])],1),_c('div',{staticClass:\"header-divider mt-0\"}),_c('router-view',{attrs:{\"contract\":_vm.contract,\"buyerDetails\":_vm.buyerDetails}})]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[_c('v-card-title',[_c('h2',[_vm._v(_vm._s(_vm.$t('Contract.RenewContractForm.RenewContract')))])]),_c('v-card-text',[_c('v-autocomplete',{attrs:{\"items\":_vm.team,\"placeholder\":_vm.$t('Contract.RenewContractForm.SelectOwner'),\"label\":_vm.$t('Contract.RenewContractForm.Owner'),\"outlined\":\"\",\"clearable\":\"\",\"rounded\":\"\",\"item-text\":\"name\",\"item-value\":\"id\",\"return-object\":\"\",\"hide-no-data\":\"\"},model:{value:(_vm.selectedOwner),callback:function ($$v) {_vm.selectedOwner=$$v},expression:\"selectedOwner\"}}),_c('v-text-field',{attrs:{\"id\":\"contractValue\",\"type\":\"number\",\"step\":\"0.1\",\"outlined\":\"\",\"rounded\":\"\",\"placeholder\":\"0.00\",\"label\":_vm.$t('Contract.RenewContractForm.ContractValue')},model:{value:(_vm.contractValue),callback:function ($$v) {_vm.contractValue=$$v},expression:\"contractValue\"}}),_c('v-datetime-picker',{attrs:{\"id\":\"startDate\",\"textFieldProps\":{ outlined: true, rounded: true },\"placeholder\":_vm.$t('Contract.RenewContractForm.SelectStartDate'),\"label\":_vm.$t('Contract.RenewContractForm.StartDate'),\"timePickerProps\":{ format: '24hr' }},scopedSlots:_vm._u([{key:\"timeIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-time-line\")])]},proxy:true},{key:\"dateIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-calendar-line\")])]},proxy:true}]),model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-datetime-picker',{attrs:{\"id\":\"expirationDate\",\"textFieldProps\":{ outlined: true, rounded: true },\"placeholder\":_vm.$t('Contract.RenewContractForm.SelectExpirationDate'),\"label\":_vm.$t('Contract.RenewContractForm.ExpirationDate'),\"timePickerProps\":{ format: '24hr' }},scopedSlots:_vm._u([{key:\"timeIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-time-line\")])]},proxy:true},{key:\"dateIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-calendar-line\")])]},proxy:true}]),model:{value:(_vm.expirationDate),callback:function ($$v) {_vm.expirationDate=$$v},expression:\"expirationDate\"}}),_c('v-datetime-picker',{attrs:{\"id\":\"reminderDate\",\"textFieldProps\":{ outlined: true, rounded: true },\"placeholder\":_vm.$t('Contract.RenewContractForm.SelectReminderDate'),\"label\":_vm.$t('Contract.RenewContractForm.ReminderDate'),\"timePickerProps\":{ format: '24hr' }},scopedSlots:_vm._u([{key:\"timeIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-time-line\")])]},proxy:true},{key:\"dateIcon\",fn:function(){return [_c('v-icon',[_vm._v(\"ri-calendar-line\")])]},proxy:true}]),model:{value:(_vm.reminderDate),callback:function ($$v) {_vm.reminderDate=$$v},expression:\"reminderDate\"}}),_c('v-row',[_c('v-col',[_c('v-row',[_c('v-col',[_c('h5',{staticClass:\"grey--text\"},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RenewContractForm.AttachFile'))+\" \")])])],1),_c('v-file-input',{attrs:{\"label\":\"Files\",\"outlined\":\"\",\"rounded\":\"\",\"show-size\":\"\",\"accept\":'.txt, .pdf, .csv, .ods, .xls, .xlsm, .xlsx, .doc, .docx, .odt, .rtf, .tex, .wpd, .odp, .pps, .ppt, .pptx, .jpg, .jpeg, .png, .gif, .webp, .tiff, .tif',\"prepend-icon\":\"ri-attachment-line\",\"multiple\":\"\"},on:{\"change\":_vm.handleFileChange},model:{value:(_vm.attachedFiles),callback:function ($$v) {_vm.attachedFiles=$$v},expression:\"attachedFiles\"}})],1),_c('v-col',{staticClass:\"align-center\"},[_c('v-btn',{staticStyle:{\"margin-bottom\":\"15px\"},attrs:{\"type\":\"button\",\"color\":\"primary\",\"depressed\":\"\",\"rounded\":\"\",\"medium\":\"\"},on:{\"click\":_vm.openFileSelection}},[_vm._v(\" \"+_vm._s(_vm.$t('Contract.RenewContractForm.AddMoreFiles'))+\" \")]),_c('input',{ref:\"fileInput\",staticStyle:{\"display\":\"none\"},attrs:{\"type\":\"file\",\"accept\":\".txt, .pdf, .csv, .ods, .xls, .xlsm, .xlsx, .doc, .docx, .odt, .rtf, .tex, .wpd, .odp, .pps, .ppt, .pptx, .jpg, .jpeg, .png, .gif, .webp, .tiff, .tif\",\"multiple\":\"\"},on:{\"change\":function($event){return _vm.addMoreFiles($event.target.files)}}})],1)],1)],1),_c('v-card-actions',[_c('v-btn',{attrs:{\"rounded\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(_vm._s(_vm.$t('Contract.RenewContractForm.Cancel')))]),_c('v-spacer'),_c('v-btn',{attrs:{\"loading\":_vm.saving,\"color\":\"primary\",\"rounded\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(_vm._s(_vm.$t('Contract.RenewContractForm.Save')))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\nimport Toast from '@/services/toast.service';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport { TeamMember } from '@/models/teamMember';\r\nimport TeamApiService from '@/api/team.api';\r\nimport { RenewContract } from '@/api/contracts.api';\r\nimport ContractApiService from '@/api/contracts.api';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { ConfirmDialog }\r\n})\r\nexport default class ContractRenewelForm extends Vue {\r\n\r\n\t@Prop() public cancel!: any;\r\n\t@Prop() public onSaved!: any;\r\n\t@Prop() public contractId!: any;\r\n\r\n\tpublic name = '';\r\n\tpublic expirationDate: Date | null = null;\r\n\tpublic startDate: Date | null = null;\r\n\tpublic reminderDate: Date | null = null;\r\n\tpublic minimumDate: Date = new Date();\r\n\tpublic team: TeamMember[] = [];\r\n\tpublic teamFoundAutocomplete: any[] = [];\r\n\tpublic selectedOwner: TeamMember | null = null;\r\n\tpublic attachedFiles: File[] = [];\r\n\tpublic renewContract: RenewContract | null = null;\r\n\tpublic teamLoading = false;\r\n\tpublic contractValue = 0.00.toFixed(2);\r\n\tpublic timerId = 0;\r\n\tpublic email = '';\r\n\tpublic approver = {\r\n\t\tname: '',\r\n\t\temail: ''\r\n\t};\r\n\r\n\tpublic saving = false;\r\n\r\n\tcreated() {\r\n\t\tthis.minDate();\r\n\t\tthis.getTeam();\r\n\t}\r\n\r\n\tpublic renewContractRequest() {\r\n\t\tif (!this.selectedOwner) {\r\n\t\t\tToast.error(this.$t('Contract.RenewContractForm.OwnerMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif (!this.contractValue) {\r\n\t\t\tToast.error(\r\n\t\t\t\tthis.$t('Contract.CreateContractPage.ContractValueMandatory').toString()\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.startDate) {\r\n\t\t\tToast.error(this.$t('Contract.RenewContractForm.StartDateMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.expirationDate) {\r\n\t\t\tToast.error(this.$t('Contract.RenewContractForm.ExpirationDateMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.reminderDate) {\r\n\t\t\tToast.error(this.$t('Contract.RenewContractForm.ReminderDateMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (this.attachedFiles.length <= 0) {\r\n\t\t\tToast.error(this.$t('Contract.RenewContractForm.FileMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (this.startDate >= this.expirationDate) {\r\n\t\t\tToast.error(\r\n\t\t\t\tthis.$t(\r\n\t\t\t\t\t'Contract.RenewContractForm.StartDateGreaterThanExpiration'\r\n\t\t\t\t).toString()\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (this.reminderDate >= this.expirationDate) {\r\n\t\t\tToast.error(\r\n\t\t\t\tthis.$t(\r\n\t\t\t\t\t'Contract.RenewContractForm.ReminderDateGreaterThanExpiration'\r\n\t\t\t\t).toString()\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.saving = true;\r\n\t\tContractApiService.renewContract({\r\n\t\t\tId: this.contractId,\r\n\t\t\tExpirationDate: this.expirationDate,\r\n\t\t\tStartDate: this.startDate,\r\n\t\t\tReminderDate: this.reminderDate,\r\n\t\t\tattachedFiles: this.attachedFiles as File[],\r\n\t\t\tOwner: this.selectedOwner,\r\n\t\t\tContractValue: Number(this.contractValue)\r\n\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tthis.cancel();\r\n\t\t\t\tthis.onSaved();\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.saving = false;\r\n\t\t\t});\r\n\t}\r\n\tpublic getTeam() {\r\n\t\tthis.teamLoading = true;\r\n\t\tTeamApiService.getTeam()\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.team = res.team;\r\n\t\t\t\tif (this.team != null && this.team.length > 0)\r\n\t\t\t\t\tthis.selectedOwner = this.team[0];\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.teamLoading = false;\r\n\t\t\t});\r\n\t}\r\n\tpublic minDate() {\r\n\t\tconst today = new Date();\r\n\t\tconst tomorrow = new Date(today);\r\n\t\ttomorrow.setDate(tomorrow.getDate() + 1);\r\n\t\tthis.expirationDate = tomorrow;\r\n\t\tthis.startDate = today;\r\n\t\tthis.reminderDate = tomorrow;\r\n\t\tthis.minimumDate.setDate(tomorrow.getDate() + 1);\r\n\t}\r\n\tpublic save() {\r\n\t\tthis.renewContractRequest();\r\n\t}\r\n\r\n\tpublic handleFileChange(files: FileList | null) {\r\n    \tif (files) {\r\n    \t    const newFiles = Array.from(files).filter(file => !this.attachedFiles.includes(file));\r\n    \t    this.attachedFiles.push(...newFiles);\r\n    \t}\r\n\t}\r\n\r\n\tpublic openFileSelection() {\r\n    \t// Programmatically trigger file input click\r\n    \tconst fileInput = this.$refs.fileInput as HTMLInputElement | undefined;\r\n    \tif (fileInput) {\r\n    \t    fileInput.click();\r\n    \t}\r\n\t}\r\n\r\n\tpublic addMoreFiles(files: FileList | null) {\r\n    \tif (files) {\r\n    \t    const newFiles = Array.from(files);\r\n    \t    this.attachedFiles = [...this.attachedFiles, ...newFiles];\r\n    \t}\r\n\t}\r\n\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractRenewelForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractRenewelForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContractRenewelForm.vue?vue&type=template&id=3cf691e2&scoped=true&\"\nimport script from \"./ContractRenewelForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContractRenewelForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ContractRenewelForm.vue?vue&type=style&index=0&id=3cf691e2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"3cf691e2\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAutocomplete,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VFileInput,VIcon,VRow,VSpacer,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[_c('v-card-title',[_c('h2',[_vm._v(_vm._s(_vm.$t('Contract.EditContractForm.EditContract')))])]),_c('v-card-text',[_c('v-col',{attrs:{\"md\":\"12\"}},[_c('v-row',[_c('v-text-field',{attrs:{\"id\":\"title\",\"outlined\":\"\",\"rounded\":\"\",\"type\":\"text\",\"placeholder\":_vm.$t('Contract.EditContractForm.Title'),\"label\":_vm.$t('Contract.EditContractForm.Title')},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}})],1),_c('v-row',[_c('v-col',[_c('v-autocomplete',{attrs:{\"items\":_vm.categories,\"placeholder\":_vm.$t('Contract.CreateContractPage.EnterCategory'),\"label\":_vm.$t('Contract.CreateContractPage.Category'),\"outlined\":\"\",\"clearable\":\"\",\"rounded\":\"\",\"item-text\":\"name\",\"item-value\":\"id\",\"return-object\":\"\",\"hide-no-data\":\"\"},model:{value:(_vm.selectedCategory),callback:function ($$v) {_vm.selectedCategory=$$v},expression:\"selectedCategory\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-autocomplete',{attrs:{\"items\":_vm.companies,\"placeholder\":_vm.$t('Contract.CreateContractPage.SelectSupplier'),\"label\":_vm.$t('Contract.CreateContractPage.Supplier'),\"outlined\":\"\",\"clearable\":\"\",\"rounded\":\"\",\"item-text\":\"name\",\"item-value\":\"id\",\"return-object\":\"\",\"hide-no-data\":\"\"},model:{value:(_vm.selectedCompany),callback:function ($$v) {_vm.selectedCompany=$$v},expression:\"selectedCompany\"}})],1)],1),_c('v-row',[_c('v-textarea',{attrs:{\"id\":\"summary\",\"outlined\":\"\",\"rounded\":\"\",\"type\":\"text\",\"placeholder\":_vm.$t('Contract.EditContractForm.Summary'),\"label\":_vm.$t('Contract.EditContractForm.Summary')},model:{value:(_vm.summary),callback:function ($$v) {_vm.summary=$$v},expression:\"summary\"}})],1)],1)],1),_c('v-card-actions',[_c('v-btn',{attrs:{\"rounded\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(_vm._s(_vm.$t('Contract.EditContractForm.Cancel')))]),_c('v-spacer'),_c('v-btn',{attrs:{\"loading\":_vm.saving,\"color\":\"primary\",\"rounded\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(_vm._s(_vm.$t('Contract.EditContractForm.Save')))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport Toast from '@/services/toast.service';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport ContractApiService from '@/api/contracts.api';\r\nimport { Category } from '@/models/category';\r\nimport CategoryApiService from '@/api/category.api';\r\nimport { CategoryType } from '@/models/enums/categoryType';\r\nimport ContactsApiService from '@/api/contacts.api';\r\nimport { Company } from '@/models/company';\r\nimport { el } from 'date-fns/locale';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: { ConfirmDialog }\r\n})\r\nexport default class ContractEditForm extends Vue {\r\n\r\n\t@Prop() public cancel!: any;\r\n\t@Prop() public onSaved!: any;\r\n\t@Prop() public contractId!: any;\r\n\t@Prop() public title!: any;\r\n\t@Prop() public summary!: any;\r\n\t// @Prop() public categoryId!: string;\r\n\t// @Prop() public companyId!: string;\r\n\t@Prop() public selectedCategory!: Category;\r\n\t@Prop() public selectedCompany!: Company;\r\n\r\n\r\n\tpublic created() {\r\n\t\tthis.getAllCategories();\r\n\t\tthis.getCompanies();\r\n\t}\r\n\tpublic saving = false;\r\n\t//public selectedCategory!: Category;\r\n\tpublic categories: Category[] = [];\r\n\tpublic categoriesLoading = false;\r\n\tpublic companiesLoading = false;\r\n\t//public selectedCompany!: Company;\r\n\tpublic companies: Company[] = [];\r\n\tpublic addCategoryDialog = false;\r\n\tpublic categoryType = CategoryType;\r\n\tpublic searchText = '';\r\n\r\n\tpublic editContractRequest() {\r\n\t\tif (!this.title) {\r\n\t\t\tToast.error(this.$t('Contract.EditContractForm.TitleMandatory').toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.selectedCategory) {\r\n\t\t\tToast.error(\r\n\t\t\t\tthis.$t('Contract.CreateContractPage.CategoryMandatory').toString()\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.selectedCompany) {\r\n\t\t\tToast.error(\r\n\t\t\t\tthis.$t('Contract.CreateContractPage.SupplierMandatory').toString()\r\n\t\t\t);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.saving = true;\r\n\t\tContractApiService.editContract({\r\n\t\t\tId: this.contractId,\r\n\t\t\tTitle: this.title,\r\n\t\t\tSummary: this.summary,\r\n\t\t\tCategory: this.selectedCategory,\r\n\t\t\tCompany: this.selectedCompany\r\n\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tthis.cancel();\r\n\t\t\t\tthis.onSaved();\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.saving = false;\r\n\t\t\t});\r\n\t}\r\n\tpublic save() {\r\n\t\tthis.editContractRequest();\r\n\t}\r\n\tpublic getAllCategories() {\r\n\r\n\t\tthis.categoriesLoading = true;\r\n\t\tCategoryApiService.getAllCategories(CategoryType.Contract, this.searchText)\r\n\t\t\t.then((res) => {\r\n\t\t\t\tthis.categories = res.categories.map((x) => {\r\n\t\t\t\t\tconst obj = {\r\n\t\t\t\t\t\t...x,\r\n\t\t\t\t\t};\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t});\r\n\t\t\t\tif (this.categories.length > 0) {\r\n\t\t\t\t\tif (!this.selectedCategory)\r\n\t\t\t\t\t\tthis.selectedCategory = this.categories[0];\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((err) => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.categoriesLoading = false;\r\n\t\t\t});\r\n\t}\r\n\tpublic getCompanies() {\r\n\t\tthis.companiesLoading = true;\r\n\t\tContactsApiService.getCompanies()\r\n\t\t\t.then((res) => {\r\n\t\t\t\tthis.companies = res.companies.map((x) => {\r\n\t\t\t\t\tconst obj = {\r\n\t\t\t\t\t\t...x,\r\n\t\t\t\t\t};\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t});\r\n\t\t\t\tif (this.companies.length > 0) {\r\n\t\t\t\t\tif (!this.selectedCompany)\r\n\t\t\t\t\t\tthis.selectedCompany = this.companies[0];\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((err) => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tthis.companiesLoading = false;\r\n\t\t\t});\r\n\t}\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractEditForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractEditForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContractEditForm.vue?vue&type=template&id=09b343e2&scoped=true&\"\nimport script from \"./ContractEditForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContractEditForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ContractEditForm.vue?vue&type=style&index=0&id=09b343e2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"09b343e2\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\ninstallComponents(component, {VAutocomplete,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VRow,VSpacer,VTextField,VTextarea})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { GetBuyerContractOutput, LinkedContractsVM } from '@/models/contract';\r\nimport { ContractBaseStatus } from '@/models/enums/contractBaseStatus';\r\nimport ContractsApiService from '@/api/contracts.api';\r\nimport LoadingSpinner from '@/components/LoadingSpinner.vue';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport ContractBaseStatusChip from '@/components/ContractBaseStatusChip.vue';\r\nimport DateService from '@/services/date.service';\r\nimport { BuyerDetails } from '@/models/buyerDetails';\r\nimport BuyersApiService from '@/api/buyers.api';\r\nimport ContractRenewelForm from '@/components/ContractRenewelForm.vue';\r\nimport ContractEditForm from '@/components/ContractEditForm.vue';\r\nimport Toast from '@/services/toast.service';\r\nimport TeamApiService from '@/api/team.api';\r\nimport { TeamMember } from '@/models/teamMember';\r\nimport { Category } from '@/models/category';\r\nimport { Company } from '@/models/company';\r\n\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tLoadingSpinner,\r\n\t\tContractBaseStatusChip,\r\n\t\tConfirmDialog,\r\n\t\tContractRenewelForm,\r\n\t\tContractEditForm\r\n\t}\r\n})\r\nexport default class ContractRequestBase extends Vue {\r\n\tpublic buyerDetails: BuyerDetails | null = null;\r\n\tpublic contract: GetBuyerContractOutput | null = null;\r\n\tpublic contractLoading = false;\r\n\tpublic editRequestDialog = false;\r\n\tpublic deleteRequestDialog = false;\r\n\tpublic endRequestDialog = false;\r\n\tpublic awaitingApprovalRequestDialog = false;\r\n\tpublic remindAllDialog = false;\r\n\tpublic approveDialog = false;\r\n\tpublic cancelRequestDialog = false;\r\n\tpublic isApproverExist = false;\r\n\tpublic renewContractDialog = false;\r\n\tpublic editContractDialog = false;\r\n\tpublic deleteContractDialog = false;\r\n\tpublic archiveContractDialog = false;\r\n\tpublic requestStatusEnum: ContractBaseStatus = ContractBaseStatus.Archive;\r\n\tpublic ContractStatusEnum = ContractBaseStatus;\r\n\tpublic selectedCompany!: Company;\r\n\tpublic selectedCategory!: Category;\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\r\n\tprivate requestId = '';\r\n\tcreated() {\r\n\t\tthis.requestId = this.$route.params['contractId'];\r\n\r\n\t\tBuyersApiService.getBuyerDetails().then(res => {\r\n\t\t\tthis.buyerDetails = res;\r\n\t\t});\r\n\r\n\t\tthis.loadContract();\r\n\t}\r\n\tpublic onSaved() {\r\n\t\tthis.loadContract();\r\n\t}\r\n\tprivate loadContract() {\r\n\t\tthis.contractLoading = true;\r\n\t\tContractsApiService.getContract(this.requestId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.contract = {\r\n\t\t\t\t\t...res,\r\n\t\t\t\t\tcreatedDate: DateService.formatTableDateString(res.createdDate),\r\n\t\t\t\t\tlatestLinkedContract: {\r\n\t\t\t\t\t\t...res.latestLinkedContract,\r\n\t\t\t\t\t\texpirationDate: res.latestLinkedContract.expirationDate == null || res.latestLinkedContract.expirationDate == undefined ? '--' : DateService.formatTableDateString(res.latestLinkedContract.expirationDate),\r\n\t\t\t\t\t\treminderDate: res.latestLinkedContract.reminderDate == null || res.latestLinkedContract.reminderDate == undefined ? '--' : DateService.formatTableDateString(res.latestLinkedContract.reminderDate),\r\n\t\t\t\t\t\tstartDate: res.latestLinkedContract.startDate == null || res.latestLinkedContract.startDate == undefined ? '--' : DateService.formatTableDateString(res.latestLinkedContract.startDate)\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\tthis.selectedCompany = this.contract.supplier;\r\n\t\t\t\tthis.selectedCategory = this.contract.category;\r\n\t\t\t\tif (this.contract != null && this.contract.latestLinkedContract != null && this.contract.latestLinkedContract.status != null) {\r\n\t\t\t\t\tthis.requestStatusEnum = this.contract.latestLinkedContract.status;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.contractLoading = false));\r\n\t}\r\n\r\n\tpublic deleteContract() {\r\n\t\treturn ContractsApiService.deleteContract((this.contract as GetBuyerContractOutput).id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success(this.$t('Contract.DeleteContractDialog.contractDeleted').toString());\r\n\t\t\t\tthis.$router.push({ path: '/contracts/manage' });\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic archiveContract() {\r\n\t\treturn ContractsApiService.archiveContract((this.contract as GetBuyerContractOutput).id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success(this.$t('Contract.ArchiveContractDialog.contractArchived').toString());\r\n\t\t\t\tthis.$router.push({ path: '/contracts/manage' });\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic openRenewContractDialog() {\r\n\t\tthis.renewContractDialog = true;\r\n\t}\r\n\tpublic closeRenewContractDialog() {\r\n\t\tthis.renewContractDialog = false;\r\n\t}\r\n\tpublic openEditContractDialog() {\r\n\t\tthis.editContractDialog = true;\r\n\t}\r\n\tpublic closeEditContractDialog() {\r\n\t\tthis.editContractDialog = false;\r\n\t}\r\n\tpublic openDeleteContractDialog() {\r\n\t\tthis.deleteContractDialog = true;\r\n\t}\r\n\tpublic closeDeleteContractDialog() {\r\n\t\tthis.deleteContractDialog = false;\r\n\t}\r\n\tpublic openArchiveContractDialog() {\r\n\t\tthis.archiveContractDialog = true;\r\n\t}\r\n\tpublic closeArchiveContractDialog() {\r\n\t\tthis.archiveContractDialog = false;\r\n\t}\r\n\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RequestsBase.vue?vue&type=template&id=8f0dbaf6&scoped=true&\"\nimport script from \"./RequestsBase.vue?vue&type=script&lang=ts&\"\nexport * from \"./RequestsBase.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RequestsBase.vue?vue&type=style&index=0&id=8f0dbaf6&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"8f0dbaf6\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCol,VContainer,VDialog,VIcon,VList,VListItem,VListItemIcon,VListItemTitle,VMenu,VRow,VSpacer,VTab,VTabs})\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=style&index=0&id=5dc18825&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=style&index=0&id=5dc18825&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('div',[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(\"Buyer Details\")])])],1)],1),_c('div',{staticClass:\"header-divider\"}),(!_vm.redirected)?_c('router-view',{key:_vm.routerViewKey}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { Route } from 'vue-router';\r\n// import QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport AuthRedirectService from '@/services/authRedirect.service';\r\nimport {\r\n\tIS_ACCOUNT_SUPER_ADMIN\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\t// components: { QuickQuoteForm }\r\n})\r\nexport default class SuperAdminBuyerDetails extends Vue {\r\n\t@auth.Getter(IS_ACCOUNT_SUPER_ADMIN) public isSuperAdmin!: boolean;\r\n\tpublic routerViewKey = 10000;\r\n\tpublic quickQuoteFormDialogKey = 10000;\r\n\tpublic createQuickQuoteDialog = false;\r\n\tpublic quickQuoteId = '';\r\n\tpublic redirected = true;\r\n\r\n\tcreated() {\r\n\t\tAuthRedirectService.handleAuthRouteRedirect(this.isSuperAdmin).then(\r\n\t\t\tredirected => {\r\n\t\t\t\tthis.redirected = redirected;\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./buyerDetails.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./buyerDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./buyerDetails.vue?vue&type=template&id=707e7a50&scoped=true&\"\nimport script from \"./buyerDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./buyerDetails.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./buyerDetails.vue?vue&type=style&index=0&id=707e7a50&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"707e7a50\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VRow})\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuickQuotes.vue?vue&type=style&index=0&id=2605f5ae&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuickQuotes.vue?vue&type=style&index=0&id=2605f5ae&lang=scss&scoped=true&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractEditForm.vue?vue&type=style&index=0&id=09b343e2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContractEditForm.vue?vue&type=style&index=0&id=09b343e2&lang=scss&scoped=true&\"","// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n  /* @vue/component */\n  return Vue.extend({\n    name: `v-${name}`,\n\n    functional: true,\n\n    props: {\n      id: String,\n      tag: {\n        type: String,\n        default: 'div',\n      },\n    },\n\n    render (h, { props, data, children }): VNode {\n      data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n      const { attrs } = data\n      if (attrs) {\n        // reset attrs to extract utility clases like pa-3\n        data.attrs = {}\n        const classes = Object.keys(attrs).filter(key => {\n          // TODO: Remove once resolved\n          // https://github.com/vuejs/vue/issues/7841\n          if (key === 'slot') return false\n\n          const value = attrs[key]\n\n          // add back data attributes like data-test=\"foo\" but do not\n          // add them as classes\n          if (key.startsWith('data-')) {\n            data.attrs![key] = value\n            return false\n          }\n\n          return value || typeof value === 'string'\n        })\n\n        if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n      }\n\n      if (props.id) {\n        data.domProps = data.domProps || {}\n        data.domProps.id = props.id\n      }\n\n      return h(props.tag, data, children)\n    },\n  })\n}\n","import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n  name: 'v-container',\n  functional: true,\n  props: {\n    id: String,\n    tag: {\n      type: String,\n      default: 'div',\n    },\n    fluid: {\n      type: Boolean,\n      default: false,\n    },\n  },\n  render (h, { props, data, children }) {\n    let classes\n    const { attrs } = data\n    if (attrs) {\n      // reset attrs to extract utility clases like pa-3\n      data.attrs = {}\n      classes = Object.keys(attrs).filter(key => {\n        // TODO: Remove once resolved\n        // https://github.com/vuejs/vue/issues/7841\n        if (key === 'slot') return false\n\n        const value = attrs[key]\n\n        // add back data attributes like data-test=\"foo\" but do not\n        // add them as classes\n        if (key.startsWith('data-')) {\n          data.attrs![key] = value\n          return false\n        }\n\n        return value || typeof value === 'string'\n      })\n    }\n\n    if (props.id) {\n      data.domProps = data.domProps || {}\n      data.domProps.id = props.id\n    }\n\n    return h(\n      props.tag,\n      mergeData(data, {\n        staticClass: 'container',\n        class: Array<any>({\n          'container--fluid': props.fluid,\n        }).concat(classes || []),\n      }),\n      children\n    )\n  },\n})\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StartEndDate.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StartEndDate.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.buyerRequestLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.buyerRequestLoading && _vm.buyerRequest)?[_c('v-row',[_c('v-col',{staticClass:\"d-flex align-center flex-wrap\"},[_c('h1',[_vm._v(_vm._s(_vm.buyerRequest.name))]),_c('StartEndDate',{attrs:{\"startDate\":_vm.buyerRequest.startDate,\"endDate\":_vm.buyerRequest.endDate}}),_c('div',{staticClass:\"header-details pl-8\"},[_c('BuyerRequestStateChip',{attrs:{\"state\":_vm.buyerRequest.state}})],1),_c('v-spacer'),(_vm.IsEligibleForActions())?_c('v-menu',{staticClass:\"d-print-none\",attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"d-print-none\",attrs:{\"color\":\"blue-grey darken-1\",\"large\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"depressed\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" Actions \"),_c('v-icon',[_vm._v(\"ri-arrow-down-s-fill\")])],1)]}}],null,false,3650200776)},[_c('v-list',[(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.editRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-edit-box-line')}})],1),_c('v-list-item-title',[_vm._v(\"Edit\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses && !_vm.isApproverExist)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.endRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',[_vm._v(\"mdi-check\")])],1),_c('v-list-item-title',[_vm._v(\"End\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses && _vm.isApproverExist)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.awaitingApprovalRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-checkbox-circle-line')}})],1),_c('v-list-item-title',[_vm._v(\"Request Approval\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.remindAllDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-mail-send-line')}})],1),_c('v-list-item-title',[_vm._v(\"Remind All\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingApproval)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.approveDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{staticStyle:{\"color\":\"#14CC60\"}},[_vm._v(\"mdi-check\")])],1),_c('v-list-item-title',[_vm._v(\"Approve\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingApproval)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.rejectDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"mdi-close\")])],1),_c('v-list-item-title',[_vm._v(\"Reject\")])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-divider'):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.deleteRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{attrs:{\"color\":\"error\"},domProps:{\"textContent\":_vm._s('ri-delete-bin-5-line')}})],1),_c('v-list-item-title',[_vm._v(\"Delete\")])],1):_vm._e()],1)],1):_vm._e()],1)],1),_c('v-tabs',{staticClass:\"d-print-none\",attrs:{\"showArrows\":true}},[(_vm.buyerRequest.state !== _vm.BuyerRequestState.InProgress)?_c('v-tab',{attrs:{\"to\":'/requests/' + _vm.buyerRequest.id + '/responses',\"exact\":\"\"}},[_vm._v(\"Responses\")]):_vm._e(),_c('v-tab',{attrs:{\"to\":'/requests/' + _vm.buyerRequest.id + '/details',\"exact\":\"\"}},[_vm._v(\"Quotation Details\")])],1),_c('div',{staticClass:\"header-divider mt-0\"}),_c('router-view',{attrs:{\"buyerRequest\":_vm.buyerRequest,\"buyerDetails\":_vm.buyerDetails}})]:_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"persistent\":\"\",\"fullscreen\":\"\"},on:{\"click:outside\":function($event){return _vm.closeEditRequestDialog()}},model:{value:(_vm.editRequestDialog),callback:function ($$v) {_vm.editRequestDialog=$$v},expression:\"editRequestDialog\"}},[_c('QuickQuoteForm',{attrs:{\"quickQuoteId\":_vm.buyerRequest.id,\"cancel\":_vm.closeEditRequestDialog,\"onSaved\":_vm.onSaved}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.deleteRequestDialog),callback:function ($$v) {_vm.deleteRequestDialog=$$v},expression:\"deleteRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'Delete',\"color\":'error',\"header\":'Delete Request',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.deleteRequest(); },\"message\":'Are you sure you want to delete this request?',\"cancelAction\":function () { return (_vm.deleteRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.endRequestDialog),callback:function ($$v) {_vm.endRequestDialog=$$v},expression:\"endRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'End',\"color\":'primary',\"header\":'End Quotation Request',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.endRequest(); },\"message\":'Are you sure you want to end this request? Suppliers will no longer be able to submit quotations, as you are closing the event before the original final deadline submission.',\"cancelAction\":function () { return (_vm.endRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.awaitingApprovalRequestDialog),callback:function ($$v) {_vm.awaitingApprovalRequestDialog=$$v},expression:\"awaitingApprovalRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'Request Approval',\"color\":'primary',\"header\":'Request to approve',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.awaitingApprovalRequest(); },\"message\":'Are you sure you want to request the approval? Suppliers will no longer be able to submit quotations, as you are closing the event before the original final deadline submission.',\"cancelAction\":function () { return (_vm.awaitingApprovalRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.remindAllDialog),callback:function ($$v) {_vm.remindAllDialog=$$v},expression:\"remindAllDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'Remind all',\"color\":'primary',\"header\":'Send Reminders',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.remindAll(); },\"message\":'Are you sure you want to remind all suppliers about this request?',\"cancelAction\":function () { return (_vm.remindAllDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.approveDialog),callback:function ($$v) {_vm.approveDialog=$$v},expression:\"approveDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'Approve',\"color\":'primary',\"header\":'Approve Request',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.requestApproval(true); },\"message\":'Are you sure you want to approve this request?',\"cancelAction\":function () { return (_vm.approveDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.rejectDialog),callback:function ($$v) {_vm.rejectDialog=$$v},expression:\"rejectDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":'Reject',\"color\":'error',\"header\":'Reject Request',\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":'Cancel',\"action\":function () { return _vm.requestApproval(false); },\"message\":'Are you sure you want to reject this request?',\"cancelAction\":function () { return (_vm.rejectDialog = false); }}})],1):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { QuickQuote } from '@/models/quickQuote';\r\nimport { BuyerRequestState } from '@/models/enums/buyerRequestState';\r\nimport BuyerRequestsApiService from '@/api/buyerRequests.api';\r\nimport { BuyerRequest } from '@/models/buyerRequest';\r\nimport LoadingSpinner from '@/components/LoadingSpinner.vue';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport StartEndDate from '@/components/StartEndDate.vue';\r\nimport BuyerRequestStateChip from '@/components/BuyerRequestStateChip.vue';\r\nimport QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport DateService from '@/services/date.service';\r\nimport Toast from '@/services/toast.service';\r\nimport { BuyerDetails } from '@/models/buyerDetails';\r\nimport BuyersApiService from '@/api/buyers.api';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tLoadingSpinner,\r\n\t\tQuickQuoteForm,\r\n\t\tBuyerRequestStateChip,\r\n\t\tConfirmDialog,\r\n\t\tStartEndDate\r\n\t}\r\n})\r\nexport default class SuperAdminQuickQuotes extends Vue {\r\n\tpublic buyerDetails: BuyerDetails | null = null;\r\n\tpublic BuyerRequestState = BuyerRequestState;\r\n\tpublic buyerRequest: QuickQuote | null = null;\r\n\tpublic buyerRequestLoading = false;\r\n\tpublic editRequestDialog = false;\r\n\tpublic deleteRequestDialog = false;\r\n\tpublic endRequestDialog = false;\r\n\tpublic awaitingApprovalRequestDialog = false;\r\n\tpublic remindAllDialog = false;\r\n\tpublic approveDialog = false;\r\n\tpublic rejectDialog = false;\r\n\tpublic isApproverExist = false;\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\r\n\tprivate requestId = '';\r\n\tcreated() {\r\n\t\tthis.requestId = this.$route.params['buyerRequestId'];\r\n\r\n\t\tBuyersApiService.getBuyerDetails().then(res => {\r\n\t\t\tthis.buyerDetails = res;\r\n\t\t});\r\n\r\n\t\tthis.loadQuickQuote();\r\n\t}\r\n\r\n\tpublic deleteRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.deleteBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.$router.replace('/requests');\r\n\t\t\t\tToast.success('Deleted');\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic endRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.endBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tToast.success('Request Ended');\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\tpublic awaitingApprovalRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.awaitingApprovalBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tToast.success('Requested for approval');\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic remindAll() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.sendReminderToSuppliers(this.buyerRequest.id, {\r\n\t\t\tpersonContactIds: [],\r\n\t\t\tsendToAll: true\r\n\t\t})\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success('Reminders sent');\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic closeEditRequestDialog() {\r\n\t\tthis.loadQuickQuote();\r\n\t\tthis.editRequestDialog = false;\r\n\t}\r\n\r\n\tpublic onSaved() {\r\n\t\tthis.loadQuickQuote();\r\n\t}\r\n\r\n\tpublic requestApproval(IsApproved) {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.approveOrRejectBuyerRequest(this.buyerRequest.id,IsApproved)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tif(IsApproved){\r\n\t\t\t\t\tToast.success('Approved Successfully');\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.error('Rejected Successfully');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\tprivate loadQuickQuote() {\r\n\t\tthis.buyerRequestLoading = true;\r\n\t\tBuyerRequestsApiService.getQuickQuote(this.requestId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.buyerRequest = { ...res };\r\n\t\t\t\tthis.checkIfApproverExist();\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.buyerRequestLoading = false));\r\n\t}\r\n\r\n\tpublic IsEligibleForActions(){\r\n\t\tif(this.buyerRequest){\r\n\t\t\tif(this.buyerRequest.state == BuyerRequestState.Ended || \r\n\t\t\tthis.buyerRequest.state == BuyerRequestState.Approved || \r\n\t\t\tthis.buyerRequest.state == BuyerRequestState.Rejected ||\r\n\t\t\t//No one else of approver can approve or reject\r\n\t\t\t(this.buyerRequest.state == BuyerRequestState.AwaitingApproval &&\r\n\t\t\t!this.isAccountApprover)||\r\n\t\t\t//Approver can not perform any other action else of approve or reject\r\n\t\t\t(this.buyerRequest.state !== BuyerRequestState.AwaitingApproval &&\r\n\t\t\tthis.isAccountApprover)\r\n\t\t\t)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tprivate checkIfApproverExist() {\r\n\t\tthis.buyerRequestLoading = true;\r\n\t\tif(this.buyerDetails!=null && this.buyerDetails!=undefined)\r\n\t\tBuyersApiService.isApproverExist(this.buyerDetails.buyerId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.isApproverExist = res.isApproverExist;\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.buyerRequestLoading = false));\r\n\t}\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SuperAdminQuickQuotes.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SuperAdminQuickQuotes.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SuperAdminQuickQuotes.vue?vue&type=template&id=7640e832&scoped=true&\"\nimport script from \"./SuperAdminQuickQuotes.vue?vue&type=script&lang=ts&\"\nexport * from \"./SuperAdminQuickQuotes.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SuperAdminQuickQuotes.vue?vue&type=style&index=0&id=7640e832&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"7640e832\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCol,VContainer,VDialog,VDivider,VIcon,VList,VListItem,VListItemIcon,VListItemTitle,VMenu,VRow,VSpacer,VTab,VTabs})\n","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SuperAdminQuickQuotes.vue?vue&type=style&index=0&id=7640e832&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SuperAdminQuickQuotes.vue?vue&type=style&index=0&id=7640e832&lang=scss&scoped=true&\"","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./buyerDetails.vue?vue&type=style&index=0&id=707e7a50&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./buyerDetails.vue?vue&type=style&index=0&id=707e7a50&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.approvalRequestLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.approvalRequestLoading && _vm.approvalRequest)?[_c('v-row',[_c('v-col',{staticClass:\"d-flex align-center flex-wrap\"},[_c('h1',[_vm._v(_vm._s(_vm.approvalRequest.title))]),_c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-16\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.CreatedDate')))]),_c('div',{},[_vm._v(_vm._s(_vm.approvalRequest.createdDate))])])]),_c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-16\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.ExpirationDate')))]),_c('div',{},[_vm._v(_vm._s(_vm.approvalRequest.expirationDate))])])]),_c('div',{staticClass:\"header-details pl-16\"},[_c('ApprovalRequestBaseStatusChip',{attrs:{\"state\":_vm.approvalRequest.requestStatus}})],1),_c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-16\"},[_c('div',[_c('h3',{staticStyle:{\"color\":\"#4879c4\"}},[_c('span',{staticClass:\"mdi mdi-cog\",staticStyle:{\"margin-right\":\"0.7rem\"}}),_vm._v(_vm._s(_vm.approvalRequest.category.name))])])])]),_c('v-spacer'),(_vm.currentRequestStatus === _vm.RequestStatus.AwaitingApproval && _vm.requestStatusEnum === _vm.ApprovalRequestStatusEnum.InProgress)?_c('v-menu',{staticClass:\"d-print-none\",attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"d-print-none\",attrs:{\"color\":\"blue-grey darken-1\",\"large\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"depressed\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" \"+_vm._s(_vm.$t('ApprovalRequestsPage.actions'))+\" \"),_c('v-icon',[_vm._v(\"ri-arrow-down-s-fill\")])],1)]}}],null,false,1452485164)},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.remindAllDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-mail-send-line')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.remindAll')))])],1),_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.cancelRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"mdi-close\")])],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.cancelRequest')))])],1)],1)],1):_vm._e()],1)],1),_c('v-tabs',{staticClass:\"d-print-none\",attrs:{\"showArrows\":true}},[_c('v-tab',{attrs:{\"to\":'/approvalRequests/' + _vm.approvalRequest.id + '/responses',\"exact\":\"\"}},[_vm._v(_vm._s(_vm.$t('ApprovalRequestsPage.responses')))])],1),_c('div',{staticClass:\"header-divider mt-0\"}),_c('router-view',{attrs:{\"approvalRequest\":_vm.approvalRequest,\"buyerDetails\":_vm.buyerDetails}})]:_vm._e(),(_vm.approvalRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.remindAllDialog),callback:function ($$v) {_vm.remindAllDialog=$$v},expression:\"remindAllDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('ApprovalRequestsPage.remindAll'),\"color\":'primary',\"header\":_vm.$t('ApprovalRequestsPage.sendReminder'),\"onActionComplete\":function () {\n\t\t\t\t\t_vm.remindAllDialog = false;\n\t\t\t\t},\"cancelText\":_vm.$t('ApprovalRequestsPage.cancel'),\"action\":function () { return _vm.remindAll(); },\"message\":_vm.$t('ApprovalRequestsPage.remindAllMessage'),\"cancelAction\":function () { return (_vm.remindAllDialog = false); }}})],1):_vm._e(),(_vm.approvalRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.cancelRequestDialog),callback:function ($$v) {_vm.cancelRequestDialog=$$v},expression:\"cancelRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('ApprovalRequestsPage.cancelRequest'),\"color\":'error',\"header\":_vm.$t('ApprovalRequestsPage.cancelRequest'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('ApprovalRequestsPage.cancel'),\"action\":function () { return _vm.cancelRequest(); },\"message\":_vm.$t('ApprovalRequestsPage.cancelRequestMessage'),\"cancelAction\":function () { return (_vm.cancelRequestDialog = false); }}})],1):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { ApprovalRequestResponse } from '@/models/approvalRequest';\r\nimport { ApprovalRequestState } from '@/models/enums/approvalRequestState';\r\nimport { ApprovalRequestBaseStatus } from '@/models/enums/approvalRequestBaseStatus';\r\nimport ApprovalRequestsApiService from '@/api/approvalRequests.api';\r\nimport LoadingSpinner from '@/components/LoadingSpinner.vue';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport StartEndDate from '@/components/StartEndDate.vue';\r\nimport ApprovalRequestStateChip from '@/components/ApprovalRequestStateChip.vue';\r\nimport ApprovalRequestBaseStatusChip from '@/components/ApprovalRequestBaseStatusChip.vue';\r\nimport DateService from '@/services/date.service';\r\nimport { BuyerDetails } from '@/models/buyerDetails';\r\nimport BuyersApiService from '@/api/buyers.api';\r\nimport Toast from '@/services/toast.service';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tLoadingSpinner,\r\n\t\tApprovalRequestStateChip,\r\n\t\tApprovalRequestBaseStatusChip,\r\n\t\tConfirmDialog,\r\n\t\tStartEndDate\r\n\t}\r\n})\r\nexport default class RequestBase extends Vue {\r\n\tpublic buyerDetails: BuyerDetails | null = null;\r\n\tpublic approvalRequest: ApprovalRequestResponse | null = null;\r\n\tpublic approvalRequestLoading = false;\r\n\tpublic editRequestDialog = false;\r\n\tpublic deleteRequestDialog = false;\r\n\tpublic endRequestDialog = false;\r\n\tpublic awaitingApprovalRequestDialog = false;\r\n\tpublic remindAllDialog = false;\r\n\tpublic approveDialog = false;\r\n\tpublic cancelRequestDialog = false;\r\n\tpublic isApproverExist = false;\r\n\tpublic currentRequestStatus: ApprovalRequestState = ApprovalRequestState.AwaitingApproval;\r\n\tpublic requestStatusEnum: ApprovalRequestBaseStatus = ApprovalRequestBaseStatus.InProgress;\r\n\tpublic ApprovalRequestStatusEnum = ApprovalRequestBaseStatus;\r\n\tpublic RequestStatus = ApprovalRequestState;\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\r\n\tprivate requestId = '';\r\n\tcreated() {\r\n\t\tthis.requestId = this.$route.params['approvalRequestId'];\r\n\r\n\t\tBuyersApiService.getBuyerDetails().then(res => {\r\n\t\t\tthis.buyerDetails = res;\r\n\t\t});\r\n\r\n\t\tthis.loadApprovalRequest();\r\n\t}\r\n\r\n\tpublic onSaved() {\r\n\t\tthis.loadApprovalRequest();\r\n\t}\r\n\tprivate loadApprovalRequest() {\r\n\t\tthis.approvalRequestLoading = true;\r\n\t\tApprovalRequestsApiService.getApprovalRequest(this.requestId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.approvalRequest = { ...res,\r\n\t\t\t\t\tcreatedDate: DateService.formatTableDateString(res.createdDate),\r\n\t\t\t\t\texpirationDate: res.expirationDate==null || res.expirationDate ==  undefined? '--' :DateService.formatTableDateString(res.expirationDate)\r\n\t\t\t\t};\r\n\t\t\t\tif(this.approvalRequest.rejectedCount>0){\r\n\t\t\t\t\tthis.currentRequestStatus = ApprovalRequestState.Rejected;\r\n\t\t\t\t}\r\n\t\t\t\telse if(this.approvalRequest.approvedCount==this.approvalRequest.totalCount){\r\n\t\t\t\t\tthis.currentRequestStatus = ApprovalRequestState.Approved;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tthis.currentRequestStatus = ApprovalRequestState.AwaitingApproval;\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestStatusEnum = this.approvalRequest.requestStatus;\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.approvalRequestLoading = false));\r\n\t}\r\n\t\r\n\tpublic remindAll() {\r\n\t\tif (!this.approvalRequest) return;\r\n\t\treturn ApprovalRequestsApiService.sendReminderToApprovers(this.approvalRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success(this.$t('ApprovalRequestsPage.reminderSent').toString());\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.remindAllDialog = false));\r\n\t\t\r\n\t}\r\n\tpublic cancelRequest(){\r\n\t\tif (!this.approvalRequest) return;\r\n\t\treturn ApprovalRequestsApiService.cancelApprovalRequest(this.approvalRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success(this.$t('ApprovalRequestsPage.requestCancelled').toString());\r\n\t\t\t\tlocation.reload();\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.cancelRequestDialog = false));\r\n\t}\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RequestsBase.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RequestsBase.vue?vue&type=template&id=5dc18825&scoped=true&\"\nimport script from \"./RequestsBase.vue?vue&type=script&lang=ts&\"\nexport * from \"./RequestsBase.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RequestsBase.vue?vue&type=style&index=0&id=5dc18825&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"5dc18825\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCol,VContainer,VDialog,VIcon,VList,VListItem,VListItemIcon,VListItemTitle,VMenu,VRow,VSpacer,VTab,VTabs})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.buyerRequestLoading)?_c('LoadingSpinner'):_vm._e(),(!_vm.buyerRequestLoading && _vm.buyerRequest)?[_c('v-row',[_c('v-col',{staticClass:\"d-flex align-center flex-wrap\"},[_c('h1',[_vm._v(_vm._s(_vm.buyerRequest.name))]),_c('StartEndDate',{attrs:{\"startDate\":_vm.buyerRequest.startDate,\"endDate\":_vm.buyerRequest.endDate}}),_c('div',{staticClass:\"header-details pl-8\"},[_c('BuyerRequestStateChip',{attrs:{\"state\":_vm.buyerRequest.state}})],1),_c('v-spacer'),(_vm.IsEligibleForActions())?_c('v-menu',{staticClass:\"d-print-none\",attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"d-print-none\",attrs:{\"color\":\"blue-grey darken-1\",\"large\":\"\",\"rounded\":\"\",\"outlined\":\"\",\"depressed\":\"\"}},'v-btn',attrs,false),on),[_vm._v(\" \"+_vm._s(_vm.$t('QuickQuotes.actions'))+\" \"),_c('v-icon',[_vm._v(\"ri-arrow-down-s-fill\")])],1)]}}],null,false,3436468566)},[_c('v-list',[(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.editRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-edit-box-line')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.edit')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses && !_vm.isApproverExist)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.endRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',[_vm._v(\"mdi-check\")])],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.end')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses && _vm.isApproverExist)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.awaitingApprovalRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-checkbox-circle-line')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.requestApproval')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingResponses)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.remindAllDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{domProps:{\"textContent\":_vm._s('ri-mail-send-line')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.remindAll')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingApproval)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.approveDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{staticStyle:{\"color\":\"#14CC60\"}},[_vm._v(\"mdi-check\")])],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.approve')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.AwaitingApproval)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.rejectDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"mdi-close\")])],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.reject')))])],1):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-divider'):_vm._e(),(_vm.buyerRequest.state === _vm.BuyerRequestState.InProgress)?_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){_vm.deleteRequestDialog = true}}},[_c('v-list-item-icon',[_c('v-icon',{attrs:{\"color\":\"error\"},domProps:{\"textContent\":_vm._s('ri-delete-bin-5-line')}})],1),_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t('QuickQuotes.delete')))])],1):_vm._e()],1)],1):_vm._e()],1)],1),_c('v-tabs',{staticClass:\"d-print-none\",attrs:{\"showArrows\":true}},[(_vm.buyerRequest.state !== _vm.BuyerRequestState.InProgress)?_c('v-tab',{attrs:{\"to\":'/requests/' + _vm.buyerRequest.id + '/responses',\"exact\":\"\"}},[_vm._v(_vm._s(_vm.$t('QuickQuotes.responses')))]):_vm._e(),_c('v-tab',{attrs:{\"to\":'/requests/' + _vm.buyerRequest.id + '/details',\"exact\":\"\"}},[_vm._v(_vm._s(_vm.$t('QuickQuotes.quotationDetails')))])],1),_c('div',{staticClass:\"header-divider mt-0\"}),_c('router-view',{attrs:{\"buyerRequest\":_vm.buyerRequest,\"buyerDetails\":_vm.buyerDetails}})]:_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"persistent\":\"\",\"fullscreen\":\"\"},on:{\"click:outside\":function($event){return _vm.closeEditRequestDialog()}},model:{value:(_vm.editRequestDialog),callback:function ($$v) {_vm.editRequestDialog=$$v},expression:\"editRequestDialog\"}},[_c('QuickQuoteForm',{attrs:{\"quickQuoteId\":_vm.buyerRequest.id,\"cancel\":_vm.closeEditRequestDialog,\"onSaved\":_vm.onSaved}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.deleteRequestDialog),callback:function ($$v) {_vm.deleteRequestDialog=$$v},expression:\"deleteRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.delete'),\"color\":'error',\"header\":_vm.$t('QuickQuotes.deleteRequestHeader'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.deleteRequestHeader'),\"action\":function () { return _vm.deleteRequest(); },\"message\":_vm.$t('QuickQuotes.deleteRequestMessage'),\"cancelAction\":function () { return (_vm.deleteRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.endRequestDialog),callback:function ($$v) {_vm.endRequestDialog=$$v},expression:\"endRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.end'),\"color\":'primary',\"header\":_vm.$t('QuickQuotes.endRequestHeader'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.cancel'),\"action\":function () { return _vm.endRequest(); },\"message\":_vm.$t('QuickQuotes.endRequestMessage'),\"cancelAction\":function () { return (_vm.endRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.awaitingApprovalRequestDialog),callback:function ($$v) {_vm.awaitingApprovalRequestDialog=$$v},expression:\"awaitingApprovalRequestDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.requestApproval'),\"color\":'primary',\"header\":_vm.$t('QuickQuotes.requestToApprove'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.cancel'),\"action\":function () { return _vm.awaitingApprovalRequest(); },\"message\":_vm.$t('QuickQuotes.requestApprovalConfirmation'),\"cancelAction\":function () { return (_vm.awaitingApprovalRequestDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.remindAllDialog),callback:function ($$v) {_vm.remindAllDialog=$$v},expression:\"remindAllDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.remindAll'),\"color\":'primary',\"header\":_vm.$t('QuickQuotes.sendReminder'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.cancel'),\"action\":function () { return _vm.remindAll(); },\"message\":_vm.$t('QuickQuotes.remindAllMessage'),\"cancelAction\":function () { return (_vm.remindAllDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.approveDialog),callback:function ($$v) {_vm.approveDialog=$$v},expression:\"approveDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.approve'),\"color\":'primary',\"header\":_vm.$t('QuickQuotes.approveRequest'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.cancel'),\"action\":function () { return _vm.requestApproval(true); },\"message\":_vm.$t('QuickQuotes.approveConfirm'),\"cancelAction\":function () { return (_vm.approveDialog = false); }}})],1):_vm._e(),(_vm.buyerRequest)?_c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.rejectDialog),callback:function ($$v) {_vm.rejectDialog=$$v},expression:\"rejectDialog\"}},[_c('ConfirmDialog',{attrs:{\"actionText\":_vm.$t('QuickQuotes.reject'),\"color\":'error',\"header\":_vm.$t('QuickQuotes.rejectRequest'),\"onActionComplete\":function () {\n\t\t\t\t\t/* */\n\t\t\t\t},\"cancelText\":_vm.$t('QuickQuotes.cancel'),\"action\":function () { return _vm.requestApproval(false); },\"message\":_vm.$t('QuickQuotes.confirmReject'),\"cancelAction\":function () { return (_vm.rejectDialog = false); }}})],1):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { namespace } from 'vuex-class';\r\nimport { QuickQuote } from '@/models/quickQuote';\r\nimport { BuyerRequestState } from '@/models/enums/buyerRequestState';\r\nimport BuyerRequestsApiService from '@/api/buyerRequests.api';\r\nimport { BuyerRequest } from '@/models/buyerRequest';\r\nimport LoadingSpinner from '@/components/LoadingSpinner.vue';\r\nimport ConfirmDialog from '@/components/ConfirmDialog.vue';\r\nimport StartEndDate from '@/components/StartEndDate.vue';\r\nimport BuyerRequestStateChip from '@/components/BuyerRequestStateChip.vue';\r\nimport QuickQuoteForm from '@/views/buyerRequests/quickQuotes/QuickQuoteForm.vue';\r\nimport DateService from '@/services/date.service';\r\nimport Toast from '@/services/toast.service';\r\nimport { BuyerDetails } from '@/models/buyerDetails';\r\nimport BuyersApiService from '@/api/buyers.api';\r\nimport {\r\n\tIS_BUYER_SUBSCRIBED,\r\n\tIS_ACCOUNT_APPROVER\r\n} from '@/store/auth/getters';\r\n\r\nconst auth = namespace('auth');\r\n\r\n@Component({\r\n\tcomponents: {\r\n\t\tLoadingSpinner,\r\n\t\tQuickQuoteForm,\r\n\t\tBuyerRequestStateChip,\r\n\t\tConfirmDialog,\r\n\t\tStartEndDate\r\n\t}\r\n})\r\nexport default class QuickQuotes extends Vue {\r\n\tpublic buyerDetails: BuyerDetails | null = null;\r\n\tpublic BuyerRequestState = BuyerRequestState;\r\n\tpublic buyerRequest: QuickQuote | null = null;\r\n\tpublic buyerRequestLoading = false;\r\n\tpublic editRequestDialog = false;\r\n\tpublic deleteRequestDialog = false;\r\n\tpublic endRequestDialog = false;\r\n\tpublic awaitingApprovalRequestDialog = false;\r\n\tpublic remindAllDialog = false;\r\n\tpublic approveDialog = false;\r\n\tpublic rejectDialog = false;\r\n\tpublic isApproverExist = false;\r\n\t@auth.Getter(IS_BUYER_SUBSCRIBED) public isBuyerSubscribed!: boolean;\r\n\t@auth.Getter(IS_ACCOUNT_APPROVER) public isAccountApprover!: boolean;\r\n\r\n\tprivate requestId = '';\r\n\tcreated() {\r\n\t\tthis.requestId = this.$route.params['buyerRequestId'];\r\n\r\n\t\tBuyersApiService.getBuyerDetails().then(res => {\r\n\t\t\tthis.buyerDetails = res;\r\n\t\t});\r\n\r\n\t\tthis.loadQuickQuote();\r\n\t}\r\n\r\n\tpublic deleteRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.deleteBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.$router.replace('/requests');\r\n\t\t\t\tToast.success(this.$t('QuickQuotes.deleted').toString());\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic endRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.endBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tToast.success(this.$t('QuickQuotes.requestEnded').toString());\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\tpublic awaitingApprovalRequest() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.awaitingApprovalBuyerRequest(this.buyerRequest.id)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tToast.success('Requested for approval');\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic remindAll() {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.sendReminderToSuppliers(this.buyerRequest.id, {\r\n\t\t\tpersonContactIds: [],\r\n\t\t\tsendToAll: true\r\n\t\t})\r\n\t\t\t.then(res => {\r\n\t\t\t\tToast.success(this.$t('QuickQuotes.reminderSent').toString());\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublic closeEditRequestDialog() {\r\n\t\tthis.loadQuickQuote();\r\n\t\tthis.editRequestDialog = false;\r\n\t}\r\n\r\n\tpublic onSaved() {\r\n\t\tthis.loadQuickQuote();\r\n\t}\r\n\r\n\tpublic requestApproval(IsApproved) {\r\n\t\tif (!this.buyerRequest) return;\r\n\t\treturn BuyerRequestsApiService.approveOrRejectBuyerRequest(this.buyerRequest.id,IsApproved)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.loadQuickQuote();\r\n\t\t\t\tif(IsApproved){\r\n\t\t\t\t\tToast.success('Approved Successfully');\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.error('Rejected Successfully');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch(err => {\r\n\t\t\t\tToast.error(err);\r\n\t\t\t});\r\n\t}\r\n\tprivate loadQuickQuote() {\r\n\t\tthis.buyerRequestLoading = true;\r\n\t\tBuyerRequestsApiService.getQuickQuote(this.requestId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.buyerRequest = { ...res };\r\n\t\t\t\tthis.checkIfApproverExist();\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.buyerRequestLoading = false));\r\n\t}\r\n\r\n\tpublic IsEligibleForActions(){\r\n\t\tif(this.buyerRequest){\r\n\t\t\tif(this.buyerRequest.state == BuyerRequestState.Ended || \r\n\t\t\tthis.buyerRequest.state == BuyerRequestState.Approved || \r\n\t\t\tthis.buyerRequest.state == BuyerRequestState.Rejected ||\r\n\t\t\t//No one else of approver can approve or reject\r\n\t\t\t(this.buyerRequest.state == BuyerRequestState.AwaitingApproval &&\r\n\t\t\t!this.isAccountApprover)||\r\n\t\t\t//Approver can not perform any other action else of approve or reject\r\n\t\t\t(this.buyerRequest.state !== BuyerRequestState.AwaitingApproval &&\r\n\t\t\tthis.isAccountApprover)\r\n\t\t\t)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\tprivate checkIfApproverExist() {\r\n\t\tthis.buyerRequestLoading = true;\r\n\t\tif(this.buyerDetails!=null && this.buyerDetails!=undefined)\r\n\t\tBuyersApiService.isApproverExist(this.buyerDetails.buyerId)\r\n\t\t\t.then(res => {\r\n\t\t\t\tthis.isApproverExist = res.isApproverExist;\r\n\t\t\t})\r\n\t\t\t.finally(() => (this.buyerRequestLoading = false));\r\n\t}\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuickQuotes.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuickQuotes.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./QuickQuotes.vue?vue&type=template&id=2605f5ae&scoped=true&\"\nimport script from \"./QuickQuotes.vue?vue&type=script&lang=ts&\"\nexport * from \"./QuickQuotes.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./QuickQuotes.vue?vue&type=style&index=0&id=2605f5ae&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"2605f5ae\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCol,VContainer,VDialog,VDivider,VIcon,VList,VListItem,VListItemIcon,VListItemTitle,VMenu,VRow,VSpacer,VTab,VTabs})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"d-flex align-center \"},[_c('div',{staticClass:\"header-details pl-8\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('StartEndDate.StartDate')))]),_c('div',{},[_vm._v(_vm._s(_vm.formattedStartDate))])]),_c('div',{staticClass:\"header-details pl-8\"},[_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('StartEndDate.EndDate')))]),_c('div',{},[_vm._v(_vm._s(_vm.formattedEndDate))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport DateService from '@/services/date.service';\r\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\r\n\r\n@Component({\r\n\tcomponents: {}\r\n})\r\nexport default class StartEndDate extends Vue {\r\n\t@Prop() public startDate!: string;\r\n\t@Prop() public endDate!: string;\r\n\r\n\tpublic formattedStartDate = '';\r\n\tpublic formattedEndDate = '';\r\n\r\n\t@Watch('startDate') public onStartDateChange(newVal: number) {\r\n\t\tthis.formattedStartDate = DateService.formatDateString(this.startDate);\r\n\t}\r\n\r\n\t@Watch('endDate') public onEndDateChange(newVal: number) {\r\n\t\tthis.formattedEndDate = DateService.formatDateString(this.endDate);\r\n\t}\r\n\r\n\tcreated() {\r\n\t\tthis.formattedStartDate = DateService.formatDateString(this.startDate);\r\n\t\tthis.formattedEndDate = DateService.formatDateString(this.endDate);\r\n\t}\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StartEndDate.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StartEndDate.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StartEndDate.vue?vue&type=template&id=76fcbea8&\"\nimport script from \"./StartEndDate.vue?vue&type=script&lang=ts&\"\nexport * from \"./StartEndDate.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./StartEndDate.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}