WokerTask/public/admin/assets/edit.297f3f26.js

2 lines
22 KiB
JavaScript

import{K as Je,_ as Ge,$ as Ke,a0 as Qe,k as N,C as We,D as He,N as Xe,O as Ye,G as Ze,a1 as ea,a2 as aa,a3 as la,c as ta,w as ua,F as oa,M as ia}from"./element-plus.ff90c99c.js";import{a as sa,u as ra}from"./vue-router.6d4cf914.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import{a as ne,b as K,d as na,e as da}from"./company.b63663e9.js";import{a as ca,b as pa,c as ma,d as _a,e as fa,f as ba}from"./common.70c52fb2.js";import{d as de}from"./dict.ab043624.js";import{d as me,E as ya,r as m,s as ce,$ as Q,w as ga,ag as va,o as r,c as _,W as t,Q as o,u as e,F as g,a9 as F,P as p,T as E,U as L,V as Fa,a as h,j as W}from"./@vue.f8dfc830.js";import"./lodash.3e731b89.js";import{_ as Ea}from"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.c1e8d076.js";import{_ as pe}from"./dialog_index_man.vue_vue_type_script_setup_true_name_companyLists_lang.d6108a9e.js";import{a as Ba,e as ha}from"./index.71302537.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./usePaging.bd7a7dec.js";import"./role.101a1b11.js";import"./useDictOptions.d306a433.js";import"./admin.16eea08b.js";import"./axios.c2babb35.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const Va={class:"edit-popup"},Ca=h("div",{class:"tit"},"\u516C\u53F8\u57FA\u672C\u4FE1\u606F\u521B\u5EFA",-1),Aa=h("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),wa=h("span",{style:{color:"#f56c6c","padding-left":"20px"}},"*",-1),Da={class:"headimg",style:{"margin-left":"5px"}},ka=["src"],qa={key:1,class:"avatar-uploader-icon"},xa={style:{display:"flex","justify-content":"left"}},Ua={class:"right",style:{"max-width":"1100px"}},Oa=h("div",{class:"tit"},"\u5176\u4ED6\u8054\u7CFB\u4EBA",-1),Na=h("div",{class:"tit"},"\u8D44\u8D28\u4FE1\u606F",-1),La=["src"],Sa=["src","onClick"],Ta=["src"];const $a=me({name:"companyEdit"}),Sl=me({...$a,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ja,{expose:_e,emit:za}){var se,re;const S=ya("base_url"),A=Ba(),{removeTab:fe}=ha(),be=sa(),v=ra();m(!0);let H=m(!0),n=m(!1);v.query.flag,v.query.isshow&&(H=!1,n=!0);const T=m(".png, .jpg, .jpeg, image/png, image/jpeg"),P=m(0);let x=m(!1);const X=ce();ce(),m(),v.query.read&&(n=v.query.read),v.query.edit&&(x=v.query.edit);const a=Q({admin_id:"",admin_name:"",area_manager:"",area_manager_name:"",id:"",company_name:"",organization_code:"",province:"",city:"",area:"",street:"",village:"",brigade:"",address:"",responsible_area:[],company_type:"",avatar:"",sex:"1",id_card:"",master_name:"",master_position:"",master_phone:"",master_email:"",other_contacts:[],qualification:{corporate_account:"",business_license:"",business_licenseB:"",other_qualifications:[],bank_accountB:[],bank_account:[]},contract:{contract_type:"",party_a:0,file:"",contract_no:"\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210",type:1},party_a_name:"",file_image:""});A.userInfo.root==0&&(a.contract.party_a=(se=A.userInfo.company)==null?void 0:se.id,a.party_a_name=(re=A.userInfo.company)==null?void 0:re.company_name);const f=Q({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],villageOptions:[],brigadeOptions:[],dictTypeLists:[],contract_type:[],company_list:[]});m([]);const ye=Q({company_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",trigger:["blur"]}],organization_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u673A\u6784\u4EE3\u7801",trigger:["blur"]}],master_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u8054\u7CFB\u4EBA\u59D3\u540D",trigger:["blur"]}],master_position:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u8054\u7CFB\u4EBA\u804C\u52A1",trigger:["blur"]}],master_phone:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u8054\u7CFB\u4EBA\u624B\u673A",trigger:["blur"]}],avatar:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u7167\u7247",trigger:["blur"]}],account:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7",trigger:["blur"]}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:["blur"]}]}),U=m(!1),$=m(!1),j=m(!1),w=m(!1),D=m(!1),k=m(!1),q=m(!1),J=m(!0);function ge(u){U.value=!1,a.contract.party_a=u.id,a.party_a_name=u.company_name}function ve(u){$.value=!1,a.admin_name=u.name,a.admin_id=u.id}function Fe(u){j.value=!1,a.area_manager_name=u.name,a.area_manager=u.id}function Ra(){U.value=!0}const b=m(""),Y=m(0);ga(()=>a[b.value],(u,i)=>{if(Y.value==0)return Y.value++;a.responsible_area=[],a.responsible_area.push(u+"")});const Ee=u=>{},Z=async u=>{for(const i in a)u[i]!=null&&u[i]!=null&&(a[i]=u[i]);console.log(a)},Be=async u=>{const i=await ne({id:u.id});Z(i)},he=(u,i)=>{if(u.code==0){N.error(u.msg);return}a.qualification.business_license=u.data.uri},Ve=(u,i)=>{if(u.code==0){N.error(u.msg);return}a.qualification.business_licenseB=u.data.uri},Ce=(u,i)=>{if(u.code==0){N.error(u.msg);return}a.qualification.other_qualifications.push(u.data.uri)};function Ae(){a.other_contacts.push({name:"",position:"",phone:"",email:""})}function we(){a.other_contacts.pop({name:"",position:"",phone:"",email:""})}function ee(u,i=!0){if([30,14,15].indexOf(u)>-1)return w.value=!0,D.value=!1,k.value=!1,q.value=!1,a.street="",a.village="",a.brigade="",b.value="area",!0;if(u==16)return w.value=!0,D.value=!0,k.value=!1,q.value=!1,a.village="",a.brigade="",a.id||(a.street="",a.area=""),i&&(a.responsible_area=[]),J.value=!0,P.value=30,b.value="street",!0;if(u!=16&&(J.value=!1),u==41)return w.value=!0,D.value=!0,k.value=!1,q.value=!1,a.village="",a.brigade="",a.id||(a.street="",a.area=""),i&&(a.responsible_area=[]),b.value="street",!0;if(u==17)return w.value=!0,D.value=!0,k.value=!0,q.value=!1,a.brigade="",b.value="village",!0;if(u==18)return w.value=!0,D.value=!0,k.value=!0,q.value=!0,b.value="brigade",!0}function De(u){ae()}function ke(u){le()}function qe(u){te()}function xe(u){ue()}function Ue(u){oe()}const Oe=async()=>{const u=await ca({});f.provinceOptions=u},ae=async()=>{const u=await pa({city:a.province});f.cityOptions=u},le=async()=>{const u=await ma({area:a.city});f.areaOptions=u},te=async()=>{const u=await _a({street:a.area});if(a.company_type==16||a.company_type==41){const i=await K({key:"area",value:a.area,company_type:a.company_type});u.forEach(d=>{Object.values(i).find(s=>d.street_code==s+"")?d.disabled=!0:d.disabled=!1})}f.streetOptions=u},ue=async()=>{const u=await fa({village:a.street});if(a.company_type==17){const i=await K({key:"street",value:a.street,company_type:a.company_type});u.forEach(d=>{Object.values(i).find(s=>d.village_code==s+"")?d.disabled=!0:d.disabled=!1})}f.villageOptions=u},oe=async()=>{const u=await ba();if(a.company_type==18){const i=await K({key:"village",value:a.village,company_type:a.company_type});u.forEach(d=>{Object.values(i).find(s=>d.id==s+"")?d.disabled=!0:d.disabled=!1})}f.brigadeOptions=u};Oe();const Ne=async()=>{const u=await de({type_id:7});f.contract_type=u.lists},Le=async()=>{const u=await de({type_id:6});f.dictTypeLists=u.lists},Se=async()=>{var d;const u=await ne({id:v.query.id});u.company_type==16&&(P.value=30,J.value=!0),Object.keys(a).forEach(s=>{u[s]!=null&&u[s]!=null&&(a[s]=u[s])}),["province","city","area","street","village","brigade"].forEach(s=>{a[s]=a[s].toString()}),await ae(),await le(),await te(),await ue(),await oe(),a.party_a_name=(d=u.contract)==null?void 0:d.party_a_info.company_name,ee(a.company_type,!1)},Te=u=>{v.query.read||a.qualification.other_qualifications.splice(u,1)};Le(),Ne();const $e=(u,i)=>{if(u.code==0){N.error(u.msg);return}a.avatar=u.data.uri},ie=async()=>{var i;if(!a.avatar)return N.error("\u4E3B\u8981\u8054\u7CFB\u4EBA\u5934\u50CF\u4E0D\u53EF\u4E3A\u7A7A");await((i=X.value)==null?void 0:i.validate());const u=JSON.parse(JSON.stringify({...a}));u.qualification.other_qualifications=JSON.stringify(u.qualification.other_qualifications),v.query.id?await na(u):await da(u),fe(),be.back()};return v.query.id&&Se(),_e({open,setFormData:Z,getDetail:Be}),(u,i)=>{const d=We,s=He,B=Xe,V=Ye,je=Ze,ze=ea,y=aa,O=la,z=va("Plus"),R=ta,M=Je,Re=Ge,Me=Ke,Ie=Qe,I=ua,Pe=oa,G=ia;return r(),_("div",Va,[t(Pe,{ref_key:"formRef",ref:X,model:e(a),"label-width":"90px",rules:e(ye)},{default:o(()=>[t(y,{span:24,class:"pt-6 el-card"},{default:o(()=>[Ca,t(O,null,{default:o(()=>[t(s,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:o(()=>[t(d,{modelValue:e(a).company_name,"onUpdate:modelValue":i[0]||(i[0]=l=>e(a).company_name=l),placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",clearable:"",disabled:e(n),style:{width:"300px"}},null,8,["modelValue","disabled"])]),_:1}),t(s,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).organization_code,"onUpdate:modelValue":i[1]||(i[1]=l=>e(a).organization_code=l),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"300px"}},null,8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u5BF9\u516C\u8D26\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BF9\u516C\u8D26\u53F7",trigger:"blur"}],prop:"qualification.corporate_account"},{default:o(()=>[t(d,{modelValue:e(a).qualification.corporate_account,"onUpdate:modelValue":i[2]||(i[2]=l=>e(a).qualification.corporate_account=l),placeholder:"\u8BF7\u8F93\u5165\u5BF9\u516C\u8D26\u53F7",clearable:"",disabled:e(n),style:{width:"300px"}},null,8,["modelValue","disabled"])]),_:1}),t(s,{label:"\u516C\u53F8\u7C7B\u578B",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"company_type"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).company_type,"onUpdate:modelValue":i[3]||(i[3]=l=>e(a).company_type=l),placeholder:"\u8BF7\u9009\u62E9\u516C\u53F8\u7C7B\u578B",clearable:"",onChange:ee},{default:o(()=>[(r(!0),_(g,null,F(e(f).dictTypeLists,(l,c)=>(r(),p(B,{key:c,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u7701",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"province"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).province,"onUpdate:modelValue":i[4]||(i[4]=l=>e(a).province=l),placeholder:"\u8BF7\u9009\u62E9\u7701",clearable:"",onChange:De,style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).provinceOptions,(l,c)=>(r(),p(B,{key:c,label:l.province_name,value:l.province_code},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u5E02",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"city"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).city,"onUpdate:modelValue":i[5]||(i[5]=l=>e(a).city=l),placeholder:"\u8BF7\u9009\u62E9\u5E02",clearable:"",onChange:ke,style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).cityOptions,(l,c)=>(r(),p(B,{key:c,label:l.city_name,value:l.city_code},null,8,["label","value"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),e(w)?(r(),p(s,{key:0,label:"\u533A",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"area"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).area,"onUpdate:modelValue":i[6]||(i[6]=l=>e(a).area=l),placeholder:"\u8BF7\u9009\u62E9\u533A",clearable:"",onChange:qe,style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).areaOptions,(l,c)=>(r(),p(B,{key:c,label:l.area_name,value:l.area_code,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1})):E("",!0),e(D)?(r(),p(s,{key:1,label:"\u9547",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"street"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).street,"onUpdate:modelValue":i[7]||(i[7]=l=>e(a).street=l),placeholder:"\u8BF7\u9009\u62E9\u9547",clearable:"",onChange:xe,style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).streetOptions,(l,c)=>(r(),p(B,{key:c,label:l.street_name,value:l.street_code,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1})):E("",!0),e(k)?(r(),p(s,{key:2,label:"\u6751",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"village"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).village,"onUpdate:modelValue":i[8]||(i[8]=l=>e(a).village=l),placeholder:"\u8BF7\u9009\u62E9\u6751",clearable:"",onChange:Ue,style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).villageOptions,(l,c)=>(r(),p(B,{key:c,label:l.village_name,value:l.village_code,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1})):E("",!0),e(q)?(r(),p(s,{key:3,label:"\u961F",rules:[{required:!0,message:"\u4E0D\u53EF\u4E3A\u7A7A",trigger:"blur"}],prop:"brigade"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).brigade,"onUpdate:modelValue":i[9]||(i[9]=l=>e(a).brigade=l),placeholder:"\u8BF7\u9009\u62E9\u961F",clearable:"",style:{width:"100%"}},{default:o(()=>[(r(!0),_(g,null,F(e(f).brigadeOptions,(l,c)=>(r(),p(B,{key:c,label:l.brigade_name,value:l.id,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1})):E("",!0),t(s,{label:"\u5730\u5740",prop:"address"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).address,"onUpdate:modelValue":i[10]||(i[10]=l=>e(a).address=l),placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",clearable:"",style:{width:"300px"}},null,8,["disabled","modelValue"])]),_:1}),t(y,{span:23},{default:o(()=>[t(s,{label:"\u8D1F\u8D23\u533A\u57DF",prop:"region"},{default:o(()=>[t(ze,{modelValue:e(a).responsible_area,"onUpdate:modelValue":i[11]||(i[11]=l=>e(a).responsible_area=l),onChange:Ee,disabled:e(n)||e(a).company_type==17},{default:o(()=>[(r(!0),_(g,null,F(e(f)[e(b)+"Options"],l=>(r(),p(je,{disabled:e(a)[e(b)]==l[e(b)+"_code"]||e(a)[e(b)]==l.id||l.disabled,key:l[e(b)+"_name"],label:e(b)=="brigade"?l.id+"":l[e(b)+"_code"]+""},{default:o(()=>[L(Fa(l[e(b)+"_name"]),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1}),t(y,{span:24,class:"pt-6 el-card"},{default:o(()=>[Aa,t(Ie,null,{default:o(()=>[t(Re,{width:"190px",style:{display:"flex"}},{default:o(()=>[wa,h("div",Da,[t(M,{disabled:e(n),accept:e(T),modelValue:e(a).avatar,"onUpdate:modelValue":i[12]||(i[12]=l=>e(a).avatar=l),class:"avatar-uploader-head",data:{cid:1},headers:{Token:e(A).token},action:e(S)+"/upload/image","show-file-list":!1,"on-success":$e},{default:o(()=>[e(a).avatar?(r(),_("img",{key:0,src:e(a).avatar,class:"avatar"},null,8,ka)):(r(),_("div",qa,[t(R,null,{default:o(()=>[t(z)]),_:1})]))]),_:1},8,["disabled","accept","modelValue","headers","action"])])]),_:1}),t(Me,null,{default:o(()=>[t(O,null,{default:o(()=>[h("div",xa,[h("div",Ua,[t(O,null,{default:o(()=>[t(s,{label:"\u59D3\u540D",prop:"master_name"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).master_name,"onUpdate:modelValue":i[13]||(i[13]=l=>e(a).master_name=l),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"450px"}},null,8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u804C\u52A1",prop:"master_position"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).master_position,"onUpdate:modelValue":i[14]||(i[14]=l=>e(a).master_position=l),placeholder:"\u8BF7\u8F93\u5165\u804C\u52A1",clearable:"",style:{width:"450px"}},null,8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u624B\u673A",prop:"master_phone"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).master_phone,"onUpdate:modelValue":i[15]||(i[15]=l=>e(a).master_phone=l),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"450px"}},null,8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u90AE\u7BB1"},{default:o(()=>[t(d,{disabled:"",modelValue:e(a).master_email,"onUpdate:modelValue":i[16]||(i[16]=l=>e(a).master_email=l),placeholder:"\u90AE\u7BB1\u5C06\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210",clearable:"",style:{width:"450px"}},null,8,["modelValue"])]),_:1}),t(s,{label:"\u6027\u522B",prop:"sex"},{default:o(()=>[t(V,{disabled:e(n),modelValue:e(a).sex,"onUpdate:modelValue":i[17]||(i[17]=l=>e(a).sex=l),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",style:{width:"450px"}},{default:o(()=>[t(B,{label:"\u7537",value:"1"}),t(B,{label:"\u5973",value:"2"})]),_:1},8,["disabled","modelValue"])]),_:1}),t(s,{label:"\u8EAB\u4EFD\u8BC1"},{default:o(()=>[t(d,{disabled:e(n),modelValue:e(a).id_card,"onUpdate:modelValue":i[18]||(i[18]=l=>e(a).id_card=l),placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1",clearable:"",style:{width:"450px"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})])])]),_:1})]),_:1})]),_:1})]),_:1}),t(y,{span:24,class:"pt-6 el-card"},{default:o(()=>[Oa,t(O,null,{default:o(()=>[(r(!0),_(g,null,F(e(a).other_contacts,(l,c)=>(r(),_(g,{key:c},[t(y,{span:12},{default:o(()=>[t(s,{label:"\u59D3\u540D",prop:"field120"},{default:o(()=>[t(d,{disabled:e(n),modelValue:l.name,"onUpdate:modelValue":C=>l.name=C,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),t(y,{span:12},{default:o(()=>[t(s,{label:"\u804C\u52A1",prop:"field121"},{default:o(()=>[t(d,{disabled:e(n),modelValue:l.position,"onUpdate:modelValue":C=>l.position=C,placeholder:"\u8BF7\u8F93\u5165\u804C\u52A1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),t(y,{span:12},{default:o(()=>[t(s,{label:"\u624B\u673A",prop:"field122"},{default:o(()=>[t(d,{disabled:e(n),modelValue:l.phone,"onUpdate:modelValue":C=>l.phone=C,placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),t(y,{span:12},{default:o(()=>[t(s,{label:"\u90AE\u7BB1"},{default:o(()=>[t(d,{disabled:e(n),modelValue:l.email,"onUpdate:modelValue":C=>l.email=C,placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)],64))),128)),t(y,{span:24},{default:o(()=>[t(s,{label:"",prop:"field126"},{default:o(()=>[t(I,{type:"primary",disabled:e(n),size:"medium",onClick:Ae},{default:o(()=>[L("\u6DFB\u52A0\u8054\u7CFB\u4EBA")]),_:1},8,["disabled"]),e(a).other_contacts.length?(r(),p(I,{key:0,type:"primary",disabled:e(n),size:"medium",onClick:we},{default:o(()=>[L("\u5220\u9664")]),_:1},8,["disabled"])):E("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),t(y,{span:24,class:"pt-6 el-card"},{default:o(()=>[Na,t(O,null,{default:o(()=>[t(y,{span:12},{default:o(()=>[t(s,{label:"\u516C\u53F8\u8D44\u8D28",required:""},{default:o(()=>[t(M,{disabled:e(n),accept:e(T),modelValue:e(a).qualification.business_license,"onUpdate:modelValue":i[19]||(i[19]=l=>e(a).qualification.business_license=l),class:"pl-3 avatar-uploader",data:{cid:1},headers:{Token:e(A).token},action:e(S)+"/upload/image","show-file-list":!1,"on-success":he},{default:o(()=>[e(a).qualification.business_license?(r(),_("img",{key:0,src:e(a).qualification.business_license,class:"avatar"},null,8,La)):(r(),p(R,{key:1,class:"avatar-uploader-icon"},{default:o(()=>[t(z)]),_:1}))]),_:1},8,["disabled","accept","modelValue","headers","action"])]),_:1}),t(s,{class:"others",label:"\u5176\u4ED6\u8D44\u8D28"},{default:o(()=>[(r(!0),_(g,null,F(e(a).qualification.other_qualifications,(l,c)=>(r(),_("div",{key:c,class:"otherimg"},[h("img",{src:l,onClick:C=>Te(c)},null,8,Sa)]))),128)),e(H)?(r(),p(M,{key:0,accept:e(T),disabled:e(n),class:"pl-3 avatar-uploader",data:{cid:1},headers:{Token:e(A).token},action:e(S)+"/upload/image","show-file-list":!1,"on-success":Ce,style:{"margin-bottom":"12px"}},{default:o(()=>[t(R,{class:"avatar-uploader-icon"},{default:o(()=>[t(z)]),_:1})]),_:1},8,["accept","disabled","headers","action"])):E("",!0)]),_:1})]),_:1}),t(y,{span:12},{default:o(()=>[t(s,{"label-width":"120px",label:"\u5F00\u6237\u8BB8\u53EF\u8BC1",required:""},{default:o(()=>[t(M,{disabled:e(n),accept:e(T),modelValue:e(a).qualification.business_licenseB,"onUpdate:modelValue":i[20]||(i[20]=l=>e(a).qualification.business_licenseB=l),class:"pl-3 avatar-uploader",data:{cid:1},headers:{Token:e(A).token},action:e(S)+"/upload/image","show-file-list":!1,"on-success":Ve},{default:o(()=>[e(a).qualification.business_licenseB?(r(),_("img",{key:0,src:e(a).qualification.business_licenseB,class:"avatar"},null,8,Ta)):(r(),p(R,{key:1,class:"avatar-uploader-icon"},{default:o(()=>[t(z)]),_:1}))]),_:1},8,["disabled","accept","modelValue","headers","action"])]),_:1})]),_:1})]),_:1})]),_:1}),E("",!0),e(n)==!1&&e(x)==!1||e(x)?(r(),p(y,{key:1,span:24,class:"pt-6 el-card"},{default:o(()=>[t(s,{label:"",prop:"field139"},{default:o(()=>[e(x)?(r(),p(I,{key:0,type:"primary",size:"medium",onClick:ie},{default:o(()=>[L("\u5B8C\u6210")]),_:1})):E("",!0),e(n)==!1&&e(x)==!1?(r(),p(I,{key:1,type:"primary",disabled:e(n),size:"medium",onClick:ie},{default:o(()=>[L("\u521B\u5EFA")]),_:1},8,["disabled"])):E("",!0)]),_:1})]),_:1})):E("",!0)]),_:1},8,["model","rules"]),t(G,{modelValue:e(U),"onUpdate:modelValue":i[25]||(i[25]=l=>W(U)?U.value=l:null),title:"\u9009\u62E9\u7B7E\u7EA6\u65B9",width:"60%"},{default:o(()=>[t(Ea,{onCustomEvent:ge,type:e(P)},null,8,["type"])]),_:1},8,["modelValue"]),t(G,{modelValue:e($),"onUpdate:modelValue":i[26]||(i[26]=l=>W($)?$.value=l:null),title:"\u9009\u62E9\u7BA1\u7406\u4EBA\u5458",width:"60%"},{default:o(()=>[t(pe,{onCustomEvent:ve})]),_:1},8,["modelValue"]),t(G,{modelValue:e(j),"onUpdate:modelValue":i[27]||(i[27]=l=>W(j)?j.value=l:null),title:"\u9009\u62E9\u7247\u533A\u7ECF\u7406",width:"60%"},{default:o(()=>[t(pe,{onCustomEvent:Fe,type:8})]),_:1},8,["modelValue"])])}}});export{Sl as default};