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