import{g as C,d as V}from"./helibao.36bde26d.js";import{d as D,b as f,c as r,e as p,f as h,h as e,i as t,u as l,F as N,j as v,k as y,A,g as T,m as _,E as x,_ as I}from"./index.0308b213.js";const U={class:"setting-form"},S=_("\u4EE3\u8FD0\u8425\u6388\u6743"),k=_("\u7EBF\u4E0B"),O=_(" \u6E20\u9053\u522B\u540D "),z=_(" \u6388\u6743\u72B6\u6001 "),L=_(" \u7B2C\u4E09\u65B9\u4EA4\u6613\u8BC6\u522B\u7801 "),w={class:"operation-btn"},q=_("\u63D0\u4EA4"),H=D({setup(M){const u=f({merchantNo:"",operateType:"OPERATION_AUTH",confirmSceneType:"OFFLINE",alipayAccount:""}),c=f({list:[]}),B=()=>{C({type:"bindorauth"}).then(n=>{console.log(n),u.merchantNo=n.merchantNo,c.list=n.paramDetails?n.paramDetails:[],c.list.map((a,d)=>{a.statusCn=n.authorizeStatusCn[a.authorizeStatus]})})},E=()=>{V(u).then(n=>{x({message:"\u8BBE\u7F6E\u6210\u529F",type:"success"})})};return B(),(n,a)=>{const d=r("el-input"),s=r("el-form-item"),i=r("el-radio"),m=r("el-radio-group"),F=r("el-image"),b=r("el-form"),g=r("el-button");return p(),h("div",U,[e(b,{model:l(u),"label-width":"120px"},{default:t(()=>[e(s,{label:"\u5546\u6237\u53F7"},{default:t(()=>[e(d,{modelValue:l(u).merchantNo,"onUpdate:modelValue":a[0]||(a[0]=o=>l(u).merchantNo=o),readonly:!0},null,8,["modelValue"])]),_:1}),e(s,{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"operateType"},{default:t(()=>[e(m,{modelValue:l(u).operateType,"onUpdate:modelValue":a[1]||(a[1]=o=>l(u).operateType=o)},{default:t(()=>[e(i,{label:"OPERATION_AUTH",size:"large"},{default:t(()=>[S]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u573A\u666F",prop:"confirmSceneType"},{default:t(()=>[e(m,{modelValue:l(u).confirmSceneType,"onUpdate:modelValue":a[2]||(a[2]=o=>l(u).confirmSceneType=o)},{default:t(()=>[e(i,{label:"OFFLINE",size:"large"},{default:t(()=>[k]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u6237\u652F\u4ED8\u5B9D\u767B\u5F55\u8D26\u53F7"},{default:t(()=>[e(d,{modelValue:l(u).alipayAccount,"onUpdate:modelValue":a[3]||(a[3]=o=>l(u).alipayAccount=o),placeholder:"\u5546\u6237\u652F\u4ED8\u5B9D\u767B\u5F55\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7B2C\u4E09\u65B9\u5E73\u53F0\u4FE1\u606F"},{default:t(()=>[(p(!0),h(N,null,v(l(c).list,o=>(p(),y(s,null,{default:t(()=>[e(s,{class:"tn-el-form-item--inline"},{default:t(()=>[e(d,{value:o.channelShortId,readonly:!0},{prepend:t(()=>[O]),_:2},1032,["value"]),e(d,{value:o.statusCn,readonly:!0},{prepend:t(()=>[z]),_:2},1032,["value"]),e(d,{value:o.subMerchantNo,readonly:!0},{prepend:t(()=>[L]),_:2},1032,["value"])]),_:2},1024),o.qrCodeUrl?(p(),y(F,{key:0,style:{width:"300px",height:"300px"},src:o.qrCodeUrl},null,8,["src"])):A("",!0)]),_:2},1024))),256))]),_:1})]),_:1},8,["model"]),T("div",w,[e(g,{type:"primary",onClick:E},{default:t(()=>[q]),_:1})])])}}});const j=I(H,[["__scopeId","data-v-39f97289"]]);export{j as default};
