2024-09-03 18:00:11 +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.4a7d92a3.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{f as te,b as oe}from"./index.b17b0724.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.7690fe0d.js";import{d as ue,e as ne}from"./delivery_service.9c5f9eb1.js";import"./lodash.9dc701ad.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_deliveryServiceEdit_lang.f1a745db.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.7347fedc.js";import"./axios.4607972f.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.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.bc1a2af8.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(()
|