1 |
- import{aT as i,ac as I,_ as U,d as T,bs as v,r as s,aC as k,o as f,G as h,C as u,H as q,j as o,l as t,h as V,M as b,aq as A}from"./index.js";import{u as M}from"./useTask.8a645393.js";const{VITE_PROXY_DOMAIN_REAL:G,VITE_PROXY_USER_REAL:N}=I(),c=N+"/admin/",L=l=>i.request("post",`${c}channellist`,{data:l}),X=l=>i.request("post",`${c}channelcatlist`,{data:l}),R=l=>i.request("post",`${c}channelcatsave`,{data:l}),j={class:"flex items-center"},w={class:"flex justify-end"},O=T({__name:"modal",props:{data:{type:null,required:!0},visible:{type:Boolean,required:!0}},emits:["refresh"],setup(l,{emit:C}){const m=l,e=v(m,"data"),r=v(m,"visible"),p=M({success:()=>{r.value=!1,C("refresh")}});function y(){const _={cat_name:e.value.cat_name,cat_id:e.value.cat_id,channel_id:e.value.channel_id,channel_name:e.value.channel_name,rate:e.value.rate};p.run(R(_))}return(_,a)=>{const E=s("ElInput"),d=s("ElFormItem"),B=s("ElInputNumber"),D=s("ElButton"),g=s("ElForm"),x=s("ElDialog"),F=k("loading");return f(),h(x,{title:"\u8BBE\u7F6E\u652F\u4ED8\u6E20\u9053",modelValue:t(r),"onUpdate:modelValue":a[3]||(a[3]=n=>A(r)?r.value=n:null),center:""},{default:u(()=>[q((f(),h(g,{"label-width":"120px"},{default:u(()=>[o(d,{label:"\u652F\u4ED8\u6E20\u9053"},{default:u(()=>[o(E,{modelValue:t(e).channel_name,"onUpdate:modelValue":a[0]||(a[0]=n=>t(e).channel_name=n),disabled:""},null,8,["modelValue"])]),_:1}),o(d,{label:"\u4E00\u7EA7\u5206\u7C7B"},{default:u(()=>[o(E,{modelValue:t(e).cat_name,"onUpdate:modelValue":a[1]||(a[1]=n=>t(e).cat_name=n),disabled:""},null,8,["modelValue"])]),_:1}),o(d,{label:"\u652F\u4ED8\u6E20\u9053\u6BDB\u5229\u7387"},{default:u(()=>[V("div",j,[o(B,{class:"mr-[10px]",modelValue:t(e).rate,"onUpdate:modelValue":a[2]||(a[2]=n=>t(e).rate=n),"controls-position":"right",precision:"2",min:0,max:100},null,8,["modelValue"]),b(" % ")])]),_:1}),V("div",w,[o(D,{type:"primary",onClick:y},{default:u(()=>[b("\u4FDD\u5B58")]),_:1})])]),_:1})),[[F,t(p).loading]])]),_:1},8,["modelValue"])}}});var P=U(O,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/paymentChannelGrossProfit/modal.vue"]]),Y=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));export{P as M,X as a,L as h,Y as m};
|