1 |
- import{e,j as t,a,b as l,d as r}from"./phone-international-input.b9f6c8e6.js";import{m as s,n as i,f as d,g as o,w as n,k as u,l as c,F as h,r as p,E as m,u as f,v as g,i as y,I as b,j as _,D as S,be as v,ah as V,G as k,c as x,z as C,N as w,Z as D,o as N,t as B,bZ as M,aJ as I,s as P,U as q,x as F,J as $}from"./index-a116b7fa.js";import{W as U,_ as E}from"./s-uploader.e282ad6a.js";import{_ as L}from"./uni-load-more.2682655d.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";import{a as j,_ as A}from"./s-layout.4ae51839.js";import"./useGoods.6b315a78.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<e.length&&e[a]==t[a];a++);e[0]!=t[0]&&(this.page.current=this.pageCurrent),this.page.size=this.pageSize,this.onPropsChange()})),this._treeData=[]},methods:{onPropsChange(){this._treeData=[]},getCommand(e={}){let t=U.database(this.spaceInfo);const a=e.action||this.action;a&&(t=t.action(a));const l=e.collection||this.collection;t=t.collection(l);const r=e.where||this.where;r&&Object.keys(r).length&&(t=t.where(r));const s=e.field||this.field;s&&(t=t.field(s));const i=e.orderby||this.orderby;i&&(t=t.orderBy(i));const d=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,o=void 0!==e.pageSize?e.pageSize:this.page.size,n={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(n.getTreePath=e.getTreePath),t=t.skip(o*(d-1)).limit(o).get(n),t},getNodeData(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:this._pathWhere()}).then((t=>{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;l<t.length-1;l++)e.push(`${a} == '${t[l].value}'`);let r=[];return this.where&&r.push(`(${this.where})`),e.length&&r.push(`(${e.join(" || ")})`),r.join(" && ")},_nodeWhere(){let e=[],t=this.selected;return t.length&&e.push(`${this.parentField} == '${t[t.length-1].value}'`),this.where?`(${this.where}) && (${e.join(" || ")})`:e.join(" || ")},_getParentNameByField(){const e=this.field.split(",");let t=null;for(let a=0;a<e.length;a++){const l=e[a].split("as");if(!(l.length<2)&&"value"===l[1].trim()){t=l[0].trim();break}}return t},_isTreeView(){return this.parentField&&this.selfField},_updateSelected(){var e=this.dataList,t=this.selected;let a=this.map.text,l=this.map.value;for(var r=0;r<t.length;r++)for(var s=t[r].value,i=e[r],d=0;d<i.length;d++){var o=i[d];if(o[l]===s){t[r].text=o[a];break}}},_updateBindData(e){const{dataList:t,hasNodes:a}=this._filterData(this._treeData,this.selected);let l=!1===this._stepSearh&&!a;return e&&(e.isleaf=l),this.dataList=t,this.selectedIndex=t.length-1,!l&&this.selected.length<t.length&&this.selected.push({value:null,text:"请选择"}),{isleaf:l,hasNodes:a}},_filterData(e,t){let a=[],l=!0;a.push(e.filter((e=>null===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let i=0;i<t.length;i++){var r=t[i].value,s=e.filter((e=>e.parent_value===r));s.length?a.push(s):l=!1}return{dataList:a,hasNodes:l}},_extractTree(e,t,a){let l=this.map.value;for(let r=0;r<e.length;r++){let s=e[r],i={};for(let e in s)"children"!==e&&(i[e]=s[e]);null!=a&&""!==a&&(i.parent_value=a),t.push(i);let d=s.children;d&&this._extractTree(d,t,s[l])}},_extractTreePath(e,t){for(let a=0;a<e.length;a++){let l=e[a],r={};for(let e in l)"children"!==e&&(r[e]=l[e]);t.push(r);let s=l.children;s&&this._extractTreePath(s,t)}},_findNodePath(e,t,a=[]){let l=this.map.text,r=this.map.value;for(let s=0;s<t.length;s++){let i=t[s],d=i.children,o=i[l],n=i[r];if(a.push({value:n,text:o}),n===e)return a;if(d){const t=this._findNodePath(e,d,a);if(t.length)return t}a.pop()}return[]},_processLocalData(){this._treeData=[],this._extractTree(this.localdata,this._treeData);var e=this.dataValue;void 0!==e&&(Array.isArray(e)&&"object"==typeof(e=e[e.length-1])&&e[this.map.value]&&(e=e[this.map.value]),this.selected=this._findNodePath(e,this.localdata))}}};const O=T({name:"UniDataPicker",emits:["popupopened","popupclosed","nodeclick","input","change","update:modelValue"],mixins:[z],components:{DataPickerView:T({name:"UniDataPickerView",emits:["nodeclick","change","datachange","update:modelValue"],mixins:[z],props:{managedMode:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0}},data:()=>({}),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],s=l[this.map.value];if(t<this.selected.length-1?(this.selected.splice(t,this.selected.length-t),this.selected.push({text:r,value:s})):t===this.selected.length-1&&this.selected.splice(t,1,{text:r,value:s}),l.isleaf)return void this.onSelectedChange(l,l.isleaf);const{isleaf:i,hasNodes:d}=this._updateBindData();(this._isTreeView()||d)&&(!this.isLocaldata||d&&!i)?i||d?this.onSelectedChange(l,!1):this._loadNodeData((e=>{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,v){const V=b,k=_,x=S,C=s(i("uni-load-more"),L);return d(),o(k,{class:"uni-data-pickerview"},{default:n((()=>[u(x,{class:"selected-area","scroll-x":"true","scroll-y":"false","show-scrollbar":!1},{default:n((()=>[u(k,{class:"selected-list"},{default:n((()=>[(d(!0),c(h,null,p(e.selected,((t,l)=>(d(),c(h,null,[t.text?(d(),o(k,{class:m(["selected-item",{"selected-item-active":l==e.selectedIndex,"selected-item-text-overflow":a.ellipsis}]),key:l,onClick:e=>v.handleSelect(l)},{default:n((()=>[u(V,{class:""},{default:n((()=>[f(g(t.text),1)])),_:2},1024)])),_:2},1032,["class","onClick"])):y("",!0)],64)))),256))])),_:1})])),_:1}),u(k,{class:"tab-c"},{default:n((()=>[(d(!0),c(h,null,p(e.dataList,((t,a)=>(d(),c(h,null,[a==e.selectedIndex?(d(),o(x,{class:"list",key:a,"scroll-y":!0},{default:n((()=>[(d(!0),c(h,null,p(t,((t,l)=>(d(),o(k,{class:m(["item",{"is-disabled":!!t.disable}]),key:l,onClick:e=>v.handleNodeClick(t,a,l)},{default:n((()=>[u(V,{class:"item-text item-text-overflow"},{default:n((()=>[f(g(t[e.map.text]),1)])),_:2},1024),e.selected.length>a&&t[e.map.value]==e.selected[a].value?(d(),o(k,{key:0,class:"check"})):y("",!0)])),_:2},1032,["class","onClick"])))),128))])),_:2},1024)):y("",!0)],64)))),256)),e.loading?(d(),o(k,{key:0,class:"loading-cover"},{default:n((()=>[u(C,{class:"load-more",contentText:e.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):y("",!0),e.errorMessage?(d(),o(k,{key:1,class:"error-message"},{default:n((()=>[u(V,{class:"error-text"},{default:n((()=>[f(g(e.errorMessage),1)])),_:1})])),_:1})):y("",!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 s=0;s<t.length;s++){var l=t[s],r=e.find((e=>e.value==l));r&&a.push(r)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let s=0;s<t.length;s++){var l=t[s],r=e.find((e=>e.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<e.length;l++)a[l]=e[l].value;t=e[e.length-1]}else t.value="";this.formItem&&this.formItem.setValue(t.value),this.$emit("input",t.value),this.$emit("update:modelValue",t.value),this.$emit("change",{detail:{value:e}})}}},[["render",function(t,a,l,r,x,C){const w=b,D=s(i("uni-load-more"),L),N=_,B=S,M=s(i("uni-icons"),e),I=v("data-picker-view");return d(),o(N,{class:"uni-data-tree"},{default:n((()=>[u(N,{class:"uni-data-tree-input",onClick:C.handleInput},{default:n((()=>[V(t.$slots,"default",{options:l.options,data:x.inputSelected,error:t.errorMessage},(()=>[u(N,{class:m(["input-value",{"input-value-border":l.border}])},{default:n((()=>[t.errorMessage?(d(),o(w,{key:0,class:"selected-area error-text"},{default:n((()=>[f(g(t.errorMessage),1)])),_:1})):t.loading&&!x.isOpened?(d(),o(N,{key:1,class:"selected-area"},{default:n((()=>[u(D,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):x.inputSelected.length?(d(),o(B,{key:2,class:"selected-area","scroll-x":"true"},{default:n((()=>[u(N,{class:"selected-list"},{default:n((()=>[(d(!0),c(h,null,p(x.inputSelected,((e,t)=>(d(),o(N,{class:"selected-item",key:t},{default:n((()=>[u(w,null,{default:n((()=>[f(g(e.text),1)])),_:2},1024),t<x.inputSelected.length-1?(d(),o(w,{key:0,class:"input-split-line"},{default:n((()=>[f(g(l.split),1)])),_:1})):y("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})):(d(),o(w,{key:3,class:"selected-area placeholder"},{default:n((()=>[f(g(l.placeholder),1)])),_:1})),l.clearIcon&&!l.readonly&&x.inputSelected.length?(d(),o(N,{key:4,class:"icon-clear",onClick:k(C.clear,["stop"])},{default:n((()=>[u(M,{type:"clear",color:"#e1e1e1",size:"14"})])),_:1},8,["onClick"])):y("",!0),l.clearIcon&&x.inputSelected.length||l.readonly?y("",!0):(d(),o(N,{key:5,class:"arrow-area"},{default:n((()=>[u(N,{class:"input-arrow"})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),x.isOpened?(d(),o(N,{key:0,class:"uni-data-tree-cover",onClick:C.handleClose},null,8,["onClick"])):y("",!0),x.isOpened?(d(),o(N,{key:1,class:"uni-data-tree-dialog"},{default:n((()=>[u(N,{class:"uni-popper__arrow"}),u(N,{class:"dialog-caption"},{default:n((()=>[u(N,{class:"title-area"},{default:n((()=>[u(w,{class:"dialog-title"},{default:n((()=>[f(g(l.popupTitle),1)])),_:1})])),_:1}),u(N,{class:"dialog-close",onClick:C.handleClose},{default:n((()=>[u(N,{class:"dialog-close-plus","data-id":"close"}),u(N,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"])])),_:1}),u(I,{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:C.onchange,onDatachange:C.ondatachange,onNodeclick:C.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])),_:1})):y("",!0)])),_:3})}],["__scopeId","data-v-46a2eab2"]]),H="color:#BBBBBB;font-size:28rpx;line-height:normal",R=T({__name:"merchant",setup(e){const p=x((()=>P.$store("user").userInfo)),m=C({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:"商户名称不能为空"}]},description:{rules:[{required:!0,errorMessage:"简介不能为空"}]},contact:{rules:[{required:!0,errorMessage:"联络人不能为空"}]},contactNumber:{rules:[{required:!0,errorMessage:"联络人手机号不能为空"}]},customerServiceHotline:{rules:[{required:!0,errorMessage:"客服电话不能为空"}]},email:t,legalPerson:{rules:[{required:!0,errorMessage:"法人不能为空"}]},legalPersonNumber:{rules:[{required:!0,errorMessage:"法人电话不能为空"}]},accountName:{rules:[{required:!0,errorMessage:"账户名称不能为空"}]},accountNumber:{rules:[{required:!0,errorMessage:"账户号码不能为空"}]},bankName:{rules:[{required:!0,errorMessage:"开户银行不能为空"}]}}}),b=x((()=>{const e=m.model.checkStatus;return 0===e?"审核中":1===e?"通过":2===e?"拒绝":""})),S=()=>{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="非独家品牌授权书.docx",document.body.appendChild(e),e.click(),document.body.removeChild(e)},v=w(null),V=async()=>{if(!(await F(v).validate().catch((e=>{console.log("error: ",e)}))))return;if(!m.model.areaId)return void(m.areaIdError="请选择所在地");if(!m.model.identityCardFront)return void(m.identityCardFrontError="请选择上传法人身份证正面(国徽面)");if(!m.model.identityCardReverseSide)return void(m.identityCardReverseSideError="请选择上传法人身份证背面(人像面)");if(!m.model.businessLicensePicture)return void(m.businessLicensePictureError="请上传营业执照");if(!m.model.brandLicensing)return void(m.brandLicensingError="请上传品牌授权书");const{data:e,code:t}=await M.createMerchant(m.model);0===t&&await W()},k=()=>{m.formStatus=!1,m.changeIng=!0},U=()=>{m.formStatus=!0,m.changeIng=!1},L=()=>{P.$router.go("/pages/public/merchantApplyList",{merchantApplyId:m.model.id})},T=async()=>{if(!(await F(v).validate().catch((e=>{console.log("error: ",e)}))))return;const{data:e,code:t}=await M.updateMerchant(m.model);0===t&&(m.formStatus=!0,m.changeIng=!1,await W())},z=w([]);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?(m.model=e,m.userApplyStatus=!0,m.formStatus=!0):(m.userApplyStatus=!1,m.formStatus=!1)},G=x((()=>P.$store("user").isLogin));return D((()=>G.value),(e=>{e&&window.location.reload()}),{deep:!0}),N((async e=>{G.value?(await M.checkSystemUser().then((e=>{console.log(!e.data),m.canUse=!e.data})),await I.getAreaTree().then((e=>{z.value=R(e.data)})),await W()):B()})),(e,t)=>{const x=s(i("uni-easyinput"),a),C=s(i("uni-forms-item"),l),w=s(i("s-uploader"),E),D=s(i("uni-data-picker"),O),N=_,B=s(i("uni-forms"),r),M=$,I=s(i("su-fixed"),j),P=s(i("s-layout"),A);return d(),o(P,{class:"set-wrap",title:"商家入驻",bgStyle:{color:"#FFF"}},{default:n((()=>[m.canUse?(d(),c(h,{key:0},[u(B,{model:m.model,rules:m.rules,validateTrigger:"bind",labelPosition:"left",border:"",class:"form-box",labelWidth:"200",ref_key:"merchantFormRef",ref:v},{default:n((()=>[u(N,{class:"bg-white ss-p-x-30"},{default:n((()=>[u(C,{name:"name",label:"商家名称",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.name,"onUpdate:modelValue":t[0]||(t[0]=e=>m.model.name=e),type:"name",placeholder:"请输入商家名称",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"contact",label:"联络人",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.contact,"onUpdate:modelValue":t[1]||(t[1]=e=>m.model.contact=e),type:"contact",placeholder:"请输入联络人",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"contactNumber",label:"联络人手机号",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.contactNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>m.model.contactNumber=e),type:"contactNumber",placeholder:"请输入联络人手机号",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"legalPerson",label:"法人",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.legalPerson,"onUpdate:modelValue":t[3]||(t[3]=e=>m.model.legalPerson=e),type:"legalPerson",placeholder:"请输入法人",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"legalPersonNumber",label:"法人手机号",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.legalPersonNumber,"onUpdate:modelValue":t[4]||(t[4]=e=>m.model.legalPersonNumber=e),type:"legalPersonNumber",placeholder:"请输入法人手机号",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"identityCardFront",label:"法人身份证正面",required:!m.formStatus,errorMessage:m.identityCardFrontError},{default:n((()=>[u(w,{url:m.model.identityCardFront,"onUpdate:url":t[5]||(t[5]=e=>m.model.identityCardFront=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"])])),_:1},8,["required","errorMessage"]),u(C,{name:"identityCardReverseSide",label:"法人身份证反面",required:!m.formStatus,errorMessage:e.identityCardReverseSideError},{default:n((()=>[u(w,{url:m.model.identityCardReverseSide,"onUpdate:url":t[6]||(t[6]=e=>m.model.identityCardReverseSide=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"])])),_:1},8,["required","errorMessage"]),u(C,{name:"areaId",label:"所在地",required:!m.formStatus,errorMessage:m.areaIdError},{default:n((()=>[u(D,{modelValue:m.model.areaId,"onUpdate:modelValue":t[7]||(t[7]=e=>m.model.areaId=e),localdata:z.value,readonly:m.formStatus},null,8,["modelValue","localdata","readonly"])])),_:1},8,["required","errorMessage"]),u(C,{name:"email",label:"邮箱",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.email,"onUpdate:modelValue":t[8]||(t[8]=e=>m.model.email=e),type:"email",placeholder:"请输入邮箱",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"address",label:"办公地址"},{default:n((()=>[u(x,{modelValue:m.model.address,"onUpdate:modelValue":t[9]||(t[9]=e=>m.model.address=e),type:"address",placeholder:"请输入办公地址",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1}),u(C,{name:"complaintsHotline",label:"维权电话"},{default:n((()=>[u(x,{modelValue:m.model.complaintsHotline,"onUpdate:modelValue":t[10]||(t[10]=e=>m.model.complaintsHotline=e),type:"complaintsHotline",placeholder:"请输入维权电话",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1}),u(C,{name:"customerServiceHotline",label:"客服电话",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.customerServiceHotline,"onUpdate:modelValue":t[11]||(t[11]=e=>m.model.customerServiceHotline=e),type:"customerServiceHotline",placeholder:"请输入客服电话",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"website",label:"官网"},{default:n((()=>[u(x,{modelValue:m.model.website,"onUpdate:modelValue":t[12]||(t[12]=e=>m.model.website=e),type:"website",placeholder:"请输入官网",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1}),u(C,{name:"bankName",label:"开户银行",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.bankName,"onUpdate:modelValue":t[13]||(t[13]=e=>m.model.bankName=e),type:"bankName",placeholder:"请输入开户银行",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"accountName",label:"账户名称",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.accountName,"onUpdate:modelValue":t[14]||(t[14]=e=>m.model.accountName=e),type:"accountName",placeholder:"请输入账户名称",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"accountNumber",label:"账户号码",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.accountNumber,"onUpdate:modelValue":t[15]||(t[15]=e=>m.model.accountNumber=e),type:"number",placeholder:"请输入账户号码",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),u(C,{name:"logoUrl",label:"Logo"},{default:n((()=>[u(w,{url:m.model.logoUrl,"onUpdate:url":t[16]||(t[16]=e=>m.model.logoUrl=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"])])),_:1}),u(C,{name:"businessLicensePicture",label:"营业执照",required:!m.formStatus,errorMessage:m.businessLicensePictureError},{default:n((()=>[u(w,{url:m.model.businessLicensePicture,"onUpdate:url":t[17]||(t[17]=e=>m.model.businessLicensePicture=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"])])),_:1},8,["required","errorMessage"]),u(C,{name:"brandLicensing",label:"品牌授权书",required:!m.formStatus,errorMessage:m.brandLicensingError},{default:n((()=>[u(w,{url:m.model.brandLicensing,"onUpdate:url":t[18]||(t[18]=e=>m.model.brandLicensing=e),fileMediatype:"image",limit:"1",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"]),m.model.brandLicensing?y("",!0):(d(),o(N,{key:0,class:"ss-m-t-20",style:{color:"var(--ui-BG-Main)"},onClick:S},{default:n((()=>[f(" 下载模板 ")])),_:1}))])),_:1},8,["required","errorMessage"]),u(C,{name:"otherCertificate",label:"其他证书"},{default:n((()=>[u(w,{url:m.model.otherCertificate,"onUpdate:url":t[19]||(t[19]=e=>m.model.otherCertificate=e),fileMediatype:"image",limit:"9",mode:"grid",imageStyles:{width:"299rpx",height:"168rpx"},readonly:m.formStatus},null,8,["url","readonly"])])),_:1}),u(C,{name:"description",label:"简介",required:!m.formStatus},{default:n((()=>[u(x,{modelValue:m.model.description,"onUpdate:modelValue":t[20]||(t[20]=e=>m.model.description=e),type:"description",placeholder:"请输入简介",inputBorder:!1,placeholderStyle:H,clearable:!1,disabled:m.formStatus},null,8,["modelValue","disabled"])])),_:1},8,["required"]),m.userApplyStatus?(d(),o(C,{key:0,name:"description",label:"状态"},{default:n((()=>[u(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})):y("",!0)])),_:1})])),_:1},8,["model","rules"]),u(I,{bottom:"",placeholder:"",bg:"none"},{default:n((()=>[u(N,{class:"footer-box ss-p-20 ss-flex"},{default:n((()=>[m.userApplyStatus?y("",!0):(d(),o(M,{key:0,class:"ss-rest-button btn",onClick:V},{default:n((()=>[f("提交")])),_:1})),[0].includes(m.model.checkStatus)?(d(),o(M,{key:1,class:"ss-rest-button btn"},{default:n((()=>[f("审核中")])),_:1})):y("",!0),[1,2].includes(m.model.checkStatus)?(d(),c(h,{key:2},[m.changeIng?(d(),c(h,{key:1},[u(M,{class:"ss-rest-button btn-two",onClick:U},{default:n((()=>[f("取消")])),_:1}),u(M,{class:"ss-rest-button btn-two",onClick:T},{default:n((()=>[f("保存并提交")])),_:1})],64)):(d(),c(h,{key:0},[u(M,{class:"ss-rest-button btn-two",onClick:L},{default:n((()=>[f("审核记录")])),_:1}),u(M,{class:"ss-rest-button btn-two",onClick:k},{default:n((()=>[f("变动")])),_:1})],64))],64)):y("",!0)])),_:1})])),_:1})],64)):y("",!0),m.canUse?y("",!0):(d(),o(N,{key:1,style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%,-50%)","text-align":"center"}},{default:n((()=>[f("当前用户("+g(p.value.mobile)+")",1),q("br"),f(" 已存在商户账号"),q("br"),f(" 请更换账号申请! ")])),_:1}))])),_:1})}}},[["__scopeId","data-v-6307ba02"]]);export{R as default};
|