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

2 lines
5.7 KiB
JavaScript

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.cde98ffa.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.5cfa01eb.js";import{d as ue,e as ne}from"./delivery_service.45025784.js";import"./lodash.2473fc51.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_deliveryServiceEdit_lang.308687a8.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.c4e27aeb.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(()=>[f((s(),r(p,{type:"primary",onClick:A},{icon:a(()=>[e(T,{name:"el-icon-Plus"})]),default:a(()=>[m(" \u65B0\u589E ")]),_:1})),[[w,["delivery_service.delivery_service/add"]]]),f((s(),r(p,{disabled:!t(F).length,onClick:o[4]||(o[4]=l=>C(t(F)))},{default:a(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["delivery_service.delivery_service/delete"]]]),g("div",fe,[e(I,{data:t(c).lists,onSelectionChange:$},{default:a(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"id",prop:"id","show-overflow-tooltip":""}),e(i,{label:"\u914D\u9001\u5458uid",prop:"uid","show-overflow-tooltip":""}),e(i,{label:"\u914D\u9001\u5458\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(i,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(i,{label:"\u72B6\u6001",prop:"status"},{default:a(({row:l})=>[e(j,{options:t(k).show_status,value:l.status},null,8,["options","value"])]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[f((s(),r(p,{type:"primary",link:"",onClick:h=>N(l)},{default:a(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["delivery_service.delivery_service/edit"]]]),f((s(),r(p,{type:"danger",link:"",onClick:h=>C(l.id)},{default:a(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["delivery_service.delivery_service/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",ve,[e(K,{modelValue:t(c),"onUpdate:modelValue":o[5]||(o[5]=l=>ce(c)?c.value=l:null),onChange:t(y)},null,8,["modelValue","onChange"])])]),_:1})),[[M,t(c).loading]]),t(b)?(s(),r(se,{key:0,ref_key:"editRef",ref:v,"dict-data":t(k),onSuccess:t(y),onClose:o[6]||(o[6]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{at as default};