property-79fbdb7c.js 5.8 KB

1
  1. import{_ as N,__tla as O}from"./ComponentContainerProperty-540b9384.js";import{d as R,r as w,K as T,o as m,c as s,f as t,w as l,a as e,F as C,n as A,m as v,t as c,aq as U,O as G,N as H,_ as M,B as Q,z as W,da as J,b5 as X,ah as Y,d3 as Z,C as $,__tla as tt}from"./index-2eab2d23.js";import{_ as at,__tla as lt}from"./index-30d48444.js";import{_ as et,__tla as rt}from"./UploadImg-90fe71c2.js";import{E as ot,__tla as _t}from"./el-card-c558f0ec.js";import{E as ut,__tla as mt}from"./el-text-b1163e3d.js";import{u as st,__tla as nt}from"./util-8a54c07a.js";import{e as ct}from"./constants-40f13f5e.js";import{_ as pt,__tla as dt}from"./CouponSelect.vue_vue_type_script_setup_true_lang-aa5d9def.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";import{__tla as it}from"./index-d3f876ab.js";import{__tla as ft}from"./el-image-viewer-5d14bc77.js";import{__tla as yt}from"./useMessage-171aa63e.js";import{__tla as ht}from"./Dialog-c2716df6.js";import{__tla as bt}from"./Qrcode-a57a527d.js";import{__tla as Vt}from"./IFrame.vue_vue_type_script_setup_true_lang-82b81649.js";import{__tla as gt}from"./vuedraggable.umd-67523a5c.js";import{__tla as xt}from"./el-collapse-item-5ecf4321.js";import{__tla as wt}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{__tla as Ct}from"./index-cc63c3c4.js";import{__tla as vt}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{__tla as Ut}from"./dict-1ad71b6f.js";import{__tla as Pt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{__tla as kt}from"./formatter-994446d7.js";import{__tla as It}from"./formatTime-41155543.js";import{__tla as Et}from"./couponTemplate-edb9ecc7.js";let P,zt=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Et}catch{}})()]).then(async()=>{let f,y,h;f={key:0},y={key:1},h={key:2},P=R({name:"CouponCardProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(k,{emit:I}){const E=k,z=I,{formData:r}=st(E.modelValue,z),u=w([]),b=w(),D=()=>{b.value.open()};return T(()=>u.value,()=>{r.value.couponIds=u.value.map(V=>V.id)}),(V,o)=>{const g=ut,n=M,F=Q,_=W,x=ot,p=J,d=X,S=Y,j=et,i=at,q=Z,B=$,K=N;return m(),s(C,null,[t(K,{modelValue:e(r).style,"onUpdate:modelValue":o[6]||(o[6]=a=>e(r).style=a)},{default:l(()=>[t(B,{"label-width":"80px",model:e(r)},{default:l(()=>[t(x,{header:"\u4F18\u60E0\u5238\u5217\u8868",class:"property-group",shadow:"never"},{default:l(()=>[(m(!0),s(C,null,A(e(u),(a,L)=>(m(),s("div",{key:L,class:"flex items-center justify-between"},[t(g,{size:"large",truncated:""},{default:l(()=>[v(c(a.name),1)]),_:2},1024),t(g,{type:"info",truncated:""},{default:l(()=>[a.usePrice>0?(m(),s("span",f,"\u6EE1"+c(e(U)(a.usePrice))+"\u5143\uFF0C",1)):G("",!0),a.discountType===e(ct).PRICE.type?(m(),s("span",y," \u51CF"+c(e(U)(a.discountPrice))+"\u5143 ",1)):(m(),s("span",h," \u6253"+c(a.discountPercent)+"\u6298 ",1))]),_:2},1024)]))),128)),t(_,{"label-width":"0"},{default:l(()=>[t(F,{onClick:D,type:"primary",plain:"",class:"m-t-8px w-full"},{default:l(()=>[t(n,{icon:"ep:plus",class:"mr-5px"}),v(" \u6DFB\u52A0 ")]),_:1})]),_:1})]),_:1}),t(x,{header:"\u4F18\u60E0\u5238\u6837\u5F0F",class:"property-group",shadow:"never"},{default:l(()=>[t(_,{label:"\u5217\u6570",prop:"type"},{default:l(()=>[t(S,{modelValue:e(r).columns,"onUpdate:modelValue":o[0]||(o[0]=a=>e(r).columns=a)},{default:l(()=>[t(d,{class:"item",content:"\u4E00\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:1},{default:l(()=>[t(n,{icon:"fluent:text-column-one-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E8C\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:2},{default:l(()=>[t(n,{icon:"fluent:text-column-two-24-filled"})]),_:1})]),_:1}),t(d,{class:"item",content:"\u4E09\u5217",placement:"bottom"},{default:l(()=>[t(p,{label:3},{default:l(()=>[t(n,{icon:"fluent:text-column-three-24-filled"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(_,{label:"\u80CC\u666F\u56FE\u7247",prop:"bgImg"},{default:l(()=>[t(j,{modelValue:e(r).bgImg,"onUpdate:modelValue":o[1]||(o[1]=a=>e(r).bgImg=a),height:"80px",width:"100%",class:"min-w-160px"},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6587\u5B57\u989C\u8272",prop:"textColor"},{default:l(()=>[t(i,{modelValue:e(r).textColor,"onUpdate:modelValue":o[2]||(o[2]=a=>e(r).textColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u80CC\u666F",prop:"button.bgColor"},{default:l(()=>[t(i,{modelValue:e(r).button.bgColor,"onUpdate:modelValue":o[3]||(o[3]=a=>e(r).button.bgColor=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u6309\u94AE\u6587\u5B57",prop:"button.color"},{default:l(()=>[t(i,{modelValue:e(r).button.color,"onUpdate:modelValue":o[4]||(o[4]=a=>e(r).button.color=a)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u95F4\u9694",prop:"space"},{default:l(()=>[t(q,{modelValue:e(r).space,"onUpdate:modelValue":o[5]||(o[5]=a=>e(r).space=a),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(pt,{ref_key:"couponSelectDialog",ref:b,"multiple-selection":e(u),"onUpdate:multipleSelection":o[7]||(o[7]=a=>H(u)?u.value=a:null)},null,8,["multiple-selection"])],64)}}})});export{zt as __tla,P as default};