1 |
- import{E as Z,a as ee,__tla as ae}from"./el-breadcrumb.208142e0.js";import{E as le,__tla as re}from"./el-input.26169bdd.js";import{a as te,E as se,__tla as oe}from"./el-form.401432c4.js";import{b as _e,d as ie,__tla as ue}from"./el-select.5c8e172e.js";import{_ as ne,__tla as ce}from"./index.vue.ad7044de.js";import{E as me,__tla as pe}from"./el-checkbox.cc11167f.js";import{E as de,__tla as he}from"./el-button.b9902edf.js";import{f as fe,h as ge,i as be,j as g,a7 as ye,J as xe,l as b,a8 as ve,x as s,w as _,u as o,m as i,A as Ve,B as Pe,o as p,aM as qe,a6 as t,F as C,t as N,c as U,v as y,aa as ke,al as we,__tla as Ee}from"./entry.7ac74952.js";import{v as Ce,__tla as Ne}from"./el-loading.db0fa82e.js";import{g as Ue,a as Me,b as je,e as Ge,s as Le,__tla as Ae}from"./merchant.13df3b17.js";import{_ as Je}from"./_plugin-vue_export-helper.c27b6911.js";import"./event.9519ab40.js";import{__tla as Oe}from"./index.4e8000c9.js";import{__tla as Se}from"./use-form-item.d93b2d81.js";import{__tla as ze}from"./index.06247adb.js";import"./error.78e43d3e.js";import"./isNil.c75b1b34.js";import{__tla as Be}from"./castArray.c7b38e0a.js";import{__tla as Fe}from"./focus-trap.fbc9f3cd.js";import{__tla as Ie}from"./strings.dc56295c.js";import{__tla as Re}from"./index.623d89cd.js";import{__tla as Te}from"./scroll.6ddd597d.js";import{__tla as $e}from"./isEqual.44405615.js";import{__tla as De}from"./validator.cb3da7a3.js";import{__tla as He}from"./el-image.bbfa5f50.js";import{__tla as Ke}from"./el-image-viewer.6b094d65.js";import{__tla as Qe}from"./throttle.87b285fc.js";import{__tla as We}from"./el-progress.ab175681.js";let M,Xe=Promise.all([(()=>{try{return ae}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return We}catch{}})()]).then(async()=>{const d=f=>(Ve("data-v-20622f5a"),f=f(),Pe(),f),j={class:"w-full bg-page"},G={class:"main-container"},L=d(()=>i("span",{class:"text-[#666]"},"\u5546\u6237\u5165\u9A7B\u7533\u8BF7",-1)),A={class:"bg-[#fff] pt-[50px] pb-[20px] px-[170px] relative"},J=d(()=>i("span",{class:"iconfont icon-jishibenV6xx !text-[14px]"},null,-1)),O=d(()=>i("span",null,"\u7533\u8BF7\u8BB0\u5F55",-1)),S=[J,O],z=d(()=>i("div",{class:"text-[24px] text-[#333] mb-[50px] text-center leading-[32px]"},"\u5165\u9A7B\u7533\u8BF7",-1)),B=d(()=>i("div",{class:"text-[12px] text-[#666] leading-[40px]"},"\u8BF7\u4E0A\u4F20\u8425\u4E1A\u6267\u7167\u53CA\u884C\u4E1A\u76F8\u5173\u8D44\u8D28\u8BC1\u660E\u56FE\u7247",-1)),F={class:"text-[12px] text-[#999] mb-[20px] leading-[12px]"},I={class:"text-[14px] flex items-center leading-[40px]"},R=fe({__name:"merchant_settled",setup(f){const h=ge(),V=be(),c=g(!1),l=ye({apply_id:"",site_name:"",user_name:"",user_mobile:"",category_id:"",group_id:"",business_license:"",agree:!1,refuse_reason:""}),P=g(null),T=xe(()=>({site_name:[{required:!0,message:t("siteNamePlaceholder"),trigger:"blur"}],user_name:[{required:!0,message:t("userNamePlaceholder"),trigger:"blur"}],user_mobile:[{required:!0,message:t("mobilePlaceholder"),trigger:"blur"},{required:!0,validator:$,trigger:"blur"}],category_id:[{required:!0,message:t("shopCategoryPlaceholder"),trigger:"blur"}],group_id:[{required:!0,message:t("siteGroupPlaceholder"),trigger:"blur"}],business_license:[{required:!0,message:t("businessLicensePlaceholder"),trigger:"blur"}]})),$=(e,a,u)=>a?/^1[3456789]\d{9}$/.test(a)?u():u(new Error(t("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"))):u(new Error(t("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"))),q=g([]);Ue().then(e=>{q.value=e.data});const k=g([]);Me().then(e=>{k.value=e.data});const D=e=>{c.value=!0,je(e).then(a=>{const u=a.data;JSON.stringify(u)!="[]"&&Object.keys(l).forEach(n=>{u[n]!=null&&(l[n]=u[n])}),c.value=!1}).catch(()=>{c.value=!1})};V.query.apply_id&&D(V.query.apply_id);const H=async e=>{c.value||!e||await e.validate(async a=>{if(a){if(!l.agree){we.error("\u8BF7\u52FE\u9009\u5E76\u540C\u610F\u5165\u9A7B\u534F\u8BAE");return}c.value=!0,(l.apply_id?Ge:Le)(l).then(u=>{c.value=!1;for(let n in l)l[n]!=null&&n=="agree"&&(l[n]=!1),l[n]="";h.push({path:"/member/merchant_record"})}).catch(()=>{c.value=!1,h.push({path:"/member/merchant_record"})})}})};return(e,a)=>{const u=ee,n=Z,x=le,m=se,w=_e,E=ie,K=ne,Q=me,W=de,X=te,Y=Ce;return p(),b("div",j,[ve((p(),b("div",G,[s(n,{class:"my-[20px] !leading-[18px]","separator-icon":o(qe)},{default:_(()=>[s(u,null,{default:_(()=>[i("span",{class:"cursor-pointer text-[#333]",onClick:a[0]||(a[0]=r=>o(h).push("/"))},"\u9996\u9875")]),_:1}),s(u,null,{default:_(()=>[L]),_:1})]),_:1},8,["separator-icon"]),i("div",A,[i("div",null,[i("div",{class:"absolute top-[30px] right-[20px] text-[14px] text-primary cursor-pointer",onClick:a[1]||(a[1]=r=>o(h).push({path:"/member/merchant_record"}))},S),z,s(X,{model:l,"label-width":"120px",ref_key:"formRef",ref:P,size:"large",rules:o(T),class:"page-form"},{default:_(()=>[s(m,{label:("t"in e?e.t:o(t))("siteName"),prop:"site_name"},{default:_(()=>[s(x,{modelValue:l.site_name,"onUpdate:modelValue":a[2]||(a[2]=r=>l.site_name=r),modelModifiers:{trim:!0},clearable:"",placeholder:("t"in e?e.t:o(t))("siteNamePlaceholder"),maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:("t"in e?e.t:o(t))("userName"),prop:"user_name"},{default:_(()=>[s(x,{modelValue:l.user_name,"onUpdate:modelValue":a[3]||(a[3]=r=>l.user_name=r),modelModifiers:{trim:!0},clearable:"",placeholder:("t"in e?e.t:o(t))("userNamePlaceholder"),maxlength:"25"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:("t"in e?e.t:o(t))("mobile"),prop:"user_mobile"},{default:_(()=>[s(x,{modelValue:l.user_mobile,"onUpdate:modelValue":a[4]||(a[4]=r=>l.user_mobile=r),modelModifiers:{trim:!0},clearable:"",placeholder:("t"in e?e.t:o(t))("mobilePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:("t"in e?e.t:o(t))("shopCategory"),prop:"category_id"},{default:_(()=>[s(E,{class:"w-full",modelValue:l.category_id,"onUpdate:modelValue":a[5]||(a[5]=r=>l.category_id=r),clearable:"",placeholder:("t"in e?e.t:o(t))("shopCategoryPlaceholder")},{default:_(()=>[(p(!0),b(C,null,N(q.value,(r,v)=>(p(),U(w,{key:v,label:r.category_name,value:r.category_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:("t"in e?e.t:o(t))("siteGroup"),prop:"group_id"},{default:_(()=>[s(E,{class:"w-full",modelValue:l.group_id,"onUpdate:modelValue":a[6]||(a[6]=r=>l.group_id=r),clearable:"",placeholder:("t"in e?e.t:o(t))("siteGroupPlaceholder")},{default:_(()=>[(p(!0),b(C,null,N(k.value,(r,v)=>(p(),U(w,{key:v,label:r.group_name,value:r.group_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:("t"in e?e.t:o(t))("businessLicense"),prop:"business_license"},{default:_(()=>[i("div",null,[B,i("div",F,y(("t"in e?e.t:o(t))("businessLicenseTips")),1),s(K,{modelValue:l.business_license,"onUpdate:modelValue":a[7]||(a[7]=r=>l.business_license=r),limit:5,width:"138px",height:"138px"},null,8,["modelValue"])])]),_:1},8,["label"]),s(m,{label:"",prop:"agree"},{default:_(()=>[i("div",I,[s(Q,{modelValue:l.agree,"onUpdate:modelValue":a[8]||(a[8]=r=>l.agree=r)},null,8,["modelValue"]),i("span",null,y(("t"in e?e.t:o(t))("agree")),1),i("span",{class:"text-[var(--el-color-primary)] cursor-pointer",onClick:a[9]||(a[9]=r=>o(h).push({path:"/auth/agreement",query:{key:"shop_apply"}}))},y(("t"in e?e.t:o(t))("enterApply")),1)])]),_:1}),s(m,{label:""},{default:_(()=>[s(W,{class:"!bg-[var(--el-color-primary)] !border-[var(--el-color-primary)] !text-[#fff]",onClick:a[10]||(a[10]=r=>H(P.value))},{default:_(()=>[ke(y(("t"in e?e.t:o(t))("save")),1)]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])),[[Y,c.value]])])}}});M=Je(R,[["__scopeId","data-v-20622f5a"]])});export{Xe as __tla,M as default};
|