2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
import{U as Q,J as Z,K as G,D as H,w as W,F as X,L as ee,M as te,N as oe,O as ae}from"./element-plus.91c68cc0.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{u as se}from"./usePaging.f8c888e4.js";import{u as ne}from"./useDictOptions.55a5f7ca.js";import{a as re}from"./store_finance_flow.9f650007.js";import{a as ie}from"./system_store.7a4ecbcf.js";import{h as ue}from"./index.45e3c1f0.js";import{s as me}from"./shortcuts.7e7a323b.js";import{h as V}from"./moment.40bc58bf.js";import{d as Y,r as u,Z as pe,w as de,af as x,o as n,c as p,U as o,L as l,u as e,T as L,a9 as S,K as v,j as T,R as B,M as ce,a as M,S as U,Q as _e}from"./@vue.76ce7aa3.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"./lodash.4e6d2a38.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";const fe={key:0,class:"text-success"},he={key:1,class:"text-danger"},ve={class:"flex mt-4 justify-end"},we=Y({name:"storeFinanceFlowLists"}),rt=Y({...we,setup(ge){const g=u(!1),r=pe({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:3,financial_pm:1,start_time:"",end_time:""}),d=u([]);de(()=>d.value,(s,t)=>{r.start_time=V(s[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=V(s[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const N=u([]),P=s=>{N.value=s.map(({id:t})=>t)},{dictData:b}=ne(""),{pager:m,getLists:w,resetParams:R,resetPage:c}=se({fetchFun:re,params:r});w();const _=u(!1),F=u([]),$=(s="")=>{_.value=!0,ie({name:s,page_size:50}).then(t=>{F.value=t.lists,setTimeout(()=>{_.value=!1},300)}).catch(t=>{setTimeout(()=>{_.value=!1},300)})},f=u(!1),E=u([]),A=(s="")=>{f.value=!0,ue({nickname:s,page_size:50}).then(t=>{E.value=t.lists,setTimeout(()=>{f.value=!1},300)}).catch(t=>{setTimeout(()=>{f.value=!1},300)})};return(s,t)=>{const C=Z,D=G,h=H,I=Q,k=W,j=X,y=ee,i=te,z=oe,K=le,O=x("edit-popup"),q=x("details-popup"),J=ae;return n(),p("div",null,[o(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(j,{class:"mb-[-16px]",model:e(r),inline:""},{default:l(()=>[o(h,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[o(D,{modelValue:e(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:e(_),style:{width:"240px"},onChange:e(c)},{default:l(()=>[(n(!0),p(L,null,S(e(F),a=>(n(),v(C,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(h,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[o(D,{modelValue:e(r).user_id,"onUpdate:modelValue":t[1]||(t[1]=a=>e(r).user_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:e(f),style:{width:"240px"},onChange:e(c)},{default:l(()=>[(n(!0),p(L,null,S(e(E),a=>(n(),v(C,{key:a.id,label:`${a.nickname} (ID:${a.id})`,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(h,{label:"\u65F6\u95F4",prop:"create_time"},{default:l(()=>[o(I,{modelValue:e(d),"onUpdate:modelValue":t[2]||(t[2]=a=>T(d)?d.value=a:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:e(me),onChange:e(c)},null,8,["modelValue","shortcuts","onChange"])]),_:1}),o(h,null,{default:l(()=>[o(k,{type:"primary",onClick:e(c)},{default:l(()=>t[5]||(t[5]=[B("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(k,{onClick:e(R)},{default:l(()=>t[6]||(t[6]=[B("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ce((n(),v(y,{class:"!border-none",shadow:"never"},{default:l(()=>[M("div",null,[o(z,{data:e(m).lists,onSelectionChange:P,"row-key":"id","tree-props":{children:"list"}},{default:l(()=>[o(i,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u4EA4\u6613\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),o(i,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","min-width":"120","show-overflow-tooltip":""}),o(i,{label:"\u91D1\u989D",prop:"number","min-width":"100","show-overflow-tooltip":""},{default:l(({row:a})=>[a.number>0?(n(),p("span",fe,U(a.number),1)):(n(),p("span",he,U(a.number),1))]),_:1}),o(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),o(i,{label:"\u7528\u6237",prop:"nickname","min-width":"80","show-overflow-tooltip":""}),o(i,{label:"\u6536\u76CA/\u6263\u9664",prop:"financial_type_name","show-overflow-tooltip":""}),o(i,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""})]),_:1},8,["data"])]),M("div",ve,[o(K,{modelValue:e(m),"onUpdate:modelValue":t[3]||(t[3]=a=>T(m)?m.value=a:null),onChange:e(w)},null,8,["modelValue","onChange"])])]),_:1})),[[J,e(m).loading]]),e(g)?(n(),v(O,{key:0,ref:"editRef","dict-data":e(b),onSuccess:e(w),onClose:t[4]||(t[4]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0),o(q,{ref:"detailsRef","dict-data":e(b)},null,8,["dict-data"])])}}});export{rt as default};
|