"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){e.resolveComponent("uni-icons")()}Math;const i=e.defineComponent({__name:"hs-radio-picker-accounts",props:["title","required","borderTop","isLink","tip","value","url","isPlaceholder","padding","des","rightStyle","titleStyle","disabled","key","placeholder","params"],emits:["change","update:valueModel"],setup(i,{emit:n}){const r=i,t=e.ref([]),a=e.ref(""),u=e=>{let o=t.value[null==e?void 0:e.detail.value];a.value=null==o?void 0:o.name,n("update:valueModel",(null==o?void 0:o.id)||""),n("change",o)};return e.onMounted(()=>{o.getApiLoading(l.Apis.Company.CompanyProjectReceiptAccounts.List,(null==r?void 0:r.params)||{}).then(e=>{var o;null==(o=null==e?void 0:e.data)||o.map(e=>{var o,l,i,n,r;e.name=`${null==(o=null==e?void 0:e.receipt_account)?void 0:o.company_name}/${null==(l=null==e?void 0:e.receipt_account)?void 0:l.company_bank}/${(null==(i=null==e?void 0:e.receipt_account)?void 0:i.company_account)?null==(r=null==(n=null==e?void 0:e.receipt_account)?void 0:n.company_account)?void 0:r.slice(-4):""}`}),t.value=null==e?void 0:e.data,console.log(e)})}),(o,l)=>e.e({a:e.t((null==r?void 0:r.title)||"标题"),b:i.required},(i.required,{}),{c:e.s(r.titleStyle),d:a.value},a.value?{e:e.t(a.value)}:{f:e.t((null==r?void 0:r.placeholder)||"请选择")},{g:e.p({type:"right",color:"#333",size:"12"}),h:e.s(r.rightStyle),i:r.borderTop?"1rpx solid #eee":"",j:(null==r?void 0:r.padding)||"15rpx 0",k:t.value,l:(null==r?void 0:r.key)||"name",m:null==r?void 0:r.disabled,n:e.o(u)})}}),n=e._export_sfc(i,[["__scopeId","data-v-e36feea6"]]);wx.createComponent(n);
