⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
makarnacimmix.xyz
/
public
/
dist
/
js
/
Edit File: 122.5b0455.js
/*! For license information please see 122.5b0455.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[122],{498:function(t,e,r){"use strict";r.r(e);var o=r(4),a=r(5),n=r(3),l=r.n(n);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function m(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(t){m=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof d?e:d,l=Object.create(n.prototype),s=new B(a||[]);return o(l,"_invoke",{value:C(t,r,s)}),l}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var v={};function d(){}function p(){}function h(){}var y={};m(y,n,(function(){return this}));var _=Object.getPrototypeOf,g=_&&_(_(O([])));g&&g!==e&&r.call(g,n)&&(y=g);var b=h.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){m(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){var a;o(this,"_invoke",{value:function(o,n){function l(){return new e((function(a,l){!function o(a,n,l,i){var c=f(t[a],t,n);if("throw"!==c.type){var m=c.arg,u=m.value;return u&&"object"==s(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){o("next",t,l,i)}),(function(t){o("throw",t,l,i)})):e.resolve(u).then((function(t){m.value=t,l(m)}),(function(t){return o("throw",t,l,i)}))}i(c.arg)}(o,n,a,l)}))}return a=a?a.then(l,l):l()}})}function C(t,e,r){var o="suspendedStart";return function(a,n){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===a)throw n;return P()}for(r.method=a,r.arg=n;;){var l=r.delegate;if(l){var s=S(l,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var i=f(t,e,r);if("normal"===i.type){if(o=r.done?"completed":"suspendedYield",i.arg===v)continue;return{value:i.arg,done:r.done}}"throw"===i.type&&(o="completed",r.method="throw",r.arg=i.arg)}}}function S(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=f(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,v;var n=a.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function O(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=h,o(b,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:p,configurable:!0}),p.displayName=m(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,m(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w($.prototype),m($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,r,o,a,n){void 0===n&&(n=Promise);var l=new $(u(e,r,o,a),n);return t.isGeneratorFunction(r)?l:l.next().then((function(t){return t.done?t.value:l.next()}))},w(b),m(b,c,"Generator"),m(b,n,(function(){return this})),m(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=O,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return l.type="throw",l.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a],l=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),i=r.call(n,"finallyLoc");if(s&&i){if(this.prev<n.catchLoc)return o(n.catchLoc,!0);if(this.prev<n.finallyLoc)return o(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return o(n.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return o(n.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var l=n?n.completion:{};return l.type=t,l.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(l)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var a=o.arg;N(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}function c(t,e,r,o,a,n,l){try{var s=t[n](l),i=s.value}catch(t){return void r(t)}s.done?e(i):Promise.resolve(i).then(o,a)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var n=t.apply(e,r);function l(t){c(n,o,a,l,s,"next",t)}function s(t){c(n,o,a,l,s,"throw",t)}l(void 0)}))}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("payroll.create.page_title")}},data:function(){return{breadcrumbsCurrent:"payroll.create.breadcrumbs_current",breadcrumbs:[{name:"payroll.create.breadcrumbs_first",url:"home"},{name:"payroll.create.breadcrumbs_second",url:"payroll.index"},{name:"payroll.create.breadcrumbs_active",url:""}],form:new a.a({chequeNo:"",salaryMonth:"",employee:"",account:"",availableBalance:0,presentSalary:"",deductionAmount:"",deductionReason:"",mobileBill:"",foodBill:"",bonus:"",commission:"",advance:"",festivalBonus:"",travelAllowance:"",others:"",totalSalary:"",salaryDate:(new Date).toISOString().slice(0,10),status:1,note:"",image:""}),url:null,accounts:""}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.b)("operations",["items","appInfo"])),created:function(){this.getEmployees(),this.getAccounts()},methods:{getEmployees:function(){var t=this;return m(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("operations/allData",{path:"/api/all-employees"});case 2:case"end":return e.stop()}}),e)})))()},getAccounts:function(){var t=this;return m(i().mark((function e(){var r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.get(window.location.origin+"/api/all-accounts");case 2:r=e.sent,o=r.data,t.accounts=o.data,t.accounts&&t.accounts.length>0&&(a=t.appInfo.defaultAccountSlug,t.form.account=t.accounts.find((function(t){return t.slug==a})),t.updateBalance());case 6:case"end":return e.stop()}}),e)})))()},onFileChange:function(t){var e=this,r=t.target.files[0],o=new FileReader;r.size<2111775&&("image/jpeg"===r.type||"image/png"===r.type||"image/gif"===r.type)?(o.onloadend=function(t){e.form.image=o.result},o.readAsDataURL(r),this.url=URL.createObjectURL(r)):Swal.fire(this.$t("common.error"),this.$t("common.image_error"),"error")},updateBalance:function(){this.form.availableBalance=0,this.form.account&&(this.form.availableBalance=this.form.account.availableBalance)},calculateTotalSalary:function(){var t=Number(this.form.employee.totalSalary),e=Number(this.form.deductionAmount),r=Number(this.form.mobileBill),o=Number(this.form.foodBill),a=Number(this.form.bonus),n=Number(this.form.commission),l=Number(this.form.advance),s=Number(this.form.festivalBonus),i=Number(this.form.travelAllowance),c=Number(this.form.others);return this.form.totalSalary=r+o+a+n+s+i+c+l-e,t>0?this.form.totalSalary=t+this.form.totalSalary:this.form.totalSalary},savePayroll:function(){var t=this;return m(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.form.post(window.location.origin+"/api/payroll").then((function(){toast.fire({type:"success",title:t.$t("payroll.create.success_msg")}),t.$router.push({name:"payroll.index"})})).catch((function(){toast.fire({type:"error",title:t.$t("common.error_msg")})}));case 2:case"end":return e.stop()}}),e)})))()}}},d=r(1),p=Object(d.a)(v,(function(){var t=this,e=t._self._c;return e("div",[e("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("payroll.create.form_title")))]),t._v(" "),e("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"payroll.index"}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1),t._v(" "),e("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.savePayroll.apply(null,arguments)},keydown:function(e){return t.form.onKeydown(e)}}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[t.items?e("div",{staticClass:"form-group col-md-6"},[e("label",{attrs:{for:"employee"}},[t._v(t._s(t.$t("common.employee"))),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),t.items?e("v-select",{class:{"is-invalid":t.form.errors.has("employee")},attrs:{options:t.items,label:"name",name:"employee",placeholder:t.$t("common.employee_placeholder")},on:{input:t.calculateTotalSalary},model:{value:t.form.employee,callback:function(e){t.$set(t.form,"employee",e)},expression:"form.employee"}}):t._e(),t._v(" "),e("has-error",{attrs:{form:t.form,field:"employee"}})],1):t._e(),t._v(" "),e("div",{staticClass:"form-group col-md-6"},[e("label",{attrs:{for:"salaryMonth"}},[t._v(t._s(t.$t("payroll.common.salary_month"))),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.salaryMonth,expression:"form.salaryMonth"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("salaryMonth")},attrs:{id:"salaryMonth",name:"salaryMonth"},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"salaryMonth",e.target.multiple?r:r[0])}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v("\n "+t._s(t.$t("payroll.common.salary_month_placeholder"))+"\n ")]),t._v(" "),e("option",{attrs:{value:"January"}},[t._v("January")]),t._v(" "),e("option",{attrs:{value:"February"}},[t._v("February")]),t._v(" "),e("option",{attrs:{value:"March"}},[t._v("March")]),t._v(" "),e("option",{attrs:{value:"April"}},[t._v("April")]),t._v(" "),e("option",{attrs:{value:"May"}},[t._v("May")]),t._v(" "),e("option",{attrs:{value:"June"}},[t._v("June")]),t._v(" "),e("option",{attrs:{value:"July"}},[t._v("July")]),t._v(" "),e("option",{attrs:{value:"August"}},[t._v("August")]),t._v(" "),e("option",{attrs:{value:"September"}},[t._v("September")]),t._v(" "),e("option",{attrs:{value:"October"}},[t._v("October")]),t._v(" "),e("option",{attrs:{value:"November"}},[t._v("November")]),t._v(" "),e("option",{attrs:{value:"December"}},[t._v("December")])]),t._v(" "),e("has-error",{attrs:{form:t.form,field:"salaryMonth"}})],1)]),t._v(" "),t.form.employee?e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"presentSalary"}},[t._v(t._s(t.$t("payroll.common.present_salary")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.employee.totalSalary,expression:"form.employee.totalSalary"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("presentSalary")},attrs:{id:"presentSalary",type:"number",step:"any",name:"presentSalary",readonly:""},domProps:{value:t.form.employee.totalSalary},on:{input:function(e){e.target.composing||t.$set(t.form.employee,"totalSalary",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"deductionAmount"}},[t._v(t._s(t.$t("payroll.common.deduction_amount")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.deductionAmount,expression:"form.deductionAmount"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("deductionAmount")},attrs:{id:"deductionAmount",type:"number",step:"any",name:"deductionAmount",min:"0",placeholder:t.$t("payroll.common.deduction_amount_placeholder")},domProps:{value:t.form.deductionAmount},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"deductionAmount",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"deductionAmount"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"deductionReason"}},[t._v(t._s(t.$t("payroll.common.deduction_reason")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.deductionReason,expression:"form.deductionReason"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("deductionReason")},attrs:{id:"deductionReason",type:"text",name:"deductionReason",placeholder:t.$t("payroll.common.deduction_reason_placeholder")},domProps:{value:t.form.deductionReason},on:{input:function(e){e.target.composing||t.$set(t.form,"deductionReason",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"deductionReason"}})],1)]):t._e(),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"mobileBill"}},[t._v(t._s(t.$t("payroll.common.mobile_bill")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.mobileBill,expression:"form.mobileBill"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("mobileBill")},attrs:{id:"mobileBill",type:"number",step:"any",name:"mobileBill",min:"0",placeholder:t.$t("payroll.common.mobile_bill_placeholder")},domProps:{value:t.form.mobileBill},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"mobileBill",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"mobileBill"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"foodBill"}},[t._v(t._s(t.$t("payroll.common.food_bill")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.foodBill,expression:"form.foodBill"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("foodBill")},attrs:{id:"foodBill",type:"number",step:"any",name:"foodBill",placeholder:t.$t("payroll.common.food_bill_placeholder")},domProps:{value:t.form.foodBill},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"foodBill",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"foodBill"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"bonus"}},[t._v(t._s(t.$t("payroll.common.bonus")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.bonus,expression:"form.bonus"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("bonus")},attrs:{id:"bonus",type:"number",step:"any",name:"bonus",min:"0",placeholder:t.$t("payroll.common.bonus_placeholder")},domProps:{value:t.form.bonus},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"bonus",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"bonus"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"commission"}},[t._v(t._s(t.$t("payroll.common.commission")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.commission,expression:"form.commission"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("commission")},attrs:{id:"commission",type:"number",step:"any",name:"commission",placeholder:t.$t("payroll.common.commission_placeholder")},domProps:{value:t.form.commission},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"commission",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"commission"}})],1)]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"festivalBonus"}},[t._v(t._s(t.$t("payroll.common.festival_bonus")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.festivalBonus,expression:"form.festivalBonus"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("festivalBonus")},attrs:{id:"festivalBonus",type:"number",step:"any",name:"festivalBonus",min:"0",placeholder:t.$t("payroll.common.festival_bonus_placeholder")},domProps:{value:t.form.festivalBonus},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"festivalBonus",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"festivalBonus"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"travelAllowance"}},[t._v(t._s(t.$t("payroll.common.travel_allowance")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.travelAllowance,expression:"form.travelAllowance"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("travelAllowance")},attrs:{id:"travelAllowance",type:"number",step:"any",name:"travelAllowance",placeholder:t.$t("payroll.common.travel_allowance_placeholder")},domProps:{value:t.form.travelAllowance},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"travelAllowance",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"travelAllowance"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"others"}},[t._v(t._s(t.$t("payroll.common.others")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.others,expression:"form.others"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("others")},attrs:{id:"others",type:"number",step:"any",name:"others",min:"0",placeholder:t.$t("payroll.common.others_placeholder")},domProps:{value:t.form.others},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"others",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"others"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-3"},[e("label",{attrs:{for:"advance"}},[t._v(t._s(t.$t("payroll.common.advance")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.advance,expression:"form.advance"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("advance")},attrs:{id:"advance",type:"number",step:"any",name:"advance",placeholder:t.$t("payroll.common.advance")},domProps:{value:t.form.advance},on:{change:t.calculateTotalSalary,keyup:t.calculateTotalSalary,input:function(e){e.target.composing||t.$set(t.form,"advance",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"advance"}})],1)]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"totalSalary"}},[t._v(t._s(t.$t("payroll.common.total_salary")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.totalSalary,expression:"form.totalSalary"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("totalSalary")},attrs:{id:"totalSalary",type:"number",step:"any",name:"totalSalary",readonly:""},domProps:{value:t.form.totalSalary},on:{input:function(e){e.target.composing||t.$set(t.form,"totalSalary",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"totalSalary"}})],1),t._v(" "),t.accounts?e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"account"}},[t._v(t._s(t.$t("common.account"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("v-select",{class:{"is-invalid":t.form.errors.has("account")},attrs:{options:t.accounts,label:"label",name:"account",placeholder:t.$t("common.account_placeholder")},on:{input:t.updateBalance},model:{value:t.form.account,callback:function(e){t.$set(t.form,"account",e)},expression:"form.account"}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"account"}})],1):t._e(),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"availableBalance"}},[t._v(t._s(t.$t("common.available_balance")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.availableBalance,expression:"form.availableBalance"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("availableBalance")},attrs:{id:"availableBalance",type:"number",step:"any",name:"availableBalance",readonly:""},domProps:{value:t.form.availableBalance},on:{input:function(e){e.target.composing||t.$set(t.form,"availableBalance",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"chequeNo"}},[t._v(t._s(t.$t("common.cheque_no")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.chequeNo,expression:"form.chequeNo"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("chequeNo")},attrs:{id:"chequeNo",type:"text",name:"chequeNo",placeholder:t.$t("common.cheque_placeholder")},domProps:{value:t.form.chequeNo},on:{input:function(e){e.target.composing||t.$set(t.form,"chequeNo",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"chequeNo"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"salaryDate"}},[t._v(t._s(t.$t("payroll.common.salary_date")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.salaryDate,expression:"form.salaryDate"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("salaryDate")},attrs:{id:"salaryDate",type:"date",name:"salaryDate"},domProps:{value:t.form.salaryDate},on:{input:function(e){e.target.composing||t.$set(t.form,"salaryDate",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"salaryDate"}})],1),t._v(" "),e("div",{staticClass:"form-group col-md-4"},[e("label",{attrs:{for:"status"}},[t._v(t._s(t.$t("common.status")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.status,expression:"form.status"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("status")},attrs:{id:"status"},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"status",e.target.multiple?r:r[0])}}},[e("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("common.active")))]),t._v(" "),e("option",{attrs:{value:"0"}},[t._v(t._s(t.$t("common.in_active")))])]),t._v(" "),e("has-error",{attrs:{form:t.form,field:"status"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"note"}},[t._v(t._s(t.$t("common.note")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.note,expression:"form.note"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("note")},attrs:{id:"note",placeholder:t.$t("common.note_placeholder")},domProps:{value:t.form.note},on:{input:function(e){e.target.composing||t.$set(t.form,"note",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"note"}})],1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"image"}},[t._v(t._s(t.$t("common.image")))]),t._v(" "),e("div",{staticClass:"custom-file"},[e("input",{staticClass:"custom-file-input",class:{"is-invalid":t.form.errors.has("image")},attrs:{id:"image",type:"file",name:"image"},on:{change:t.onFileChange}}),t._v(" "),e("label",{staticClass:"custom-file-label",attrs:{for:"image"}},[t._v(t._s(t.$t("common.choose_file")))])]),t._v(" "),e("has-error",{attrs:{form:t.form,field:"image"}}),t._v(" "),e("div",{staticClass:"bg-light mt-4 w-25"},[t.url?e("img",{staticClass:"img-fluid",attrs:{src:t.url,alt:t.$t("common.image_alt")}}):t._e()])],1)]),t._v(" "),e("div",{staticClass:"card-footer"},[e("v-button",{staticClass:"btn btn-primary",attrs:{loading:t.form.busy}},[e("i",{staticClass:"fas fa-save"}),t._v(" "+t._s(t.$t("common.save"))+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(e){return t.form.reset()}}},[e("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("common.reset"))+"\n ")])],1)])])])])],1)}),[],!1,null,null,null);e.default=p.exports}}]);
Simpan