WokerTask/public/admin/assets/balance_details.7d95f102.js

2 lines
6.5 KiB
JavaScript

import{S as W,a1 as X,a2 as Y,B as Z,C as ee,M as te,N as ae,w as oe,D as ne,I as se,O as le,P as ue,Q as re}from"./element-plus.9816852d.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{_ as me}from"./index.4eaf9bd5.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.9e853294.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.e4978d6f.js";import{d as P,$ as ce,r as de,j as fe,o as p,c as b,U as e,L as n,T as q,a7 as z,u as a,K as h,a8 as ge,R as F,M as ye,a as c,S as g,O as be,_ as he,k as Fe}from"./@vue.51d7f2d8.js";import{a as R,g as we,b as Ee}from"./finance.028ef92c.js";import{a as Ce}from"./useDictOptions.a2448547.js";import{u as Be}from"./usePaging.2ad8e1e6.js";import{u as De}from"./vue-router.9f65afb1.js";import{_ as ke}from"./people.vue_vue_type_script_setup_true_name_peopleMoney_lang.1575e1be.js";import{a as ve}from"./user_role.9c8c5a50.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const xe={class:"flex items-center"},Te={class:"text-success"},Ve={class:"flex justify-end mt-4"},Le=P({name:"articleLists"}),Dt=P({...Le,setup(Ue){var B,D,k,v,x,T;const u=De(),s=ce({user_info:"",change_type:"",start_time:"",end_time:"",company_id:""});(B=u.query)!=null&&B.company_id&&(s.company_id=(D=u.query)==null?void 0:D.company_id),(k=u.query)!=null&&k.s_date&&(s.start_time=(v=u.query)==null?void 0:v.s_date),(x=u.query)!=null&&x.e_date&&(s.end_time=(T=u.query)==null?void 0:T.e_date);const w=de([]);(async()=>{let i=await we({company_id:s.company_id}),o=await ve({});i=i.map(m=>{let d=o.lists.find(y=>y.id==m.group_id);return d.name?m.group_name=d.name:m.group_name="\u6682\u65E0\u89D2\u8272",m}),w.value=i})();const{pager:r,getLists:E,resetPage:C,resetParams:S}=Be({fetchFun:R,params:s}),{optionsData:$}=Ce({change_type:{api:Ee}}),I=i=>{let o="#333";switch(i){case 100:o="#f56c6c";break;case 101:o="#f56c6c";break;case 200:o="#409eff";break;case 201:o="#409eff";break;case 202:o="#67c23a";break;case 203:o="#e6a23c";break}return o};return fe(()=>{E()}),(i,o)=>{const m=X,d=Y,y=W,K=Z,f=ee,V=te,N=ae,O=_e,L=oe,M=pe,j=ne,U=se,l=le,Q=me,G=ue,H=ie,J=re;return p(),b("div",null,[e(d,{gutter:16},{default:n(()=>[(p(!0),b(q,null,z(a(w),t=>(p(),h(m,{span:8,key:t.id},{default:n(()=>[e(ke,{datas:t},null,8,["datas"])]),_:2},1024))),128))]),_:1}),e(U,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[e(y,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e(j,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:a(s),inline:!0},{default:n(()=>[e(f,{label:"\u7528\u6237\u4FE1\u606F"},{default:n(()=>[e(K,{class:"w-[280px]",modelValue:a(s).user_info,"onUpdate:modelValue":o[0]||(o[0]=t=>a(s).user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:ge(a(C),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(f,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:n(()=>[e(N,{class:"w-[280px]",modelValue:a(s).change_type,"onUpdate:modelValue":o[1]||(o[1]=t=>a(s).change_type=t)},{default:n(()=>[e(V,{label:"\u5168\u90E8",value:""}),(p(!0),b(q,null,z(a($).change_type,(t,_)=>(p(),h(V,{key:_,label:t,value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:n(()=>[e(O,{startTime:a(s).start_time,"onUpdate:startTime":o[2]||(o[2]=t=>a(s).start_time=t),endTime:a(s).end_time,"onUpdate:endTime":o[3]||(o[3]=t=>a(s).end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(f,null,{default:n(()=>[e(L,{type:"primary",onClick:a(C)},{default:n(()=>[F("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(L,{onClick:a(S)},{default:n(()=>[F("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(M,{class:"ml-2.5","fetch-fun":a(R),params:a(s),"page-size":a(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(U,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[ye((p(),h(G,{size:"large",data:a(r).lists},{default:n(()=>[e(l,{label:"ID",prop:"id","min-width":"80"}),e(l,{label:"\u7528\u6237\u7F16\u53F7",prop:"user_info.sn","min-width":"100"}),e(l,{label:"\u5F52\u5C5E\u516C\u53F8",prop:"company_info.company_name","min-width":"160"}),e(l,{label:"\u7528\u6237\u6635\u79F0","min-width":"100"},{default:n(({row:t})=>{var _,A;return[c("div",xe,[e(Q,{class:"flex-none mr-2",src:(_=t.user_info)==null?void 0:_.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),F(" "+g((A=t.user_info)==null?void 0:A.nickname),1)])]}),_:1}),e(l,{label:"\u89D2\u8272\u540D\u79F0",prop:"user_info.group_name","min-width":"160"}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"user_info.mobile","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:n(({row:t})=>[c("span",{class:be(["text-warning",{"text-error":t.action==2}])},g(t.change_amount),3)]),_:1}),e(l,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"},{default:n(({row:t})=>[c("span",Te,g(t.left_amount),1)]),_:1}),e(l,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"},{default:n(({row:t})=>[c("span",{style:he({color:I(t.change_type)})},g(t.change_type_desc),5)]),_:1}),e(l,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(l,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"140"})]),_:1},8,["data"])),[[J,a(r).loading]]),c("div",Ve,[e(H,{modelValue:a(r),"onUpdate:modelValue":o[4]||(o[4]=t=>Fe(r)?r.value=t:null),onChange:a(E)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Dt as default};