PageSourceSearch

https://www.mm.jbbf.jp/billing-address-manage-searching-view.20c2acb1.js

js jbbf.jp collected 2026-10-04 05:08:17 UTC 12,972 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkadmin_web_app"]=self["webpackChunkadmin_web_app"]||[]).push([[46809,92853],{92853:function(e,t,i){i.r(t),i.d(t,{default:function(){return g}});var a=function(){var e=this,t=e._self._c;return t("div",[e.loading?[t("b-overlay",{attrs:{show:e.loading,rounded:"","spinner-small":""}},[t("b-form-input",{attrs:{disabled:""}})],1)]:[t("base-select",{attrs:{"show-place-holder":!1,"hide-search":!1,options:e.options,"option-html":!0,disabled:e.disabled,error:e.isFailValidation},model:{value:e.selected,callback:function(t){e.selected=e._n(t)},expression:"selected"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isFailValidation,expression:"isFailValidation"}],staticClass:"is-invalid-feedback-message"},[e._v(" "+e._s(e.textValidation)+" ")])]],2)},r=[],s=(i(70560),i(15219)),n=i(2935),l=i(46210),o=i(20629),c=i(16320);const u=(e,t)=>i=>{e.push({id:i.id,text:"<span style='padding-left: "+t+"px;'>"+i.name+"</span>"}),i.children&&i.children.length&&i.children.map(u(e,t+20))};var h={name:"OrganizationTreeSingleSelection",mixins:[s.Z,n.Z],props:{currentId:{type:[Number,String],default:""},facilityCode:{type:String,default:""}},computed:{selected:{get(){return this.value},set(e){this.$emit("input",e)}},...(0,o.Se)("Organization",[c.mX])},created(){this.getParentList(),this.options=[{id:"",text:"<span>"+this.$t("panel.label_please_choose")+"</span>"}]},methods:{async getParentList(){try{this.loading=!0;const e=await l.Z.search({facility_code:this.facilityCode,login_organization:this.GET_ID_ORGANIZATION_NEXT_LOGIN});e.data.map(u(this.options,0)),this.loading=!1}catch(e){this.loading=!1,this.handleError(e)}}}},d=h,p=i(1001),m=(0,p.Z)(d,a,r,!1,null,null,null),g=m.exports},64749:function(e,t,i){i.r(t),i.d(t,{default:function(){return T}});var a=function(){var e=this,t=e._self._c;return t("div",[e.useFilterTemplate?t("filter-template-wrapper",{attrs:{"filter-template":e.filterTemplate,"functional-code":e.functionalCode},on:{"delete-template":e.deleteTemplate,"select-template":e.settingFilterTemplate}}):e._e(),t("base-card-search",{attrs:{title:e.titleFilterTemplate,"show-create-data-btn":!1},on:{submit:e.onSubmit,reset:e.reset},scopedSlots:e._u([{key:"content",fn:function(){return[t("base-input-group",{attrs:{title:e.$t("billing-address.organization")},scopedSlots:e._u([{key:"input",fn:function(){return[t("organization-tree-single-selection",{attrs:{"facility-code":e.$facilityCode},model:{value:e.form.organization_id,callback:function(t){e.$set(e.form,"organization_id",t)},expression:"form.organization_id"}})]},proxy:!0}])}),t("base-input-group",{attrs:{title:e.$t("billing-address.account_name"),"props-input":{autocomplete:"off"}}
1,model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),t("base-input-group",{attrs:{title:e.$t("billing-address.member_class_type")},scopedSlots:e._u([{key:"input",fn:function(){return[t("member-class-type-radio",{model:{value:e.form.class_type,callback:function(t){e.$set(e.form,"class_type",t)},expression:"form.class_type"}})]},proxy:!0}])})]},proxy:!0}])}),t("base-table-result",{attrs:{loading:e.loading,"table-column-loading":e.fields.length,"current-page":e.page,"total-rows":e.total,"per-page":e.perPage,"show-pagination":e.lastPage>1},on:{change:e.changePage}},[t("b-table",{attrs:{striped:"",hover:"",bordered:"","table-class":"text-nowrap","show-empty":"",items:e.listItems,fields:e.fields},scopedSlots:e._u([{key:"table-colgroup",fn:function(i){return e._l(i.fields,(function(e){return t("col",{key:e.key,attrs:{width:e.width}})}))}},{key:"cell(action)",fn:function(i){return[t("div",{staticClass:"d-flex justify-content-center",staticStyle:{gap:"5px"}},[t("router-link",{attrs:{to:{name:"BillingAddressDetail",params:{code:e.getCode(i.item)}}}},[t("b-button",{attrs:{variant:"primary"}},[e._v(" "+e._s(e.$t("panel.label_detail"))+" ")])],1)],1)]}},{key:"empty",fn:function(){return[t("div",{staticClass:"d-block text-center"},[e._v(" "+e._s(e.$t("panel.label_no_data"))+" ")])]},proxy:!0}])})],1)],1)},r=[],s=i(21372),n=i(92853),l=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"d-flex w-100 align-items-center"},[t("b-form-group",{staticClass:"mb-0",scopedSlots:e._u([{key:"default",fn:function({ariaDescribedby:i}){return[t("b-form-radio-group",{attrs:{"aria-describedby":i},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},e._l(e.options,(function(i,a){return t("b-form-radio",{key:a,staticClass:"mr-4",attrs:{value:i.id}},[e._v(" "+e._s(i.text)+" ")])})),1)]}}])})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isFailValidation,expression:"isFailValidation"}],staticClass:"is-invalid-feedback-message"},[e._v(" "+e._s(e.textValidation)+" ")])])},o=[],c=i(15219),u=i(88549),h=i(64020),d={name:"MemberClassTypeRadio",mixins:[c.Z],data(){return{options:[]}},computed:{selected:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.options=(0,u.formatConstantToArray)(h.Xv)}},p=d,m=i(1001),g=(0,m.Z)(p,l,o,!1,null,null,null),f=g.exports,y=i(57817),_=i(62833),b=i(84854),$={name:"BillingAddressSearchView",components:{OrganizationTreeSingleSelection:n["default"],MemberClassTypeRadio:f,FilterTemplateWrapper:_.Z},mixins:[s.Z],data(){return{form:{organization_id:"",name:"",class_type:h.Xv.personal.value},fields:[{key:"facility_organization",label:this.$t("billing-address.organization"),width:"45%",tdClass:"text-wrap"},{key:"name",label:this.$t("billing-address.account_name"),width:"45%",tdClass:"text-wrap"},{key:"action",label:"",width:"10%"}],functionalCode:b.Hu.BILLING_ADDRESS,useFilterTemplate:!0}},computed:{getCode(){return e=>e.account_code||h.cL.corporate+e.corporate_code}},methods:{async searchList(){this.loading=!0;const e=await y.Z.search({...this.form,page:this.page});this.handleResultSearching(e),this.loading=!1},onSubmit(e){e.preventDefault(),this.searching()},reset(){this.form={organization_id:"",name:"",class_type:h.Xv.personal.value}}}},v=$,S=(0,m.Z)(v,a,r,!1,null,null,null),T=S.exports},21372:function(e,t,i){i(70560);var a=i(88549),r=i(96486),s=i(30388);t["Z"]={watch:{$route:{deep:!0,handler(){this.nextPage=1,this.initalizeUrlQuery(),this.initQuerySearch(),(0,r.isEmpty)(this.currentQuery)&&(this.page=1,this.reset(),this.setSearchCaching()),Object.prototype.hasOwnProperty.call(this,"searchList")&&this.executeFunc(),window.setSearchingRoute(this.currentRouteName)}}},beforeMount(){this.initQuerySearch(),this.initalizeUrlQuery(),this.autoSearch&&this.executeFunc(),this.useFilterTemplate&&this.fetchTemplateCode()},mounted(){window.setSearchingRoute(this.currentRouteName)},data(){return{loading:!1,currentId:null,currentFullPath:null,currentPath:null,currentRouteName:null,currentQuery:{},listItems:[],page:1,total:0,perPage:0,lastPage:1,autoSearch:!0,cacheForm:{},isUsingPaginate:!0,nextPage:1,useFilterTemplate:!1,filterTemplate:{template_code:"",name:"",condition:""},functionalCode:null}},computed:{titleFilterTemplate(){return!(0,r.isEmpty)(this.filterTemplate?.name)&&this.useFilterTemplate?this.$t("filter-template.label_display_template_search",{name:this.filterTemplate.name}):this.$t("panel.label_search")}},methods:{searching:(0,r.debounce)((function(e){this.isUsingPaginate?(this.currentQuery.page&&delete this.currentQuery.page,this.prepareForExecuteSearching(),this.currentQuery={...this.form,page:this.nextPage}):(this.prepareForExecuteSearching(),this.currentQuery={...this.form}),this.filterTemplate?.template_code&&this.useFilterTemplate&&(this.currentQuery.template_code=this.filterTemplate?.template_code),this.setSearchCaching()}),200),prepareForExecuteSearching(){if(this.compareFormAndCurrentQuery())return this.isUsingPaginate&&(this.nextPage=this.page),void this.executeFunc();this.isUsingPaginate&&(this.nextPage=1),this.changeQueryRouteVue()},compareFormAndCurrentQuery(){return(0,r.isEqual)(this.form,this.currentQuery)},checkSameUrl(){let e=(0,a.buildUrl)(this.currentPath,this.form);return this.currentFullPath===e},initalizeUrlQuery(){this.currentFullPath=this.$route.fullPath,this.currentPath=this.$route.path,this.currentRouteName=this.$route.name,this.currentQuery=this.$route.query,this.currentQuery.page&&(this.page=this.currentQuery.page)},changeQueryRouteVue(){let e={...this.form};this.isUsingPaginate&&(e["page"]=this.nextPage);let t=Object.assign({},{...e});this.filterTemplate?.template_code&&this.useFilterTemplate&&(t.template_code=this.filterTemplate?.template_code),this.$router.push({query:t}).catch((()=>{}))},changePage(e){this.page=e,this.nextPage=e,this.form={...this.cacheForm},this.changeQueryRouteVue()},onSubmit(e){e.preventDefault(),this.searching()},async executeFunc(){try{await this.searchList()}catch(e){this.loading=!1,this.handleErrorSearching(e)}},initQuerySearch(e=!0){if(!this.$route.query.template_code&&e&&(this.filterTemplate={template_code:"",name:"",condition:""}),!(0,r.isEmpty)(this.$route.query)&&(this.reset(),"undefined"!=typeof this.form))for(const t in this.$route.query)this.form.hasOwnProperty(t)&&(this.form[t]=this.$route.query[t]);this.setSearchCaching()},removeItem(e){this.currentId=e},handleResultSearching({data:e,current_page:t,per_page:i,total:a,last_page:r}){this.listItems=e,this.page=t,this.total=a,this.perPage=i,this.lastPage=r,this.lastPage<this.page&&(this.page=null)},handleDeleteSuccess(){this.currentId=null,this.deleteSuccess(),this.searchList(),this.scrollTopWindow()},errorSystem(e=null){this.$errorSystem(e)},deleteSuccess(){this.$alertSuccess(this.$t("panel.label_delete_success"))},handleErrorSearching(e){if(e.forbidden)return this.errorSystem(e.data||""),void this.redirect403();this.errorSystem()},redirect403(){let e=this.$route.path;/^\/admin/.test(e)?this.$router.replace({name:"AdminPageUnauthorized"}):/^\/manage/.test(e)&&this.$router.replace({name:"MananagePageUnauthorized"})},setSearchCaching(){this.cacheForm={...this.form}},settingFilterTemplate({template_code:e,name:t,condition:i}){this.filterTemplate.template_code=e,this.filterTemplate.name=t,this.filterTemplate.condition=i;let a=this.convertQueryStringToObjectQuery(this.filterTemplate.condition);a.template_code=this.filterTemplate.template_code,a.page=1,this.nextPage=1,this.$router.push({query:{...a}}).catch((()=>{})),this.initQuerySearch(!1)},deleteTemplate(e){this.filterTemplate.template_code==e&&(this.filterTemplate.template_code="",this.filterTemplate.name="",this.filterTemplate.condition="")},async fetchTemplateCode(){const{query:e}=this.$route;if(e?.template_code){let t=await s.Z.getDetailTemplateCode({functional_code:this.functionalCode,template_code:e.template_code});if(t){const{template_code:e,name:i,condition:a}=t;this.filterTemplate.template_code=e,this.filterTemplate.name=i,this.filterTemplate.condition=a}}},convertQueryStringToObjectQuery(e){const t=new URLSearchParams(e),i={};for(const[a,r]of t.entries()){const e=/(\w+)\[(\d+)\]/,t=e.exec(a);if(t){const[e,a,s]=t;i[a]||(i[a]=[]),i[a][s]=r}else i[a]=r}for(const a in i)Array.isArray(i[a])?i[a]=i[a].map((e=>isNaN(e)?e:Number(e))):i[a]=i[a];return i}}}},57817:function(e,t,i){var a=i(90887);const r="/management/billing-addresses";t["Z"]={search:e=>a.Z1.get(`${r}`,e),create:()=>a.Z1.get(`${r}/create`,{}),store:e=>a.Z1.post(`${r}`,{},e),show:e=>a.Z1.get(`${r}/${e}`),update:(e,t)=>
1a.Z1.put(`${r}/${e}`,{},t),remove:e=>a.Z1["delete"](`${r}/${e}`),detailByCorporateCode:e=>a.Z1.get(`${r}/get-list-by-corporate-code/${e}`),detailByAccountCode:e=>a.Z1.get(`${r}/get-list-by-account-code/${e}`),setDefault:e=>a.Z1.put(`${r}/set-default-billing-address/${e}`),getPaymentMethod:e=>a.Z1.get("management/facilities-payment-agencies/get-select-list",e)}},46210:function(e,t,i){var a=i(90887);const r="/management/organizations";t["Z"]={search:e=>a.Z1.get(`${r}/`,e),store:e=>a.Z1.post(`${r}`,{},e),show:e=>a.Z1.get(`${r}/${e}`),update:(e,t)=>a.Z1.put(`${r}/${e}`,{},t),remove:e=>a.Z1["delete"](`${r}/${e}`),getParentList:e=>a.Z1.get(`${r}/get-select-list`,e),getTreeOrganization:e=>a.Z1.get(`${r}`,{facility_code:e}),getOrgsByPrefAndFacilityCode:(e,t,i,s=!1)=>{let n={facility_code:e,facility_organization_pref_code:t};return s||(n.login_organization=i),a.Z1.get(`${r}/get-select-list`,n)},getOrgManageMember:(e,t)=>{let i={facility_code:e,login_organization:t,manage_member:1};return a.Z1.get(`${r}/get-select-list`,i)},getOrgClientMember:(e,t,i="")=>{let s={facility_code:e,free_member:t,screen:i};return a.Z1.get(`${r}/get-select-list`,s)},getOrganizationByFacility:e=>a.Z1.get(`${r}/get-select-list`,{facility_code:e}),getFilterOrgManageMember:(e,t,i="",s="")=>{let n={facility_code:e,login_organization:t,pref_code:i,work_pref_code:s,manage_member:1};return a.Z1.get(`${r}/get-select-list`,n)},getFilterOrgClientMember:(e,t,i="",s="",n="")=>{let l={facility_code:e,free_member:t,screen:i,pref_code:s,work_pref_code:n};return a.Z1.get(`${r}/get-select-list`,l)}}}}]);
2//# sourceMappingURL=billing-address-manage-searching-view.20c2acb1.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.