moreShopAdmin/dist/admin/assets/index.730c0724.js

2 lines
5.7 KiB
JavaScript

import{C as q,D as K,w as O,F as Q,L as Z,M as z,N as G,O as H}from"./element-plus.7e347b00.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{f as X,b as Y}from"./index.fd76ab8a.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.dc8aa87e.js";import{e as te,a as ae}from"./supplier.0a2c5a7c.js";import{d as $,r as k,s as le,Z as ne,ap as ie,o as p,c as ue,U as e,L as o,u as l,R as r,M as f,K as c,a as V,S as x,j as se,Q as re,n as F}from"./@vue.18505fe0.js";import"./lodash.4e6d2a38.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.a51790f0.js";import{_ as me}from"./warehouseProduct.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.aa66a38f.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.1071aff1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_product.78bace09.js";const de={class:"mt-4"},ce={class:"flex mt-4 justify-end"},_e=$({name:"supplierLists"}),no=$({..._e,setup(fe){const P=k(!1),D=k(null),v=le(),h=k(!1),m=ne({mer_name:"",phone:""}),b=k([]),S=n=>{b.value=n.map(({id:t})=>t)},g=async(n,t=1)=>{var u,d;P.value=!0,await F(),(u=D.value)==null||u.open(),(d=D.value)==null||d.getDetail(n,t)},{dictData:R}=oe("show_status"),{pager:_,getLists:w,resetParams:L,resetPage:N}=ee({fetchFun:ae,params:m}),T=async()=>{var n;h.value=!0,await F(),(n=v.value)==null||n.open("add")},U=async n=>{var t,u;h.value=!0,await F(),(t=v.value)==null||t.open("edit"),(u=v.value)==null||u.setFormData(n)},E=async n=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:n}),w()};return w(),(n,t)=>{const u=q,d=K,s=O,A=Q,B=Z,j=Y,i=z,I=G,M=J,C=ie("perms"),W=H;return p(),ue("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:l(m),inline:""},{default:o(()=>[e(d,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:o(()=>[e(u,{class:"w-[280px]",modelValue:l(m).mer_name,"onUpdate:modelValue":t[0]||(t[0]=a=>l(m).mer_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone"},{default:o(()=>[e(u,{class:"w-[280px]",modelValue:l(m).phone,"onUpdate:modelValue":t[1]||(t[1]=a=>l(m).phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(d,null,{default:o(()=>[e(s,{type:"primary",onClick:l(N)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:l(L)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),c(B,{class:"!border-none",shadow:"never"},{default:o(()=>[f((p(),c(s,{type:"primary",onClick:T},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[r(" \u65B0\u589E ")]),_:1})),[[C,["supplier.supplier/add"]]]),f((p(),c(s,{disabled:!l(b).length,onClick:t[2]||(t[2]=a=>E(l(b)))},{default:o(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["supplier.supplier/delete"]]]),V("div",de,[e(I,{data:l(_).lists,onSelectionChange:S},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"id",prop:"id","show-overflow-tooltip":""}),e(i,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),e(i,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone","show-overflow-tooltip":""}),e(i,{label:"\u7ED3\u7B97\u5468\u671F",prop:"settle_cycle","show-overflow-tooltip":""}),e(i,{label:"\u5546\u6237\u5730\u5740",prop:"address","show-overflow-tooltip":""}),e(i,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(i,{label:"\u5DF2\u7ED3",prop:"total_completed_amount","min-width":"100","show-overflow-tooltip":""},{default:o(({row:a})=>[e(s,{type:"primary",link:"",onClick:y=>g(a,1)},{default:o(()=>[r(x(a.total_completed_amount||0),1)]),_:2},1032,["onClick"])]),_:1}),e(i,{label:"\u672A\u7ED3",prop:"total_outstanding_amount","min-width":"100","show-overflow-tooltip":""},{default:o(({row:a})=>[e(s,{type:"primary",link:"",onClick:y=>g(a,0)},{default:o(()=>[r(x(a.total_outstanding_amount||0),1)]),_:2},1032,["onClick"])]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[f((p(),c(s,{type:"primary",link:"",onClick:y=>U(a)},{default:o(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["supplier.supplier/edit"]]]),f((p(),c(s,{type:"danger",link:"",onClick:y=>E(a.id)},{default:o(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["supplier.supplier/delete"]]])]),_:1})]),_:1},8,["data"])]),V("div",ce,[e(M,{modelValue:l(_),"onUpdate:modelValue":t[3]||(t[3]=a=>se(_)?_.value=a:null),onChange:l(w)},null,8,["modelValue","onChange"])])]),_:1})),[[W,l(_).loading]]),l(h)?(p(),c(pe,{key:0,ref_key:"editRef",ref:v,"dict-data":l(R),onSuccess:l(w),onClose:t[4]||(t[4]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0),e(me,{ref_key:"warehouseProductRef",ref:D},null,512)])}}});export{no as default};