import{_ as g,d as b,E as D,br as x,a7 as A,x as a,o as l,N as d,K as n,b as s,y as c,c as V,M as k,u as i,L as y,W as w,aS as h,bs as C}from"./index.743f0c80.js";import{c as I}from"./index.398a38e6.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"}],L={flex:"","items-start":""},M=s("p",{"w-100px":""},"\u7EA2\u51B2\u539F\u56E0\uFF1A",-1),O={"w-full":"",flex:"","justify-end":""},R=w("\u4FDD\u5B58"),S=b({__name:"open-dialog",setup(U,{expose:p}){const t=D(!1),{run:_,loading:m}=x(),e=A({invRed:"",redreason:""}),v=()=>{e.redreason?_(I(e)):h.error("\u8BF7\u8F93\u5165\u7EA2\u51B2\u539F\u56E0")};return p({onDisplay(r){t.value=!0,e.invRed=r,e.redreason=""}}),(r,u)=>{const f=a("el-option"),E=a("el-select"),F=a("el-button"),B=a("el-dialog");return l(),d(B,{title:"\u63D0\u4EA4\u5F00\u7968",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=o=>t.value=o),center:""},{default:n(()=>[s("div",L,[M,c(E,{placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0",modelValue:e.redreason,"onUpdate:modelValue":u[0]||(u[0]=o=>e.redreason=o)},{default:n(()=>[(l(!0),V(y,null,k(i(N),o=>(l(),d(f,C({key:o.value},o),null,16))),128))]),_:1},8,["modelValue"])]),s("div",O,[c(F,{type:"primary",loading:i(m),onClick:v},{default:n(()=>[R]),_:1},8,["loading"])])]),_:1},8,["modelValue"])}}});var K=g(S,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/redInk/components/open-dialog.vue"]]);export{K as default};