2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
|
import{U as ca,K as pa,k as b,J as ma,c as _a,a3 as fa,C as ba,D as ga,a2 as va,N as ya,O as Va,a4 as Fa,w as ka,F as Ba,M as ha}from"./element-plus.ff90c99c.js";import{a as Ea,u as wa}from"./vue-router.6d4cf914.js";import{b as Ca,c as qa}from"./consumer.cefe9115.js";import{a as Da,b as Aa,c as Ua,d as Oa,e as La,f as xa}from"./common.f9fe27bf.js";import{e as Sa,a as Ta}from"./index.9acc1fa4.js";import"./lodash.ffb5376d.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import{_ as $a}from"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.971dd500.js";import{d as S,E as Ra,r as w,$ as x,s as Pa,ag as Ia,o as i,c as s,W as t,Q as n,u as e,a as h,P as c,F as k,a9 as B,U as Ma,j as Na}from"./@vue.f8dfc830.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"./axios.f9df025a.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.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";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./usePaging.bd7a7dec.js";import"./company.04834679.js";import"./dict.d8314400.js";const ja=h("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u57FA\u672C\u4FE1\u606F\u521B\u5EFA",-1),za={class:"headimg"},Ha=["src"],Ja=h("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u8D44\u8D28\u4FE1\u606F",-1),Ka={style:{display:"flex","justify-content":"space-between"}},Qa=["src"],Wa=["src"],Ya=["src"],Ga=["src"],Xa=["src"],Za=["src"],ae=S({name:"consumerDetail"}),Ke=S({...ae,setup(ee){const g=Ra("base_url");Sa();const T=Ea();wa(),w(!0);const a=x({id:"",sex:"",id_card:"",nickname:"",group_id:"",company_id:0,user_information_count:"",company_name:"",deposit_date:"",deposit:"",province:"",city:"",area:"",street:"",village:"",brigade:"",province_name:"",city_name:"",area_name:"",street_name:"",village_name:"",brigade_name:"",address:"",account:"",qualification:{id_card:"",id_card_b:"",car_card:"",car_card_b:"",bank_account:"",bank_account_b:""},avatar:"",multipoint_login:1}),$=w({company_name:[{required:!0,message:"\u8BF7\u9009\u62E9\u516C\u53F8",trigger:"blur"}],group_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u89D2\u8272",trigger:"blur"}],nickname:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D",trigger:"blur"}],account:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",trigger:"blur"}]}),R=()=>{let l=a.deposit_date;const u=l.getFullYear(),U=String(l.getMonth()+1).padStart(2,"0"),A=String(l.getDate()).padStart(2,"0");a.deposit_date=`${u}-${U}-${A}`,console.log(a.deposit_date)},p=x({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],villageOptions:[],dictTypeLists:[],brigadeOptions:[],contract_type:[],contract:[]}),D=w(!1),P=l=>{var u;a.company_id=l.id,a.company_name=l.company_name,a.province=l.province,a.city=l.city,a.area=l.area,a.street=l.street,a.village=l.village,a.brigade=l.brigade,a.province_name=l.province_name,a.city_name=l.city_name,a.area_name=l.area_name,a.street_name=l.street_name,a.village_name=l.village_name,a.brigade_name=l.brigade_name,(u=C.value)==null||u.clearValidate(["company_name"]),D.value=!1},O=w([]);Ca({}).then(l=>{O.value=l});const C=Pa();w(!1);const v=Ta();w([]);const I=(l,u)=>{if(l.code==0){b.error(l.msg);return}a.qualificati
|