import{u as A}from"./useInstance.233fbdde.js";import{az as h,d as B,r as V,b as x,p as D,c as a,e as E,k as w,i as o,h as t,u,a2 as y,m as C,E as q}from"./index.0308b213.js";const z=l=>h.request({url:"addon/creditshop.order/lists",params:l}),F=l=>h.request({url:"addon/creditshop.order/handle",method:"post",data:l}),N=C("\u63D0\u4EA4"),O=C("\u53D6\u6D88"),I=B({props:{modelValue:{type:Boolean,default:!1},ids:null},emits:["update:modelValue","onClose"],setup(l,{emit:m}){const i=l,{global:g}=A(),n=V(!1),c=V(),e=x({note:"",ids:[]});D(()=>i.modelValue,p=>{e.ids=i.ids,n.value=p});const b=()=>{F(e).then(()=>{q.success("\u8BA2\u5355\u5904\u7406\u6210\u529F")}).catch(()=>{}),d()},d=()=>{m("update:modelValue",!1),m("onClose"),g.$resetForm(c.value,e)};return(p,s)=>{const k=a("el-input"),f=a("el-form-item"),_=a("el-button"),v=a("el-dialog");return E(),w(v,{modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=r=>n.value=r),title:"\u8BA2\u5355\u5904\u7406",width:"50%",onClose:d},{default:o(()=>[t(u(y),{ref_key:"formRef",ref:c,model:u(e),"label-width":"140px"},{default:o(()=>[t(f,{class:"tn-el-form-item",label:"\u8BA2\u5355\u5907\u6CE8"},{default:o(()=>[t(k,{modelValue:u(e).note,"onUpdate:modelValue":s[0]||(s[0]=r=>u(e).note=r)},null,8,["modelValue"])]),_:1}),t(f,null,{default:o(()=>[t(_,{type:"primary",onClick:b},{default:o(()=>[N]),_:1}),t(_,{onClick:d},{default:o(()=>[O]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{I as _,z as g};
