moreShopAdmin/build/admin/assets/index.be1d3b45.js

2 lines
6.0 KiB
JavaScript

import{N as G,O as H,D as Q,C as Z,w as J,F as W,K as X,G as Y,H as ee,I as oe}from"./element-plus.8e273e86.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{u as le}from"./usePaging.f8c888e4.js";import{u as ae}from"./useDictOptions.b3410633.js";import{r as se,h as re}from"./index.a9df6369.js";import{a as ne}from"./system_store.9a9f8d83.js";import{d as T,s as V,r as u,Z as ie,o as r,c as d,U as e,L as a,u as o,T as D,a9 as x,K as f,R as L,M as ue,a as S,S as R,j as pe,Q as de}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.856cae83.js";import{_ as ce}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.998b9559.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"./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";import"./index.16a94991.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./store_finance_flow.43468d92.js";import"./moment.40bc58bf.js";function _e(w){return se.get({url:"/accounts_receivable/accountsreceivable/lists",params:w})}const fe={key:0,class:"text-success"},he={key:1,class:"text-danger"},ve={class:"flex mt-4 justify-end"},we=T({name:"storeFinanceFlowLists"}),uo=T({...we,setup(w){const U=V(),$=V(),b=u(!1),n=ie({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:1,financial_pm:1,order_sn:""}),A=u([]),I=i=>{A.value=i.map(({id:t})=>t)},{dictData:g}=ae(""),{pager:p,getLists:h,resetParams:N,resetPage:v}=le({fetchFun:_e,params:n});h();const m=u(!1),E=u([]),P=(i="")=>{m.value=!0,ne({name:i,page_size:50}).then(t=>{E.value=t.lists,setTimeout(()=>{m.value=!1},300)}).catch(t=>{setTimeout(()=>{m.value=!1},300)})},c=u(!1),C=u([]),M=(i="")=>{c.value=!0,re({nickname:i,page_size:50}).then(t=>{C.value=t.lists,setTimeout(()=>{c.value=!1},300)}).catch(t=>{setTimeout(()=>{c.value=!1},300)})};return(i,t)=>{const F=G,k=H,_=Q,j=Z,y=J,q=W,B=X,s=Y,z=ee,K=te,O=oe;return r(),d("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(q,{class:"mb-[-16px]",model:o(n),inline:""},{default:a(()=>[e(_,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(k,{modelValue:o(n).store_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(n).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:o(m),style:{width:"240px"},onChange:o(v)},{default:a(()=>[(r(!0),d(D,null,x(o(E),l=>(r(),f(F,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(_,{label:"\u7528\u6237",prop:"uid"},{default:a(()=>[e(k,{modelValue:o(n).user_id,"onUpdate:modelValue":t[1]||(t[1]=l=>o(n).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":M,loading:o(c),style:{width:"240px"},onChange:o(v)},{default:a(()=>[(r(!0),d(D,null,x(o(C),l=>(r(),f(F,{key:l.id,label:`${l.nickname} (ID:${l.id})`,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(_,{label:"\u8BA2\u5355\u53F7",prop:"order_sn"},{default:a(()=>[e(j,{class:"w-[280px]",modelValue:o(n).order_sn,"onUpdate:modelValue":t[2]||(t[2]=l=>o(n).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(_,null,{default:a(()=>[e(y,{type:"primary",onClick:o(v)},{default:a(()=>t[5]||(t[5]=[L("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(y,{onClick:o(N)},{default:a(()=>t[6]||(t[6]=[L("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ue((r(),f(B,{class:"!border-none",shadow:"never"},{default:a(()=>[S("div",null,[e(z,{data:o(p).lists,onSelectionChange:I,"row-key":"id","tree-props":{children:"list"}},{default:a(()=>[e(s,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7",prop:"phone","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u8D26\u671F\u671F\u9650",prop:"deadline","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u603B\u6B20\u6B3E",prop:"total_debt","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u5269\u4F59\u6B20\u6B3E",prop:"surplus_debt","min-width":"100","show-overflow-tooltip":""},{default:a(({row:l})=>[l.surplus_debt>0?(r(),d("span",fe,R(l.surplus_debt),1)):(r(),d("span",he,R(l.surplus_debt),1))]),_:1}),e(s,{label:"\u6B20\u6B3E\u5929\u6570",prop:"debt_day","show-overflow-tooltip":""})]),_:1},8,["data"])]),S("div",ve,[e(K,{modelValue:o(p),"onUpdate:modelValue":t[3]||(t[3]=l=>pe(p)?p.value=l:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(p).loading]]),o(b)?(r(),f(me,{key:0,ref_key:"editRef",ref:U,"dict-data":o(g),onSuccess:o(h),onClose:t[4]||(t[4]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):de("",!0),e(ce,{ref_key:"detailsRef",ref:$,"dict-data":o(g)},null,8,["dict-data"])])}}});export{uo as default};