moreShopAdmin/build/admin/assets/index.465faf9a.js

2 lines
6.2 KiB
JavaScript

import{J,K as Q,D as Z,C as G,w as H,F as W,L as X,M as Y,N as ee,O as oe}from"./element-plus.91c68cc0.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{u as le}from"./usePaging.f8c888e4.js";import{u as ae}from"./useDictOptions.1f11cf62.js";import{a as re}from"./store_finance_flow.2c8e41a4.js";import{a as se}from"./system_store.de1a4364.js";import{h as ne}from"./index.d12b3af4.js";import{d as R,s as x,r as u,Z as ie,o as s,c as d,U as o,L as a,u as l,T as L,a9 as B,K as v,R as C,M as ue,a as S,S as T,j as me,Q as pe}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.e1e3cd4b.js";import{_ as _e}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.c608cd4a.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.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.10bd5b90.js";import"./pinia.f3529286.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.8d65305c.js";import"./index.e03c2e5b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./moment.40bc58bf.js";const ce={key:0,class:"text-success"},fe={key:1,class:"text-danger"},ve={class:"flex mt-4 justify-end"},we=R({name:"storeFinanceFlowLists"}),mo=R({...we,setup(he){const U=x(),w=x(),F=u(!1),n=ie({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:1,financial_pm:1,order_sn:""}),$=u([]),A=i=>{$.value=i.map(({id:e})=>e)},{dictData:y}=ae(""),{pager:m,getLists:h,resetParams:N,resetPage:b}=le({fetchFun:re,params:n}),I=async i=>{var e,p;(e=w.value)==null||e.open(),(p=w.value)==null||p.setFormData(i)};h();const _=u(!1),k=u([]),M=(i="")=>{_.value=!0,se({name:i,page_size:50}).then(e=>{k.value=e.lists,setTimeout(()=>{_.value=!1},300)}).catch(e=>{setTimeout(()=>{_.value=!1},300)})},c=u(!1),D=u([]),P=(i="")=>{c.value=!0,ne({nickname:i,page_size:50}).then(e=>{D.value=e.lists,setTimeout(()=>{c.value=!1},300)}).catch(e=>{setTimeout(()=>{c.value=!1},300)})};return(i,e)=>{const p=J,E=Q,f=Z,j=G,g=H,z=W,V=X,r=Y,K=ee,O=te,q=oe;return s(),d("div",null,[o(V,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(z,{class:"mb-[-16px]",model:l(n),inline:""},{default:a(()=>[o(f,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[o(E,{modelValue:l(n).store_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(n).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":M,loading:l(_),style:{width:"240px"},onChange:l(b)},{default:a(()=>[(s(!0),d(L,null,B(l(k),t=>(s(),v(p,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u7528\u6237",prop:"uid"},{default:a(()=>[o(E,{modelValue:l(n).user_id,"onUpdate:modelValue":e[1]||(e[1]=t=>l(n).user_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:l(c),style:{width:"240px"},onChange:l(b)},{default:a(()=>[(s(!0),d(L,null,B(l(D),t=>(s(),v(p,{key:t.id,label:`${t.nickname} (ID:${t.id})`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u8BA2\u5355\u53F7",prop:"order_sn"},{default:a(()=>[o(j,{class:"w-[280px]",modelValue:l(n).order_sn,"onUpdate:modelValue":e[2]||(e[2]=t=>l(n).order_sn=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),o(f,null,{default:a(()=>[o(g,{type:"primary",onClick:l(b)},{default:a(()=>e[5]||(e[5]=[C("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(g,{onClick:l(N)},{default:a(()=>e[6]||(e[6]=[C("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ue((s(),v(V,{class:"!border-none",shadow:"never"},{default:a(()=>[S("div",null,[o(K,{data:l(m).lists,onSelectionChange:A,"row-key":"id","tree-props":{children:"list"}},{default:a(()=>[o(r,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),o(r,{label:"\u4EA4\u6613\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),o(r,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","min-width":"120","show-overflow-tooltip":""}),o(r,{label:"\u91D1\u989D",prop:"number","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[t.number>0?(s(),d("span",ce,T(t.number),1)):(s(),d("span",fe,T(t.number),1))]),_:1}),o(r,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),o(r,{label:"\u7528\u6237",prop:"nickname","min-width":"80","show-overflow-tooltip":""}),o(r,{label:"\u6536\u76CA/\u6263\u9664",prop:"financial_type_name","show-overflow-tooltip":""}),o(r,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),o(r,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C",fixed:"right",width:"100"},{default:a(({row:t})=>[o(g,{link:"",type:"primary",onClick:be=>I(t)},{default:a(()=>e[7]||(e[7]=[C(" \u8D44\u91D1\u8D70\u5411 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),S("div",ve,[o(O,{modelValue:l(m),"onUpdate:modelValue":e[3]||(e[3]=t=>me(m)?m.value=t:null),onChange:l(h)},null,8,["modelValue","onChange"])])]),_:1})),[[q,l(m).loading]]),l(F)?(s(),v(de,{key:0,ref_key:"editRef",ref:U,"dict-data":l(y),onSuccess:l(h),onClose:e[4]||(e[4]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0),o(_e,{ref_key:"detailsRef",ref:w,"dict-data":l(y)},null,8,["dict-data"])])}}});export{mo as default};