1 |
- import{az as x,d as D,a6 as C,r as p,p as B,c as V,e as t,k as w,i as E,g as o,f as s,j as v,t as r,A as a,F as h,u as F,_ as S}from"./index.76214426.js";const se=i=>x({url:"addon/customer_form.customer_form/lists",params:i}),j=i=>x({url:"addon/customer_form.customer_form/detail",params:i}),oe=i=>x.request({url:"addon/customer_form.customer_form/export",data:i,method:"POST"}),L={class:"container"},O={key:0},P={class:"tn-title--vertical-line title-box"},U={class:"texts"},q={key:1},z={class:"tn-title--vertical-line title-box"},I={class:"texts"},N={key:0},T={key:1},A={key:2},M={key:2},$={class:"tn-title--vertical-line title-box"},G={class:"texts"},H={key:0},J={key:3},K={class:"tn-title--vertical-line title-box"},Q={class:"texts"},R={key:4},W={class:"tn-title--vertical-line title-box"},X={class:"imgs"},Y=["src"],Z=D({props:{modelValue:{type:Boolean,default:!1},id:{default:0},diyId:null},emits:["refreshData","onClose"],setup(i,{emit:y}){const d=i;C();const _=p(!1);B(()=>d.modelValue,l=>{console.log(l,"val===========",d),_.value=l,l&&d.id&&m(d.id)}),p({showDialog:!1,wxappCode:""});const f=(l,n)=>{for(let c=0;c<n.length;c++)if(l==n[c])return!0};let g=p({text:[]});const m=l=>{console.log(l,d.id),j({id:l||d.id}).then(n=>{console.log(n,"res"),g.value=n})},k=()=>{y("onClose")};return(l,n)=>{const c=V("el-dialog");return t(),w(c,{modelValue:_.value,"onUpdate:modelValue":n[0]||(n[0]=e=>_.value=e),title:"\u8868\u5355\u8BE6\u60C5",width:"70%","destroy-on-close":"",onClose:k},{default:E(()=>[o("div",L,[(t(!0),s(h,null,v(F(g).text,e=>(t(),s("div",{class:"header",key:e.text},[e.type==="text"?(t(),s("div",O,[o("div",P,r(e.text),1),o("div",U,r(e.value),1)])):a("",!0),e.type==="radio"?(t(),s("div",q,[o("div",z,r(e.text),1),o("div",I,[e.value==1?(t(),s("span",N,"\u7537")):a("",!0),e.value==2?(t(),s("span",T,"\u5973")):a("",!0),e.value==3?(t(),s("span",A,"\u4FDD\u5BC6")):a("",!0)])])):a("",!0),e.type==="checkbox"?(t(),s("div",M,[o("div",$,r(e.text),1),o("div",G,[(t(!0),s(h,null,v(e.itemList,u=>(t(),s("div",{style:{display:"inline-block","margin-right":"10px"},key:u.value},[f(u.value,e.value)?(t(),s("span",H,r(u.name),1)):a("",!0)]))),128))])])):a("",!0),e.type==="textarea"?(t(),s("div",J,[o("div",K,r(e.text),1),o("div",Q,r(e.value),1)])):a("",!0),e.type==="upload"?(t(),s("div",R,[o("div",W,r(e.text),1),o("div",X,[(t(!0),s(h,null,v(e.fileList,(u,b)=>(t(),s("div",{key:b,style:{"margin-right":"10px"}},[o("img",{src:u,alt:"",style:{width:"150px",height:"150px","border-radius":"5px"}},null,8,Y)]))),128))])])):a("",!0)]))),128))])]),_:1},8,["modelValue"])}}});const ee=S(Z,[["__scopeId","data-v-6140024b"]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{ee as E,le as a,oe as e,se as g};
|