2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{J as q,K as J,D as Q,w as Z,F as G,L as H,M as W,N as X,O as Y}from"./element-plus.a63a26dd.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.da569484.js";import{a as ae}from"./store_finance_flow.3c757133.js";import{a as le}from"./system_store.0486886b.js";import{h as se}from"./index.5bbc12c8.js";import{d as R,s as V,r as u,Z as re,o as r,c as d,U as e,L as l,u as t,T as L,a9 as S,K as f,R as C,M as ne,a as T,S as B,j as ie,Q as ue}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.1cedf3c1.js";import{_ as pe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.206c0d92.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.5f9b7233.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./moment.40bc58bf.js";const de={key:0,class:"text-success"},ce={key:1,class:"text-danger"},_e={class:"flex mt-4 justify-end"},fe=R({name:"storeFinanceFlowLists"}),so=R({...fe,setup(he){const $=V(),h=V(),y=u(!1),i=re({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:1,financial_pm:1}),U=u([]),N=n=>{U.value=n.map(({id:a})=>a)},{dictData:k}=te(""),{pager:m,getLists:v,resetParams:M,resetPage:w}=oe({fetchFun:ae,params:i}),P=async n=>{var a,p;(a=h.value)==null||a.open(),(p=h.value)==null||p.setFormData(n)};v();const c=u(!1),D=u([]),A=(n="")=>{c.value=!0,le({name:n,page_size:50}).then(a=>{D.value=a.lists,setTimeout(()=>{c.value=!1},300)}).catch(a=>{setTimeout(()=>{c.value=!1},300)})},_=u(!1),E=u([]),I=(n="")=>{_.value=!0,se({nickname:n,page_size:50}).then(a=>{E.value=a.lists,setTimeout(()=>{_.value=!1},300)}).catch(a=>{setTimeout(()=>{_.value=!1},300)})};return(n,a)=>{const p=q,F=J,b=Q,g=Z,j=G,x=H,s=W,z=X,K=ee,O=Y;return r(),d("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(j,{class:"mb-[-16px]",model:t(i),inline:""},{default:l(()=>[e(b,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(F,{modelValue:t(i).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>t(i).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:t(c),style:{width:"240px"},onChange:t(w)},{default:l(()=>[(r(!0),d(L,null,S(t(D),o=>(r(),f(p,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(b,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[e(F,{modelValue:t(i).user_id,"onUpdate:modelValue":a[1]||(a[1]=o=>t(i).user_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":I,loading:t(_),style:{width:"240px"},onChange:t(w)},{default:l(()=>[(r(!0),d(L,null,S(t(E),o=>(r(),f(p,{key:o.id,label:`${o.nickname} (ID:${o.id})`,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(b,null,{default:l(()=>[e(g,{type:"primary",onClick:t(w)},{default:l(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(g,{onClick:t(M)},{default:l(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ne((r(),f(x,{class:"!border-none",shadow:"never"},{default:l(()=>[T("div",null,[e(z,{data:t(m).lists,onSelectionChange:N,"row-key":"id","tree-props":{children:"list"}},{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",de,B(o.number),1)):(r(),d("span",ce,B(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(g,{link:"",type:"primary",onClick:ve=>P(o)},{default:l(()=>[C(" \u8D44\u91D1\u8D70\u5411 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),T("div",_e,[e(K,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=o=>ie(m)?m.value=o:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[O,t(m).loading]]),t(y)?(r(),f(me,{key:0,ref_key:"editRef",ref:$,"dict-data":t(k),onSuccess:t(v),onClose:a[3]||(a[3]=o=>y.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0),e(pe,{ref_key:"detailsRef",ref:h,"dict-data":t(k)},null,8,["dict-data"])])}}});export{so as default};
|