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

2 lines
4.8 KiB
JavaScript

import{C as A,D as I,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.4a7d92a3.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as G,b as H}from"./index.b17b0724.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.7690fe0d.js";import{e as X,a as Y}from"./supplier.b516352f.js";import"./lodash.9dc701ad.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.83ff9f3d.js";import{d as y,s as oe,r as F,Z as te,ap as ae,o as i,c as le,U as e,L as a,u as o,R as p,M as _,K as m,a as E,j as ne,Q as se,n as g}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 ie={class:"mt-4"},re={class:"flex mt-4 justify-end"},ue=y({name:"supplierLists"}),He=y({...ue,setup(pe){const f=oe(),v=F(!1),r=te({mer_name:"",phone:""}),C=F([]),B=n=>{C.value=n.map(({id:t})=>t)},{dictData:V}=W("show_status"),{pager:d,getLists:w,resetParams:x,resetPage:$}=J({fetchFun:Y,params:r}),L=async()=>{var n;v.value=!0,await g(),(n=f.value)==null||n.open("add")},S=async n=>{var t,c;v.value=!0,await g(),(t=f.value)==null||t.open("edit"),(c=f.value)==null||c.setFormData(n)},D=async n=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:n}),w()};return w(),(n,t)=>{const c=A,b=I,u=M,N=q,k=K,P=H,s=O,R=Q,T=z,h=ae("perms"),U=Z;return i(),le("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(N,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(b,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:a(()=>[e(c,{class:"w-[280px]",modelValue:o(r).mer_name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).mer_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone"},{default:a(()=>[e(c,{class:"w-[280px]",modelValue:o(r).phone,"onUpdate:modelValue":t[1]||(t[1]=l=>o(r).phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(u,{type:"primary",onClick:o($)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(u,{onClick:o(x)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(u,{type:"primary",onClick:L},{icon:a(()=>[e(P,{name:"el-icon-Plus"})]),default:a(()=>[p(" \u65B0\u589E ")]),_:1})),[[h,["supplier.supplier/add"]]]),_((i(),m(u,{disabled:!o(C).length,onClick:t[2]||(t[2]=l=>D(o(C)))},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[h,["supplier.supplier/delete"]]]),E("div",ie,[e(R,{data:o(d).lists,onSelectionChange:B},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),e(s,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u7ED3\u7B97\u5468\u671F",prop:"settle_cycle","show-overflow-tooltip":""}),e(s,{label:"\u5546\u6237\u5730\u5740",prop:"address","show-overflow-tooltip":""}),e(s,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((i(),m(u,{type:"primary",link:"",onClick:j=>S(l)},{default:a(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["supplier.supplier/edit"]]]),_((i(),m(u,{type:"danger",link:"",onClick:j=>D(l.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["supplier.supplier/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",re,[e(T,{modelValue:o(d),"onUpdate:modelValue":t[3]||(t[3]=l=>ne(d)?d.value=l:null),onChange:o(w)},null,8,["modelValue","onChange"])])]),_:1})),[[U,o(d).loading]]),o(v)?(i(),m(ee,{key:0,ref_key:"editRef",ref:f,"dict-data":o(V),onSuccess:o(w),onClose:t[4]||(t[4]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{He as default};