open-dialog.108d0a29.js 1.5 KB

1
  1. import{_ as g,d as b,E as D,b3 as x,a7 as A,x as a,o as l,N as d,K as s,b as n,y as c,c as V,M as y,u as i,L as k,W as C,aS as h,b4 as w}from"./index.1417328f.js";import{c as I}from"./index.bc9c1b35.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),L={"w-full":"",flex:"","justify-end":""},M=C("\u4FDD\u5B58"),O=b({__name:"open-dialog",setup(P,{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:s(()=>[n("div",U,[j,c(E,{placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0",modelValue:e.redreason,"onUpdate:modelValue":u[0]||(u[0]=o=>e.redreason=o)},{default:s(()=>[(l(!0),V(k,null,y(i(N),o=>(l(),d(f,w({key:o.value},o),null,16))),128))]),_:1},8,["modelValue"])]),n("div",L,[c(F,{type:"primary",loading:i(m),onClick:v},{default:s(()=>[M]),_:1},8,["loading"])])]),_:1},8,["modelValue"])}}});var q=g(O,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/redInk/components/open-dialog.vue"]]);export{q as default};