import{D as p,d as g,b as C,c as _,e as E,k as B,i as u,h as o,u as l,m as V,E as b,R as y,S as D,g as F,_ as A}from"./index.0308b213.js";import h from"./EditGoodsDialog.ef14791e.js";import"./spellrice.ca3d178e.js";const v=a=>p({url:"merchant/tuangouquan.setting/submit",data:a,method:"POST"}),x=()=>p({url:"merchant/tuangouquan.setting/detail"}),S=a=>(y("data-v-d8cc7916"),a=a(),D(),a),k=S(()=>F("div",{class:"tn-form-item__tips"},"\u591A\u89C4\u683C\u5546\u54C1\u6309\u89C4\u683C\u4EF7\u683C\u8BA1\u7B97\uFF0C \u5DF2\u53C2\u4E0E\u7279\u4EF7\u6D3B\u52A8\u7684\u5546\u54C1\u4E0D\u80FD\u518D\u6B21\u9009\u62E9",-1)),I=V("\u63D0\u4EA4"),q=g({setup(a){const t=C({total_limit:0,day_limit:0,goods:[]}),r=()=>{v(t).then(e=>{console.log("res",e),b.success("\u63D0\u4EA4\u6210\u529F"),m()})},m=()=>{x().then(e=>{console.log("res",e),e=e.data,t.total_limit=e.total_limit,t.day_limit=e.day_limit,t.person_total_limit=e.person_total_limit,t.goods=e.goods_detail})};return m(),(e,i)=>{const d=_("el-input"),s=_("el-form-item"),c=_("el-button"),f=_("el-form");return E(),B(f,{ref:"formRef",model:l(t),"inline-message":!0,"label-width":"160px"},{default:u(()=>[o(s,{label:"\u603B\u9650\u9886",prop:"total_limit"},{default:u(()=>[o(d,{modelValue:l(t).total_limit,"onUpdate:modelValue":i[0]||(i[0]=n=>l(t).total_limit=n)},null,8,["modelValue"])]),_:1}),o(s,{label:"\u6BCF\u4EBA\u6BCF\u65E5\u9650\u9886",prop:"day_limit"},{default:u(()=>[o(d,{modelValue:l(t).day_limit,"onUpdate:modelValue":i[1]||(i[1]=n=>l(t).day_limit=n)},null,8,["modelValue"])]),_:1}),o(s,{label:"\u6BCF\u4EBA\u603B\u9650\u9886",prop:"person_total_limit"},{default:u(()=>[o(d,{modelValue:l(t).person_total_limit,"onUpdate:modelValue":i[2]||(i[2]=n=>l(t).person_total_limit=n)},null,8,["modelValue"])]),_:1}),o(s,{label:" \u53C2\u4E0E\u7684\u5546\u54C1"},{default:u(()=>[k,o(h,{goods:l(t).goods},null,8,["goods"])]),_:1}),o(s,null,{default:u(()=>[o(c,{type:"primary",onClick:r},{default:u(()=>[I]),_:1})]),_:1})]),_:1},8,["model"])}}});const R=A(q,[["__scopeId","data-v-d8cc7916"]]);export{R as default};
