multiStoreAdmin/build/store/assets/index.e420eef3.js

2 lines
6.6 KiB
JavaScript
Raw Normal View History

2024-09-19 11:09:33 +08:00
import{a6 as q,$ as J,a0 as M,x as O,y as Q,D as W,F as K,t as X,R as Y,S as Z,v as h,H as ee,I as le,G as te,w as ae,J as oe}from"./element-plus.6b125791.js";import{r as _}from"./index.8eb121a3.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.8e7c25da.js";import{d as U,s as ne,r as re,$ as F,i as se,o as s,P as c,Q as u,a as ie,W as t,u as a,j as pe,c as y,F as g,a9 as B,U as D}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./axios.ebd1d4d0.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.ab1d8f92.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./vue-jsonp.3d85fcb6.js";function me(){return _.get({url:"/config/province"})}function de(i){return _.get({url:"/config/city",params:i})}function _e(i){return _.get({url:"/config/area",params:i})}function ce(){return _.post({url:"/config/store"})}function fe(i){return _.post({url:"/config/saveStore",params:i})}const ve={class:"w-[900px]"},Ee=U({name:"oaPlanEdit"}),he=U({...Ee,setup(i){const L=ne(),f=re("first"),p=F({provinceList:[],cityList:[],areaList:[],townList:[]}),o=F({id:"",store_name:"",status:0,times:"",phone:"",province_id:"",city_id:"",area_id:"",street_id:"",address:"",title:"",lat:"",lng:"",range:"1",isCity:"",isSelf:"",defalut_types:1}),k=F({}),x=async n=>{for(const e in o)n[e]!=null&&n[e]!=null&&(o[e]=n[e])};se(()=>{ce().then(n=>{x(n)})});const S=async()=>{var e;await((e=L.value)==null?void 0:e.validate());const n={...o};await fe(n)},A=async n=>{let e=await me();if(p.provinceList=e,n)return Promise.resolve({msg:"\u83B7\u53D6\u6210\u529F"})},P=async(n,e)=>{let m=await de({code:n});if(p.cityList=m,e)return Promise.resolve({msg:"\u83B7\u53D6\u6210\u529F"})},R=async(n,e)=>{let m=await _e({code:n});if(p.areaList=m,e)return Promise.resolve({msg:"\u83B7\u53D6\u6210\u529F"})};return A(!1),(n,e)=>{const m=W,r=K,v=X,I=q,E=Y,V=Z,b=J,N=M,$=h,w=O,C=ee,T=le,G=Q,H=te,z=ae,j=oe;return s(),c(j,null,{default:u(()=>[ie("div",ve,[t(H,{ref_key:"formRef",ref:L,model:a(o),"label-width":"120px",rules:a(k)},{default:u(()=>[t(G,{modelValue:a(f),"onUpdate:modelValue":e[13]||(e[13]=l=>pe(f)?f.value=l:null),class:"demo-tabs"},{default:u(()=>[t(w,{label:"\u57FA\u7840\u8BBE\u7F6E",name:"first"},{default:u(()=>[t(r,{label:"\u95E8\u5E97\u540D\u79F0"},{default:u(()=>[t(m,{modelValue:a(o).store_name,"onUpdate:modelValue":e[0]||(e[0]=l=>a(o).store_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u95E8\u5E97\u624B\u673A\u53F7",prop:"title"},{default:u(()=>[t(m,{modelValue:a(o).phone,"onUpdate:modelValue":e[1]||(e[1]=l=>a(o).phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u8425\u4E1A\u72B6\u6001",prop:"title"},{default:u(()=>[t(v,{modelValue:a(o).status,"onUpdate:modelValue":e[2]||(e[2]=l=>a(o).status=l),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),t(r,{label:"\u8425\u4E1A\u65F6\u95F4",prop:"title"},{default:u(()=>[t(I,{modelValue:a(o).times,"onUpdate:modelValue":e[3]||(e[3]=l=>a(o).times=l),"is-range":"","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"HH:mm:ss"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u95E8\u