2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{J as K,K as O,D as q,w as I,F as J,L as Q,M as Z,N as G,O as H}from"./element-plus.78e68aed.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.914e77c9.js";import{a as ee}from"./store_finance_flow.106536df.js";import{a as oe}from"./system_store.b39bc431.js";import{h as te}from"./index.230f36ed.js";import{d as L,s as ae,r as m,Z as le,o as r,c as d,U as e,L as l,u as o,T as y,a9 as k,K as c,R as D,M as se,a as V,S as x,j as re,Q as ne}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.0ef39a3c.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.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.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.4b6d7f0d.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ue={key:0,class:"text-success"},me={key:1,class:"text-danger"},pe={class:"flex mt-4 justify-end"},de=L({name:"storeFinanceFlowLists"}),Ye=L({...de,setup(ce){const S=ae(),v=m(!1),i=le({store_name:"",store_id:"",user_id:"",create_time:""}),B=m([]),T=u=>{B.value=u.map(({id:a})=>a)},{dictData:U}=Y(""),{pager:p,getLists:_,resetParams:N,resetPage:f}=X({fetchFun:ee,params:i});_();const n=m(!1),w=m([]),R=(u="")=>{n.value=!0,oe({name:u,page_size:50}).then(a=>{w.value=a.lists,setTimeout(()=>{n.value=!1},300)}).catch(a=>{setTimeout(()=>{n.value=!1},300)})},M=m(!1),b=m([]),P=(u="")=>{n.value=!0,te({nickname:u,page_size:50}).then(a=>{b.value=a.lists,setTimeout(()=>{n.value=!1},300)}).catch(a=>{setTimeout(()=>{n.value=!1},300)})};return(u,a)=>{const g=K,E=O,h=q,C=I,A=J,F=Q,s=Z,$=G,j=W,z=H;return r(),d("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(A,{class:"mb-[-16px]",model:o(i),inline:""},{default:l(()=>[e(h,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(E,{modelValue:o(i).store_id,"onUpdate:modelValue":a[0]||(a[0]=t=>o(i).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":R,loading:o(n),style:{width:"240px"},onChange:o(f)},{default:l(()=>[(r(!0),d(y,null,k(o(w),t=>(r(),c(g,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(h,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[e(E,{modelValue:o(i).user_id,"onUpdate:modelValue":a[1]||(a[1]=t=>o(i).user_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:o(M),style:{width:"240px"},onChange:o(f)},{default:l(()=>[(r(!0),d(y,null,k(o(b),t=>(r(),c(g,{key:t.id,label:t.nickname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(h,null,{default:l(()=>[e(C,{type:"primary",onClick:o(f)},{default:l(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(C,{onClick:o(N)},{default:l(()=>[D("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),se((r(),c(F,{class:"!border-none",shadow:"never"},{default:l(()=>[V("div",null,[e($,{data:o(p).lists,onSelectionChange:T},{default:l(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u4EA4\u6613\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"number","min-width":"100","show-overflow-tooltip":""},{default:l(({row:t})=>[t.number>0?(r(),d("span",ue,x(t.number),1)):(r(),d("span",me,x(t.number),1))]),_:1}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237",prop:"nickname","min-width":"80","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u7C7B\u578B",prop:"financial_type_name","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),V("div",pe,[e(j,{modelValue:o(p),"onUpdate:modelValue":a[2]||(a[2]=t=>re(p)?p.value=t:null),onChange:o(_)},null,8,["modelValue","onChange"])])]),_:1})),[[z,o(p).loading]]),o(v)?(r(),c(ie,{key:0,ref_key:"editRef",ref:S,"dict-data":o(U),onSuccess:o(_),onClose:a[3]||(a[3]=t=>v.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{Ye as default};
|