import{e,j as t,a,b as l,d as r}from"./phone-international-input.18d32780.js";import{m as i,n as s,f as o,g as d,w as n,k as c,l as u,F as h,r as m,E as p,u as g,v as f,i as _,I as b,j as y,D as v,bf as S,ai as k,G as V,c as x,z as w,Q as C,N as D,Z as N,o as q,t as B,b_ as M,aK as I,x as P,s as F,J as $}from"./index-dbd18a2c.js";import{W as E,_ as L}from"./s-uploader.f60cfe3d.js";import{_ as U}from"./uni-load-more.6c799967.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";import{a as j,_ as A}from"./s-layout.cc30b4d6.js";import"./useGoods.12bde50a.js";const z={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata(){return!this.collection.length},postField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let a=2;a{this.loading=!1,this.selected=t.result.data,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},getTreePath(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((t=>{this.loading=!1;let a=[];this._extractTreePath(t.result.data,a),this.selected=a,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},loadData(){this.isLocaldata?this._processLocalData():null==this.dataValue?this.stepSearh?this._loadNodeData((e=>{this._treeData=e,this._updateBindData()})):this._loadAllData((e=>{this._treeData=[],this._extractTree(e,this._treeData,null),this._updateBindData()})):this._loadNodeData((e=>{this._treeData=e,this._updateBindData(),this._updateSelected()}))},_loadAllData(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:`${this.selfField}=='${this.dataValue}'`}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_loadNodeData(e,t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:t||this._postWhere(),pageSize:500}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_pathWhere(){let e=[],t=this._getParentNameByField();return t&&e.push(`${t} == '${this.dataValue}'`),this.where?`(${this.where}) && (${e.join(" || ")})`:e.join(" || ")},_postWhere(){let e=[],t=this.selected,a=this.parentField;if(a&&e.push(`${a} == null || ${a} == ""`),t.length)for(var l=0;lnull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let s=0;se.parent_value===r));i.length?a.push(i):l=!1}return{dataList:a,hasNodes:l}},_extractTree(e,t,a){let l=this.map.value;for(let r=0;r({}),created(){this.managedMode||this.$nextTick((()=>{this.load()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.isLocaldata?this.loadData():this.dataValue.length&&this.getTreePath((e=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,a){if(e.disable)return;const l=this.dataList[t][a],r=l[this.map.text],i=l[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(l)):l.isleaf=!0,this.onSelectedChange(l,l.isleaf)}),this._nodeWhere()):this.onSelectedChange(l,!0)},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(e,t,a,l,r,S){const k=b,V=y,x=v,w=i(s("uni-load-more"),U);return o(),d(V,{class:"uni-data-pickerview"},{default:n((()=>[c(x,{class:"selected-area","scroll-x":"true","scroll-y":"false","show-scrollbar":!1},{default:n((()=>[c(V,{class:"selected-list"},{default:n((()=>[(o(!0),u(h,null,m(e.selected,((t,l)=>(o(),u(h,null,[t.text?(o(),d(V,{class:p(["selected-item",{"selected-item-active":l==e.selectedIndex,"selected-item-text-overflow":a.ellipsis}]),key:l,onClick:e=>S.handleSelect(l)},{default:n((()=>[c(k,{class:""},{default:n((()=>[g(f(t.text),1)])),_:2},1024)])),_:2},1032,["class","onClick"])):_("",!0)],64)))),256))])),_:1})])),_:1}),c(V,{class:"tab-c"},{default:n((()=>[(o(!0),u(h,null,m(e.dataList,((t,a)=>(o(),u(h,null,[a==e.selectedIndex?(o(),d(x,{class:"list",key:a,"scroll-y":!0},{default:n((()=>[(o(!0),u(h,null,m(t,((t,l)=>(o(),d(V,{class:p(["item",{"is-disabled":!!t.disable}]),key:l,onClick:e=>S.handleNodeClick(t,a,l)},{default:n((()=>[c(k,{class:"item-text item-text-overflow"},{default:n((()=>[g(f(t[e.map.text]),1)])),_:2},1024),e.selected.length>a&&t[e.map.value]==e.selected[a].value?(o(),d(V,{key:0,class:"check"})):_("",!0)])),_:2},1032,["class","onClick"])))),128))])),_:2},1024)):_("",!0)],64)))),256)),e.loading?(o(),d(V,{key:0,class:"loading-cover"},{default:n((()=>[c(w,{class:"load-more",contentText:e.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):_("",!0),e.errorMessage?(o(),d(V,{key:1,class:"error-message"},{default:n((()=>[c(k,{class:"error-text"},{default:n((()=>[g(f(e.errorMessage),1)])),_:1})])),_:1})):_("",!0)])),_:1})])),_:1})}],["__scopeId","data-v-44ff842b"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this)),this.$nextTick((()=>{this.load()}))},methods:{clear(){this.inputSelected.splice(0),this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocaldata?(this.loadData(),this.inputSelected=this.selected.slice(0)):this.parentField||this.selfField||!this.hasValue?this.hasValue&&this.getTreePath((()=>{this.inputSelected=this.selected.slice(0)})):this.getNodeData((()=>{this.inputSelected=this.selected.slice(0)}))},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly||this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.inputSelected=e,this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let a=[];for(let i=0;ie.value==l));r&&a.push(r)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let i=0;ie.value==l));r&&a.push(r)}return a},_dispatchEvent(e){let t={};if(e.length){for(var a=new Array(e.length),l=0;l[c(N,{class:"uni-data-tree-input",onClick:w.handleInput},{default:n((()=>[k(t.$slots,"default",{options:l.options,data:x.inputSelected,error:t.errorMessage},(()=>[c(N,{class:p(["input-value",{"input-value-border":l.border}])},{default:n((()=>[t.errorMessage?(o(),d(C,{key:0,class:"selected-area error-text"},{default:n((()=>[g(f(t.errorMessage),1)])),_:1})):t.loading&&!x.isOpened?(o(),d(N,{key:1,class:"selected-area"},{default:n((()=>[c(D,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):x.inputSelected.length?(o(),d(q,{key:2,class:"selected-area","scroll-x":"true"},{default:n((()=>[c(N,{class:"selected-list"},{default:n((()=>[(o(!0),u(h,null,m(x.inputSelected,((e,t)=>(o(),d(N,{class:"selected-item",key:t},{default:n((()=>[c(C,null,{default:n((()=>[g(f(e.text),1)])),_:2},1024),t[g(f(l.split),1)])),_:1})):_("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})):(o(),d(C,{key:3,class:"selected-area placeholder"},{default:n((()=>[g(f(l.placeholder),1)])),_:1})),l.clearIcon&&!l.readonly&&x.inputSelected.length?(o(),d(N,{key:4,class:"icon-clear",onClick:V(w.clear,["stop"])},{default:n((()=>[c(B,{type:"clear",color:"#e1e1e1",size:"14"})])),_:1},8,["onClick"])):_("",!0),l.clearIcon&&x.inputSelected.length||l.readonly?_("",!0):(o(),d(N,{key:5,class:"arrow-area"},{default:n((()=>[c(N,{class:"input-arrow"})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),x.isOpened?(o(),d(N,{key:0,class:"uni-data-tree-cover",onClick:w.handleClose},null,8,["onClick"])):_("",!0),x.isOpened?(o(),d(N,{key:1,class:"uni-data-tree-dialog"},{default:n((()=>[c(N,{class:"uni-popper__arrow"}),c(N,{class:"dialog-caption"},{default:n((()=>[c(N,{class:"title-area"},{default:n((()=>[c(C,{class:"dialog-title"},{default:n((()=>[g(f(l.popupTitle),1)])),_:1})])),_:1}),c(N,{class:"dialog-close",onClick:w.handleClose},{default:n((()=>[c(N,{class:"dialog-close-plus","data-id":"close"}),c(N,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"])])),_:1}),c(M,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":a[0]||(a[0]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:l.ellipsis,onChange:w.onchange,onDatachange:w.ondatachange,onNodeclick:w.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])),_:1})):_("",!0)])),_:3})}],["__scopeId","data-v-46a2eab2"]]),H="color:#BBBBBB;font-size:28rpx;line-height:normal",R=T({__name:"merchant",setup(e){const m=x((()=>F.$store("user").userInfo)),p=w({canUse:!0,userApplyStatus:!1,formStatus:!1,changeIng:!1,model:{checkStatus:void 0,id:void 0,name:void 0,status:void 0,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,createTime:void 0,complaintsHotline:void 0,customerServiceHotline:void 0,email:void 0,businessLicensePicture:void 0,expireTime:void 0,areaId:void 0,accountName:void 0,accountNumber:void 0,bankName:void 0,logoUrl:void 0,brandLicensing:void 0,otherCertificate:[],legalPerson:void 0,legalPersonNumber:void 0,identityCardFront:void 0,identityCardReverseSide:void 0},areaIdError:"",businessLicensePictureError:"",brandLicensingError:"",identityCardFrontError:"",identityCardReverseSideError:"",rules:{name:{rules:[{required:!0,errorMessage:C("merchant.merchant_name_required")}]},description:{rules:[{required:!0,errorMessage:C("merchant.introduction_required")}]},contact:{rules:[{required:!0,errorMessage:C("merchant.contact_required")}]},contactNumber:{rules:[{required:!0,errorMessage:C("merchant.contact_phone_required")}]},customerServiceHotline:{rules:[{required:!0,errorMessage:C("merchant.customer_service_phone_required")}]},email:t,legalPerson:{rules:[{required:!0,errorMessage:C("merchant.legal_person_required")}]},legalPersonNumber:{rules:[{required:!0,errorMessage:C("merchant.legal_person_phone_required")}]},accountName:{rules:[{required:!0,errorMessage:C("merchant.account_name_required")}]},accountNumber:{rules:[{required:!0,errorMessage:C("merchant.account_number_required")}]},bankName:{rules:[{required:!0,errorMessage:C("merchant.bank_required")}]}}}),b=x((()=>{const e=p.model.checkStatus;return 0===e?C("merchant.under_review"):1===e?C("merchant.approved"):2===e?C("merchant.rejected"):""})),v=()=>{const e=document.createElement("a");e.href="https://zxgz.newfeifan.cn/static/file/%E9%9D%9E%E7%8B%AC%E5%AE%B6%E5%93%81%E7%89%8C%E6%8E%88%E6%9D%83%E4%B9%A6.docx",e.download=C("merchant.non_exclusive_authorization")+".docx",document.body.appendChild(e),e.click(),document.body.removeChild(e)},S=D(null),k=async()=>{if(!(await P(S).validate().catch((e=>{console.log("error: ",e)}))))return;if(!p.model.areaId)return void(p.areaIdError=C("merchant.select_location"));if(!p.model.identityCardFront)return void(p.identityCardFrontError=C("merchant.select_legal_person_id_front"));if(!p.model.identityCardReverseSide)return void(p.identityCardReverseSideError=C("merchant.select_legal_person_id_back"));if(!p.model.businessLicensePicture)return void(p.businessLicensePictureError=C("merchant.upload_business_license"));if(!p.model.brandLicensing)return void(p.brandLicensingError=C("merchant.upload_brand_authorization"));const{data:e,code:t}=await M.createMerchant(p.model);0===t&&await W()},V=()=>{p.formStatus=!1,p.changeIng=!0},E=()=>{p.formStatus=!0,p.changeIng=!1},U=()=>{F.$router.go("/pages/public/merchantApplyList",{merchantApplyId:p.model.id})},T=async()=>{if(!(await P(S).validate().catch((e=>{console.log("error: ",e)}))))return;const{data:e,code:t}=await M.updateMerchant(p.model);0===t&&(p.formStatus=!0,p.changeIng=!1,await W())},z=D([]);function R(e){return e.map((e=>({text:e.name,value:e.id,children:e.children.length?R(e.children):null})))}const W=async()=>{const{data:e,code:t}=await M.getMerchant();0===t&&e?(p.model=e,p.userApplyStatus=!0,p.formStatus=!0):(p.userApplyStatus=!1,p.formStatus=!1)},G=x((()=>F.$store("user").isLogin));return N((()=>G.value),(e=>{e&&window.location.reload()}),{deep:!0}),q((async e=>{G.value?(await M.checkSystemUser().then((e=>{console.log(!e.data),p.canUse=!e.data})),await I.getAreaTree().then((e=>{z.value=R(e.data)})),await W()):B()})),(e,t)=>{const x=i(s("uni-easyinput"),a),w=i(s("uni-forms-item"),l),D=i(s("s-uploader"),L),N=i(s("uni-data-picker"),O),q=y,B=i(s("uni-forms"),r),M=$,I=i(s("su-fixed"),j),F=i(s("s-layout"),A);return o(),d(F,{class:"set-wrap",title:P(C)("merchant.merchant_registration"),bgStyle:{color:"#FFF"}},{default:n((()=>[p.canUse?(o(),u(h,{key:0},[c(B,{model:p.model,rules:p.rules,validateTrigger:"bind",labelPosition:"left",border:"",class:"form-box",labelWidth:"200",ref_key:"merchantFormRef",ref:S},{default:n((()=>[c(q,{class:"bg-white ss-p-x-30"},{default:n((()=>[c(w,{name:"name",label:P(C)("merchant.merchant_name"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.name,"onUpdate:modelValue":t[0]||(t[0]=e=>p.model.name=e),type:"name",":placeholder":P(C)("merchant.merchant_name"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue",":placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"contact",label:P(C)("merchant.contact_person"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.contact,"onUpdate:modelValue":t[1]||(t[1]=e=>p.model.contact=e),type:"contact",placeholder:P(C)("merchant.enter_contact_person"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"contactNumber",label:P(C)("merchant.contact_phone"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.contactNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>p.model.contactNumber=e),type:"contactNumber",placeholder:P(C)("merchant.enter_contact_phone"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"legalPerson",label:P(C)("merchant.legal_person"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.legalPerson,"onUpdate:modelValue":t[3]||(t[3]=e=>p.model.legalPerson=e),type:"legalPerson",placeholder:P(C)("merchant.enter_legal_person"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"legalPersonNumber",label:P(C)("merchant.legal_person_phone"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.legalPersonNumber,"onUpdate:modelValue":t[4]||(t[4]=e=>p.model.legalPersonNumber=e),type:"legalPersonNumber",placeholder:P(C)("merchant.enter_legal_person_phone"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"identityCardFront",label:P(C)("merchant.legal_person_id_front"),required:!p.formStatus,errorMessage:p.identityCardFrontError},{default:n((()=>[c(D,{url:p.model.identityCardFront,"onUpdate:url":t[5]||(t[5]=e=>p.model.identityCardFront=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"])])),_:1},8,["label","required","errorMessage"]),c(w,{name:"identityCardReverseSide",label:P(C)("merchant.legal_person_id_back"),required:!p.formStatus,errorMessage:e.identityCardReverseSideError},{default:n((()=>[c(D,{url:p.model.identityCardReverseSide,"onUpdate:url":t[6]||(t[6]=e=>p.model.identityCardReverseSide=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"])])),_:1},8,["label","required","errorMessage"]),c(w,{name:"areaId",label:P(C)("merchant.location"),required:!p.formStatus,errorMessage:p.areaIdError},{default:n((()=>[c(N,{modelValue:p.model.areaId,"onUpdate:modelValue":t[7]||(t[7]=e=>p.model.areaId=e),localdata:z.value,readonly:p.formStatus},null,8,["modelValue","localdata","readonly"])])),_:1},8,["label","required","errorMessage"]),c(w,{name:"email",label:P(C)("merchant.email"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.email,"onUpdate:modelValue":t[8]||(t[8]=e=>p.model.email=e),type:"email",placeholder:P(C)("merchant.enter_email"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"address",label:P(C)("merchant.office_address")},{default:n((()=>[c(x,{modelValue:p.model.address,"onUpdate:modelValue":t[9]||(t[9]=e=>p.model.address=e),type:"address",placeholder:P(C)("merchant.office_address"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label"]),c(w,{name:"complaintsHotline",label:P(C)("merchant.rights_phone")},{default:n((()=>[c(x,{modelValue:p.model.complaintsHotline,"onUpdate:modelValue":t[10]||(t[10]=e=>p.model.complaintsHotline=e),type:"complaintsHotline",placeholder:P(C)("merchant.enter_rights_phone"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label"]),c(w,{name:"customerServiceHotline",label:P(C)("merchant.customer_service_phone"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.customerServiceHotline,"onUpdate:modelValue":t[11]||(t[11]=e=>p.model.customerServiceHotline=e),type:"customerServiceHotline",placeholder:P(C)("merchant.enter_customer_service_phone"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"website",label:P(C)("merchant.website")},{default:n((()=>[c(x,{modelValue:p.model.website,"onUpdate:modelValue":t[12]||(t[12]=e=>p.model.website=e),type:"website",placeholder:P(C)("merchant.enter_website"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label"]),c(w,{name:"bankName",label:P(C)("merchant.bank"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.bankName,"onUpdate:modelValue":t[13]||(t[13]=e=>p.model.bankName=e),type:"bankName",placeholder:P(C)("merchant.enter_bank"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"accountName",label:P(C)("merchant.account_name"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.accountName,"onUpdate:modelValue":t[14]||(t[14]=e=>p.model.accountName=e),type:"accountName",placeholder:P(C)("merchant.enter_account_name"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"accountNumber",label:P(C)("merchant.account_number"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.accountNumber,"onUpdate:modelValue":t[15]||(t[15]=e=>p.model.accountNumber=e),type:"number",placeholder:P(C)("merchant.enter_account_number"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),c(w,{name:"logoUrl",label:"Logo"},{default:n((()=>[c(D,{url:p.model.logoUrl,"onUpdate:url":t[16]||(t[16]=e=>p.model.logoUrl=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"])])),_:1}),c(w,{name:"businessLicensePicture",label:P(C)("merchant.business_license"),required:!p.formStatus,errorMessage:p.businessLicensePictureError},{default:n((()=>[c(D,{url:p.model.businessLicensePicture,"onUpdate:url":t[17]||(t[17]=e=>p.model.businessLicensePicture=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"])])),_:1},8,["label","required","errorMessage"]),c(w,{name:"brandLicensing",label:P(C)("merchant.brand_authorization"),required:!p.formStatus,errorMessage:p.brandLicensingError},{default:n((()=>[c(D,{url:p.model.brandLicensing,"onUpdate:url":t[18]||(t[18]=e=>p.model.brandLicensing=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"]),p.model.brandLicensing?_("",!0):(o(),d(q,{key:0,class:"ss-m-t-20",style:{color:"var(--ui-BG-Main)"},onClick:v},{default:n((()=>[g(f(P(C)("merchant.download_template")),1)])),_:1}))])),_:1},8,["label","required","errorMessage"]),c(w,{name:"otherCertificate",label:P(C)("merchant.other_certificates")},{default:n((()=>[c(D,{url:p.model.otherCertificate,"onUpdate:url":t[19]||(t[19]=e=>p.model.otherCertificate=e),fileMediatype:"image",limit:"9",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:p.formStatus},null,8,["url","readonly"])])),_:1},8,["label"]),c(w,{name:"description",label:P(C)("merchant.introduction"),required:!p.formStatus},{default:n((()=>[c(x,{modelValue:p.model.description,"onUpdate:modelValue":t[20]||(t[20]=e=>p.model.description=e),type:"description",placeholder:P(C)("merchant.enter_introduction"),inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:p.formStatus},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["label","required"]),p.userApplyStatus?(o(),d(w,{key:0,name:"description",label:P(C)("merchant.status")},{default:n((()=>[c(x,{modelValue:b.value,"onUpdate:modelValue":t[21]||(t[21]=e=>b.value=e),type:"description",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:!0},null,8,["modelValue"])])),_:1},8,["label"])):_("",!0)])),_:1})])),_:1},8,["model","rules"]),c(I,{bottom:"",placeholder:"",bg:"none"},{default:n((()=>[c(q,{class:"footer-box ss-p-20 ss-flex"},{default:n((()=>[p.userApplyStatus?_("",!0):(o(),d(M,{key:0,class:"ss-rest-button btn",onClick:k},{default:n((()=>[g(f(P(C)("common.submit")),1)])),_:1})),[0].includes(p.model.checkStatus)?(o(),d(M,{key:1,class:"ss-rest-button btn"},{default:n((()=>[g(f(P(C)("merchant.review_in_progress")),1)])),_:1})):_("",!0),[1,2].includes(p.model.checkStatus)?(o(),u(h,{key:2},[p.changeIng?(o(),u(h,{key:1},[c(M,{class:"ss-rest-button btn-two",onClick:E},{default:n((()=>[g(f(P(C)("common.cancel")),1)])),_:1}),c(M,{class:"ss-rest-button btn-two",onClick:T},{default:n((()=>[g(f(P(C)("merchant.save_and_submit")),1)])),_:1})],64)):(o(),u(h,{key:0},[c(M,{class:"ss-rest-button btn-two",onClick:U},{default:n((()=>[g(f(P(C)("merchant.review_records")),1)])),_:1}),c(M,{class:"ss-rest-button btn-two",onClick:V},{default:n((()=>[g(f(P(C)("merchant.changes")),1)])),_:1})],64))],64)):_("",!0)])),_:1})])),_:1})],64)):_("",!0),p.canUse?_("",!0):(o(),d(q,{key:1,style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%,-50%)","text-align":"center"}},{default:n((()=>[g(f(P(C)("merchant.existing_merchant_alert",{user:m.value.mobile})),1)])),_:1}))])),_:1},8,["title"])}}},[["__scopeId","data-v-9dedd2ad"]]);export{R as default};