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