import{_ as g,d as y,E as d,x as p,o as B,N as b,K as t,y as o,b as x,u as i,aE as C,W as E}from"./index.1417328f.js";const k={class:"w-full flex justify-end"},N=E("\u4FDD\u5B58"),U=y({__name:"post-modal",emits:["post-save"],setup(w,{expose:c,emit:f}){const m=d(null),e=d({post_company:"",post_code:"",post_fee:""}),a=d(!1);let _="";const v={post_company:[{message:"\u8BF7\u8F93\u5165\u7269\u6D41\u5FEB\u9012\u516C\u53F8",trigger:"change",required:!0}],post_code:[{message:"\u8BF7\u8F93\u5165\u7269\u6D41\u7F16\u53F7",trigger:"change",required:!0}],post_fee:[{message:"\u8BF7\u8F93\u5165\u7269\u6D41\u8D39",trigger:"change",required:!0}]},D=()=>{m.value.validate(s=>{s&&(f("post-save",{...i(e),invNo:_}),a.value=!1)})};return c({onDisplay(s){e.value={post_company:"",post_code:"",post_fee:""},a.value=!0,_=s}}),(s,u)=>{const r=p("el-input"),n=p("el-form-item"),F=p("el-button"),V=p("ElDialog");return B(),b(V,{center:"",title:"\u586B\u5199\u7269\u6D41",modelValue:a.value,"onUpdate:modelValue":u[3]||(u[3]=l=>a.value=l)},{default:t(()=>[o(i(C),{ref_key:"formRef",ref:m,"label-width":"110px",rules:v,model:e.value},{default:t(()=>[o(n,{label:"\u7269\u6D41\u5FEB\u9012\u516C\u53F8",prop:"post_company"},{default:t(()=>[o(r,{modelValue:e.value.post_company,"onUpdate:modelValue":u[0]||(u[0]=l=>e.value.post_company=l)},null,8,["modelValue"])]),_:1}),o(n,{label:"\u7269\u6D41\u7F16\u53F7",prop:"post_code"},{default:t(()=>[o(r,{modelValue:e.value.post_code,"onUpdate:modelValue":u[1]||(u[1]=l=>e.value.post_code=l)},null,8,["modelValue"])]),_:1}),o(n,{label:"\u7269\u6D41\u8D39",prop:"post_fee"},{default:t(()=>[o(r,{modelValue:e.value.post_fee,"onUpdate:modelValue":u[2]||(u[2]=l=>e.value.post_fee=l)},null,8,["modelValue"])]),_:1}),o(n,null,{default:t(()=>[x("div",k,[o(F,{type:"primary",onClick:D},{default:t(()=>[N]),_:1})])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});var P=g(U,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/components/post-modal.vue"]]);export{P as default};