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