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