import{_ as g,d as D,x as b,bG as x,Z as A,r as s,o as u,G as c,D as t,h as n,l as d,c as V,F as k,E as y,m as i,bJ as C,M as h,aZ as w}from"./index.js";import{c as I}from"./index.288fc1c2.js";const N=[{value:"1",label:"\u9500\u552E\u9000\u56DE"},{value:"2",label:"\u5F00\u7968\u6709\u8BEF"},{value:"3",label:"\u670D\u52A1\u4E2D\u65AD"},{value:"4",label:"\u9500\u552E\u6298\u8BA9"}],U={flex:"","items-start":""},j=n("p",{"w-100px":""},"\u7EA2\u51B2\u539F\u56E0\uFF1A",-1),G={"w-full":"",flex:"","justify-end":""},M=D({__name:"open-dialog",setup(O,{expose:p}){const a=b(!1),{run:_,loading:m}=x(),e=A({invRed:"",redreason:""}),v=()=>{e.redreason?_(I(e)):w.error("\u8BF7\u8F93\u5165\u7EA2\u51B2\u539F\u56E0")};return p({onDisplay(r){a.value=!0,e.invRed=r,e.redreason=""}}),(r,l)=>{const f=s("el-option"),E=s("el-select"),F=s("el-button"),B=s("el-dialog");return u(),c(B,{title:"\u63D0\u4EA4\u5F00\u7968",modelValue:a.value,"onUpdate:modelValue":l[1]||(l[1]=o=>a.value=o),center:"","close-on-click-modal":!1,"close-on-press-escape":!1},{default:t(()=>[n("div",U,[j,d(E,{placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0",modelValue:e.redreason,"onUpdate:modelValue":l[0]||(l[0]=o=>e.redreason=o)},{default:t(()=>[(u(!0),V(k,null,y(i(N),o=>(u(),c(f,C({key:o.value},o),null,16))),128))]),_:1},8,["modelValue"])]),n("div",G,[d(F,{type:"primary",loading:i(m),onClick:v},{default:t(()=>[h("\u4FDD\u5B58")]),_:1},8,["loading"])])]),_:1},8,["modelValue"])}}});var q=g(M,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/redInk/components/open-dialog.vue"]]);export{q as default};