(window.webpackJsonp=window.webpackJsonp||[]).push([[305],{"9duV":function(e,t,s){"use strict";s.r(t);var a={components:{},props:["uuid"],mounted:function(){this.uuid&&this.get()},data:function(){return{postal_record:[],attachments:[]}},methods:{get:function(){var e=this,t=this.$loading.show();axios.get("/api/postal/record/"+this.uuid).then((function(s){e.postal_record=s.postal_record,e.attachments=s.attachments,t.hide()})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))},getEmployeeName:function(e){return helper.getEmployeeName(e)},getEmployeeDesignation:function(e,t){return helper.getEmployeeDesignation(e,t)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(e){return helper.formatDateTime(e)},moment:function(e){return helper.formatDate(e)}}},r=s("KHd+"),o=Object(r.a)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("transition",{attrs:{name:"modal"}},[s("div",{staticClass:"modal-mask"},[s("div",{staticClass:"modal-wrapper"},[s("div",{staticClass:"modal-container modal-lg"},[e.postal_record.id?s("div",{staticClass:"modal-header"},[e._t("header",[s("span",[e._v("#"+e._s(e.postal_record.id)+" "+e._s(e.postal_record.reference_number))]),e._v(" "),s("span",{staticClass:"float-right pointer",on:{click:function(t){return e.$emit("close")}}},[e._v("x")])])],2):e._e(),e._v(" "),e.postal_record.id?s("div",{staticClass:"modal-body"},[e._t("body",[s("h6",{staticClass:"card-title"},[s("p",[s("strong",[e._v(e._s(e.trans("reception.postal_record_date"))+":")]),e._v(" "+e._s(e._f("moment")(e.postal_record.date)))]),e._v(" "),s("strong",[e._v(e._s(e.trans("reception.postal_record_sender"))+":")]),e._v(" "+e._s(e.postal_record.sender_title)+" "),s("br"),e._v("\n                                "+e._s(e.postal_record.sender_address)+"\n                            "),s("br"),e._v(" "),s("strong",[e._v(e._s(e.trans("reception.postal_record_receiver"))+":")]),e._v(" "+e._s(e.postal_record.receiver_title)+" "),s("br"),e._v("\n                                "+e._s(e.postal_record.receiver_address)+" \n                            "),e.postal_record.employee?s("p",{staticClass:"pull-right"},[s("strong",[e._v(e._s(e.trans("general.entry_by"))+":")]),e._v(" "+e._s(e.getEmployeeName(e.postal_record.employee))+" "+e._s(e.getEmployeeDesignation(e.postal_record.employee,e.postal_record.date))+"\n                            ")]):e._e()]),e._v(" "),s("div",{staticClass:"m-t-20",domProps:{innerHTML:e._s(e.postal_record.description)}}),e._v(" "),e.attachments.length?s("div",[s("ul",{staticClass:"m-t-10 upload-file-list"},e._l(e.attachments,(function(t){return s("li",{staticClass:"upload-file-list-item"},[s("a",{staticClass:"no-link-color",attrs:{href:"/reception/postal/record/"+e.postal_record.uuid+"/attachment/"+t.uuid+"/download?token="+e.authToken}},[s("i",{class:["file-icon","fas","fa-lg",t.file_info.icon]}),e._v(" "),s("span",{staticClass:"upload-file-list-item-size"},[e._v(e._s(t.file_info.size))]),e._v(" "+e._s(t.user_filename))])])})),0)]):e._e(),e._v(" "),s("hr"),e._v(" "),s("p",[s("i",{staticClass:"far fa-clock"}),e._v(" "),s("small",[e._v(e._s(e.trans("general.created_at"))+" "+e._s(e._f("momentDateTime")(e.postal_record.created_at)))]),e._v(" "),s("span",{staticClass:"pull-right"},[s("i",{staticClass:"far fa-clock"}),e._v(" "),s("small",[e._v(e._s(e.trans("general.updated_at"))+" "+e._s(e._f("momentDateTime")(e.postal_record.updated_at)))])])])])],2):e._e()])])])])}),[],!1,null,null,null);t.default=o.exports}}]);
//# sourceMappingURL=show.js.map?id=9031c22f8e871e440818