import{_ as g,d as D,w as b,bv as A,Z as V,r as a,o as s,G as c,C as t,b as n,l as d,c as k,F as x,D as w,u as i,bw as y,M as C,aY as I}from"./index.1d1a5ecb.js";import{c as h}from"./index.3d70d973.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),M={"w-full":"",flex:"","justify-end":""},O=D({__name:"open-dialog",setup(R,{expose:p}){const l=b(!1),{run:_,loading:m}=A(),e=V({invRed:"",redreason:""}),v=()=>{e.redreason?_(h(e)):I.error("\u8BF7\u8F93\u5165\u7EA2\u51B2\u539F\u56E0")};return p({onDisplay(r){l.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 s(),c(B,{title:"\u63D0\u4EA4\u5F00\u7968",modelValue:l.value,"onUpdate:modelValue":u[1]||(u[1]=o=>l.value=o),center:"","close-on-click-modal":!1},{default:t(()=>[n("div",U,[j,d(E,{placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0",modelValue:e.redreason,"onUpdate:modelValue":u[0]||(u[0]=o=>e.redreason=o)},{default:t(()=>[(s(!0),k(x,null,w(i(N),o=>(s(),c(f,y({key:o.value},o),null,16))),128))]),_:1},8,["modelValue"])]),n("div",M,[d(F,{type:"primary",loading:i(m),onClick:v},{default:t(()=>[C("\u4FDD\u5B58")]),_:1},8,["loading"])])]),_:1},8,["modelValue"])}}});var L=g(O,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/redInk/components/open-dialog.vue"]]);export{L as default};
