import{az as p,d as E,a6 as b,b as V,c as r,e as B,f as h,g as m,h as e,i as t,u as l,m as u,E as D,_ as C}from"./index.0308b213.js";const F=()=>p.request({url:"addon/onetouch.index/getConfig"}),x=c=>p.request({url:"addon/onetouch.index/setConfig",method:"POST",data:c}),k={class:"area-config"},A={class:"config-form"},U=u("\u5F00\u542F"),q=u("\u5173\u95ED"),N=u("\u5F00\u542F"),w=u("\u5173\u95ED"),I=u("\u4E00\u8D77\u62A2"),P=u("\u5355\u72EC\u62A2"),T=u("\u4E00\u8D77\u53D6"),z=u("\u5355\u72EC\u53D6"),M=u("\u4E00\u8D77\u9001\u8FBE"),O=u("\u5355\u72EC\u9001\u8FBE"),S={class:"operation-btn"},j=u("\u63D0\u4EA4"),G=E({setup(c){b();const o=V({status:0,delivery_ismerge:0,delivery_assign_type:1,delivery_take_goods_type:1,delivery_success_type:1}),f=()=>{F().then(a=>{o.status=a.status||0,o.delivery_ismerge=a.delivery_ismerge||0,o.delivery_assign_type=a.delivery_assign_type||1,o.delivery_take_goods_type=a.delivery_take_goods_type||1,o.delivery_success_type=a.delivery_success_type||1})};f();const y=()=>{x(o).then(a=>{D.success("\u66F4\u65B0\u6210\u529F"),f()})};return(a,s)=>{const _=r("el-radio"),n=r("el-radio-group"),i=r("el-form-item"),g=r("el-form"),v=r("el-button");return B(),h("div",k,[m("div",A,[e(g,{model:l(o),"label-width":"160px"},{default:t(()=>[e(i,{label:"\u591A\u5546\u6237\u5408\u5E76\u7ED3\u7B97"},{default:t(()=>[e(n,{modelValue:l(o).status,"onUpdate:modelValue":s[0]||(s[0]=d=>l(o).status=d)},{default:t(()=>[e(_,{label:1},{default:t(()=>[U]),_:1}),e(_,{label:0},{default:t(()=>[q]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u914D\u9001\u8BA2\u5355\u5408\u5E76"},{default:t(()=>[e(n,{modelValue:l(o).delivery_ismerge,"onUpdate:modelValue":s[1]||(s[1]=d=>l(o).delivery_ismerge=d)},{default:t(()=>[e(_,{label:1},{default:t(()=>[N]),_:1}),e(_,{label:0},{default:t(()=>[w]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u62A2\u5355\u8BBE\u7F6E"},{default:t(()=>[e(n,{modelValue:l(o).delivery_assign_type,"onUpdate:modelValue":s[2]||(s[2]=d=>l(o).delivery_assign_type=d)},{default:t(()=>[e(_,{label:1},{default:t(()=>[I]),_:1}),e(_,{label:2},{default:t(()=>[P]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u53D6\u8D27\u8BBE\u7F6E"},{default:t(()=>[e(n,{modelValue:l(o).delivery_take_goods_type,"onUpdate:modelValue":s[3]||(s[3]=d=>l(o).delivery_take_goods_type=d)},{default:t(()=>[e(_,{label:1},{default:t(()=>[T]),_:1}),e(_,{label:2},{default:t(()=>[z]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u9001\u8FBE\u8BBE\u7F6E"},{default:t(()=>[e(n,{modelValue:l(o).delivery_success_type,"onUpdate:modelValue":s[4]||(s[4]=d=>l(o).delivery_success_type=d)},{default:t(()=>[e(_,{label:1},{default:t(()=>[M]),_:1}),e(_,{label:2},{default:t(()=>[O]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),m("div",S,[e(v,{type:"primary",onClick:y},{default:t(()=>[j]),_:1})])])}}});const J=C(G,[["__scopeId","data-v-3fbdee3a"]]);export{J as default};
