2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{J as K,K as O,D as q,w as J,F as Q,L as Z,M as G,N as H,O as W}from"./element-plus.57d9268d.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.2e78084a.js";import{u as Y}from"./usePaging.6a6670f9.js";import{u as ee}from"./useDictOptions.189cec69.js";import{a as oe}from"./store_finance_flow.260ab92e.js";import{a as te}from"./system_store.a225bc3f.js";import{j as ae}from"./index.accbf72b.js";import{d as L,s as le,r as m,Z as se,o as r,c as d,U as e,L as l,u as t,T as D,a9 as F,K as c,R as w,M as re,a as x,S as V,j as ne,Q as ie}from"./@vue.18505fe0.js";import"./lodash.37308426.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.fe1c73a5.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.5573a7c3.js";import"./axios.771da9d7.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.d33cb8f8.js";import"./vue-clipboard3.8526e077.js";import"./clipboard.d93bf196.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.57369e99.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const me={key:0,class:"text-success"},pe={key:1,class:"text-danger"},de={class:"flex mt-4 justify-end"},ce=L({name:"storeFinanceFlowLists"}),oo=L({...ce,setup(_e){const S=le(),b=m(!1),u=se({store_name:"",store_id:"",user_id:"",create_time:""}),T=m([]),B=i=>{T.value=i.map(({id:a})=>a)},{dictData:U}=ee(""),{pager:p,getLists:_,resetParams:N,resetPage:f}=Y({fetchFun:oe,params:u}),R=async i=>{};_();const n=m(!1),g=m([]),M=(i="")=>{n.value=!0,te({name:i,page_size:50}).then(a=>{g.value=a.lists,setTimeout(()=>{n.value=!1},300)}).catch(a=>{setTimeout(()=>{n.value=!1},300)})},P=m(!1),C=m([]),$=(i="")=>{n.value=!0,ae({nickname:i,page_size:50}).then(a=>{C.value=a.lists,setTimeout(()=>{n.value=!1},300)}).catch(a=>{setTimeout(()=>{n.value=!1},300)})};return(i,a)=>{const E=K,k=O,h=q,v=J,j=Q,y=Z,s=G,A=H,z=X,I=W;return r(),d("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(j,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[e(h,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(k,{modelValue:t(u).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":M,loading:t(n),style:{width:"240px"},onChange:t(f)},{default:l(()=>[(r(!0),d(D,null,F(t(g),o=>(r(),c(E,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(h,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[e(k,{modelValue:t(u).user_id,"onUpdate:modelValue":a[1]||(a[1]=o=>t(u).user_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:t(P),style:{width:"240px"},onChange:t(f)},{default:l(()=>[(r(!0),d(D,null,F(t(C),o=>(r(),c(E,{key:o.id,label:o.nickname,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(h,null,{default:l(()=>[e(v,{type:"primary",onClick:t(f)},{default:l(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:t(N)},{default:l(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),re((r(),c(y,{class:"!border-none",shadow:"never"},{default:l(()=>[x("div",null,[e(A,{data:t(p).lists,onSelectionChange:B},{default:l(()=>[e(s,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),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:o})=>[o.number>0?(r(),d("span",me,V(o.number),1)):(r(),d("span",pe,V(o.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:"\u6536\u76CA/\u6263\u9664",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":""}),e(s,{label:"\u64CD\u4F5C",fixed:"right",width:"100"},{default:l(({row:o})=>[e(v,{link:"",type:"primary",onClick:fe=>R(o)},{default:l(()=>[w(" \u8D44\u91D1\u8D70\u5411 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),x("div",de,[e(z,{modelValue:t(p),"onUpdate:modelValue":a[2]||(a[2]=o=>ne(p)?p.value=o:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[I,t(p).loading]]),t(b)?(r(),c(ue,{key:0,ref_key:"editRef",ref:S,"dict-data":t(U),onSuccess:t(_),onClose:a[3]||(a[3]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{oo as default};
|