/home/techb158/ileadtechnology.com/SSM/public/js/configuration/reception/enquirySource
NameSizeModeActions
edit.js47730644editdlrm
edit.js.map2030644editdlrm
index.js108770644editdlrm
index.js.map1960644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/configuration/reception/enquirySource/edit.js (4773B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{YGmL:function(e,t,r){"use strict";r.r(t);var s={components:{enquirySourceForm:r("wA/B").a},data:function(){return{id:this.$route.params.id}},mounted:function(){helper.hasPermission("access-configuration")||(helper.notAccessibleMsg(),this.$router.push("/dashboard"))}},n=r("KHd+"),i=Object(n.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"page-titles"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-12 col-sm-6"},[r("h3",{staticClass:"text-themecolor"},[e._v(e._s(e.trans("reception.edit_enquiry_source")))])]),e._v(" "),r("div",{staticClass:"col-12 col-sm-6"},[r("div",{staticClass:"action-buttons pull-right"},[r("button",{staticClass:"btn btn-info btn-sm",on:{click:function(t){return e.$router.push("/configuration/reception/enquiry/source")}}},[r("i",{staticClass:"fas fa-list"}),e._v(" "),r("span",{staticClass:"d-none d-sm-inline"},[e._v(e._s(e.trans("reception.enquiry_source")))])])])])])]),e._v(" "),r("div",{staticClass:"container-fluid"},[r("div",{staticClass:"card card-form"},[r("div",{staticClass:"card-body p-t-20"},[r("enquiry-source-form",{attrs:{id:e.id}})],1)])])])}),[],!1,null,null,null);t.default=i.exports},"wA/B":function(e,t,r){"use strict";var s={data:function(){return{enquirySourceForm:new Form({name:"",description:""})}},props:["id"],mounted:function(){this.id&&this.get()},methods:{proceed:function(){this.id?this.update():this.store()},store:function(){var e=this,t=this.$loading.show();this.enquirySourceForm.post("/api/reception/enquiry/source").then((function(r){toastr.success(r.message),e.$emit("completed"),t.hide()})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))},get:function(){var e=this,t=this.$loading.show();axios.get("/api/reception/enquiry/source/"+this.id).then((function(r){e.enquirySourceForm.name=r.name,e.enquirySourceForm.description=r.description,t.hide()})).catch((function(r){t.hide(),helper.showErrorMsg(r),e.$router.push("/configuration/reception/enquiry/source")}))},update:function(){var e=this,t=this.$loading.show();this.enquirySourceForm.patch("/api/reception/enquiry/source/"+this.id).then((function(r){toastr.success(r.message),t.hide(),e.$router.push("/configuration/reception/enquiry/source")})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))}}},n=r("KHd+"),i=Object(n.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("form",{on:{submit:function(t){return t.preventDefault(),e.proceed(t)},keydown:function(t){return e.enquirySourceForm.errors.clear(t.target.name)}}},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-12 col-sm-6"},[r("div",{staticClass:"form-group"},[r("label",{attrs:{for:""}},[e._v(e._s(e.trans("reception.enquiry_source_name")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.enquirySourceForm.name,expression:"enquirySourceForm.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",placeholder:e.trans("reception.enquiry_source_name")},domProps:{value:e.enquirySourceForm.name},on:{input:function(t){t.target.composing||e.$set(e.enquirySourceForm,"name",t.target.value)}}}),e._v(" "),r("show-error",{attrs:{"form-name":e.enquirySourceForm,"prop-name":"name"}})],1)]),e._v(" "),r("div",{staticClass:"col-12 col-sm-6"},[r("div",{staticClass:"form-group"},[r("label",{attrs:{for:""}},[e._v(e._s(e.trans("reception.enquiry_source_description")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.enquirySourceForm.description,expression:"enquirySourceForm.description"}],staticClass:"form-control",attrs:{type:"text",name:"description",placeholder:e.trans("reception.enquiry_source_description")},domProps:{value:e.enquirySourceForm.description},on:{input:function(t){t.target.composing||e.$set(e.enquirySourceForm,"description",t.target.value)}}}),e._v(" "),r("show-error",{attrs:{"form-name":e.enquirySourceForm,"prop-name":"description"}})],1)])]),e._v(" "),r("div",{staticClass:"card-footer text-right"},[r("router-link",{directives:[{name:"show",rawName:"v-show",value:e.id,expression:"id"}],staticClass:"btn btn-danger waves-effect waves-light ",attrs:{to:"/configuration/reception/enquiry/source"}},[e._v(e._s(e.trans("general.cancel")))]),e._v(" "),e.id?e._e():r("button",{staticClass:"btn btn-danger waves-effect waves-light ",attrs:{type:"button"},on:{click:function(t){return e.$emit("cancel")}}},[e._v(e._s(e.trans("general.cancel")))]),e._v(" "),r("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"submit"}},[e.id?r("span",[e._v(e._s(e.trans("general.update")))]):r("span",[e._v(e._s(e.trans("general.save")))])])],1)])}),[],!1,null,null,null);t.a=i.exports}}]); //# sourceMappingURL=edit.js.map?id=804d56430698b29e0c62