text: (window.webpackJsonp=window.webpackJsonp||[]).push([[40],{nO7G:function(t,a,e){"use strict";e.r(a);var s={name:"master-format-nomor",data:function(){return{isWriteable:!0}},computed:{listFormatNomor:function(){return this.$store.state.config.allConfig}},watch:{},methods:{saveNomor:function(){var t=this;this.$store.dispatch("saveConfig",this.$store.state.config.allConfig).then(function(a){t.Web.showAlert({text:"Config saved"})}).catch(function(a){t.Web.showAlert({text:"Load data failed : "+a.message,type:"warning"})})}},created:function(){var t=this;this.$store.dispatch("reloadConfig",{group:"format_nomor"}).then(function(t){}).catch(function(a){t.Web.showAlert({text:"Load data failed : "+a.message,type:"warning"})}),this.isWriteable=this.UserAuth.hasAccess("Master.config","u")}},i=e("KHd+"),n=Object(i.a)(s,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t._m(0),t._v(" "),e("b-card",{attrs:{"no-body":""}},[e("b-card-body",[e("div",[e("h5",[t._v("format :")]),t._v(" "),e("div",{staticClass:"m-2"},[e("div",[e("b",[t._v("{NO_URUT_PENGADAAN}")]),t._v(" : nomor urut pengajuan, misal "),e("b",[t._v("001")])]),t._v(" "),e("div",[e("b",[t._v("{NO_URUT_RAB}")]),t._v(" : nomor urut rab, misal "),e("b",[t._v("001")])]),t._v(" "),e("div",[e("b",[t._v("{DIVISI}")]),t._v(" : nama divisi (kapital) yang mengajukan, misal "),e("b",[t._v("OPSIS")])]),t._v(" "),e("div",[e("b",[t._v("{BULAN}")]),t._v(" : angka 2 digit bulan pengajuan, misal "),e("b",[t._v("08")]),t._v(" (Agustus)\n                    ")]),t._v(" "),e("div",[e("b",[t._v("{TANGGAL}")]),t._v(" : angka 2 digit tanggal pengajuan, misal "),e("b",[t._v("17")])]),t._v(" "),e("div",[e("b",[t._v("{TAHUN}")]),t._v(" : angka 4 digit tahun pengajuan, misal "),e("b",[t._v("2019")])])])]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover table-bordered table-sm mb-0"},[e("thead",[e("tr",[e("th",{staticClass:"text-center"},[t._v("NO")]),t._v(" "),e("th",{staticClass:"text-center"},[t._v("Nama")]),t._v(" "),e("th",{staticClass:"text-center",staticStyle:{width:"60%"}},[t._v("Format")])])]),t._v(" "),e("tbody",t._l(t.listFormatNomor,function(a,s){return e("tr",{key:"listFormatNomor-"+s},[a&&"format_nomor"==a.group?[e("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(t._s(s+1))]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[e("b-input",{attrs:{disabled:!t.isWriteable,placeholder:"Format"},model:{value:a.value,callback:function(e){t.$set(a,"value","string"==typeof e?e.trim():e)},expression:"item.value"}})],1)]:t._e()],2)}),0)])])]),t._v(" "),e("b-card-footer",{staticClass:"text-right"},[e("b-btn",{staticClass:"btn btn-success btn-sm",attrs:{disabled:!t.isWriteable},on:{click:function(a){return t.saveNomor()}}},[t._v("Simpan")])],1)],1)],1)},[function(){var t=this.$createElement,a=this._self._c||t;return a("h4",{staticClass:"d-flex justify-content-between align-items-center w-100 mb-4"},[a("div",[this._v("Config Format Penomoran")])])}],!1,null,null,null);a.default=n.exports}}]);