/home/techb158/ileadtechnology.com/SSM/public/js/finance/account/edit~js/finance/account
NameSizeModeActions
index.js297810644editdlrm
index.js.map362110644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/finance/account/edit~js/finance/account/index.js (29781B)
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["js/finance/account/edit~js/finance/account/index"],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/finance/account/form.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/finance/account/form.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ components: {}, data: function data() { return { accountForm: new Form({ name: '', prefix: '', opening_balance: '', type: '', account_number: '', bank_name: '', bank_identification_code: '', branch_name: '', is_active: false }), default_currency: helper.getConfig('default_currency') }; }, props: ['id'], mounted: function mounted() { if (this.id) this.getAccount(); }, methods: { proceed: function proceed() { if (this.id) this.updateAccount();else this.storeAccount(); }, storeAccount: function storeAccount() { var _this = this; var loader = this.$loading.show(); this.accountForm.post('/api/account').then(function (response) { toastr.success(response.message); _this.$emit('completed'); loader.hide(); })["catch"](function (error) { loader.hide(); helper.showErrorMsg(error); }); }, getAccount: function getAccount() { var _this2 = this; var loader = this.$loading.show(); axios.get('/api/account/' + this.id).then(function (response) { _this2.accountForm.name = response.name; _this2.accountForm.prefix = response.prefix; _this2.accountForm.opening_balance = _this2.formatNumber(response.opening_balance); _this2.accountForm.type = response.type; _this2.accountForm.account_number = response.account_number; _this2.accountForm.bank_name = response.bank_name; _this2.accountForm.branch_name = response.branch_name; _this2.accountForm.bank_identification_code = response.bank_identification_code; _this2.accountForm.is_active = response.is_active; loader.hide(); })["catch"](function (error) { loader.hide(); _this2.$router.push('/finance/account'); }); }, updateAccount: function updateAccount() { var _this3 = this; var loader = this.$loading.show(); this.accountForm.patch('/api/account/' + this.id).then(function (response) { toastr.success(response.message); loader.hide(); _this3.$router.push('/finance/account'); })["catch"](function (error) { loader.hide(); helper.showErrorMsg(error); }); }, formatCurrency: function formatCurrency(price) { return helper.formatCurrency(price); }, formatNumber: function formatNumber(number) { return helper.formatNumber(number, this.default_currency.decimal_place); } } }); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c&": /*!******************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c& ***! \******************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "form", { on: { submit: function($event) { $event.preventDefault() return _vm.proceed($event) }, keydown: function($event) { return _vm.accountForm.errors.clear($event.target.name) } } }, [ _c("div", { staticClass: "row" }, [ _c("div", { staticClass: "col-12 col-sm-6" }, [ _c("div", { staticClass: "row" }, [ _c("div", { staticClass: "col-12 col-sm-4" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.account_name"))) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.name, expression: "accountForm.name" } ], staticClass: "form-control", attrs: { type: "text", name: "name", placeholder: _vm.trans("finance.account_name") }, domProps: { value: _vm.accountForm.name }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set(_vm.accountForm, "name", $event.target.value) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "name" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-4" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.account_prefix"))) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.prefix, expression: "accountForm.prefix" } ], staticClass: "form-control", attrs: { type: "text", name: "prefix", placeholder: _vm.trans("finance.account_prefix") }, domProps: { value: _vm.accountForm.prefix }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set(_vm.accountForm, "prefix", $event.target.value) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "prefix" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-4" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.account_opening_balance"))) ]), _vm._v(" "), _c("currency-input", { attrs: { position: _vm.default_currency.position, symbol: _vm.default_currency.symbol, name: "opening_balance", placeholder: _vm.trans("finance.account_opening_balance") }, nativeOn: { input: function($event) { return _vm.accountForm.errors.clear("opening_balance") } }, model: { value: _vm.accountForm.opening_balance, callback: function($$v) { _vm.$set(_vm.accountForm, "opening_balance", $$v) }, expression: "accountForm.opening_balance" } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "opening_balance" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-md-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("div", { staticClass: "radio radio-success" }, [ _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.type, expression: "accountForm.type" } ], attrs: { type: "radio", value: "bank", id: "type_bank", name: "type" }, domProps: { checked: _vm.accountForm.type == "bank", checked: _vm._q(_vm.accountForm.type, "bank") }, on: { click: function($event) { return _vm.accountForm.errors.clear("type") }, change: function($event) { return _vm.$set(_vm.accountForm, "type", "bank") } } }), _vm._v(" "), _c("label", { attrs: { for: "type_bank" } }, [ _vm._v(_vm._s(_vm.trans("finance.bank"))) ]) ]), _vm._v(" "), _c("div", { staticClass: "radio radio-success" }, [ _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.type, expression: "accountForm.type" } ], attrs: { type: "radio", value: "cash", id: "type_cash", name: "type" }, domProps: { checked: _vm.accountForm.type == "cash", checked: _vm._q(_vm.accountForm.type, "cash") }, on: { click: function($event) { return _vm.accountForm.errors.clear("type") }, change: function($event) { return _vm.$set(_vm.accountForm, "type", "cash") } } }), _vm._v(" "), _c("label", { attrs: { for: "type_cash" } }, [ _vm._v(_vm._s(_vm.trans("finance.cash"))) ]) ]), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "type" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("switches", { staticClass: "m-l-20", attrs: { theme: "bootstrap", color: "success" }, model: { value: _vm.accountForm.is_active, callback: function($$v) { _vm.$set(_vm.accountForm, "is_active", $$v) }, expression: "accountForm.is_active" } }), _vm._v( " " + _vm._s(_vm.trans("finance.account_is_active")) + "\n " ) ], 1 ) ]) ]) ]), _vm._v(" "), _vm.accountForm.type == "bank" ? _c("div", { staticClass: "col-12 col-sm-6" }, [ _c("div", { staticClass: "row" }, [ _c("div", { staticClass: "col-12 col-sm-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.account_number"))) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.account_number, expression: "accountForm.account_number" } ], staticClass: "form-control", attrs: { type: "text", name: "account_number", placeholder: _vm.trans("finance.account_number") }, domProps: { value: _vm.accountForm.account_number }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set( _vm.accountForm, "account_number", $event.target.value ) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "account_number" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.bank_name"))) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.bank_name, expression: "accountForm.bank_name" } ], staticClass: "form-control", attrs: { type: "text", name: "bank_name", placeholder: _vm.trans("finance.bank_name") }, domProps: { value: _vm.accountForm.bank_name }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set( _vm.accountForm, "bank_name", $event.target.value ) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "bank_name" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v(_vm._s(_vm.trans("finance.branch_name"))) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.branch_name, expression: "accountForm.branch_name" } ], staticClass: "form-control", attrs: { type: "text", name: "branch_name", placeholder: _vm.trans("finance.branch_name") }, domProps: { value: _vm.accountForm.branch_name }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set( _vm.accountForm, "branch_name", $event.target.value ) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "branch_name" } }) ], 1 ) ]), _vm._v(" "), _c("div", { staticClass: "col-12 col-sm-6" }, [ _c( "div", { staticClass: "form-group" }, [ _c("label", { attrs: { for: "" } }, [ _vm._v( _vm._s(_vm.trans("finance.bank_identification_code")) ) ]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.accountForm.bank_identification_code, expression: "accountForm.bank_identification_code" } ], staticClass: "form-control", attrs: { type: "text", name: "bank_identification_code", placeholder: _vm.trans( "finance.bank_identification_code" ) }, domProps: { value: _vm.accountForm.bank_identification_code }, on: { input: function($event) { if ($event.target.composing) { return } _vm.$set( _vm.accountForm, "bank_identification_code", $event.target.value ) } } }), _vm._v(" "), _c("show-error", { attrs: { "form-name": _vm.accountForm, "prop-name": "bank_identification_code" } }) ], 1 ) ]) ]) ]) : _vm._e() ]), _vm._v(" "), _c( "div", { staticClass: "card-footer text-right" }, [ _c( "router-link", { directives: [ { name: "show", rawName: "v-show", value: _vm.id, expression: "id" } ], staticClass: "btn btn-danger waves-effect waves-light ", attrs: { to: "/finance/account" } }, [_vm._v(_vm._s(_vm.trans("general.cancel")))] ), _vm._v(" "), !_vm.id ? _c( "button", { staticClass: "btn btn-danger waves-effect waves-light ", attrs: { type: "button" }, on: { click: function($event) { return _vm.$emit("cancel") } } }, [_vm._v(_vm._s(_vm.trans("general.cancel")))] ) : _vm._e(), _vm._v(" "), _c( "button", { staticClass: "btn btn-info waves-effect waves-light", attrs: { type: "submit" } }, [ _vm.id ? _c("span", [_vm._v(_vm._s(_vm.trans("general.update")))]) : _c("span", [_vm._v(_vm._s(_vm.trans("general.save")))]) ] ) ], 1 ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./resources/js/views/finance/account/form.vue": /*!*****************************************************!*\ !*** ./resources/js/views/finance/account/form.vue ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./form.vue?vue&type=template&id=2c88990c& */ "./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c&"); /* harmony import */ var _form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./form.vue?vue&type=script&lang=js& */ "./resources/js/views/finance/account/form.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( _form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__["render"], _form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "resources/js/views/finance/account/form.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "./resources/js/views/finance/account/form.vue?vue&type=script&lang=js&": /*!******************************************************************************!*\ !*** ./resources/js/views/finance/account/form.vue?vue&type=script&lang=js& ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./form.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/finance/account/form.vue?vue&type=script&lang=js&"); /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), /***/ "./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c&": /*!************************************************************************************!*\ !*** ./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c& ***! \************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./form.vue?vue&type=template&id=2c88990c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/finance/account/form.vue?vue&type=template&id=2c88990c&"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_form_vue_vue_type_template_id_2c88990c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /***/ }) }]); //# sourceMappingURL=index.js.map?id=25ad3bf5a056872a2acf