moreShopAdmin/dist/admin/assets/index.f27af3e1.js

2 lines
5.7 KiB
JavaScript
Raw Normal View History

2024-08-15 21:33:10 +08:00
import{C as O,D as q,J,K as Q,w as Z,F as z,L as G,M as H,N as W,O as X}from"./element-plus.a63a26dd.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{f as te,b as oe}from"./index.82a85bee.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.52006ef3.js";import{d as ue,e as ne}from"./delivery_service.4d720626.js";import"./lodash.2473fc51.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_deliveryServiceEdit_lang.889abc0b.js";import{d as S,s as ie,r as V,Z as re,ap as de,o as s,c as B,U as e,L as a,u as t,T as pe,a9 as me,K as r,R as m,M as f,a as g,j as ce,Q as _e,n as x}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.0b0584cf.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const fe={class:"mt-4"},ve={class:"flex mt-4 justify-end"},be=S({name:"deliveryServiceLists"}),at=S({...be,setup(ye){const v=ie(),b=V(!1),u=re({uid:"",nickname:"",phone:"",status:""}),F=V([]),$=n=>{F.value=n.map(({id:o})=>o)},{dictData:k}=ae("show_status"),{pager:c,getLists:y,resetParams:L,resetPage:U}=le({fetchFun:ne,params:u}),A=async()=>{var n;b.value=!0,await x(),(n=v.value)==null||n.open("add")},N=async n=>{var o,d;b.value=!0,await x(),(o=v.value)==null||o.open("edit"),(d=v.value)==null||d.setFormData(n)},C=async n=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:n}),y()};return y(),(n,o)=>{const d=O,_=q,D=J,P=Q,p=Z,R=z,E=G,T=oe,i=H,j=ee,I=W,K=Y,w=de("perms"),M=X;return s(),B("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(R,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(_,{label:"\u914D\u9001\u5458uid",prop:"uid"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:t(u).uid,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).uid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u914D\u9001\u5458uid"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u914D\u9001\u5458\u540D\u79F0",prop:"nickname"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":o[1]||(o[1]=l=>t(u).nickname=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u914D\u9001\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:t(u).phone,"onUpdate:modelValue":o[2]||(o[2]=l=>t(u).phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(P,{modelValue:t(u).status,"onUpdate:modelValue":o[3]||(o[3]=l=>t(u).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:a(()=>[e(D,{label:"\u5168\u90E8",value:""}),(s(!0),B(pe,null,me(t(k).show_status,(l,h)=>(s(),r(D,{key:h,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(_,null,{default:a(()=>[e(p,{type:"primary",onClick:t(U)},{default:a(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:t(L)},{default:a(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),r(E,{class:"!border-none",shadow:"never"},{default:a(()