2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{S as G,Z as H,_ as J,B as W,C as X,M as Y,N as ee,w as te,D as oe,I as ae,O as ne,P as le,Q as ue}from"./element-plus.b64c0a90.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import{_ as re}from"./index.f190d0dd.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.ec976c18.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.1b8e7472.js";import{d as U,$ as pe,j as _e,o as _,c as T,U as e,L as n,u as o,a8 as ce,T as de,a7 as fe,K as V,R as d,M as ge,a as m,S as c,O as be,_ as he,k as ye}from"./@vue.51d7f2d8.js";import{a as A,g as Fe}from"./finance.02a475da.js";import{a as we}from"./useDictOptions.99264916.js";import{u as Ee}from"./usePaging.2ad8e1e6.js";import{u as Be}from"./vue-router.9f65afb1.js";import q from"./people.b0dcfa5c.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.9561c5d9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const Ce={class:"flex items-center"},De={class:"text-success"},ke={class:"flex justify-end mt-4"},ve=U({name:"articleLists"}),ht=U({...ve,setup(xe){var b,h,y,F,w,E;const s=Be(),l=pe({user_info:"",change_type:"",start_time:"",end_time:"",company_id:""});(b=s.query)!=null&&b.company_id&&(l.company_id=(h=s.query)==null?void 0:h.company_id),(y=s.query)!=null&&y.s_date&&(l.start_time=(F=s.query)==null?void 0:F.s_date),(w=s.query)!=null&&w.e_date&&(l.end_time=(E=s.query)==null?void 0:E.e_date);const{pager:r,getLists:f,resetPage:g,resetParams:z}=Ee({fetchFun:A,params:l}),{optionsData:L}=we({change_type:{api:Fe}}),P=B=>{let a="#333";switch(B){case 100:a="#f56c6c";break;case 101:a="#f56c6c";break;case 200:a="#409eff";break;case 201:a="#409eff";break;case 202:a="#67c23a";break;case 203:a="#e6a23c";break}return a};return _e(()=>{f()}),(B,a)=>{const C=H,R=J,S=G,I=W,p=X,D=Y,K=ee,N=me,k=te,O=ie,$=oe,v=ae,u=ne,M=re,j=le,Q=se,Z=ue;return _(),T("div",null,[e(R,{gutter:16},{default:n(()=>[e(C,{span:8},{default:n(()=>[e(q)]),_:1}),e(C,{span:8},{default:n(()=>[e(q)]),_:1})]),_:1}),e(v,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[e(S,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e($,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:o(l),inline:!0},{default:n(()=>[e(p,{label:"\u7528\u6237\u4FE1\u606F"},{default:n(()=>[e(I,{class:"w-[280px]",modelValue:o(l).user_info,"onUpdate:modelValue":a[0]||(a[0]=t=>o(l).user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:ce(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(p,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:n(()=>[e(K,{class:"w-[280px]",modelValue:o(l).change_type,"onUpdate:modelValue":a[1]||(a[1]=t=>o(l).change_type=t)},{default:n(()=>[e(D,{label:"\u5168\u90E8",value:""}),(_(!0),T(de,null,fe(o(L).change_type,(t,i)=>(_(),V(D,{key:i,label:t,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:n(()=>[e(N,{startTime:o(l).start_time,"onUpdate:startTime":a[2]||(a[2]=t=>o(l).start_time=t),endTime:o(l).end_time,"onUpdate:endTime":a[3]||(a[3]=t=>o(l).end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(p,null,{default:n(()=>[e(k,{type:"primary",onClick:o(g)},{default:n(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(k,{onClick:o(z)},{default:n(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(O,{class:"ml-2.5","fetch-fun":o(A),params:o(l),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(v,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[ge((_(),V(j,{size:"large",data:o(r).lists},{default:n(()=>[e(u,{label:"ID",prop:"id","min-width":"80"}),e(u,{label:"\u7528\u6237\u7F16\u53F7",prop:"user_info.sn","min-width":"100"}),e(u,{label:"\u5F52\u5C5E\u516C\u53F8",prop:"company_info.company_name","min-width":"160"}),e(u,{label:"\u7528\u6237\u6635\u79F0","min-width":"100"},{default:n(({row:t})=>{var i,x;return[m("div",Ce,[e(M,{class:"flex-none mr-2",src:(i=t.user_info)==null?void 0:i.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),d(" "+c((x=t.user_info)==null?void 0:x.nickname),1)])]}),_:1}),e(u,{label:"\u89D2\u8272\u540D\u79F0",prop:"user_info.group_name","min-width":"160"}),e(u,{label:"\u624B\u673A\u53F7\u7801",prop:"user_info.mobile","min-width":"100"}),e(u,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:n(({row:t})=>[m("span",{class:be(["text-warning",{"text-error":t.action==2}])},c(t.change_amount),3)]),_:1}),e(u,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"},{default:n(({row:t})=>[m("span",De,c(t.left_amount),1)]),_:1}),e(u,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"},{default:n(({row:t})=>[m("span",{style:he({color:P(t.change_type)})},c(t.change_type_desc),5)]),_:1}),e(u,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(u,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"140"})]),_:1},8,["data"])),[[Z,o(r).loading]]),m("div",ke,[e(Q,{modelValue:o(r),"onUpdate:modelValue":a[4]||(a[4]=t=>ye(r)?r.value=t:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{ht as default};
|