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