import{P as C}from"./page.3b4d44cb.js";import{b as P}from"./printer.6dc17f12.js";import{b7 as y,b as k,E as D,_ as V,c as o,e as d,k as i,i as s,g as u,h as n,f as $,j as x,F as S,m as w,R as I,S as L}from"./index.0308b213.js";const N={components:{Page:C},setup(){const e=y(),t=k([{label:"\u6807\u7B7E\u540D\u79F0",value:""},{label:"\u5206\u7C7B\u6392\u5E8F",vlaue:""}]);return{formData:t,addfrom:()=>{t.push({label:"\u6807\u7B7E\u540D\u79F0",value:""},{label:"\u5206\u7C7B\u6392\u5E8F",vlaue:""})},submit:()=>{let r={titles:t.filter(a=>a.label=="\u6807\u7B7E\u540D\u79F0").map(a=>String(a.value)),displayorders:t.filter(a=>a.label=="\u5206\u7C7B\u6392\u5E8F").map(a=>String(a.value))};console.log("\u6570\u7EC4",r),P(r).then(a=>{D.success("\u63D0\u4EA4\u6210\u529F"),setTimeout(()=>{e.go(-1)},1e3)})}}}};const _=e=>(I("data-v-aa9578bf"),e=e(),L(),e),R={class:"container"},T=_(()=>u("div",{class:"title-box"},[u("h2",{class:"title"},"\u7F16\u8F91\u6253\u5370\u6807\u7B7E")],-1)),U=_(()=>u("span",{class:"add-text"},"\u7EE7\u7EED\u6DFB\u52A0",-1)),j=w("\u63D0\u4EA4");function z(e,t,m,p,r,a){const f=o("el-input"),c=o("el-form-item"),b=o("CirclePlusFilled"),v=o("el-icon"),F=o("el-button"),g=o("el-form"),B=o("Page");return d(),i(B,{showBorder:!1},{main:s(()=>[u("div",R,[T,n(g,{class:"form-container","label-width":"150px",ref:"ruleFormRef",model:e.formData},{default:s(()=>[(d(!0),$(S,null,x(e.formData,(l,E)=>(d(),i(c,{label:l.label,key:E},{default:s(()=>[n(f,{modelValue:l.value,"onUpdate:modelValue":h=>l.value=h,type:l.label=="\u5206\u7C7B\u6392\u5E8F"?"number":"text"},null,8,["modelValue","onUpdate:modelValue","type"])]),_:2},1032,["label"]))),128)),n(c,null,{default:s(()=>[u("div",{class:"btn-wrap",onClick:t[0]||(t[0]=l=>e.addfrom())},[n(v,{size:16},{default:s(()=>[n(b)]),_:1}),U])]),_:1}),n(F,{type:"primary",onClick:t[1]||(t[1]=l=>e.submit())},{default:s(()=>[j]),_:1})]),_:1},8,["model"])])]),_:1})}const G=V(N,[["render",z],["__scopeId","data-v-aa9578bf"]]);export{G as default};
