1 |
- import{_ as F,d as y,w as d,r as p,o as B,G as b,C as t,l as o,u as c,aR as C,b as x,M as k}from"./index.fd765376.js";const w={class:"w-full flex justify-end"},E=y({__name:"post-modal",emits:["post-save"],setup(U,{expose:f,emit:i}){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\u7801",trigger:"change",required:!0}],post_fee:[{message:"\u8BF7\u8F93\u5165\u7269\u6D41\u8D39",trigger:"change",required:!0}]},D=()=>{m.value.validate(s=>{s&&(i("post-save",{...c(e),invNo:_}),a.value=!1)})};return f({onDisplay(s){e.value={post_company:"",post_code:"",post_fee:""},a.value=!0,_=s}}),(s,l)=>{const r=p("el-input"),n=p("el-form-item"),V=p("el-button"),g=p("ElDialog");return B(),b(g,{center:"",title:"\u586B\u5199\u7269\u6D41",modelValue:a.value,"onUpdate:modelValue":l[3]||(l[3]=u=>a.value=u),"close-on-click-modal":!1},{default:t(()=>[o(c(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":l[0]||(l[0]=u=>e.value.post_company=u)},null,8,["modelValue"])]),_:1}),o(n,{label:"\u7269\u6D41\u7F16\u7801",prop:"post_code"},{default:t(()=>[o(r,{modelValue:e.value.post_code,"onUpdate:modelValue":l[1]||(l[1]=u=>e.value.post_code=u)},null,8,["modelValue"])]),_:1}),o(n,{label:"\u7269\u6D41\u8D39",prop:"post_fee"},{default:t(()=>[o(r,{modelValue:e.value.post_fee,"onUpdate:modelValue":l[2]||(l[2]=u=>e.value.post_fee=u)},null,8,["modelValue"])]),_:1}),o(n,null,{default:t(()=>[x("div",w,[o(V,{type:"primary",onClick:D},{default:t(()=>[k("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});var q=F(E,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/components/post-modal.vue"]]);export{q as default};
|