1 |
- import{a as S,A as z,b}from"./index-c9978dc1.js";import{l as D}from"./index-349e8ca3.js";import{_ as N}from"./index-e8ae4702.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import{j as y,a as p,o as B,U as h,V as l,W as m,$ as s,X as u,u as r,F as I,a2 as M,a3 as v,G as _,a4 as i,a5 as f,a7 as k}from"./vue-15ee4564.js";import"./vue-router-0190217c.js";import"./base-c15215b2.js";var P={icon:function(a,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:a}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:e}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:a}}]}},name:"check-circle",theme:"twotone"};const V=P;function x(n){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?Object(arguments[a]):{},c=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(e).filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),c.forEach(function(o){$(n,o,e[o])})}return n}function $(n,a,e){return a in n?Object.defineProperty(n,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[a]=e,n}var g=function(a,e){var c=x({},a,e.attrs);return y(S,x({},c,{icon:V}),null)};g.displayName="CheckCircleTwoTone";g.inheritAttrs=!1;const L=g;const q={class:"y-container mt-10"},E=["onClick"],F={class:"account-item-panel-content"},H={class:"accountAmount"},R={__name:"index",setup(n){let a=p([{label:"类型",key:"type",type:"select",dataSource:[{remarks:"支出",value:"0"},{remarks:"收入",value:"1"}]},{label:"时间范围",key:"dateRange",type:"datepickerRange",objKeys:["begindate","enddate"]},{label:"搜索",key:"condition",type:"input"}]),e=p({content:{pageNumber:1,pageSize:20,sa_accountclassid:0,where:{condition:"",begindate:"",enddate:""}},id:20230111103403});const c=p(),o=p([]),C=async()=>{const d=await z.requested({id:20221008145903,content:{type:1}});o.value=d.data,e.value.content.sa_accountclassid=o.value[0].sa_accountclassid,c.value.tableData()},T=d=>{e.value.content.sa_accountclassid=d.sa_accountclassid,c.value.tableData()};return B(()=>{C()}),(d,G)=>{const w=h("a-col"),A=h("a-row"),O=h("router-link");return l(),m("div",null,[s("div",q,[y(A,null,{default:u(()=>[(l(!0),m(I,null,M(o.value,t=>(l(),v(w,{span:6,key:t.index,md:{span:12,offset:0},lg:{span:12,offset:0},xl:{span:6,offset:0},xxxl:{span:3,offset:0}},{default:u(()=>[s("div",{class:"account-item-panel",onClick:Q=>T(t)},[s("div",F,[s("p",null,[_(i(t.accountname)+" ",1),r(e).content.sa_accountclassid==t.sa_accountclassid?(l(),v(r(L),{key:0})):f("",!0)]),s("p",null,[_("¥ "),s("span",H,i(r(b).formatAmount(t.balance)),1)]),s("p",null,"信用额度:¥"+i(r(b).formatAmount(t.creditquota)),1)])],8,E)]),_:2},1024))),128))]),_:1})]),y(D,{ref_key:"list",ref:c,param:r(e),tableName:"accountMoneyDetailTable",searchType:r(a),noAutoQuery:!0},{operation:u(()=>[_(" 账户流水 "),y(N,{param:r(e)},null,8,["param"])]),tb_cell:u(({data:t})=>[t.column.dataIndex==="billno"?(l(),v(O,{key:0,to:{name:"accountBillDetail",query:{id:t.record.sa_cashbillid}}},{default:u(()=>[_(i(t.record.billno),1)]),_:2},1032,["to"])):f("",!0),t.column.dataIndex==="type"?(l(),m("span",{key:1,style:k(t.record.type==0?"color:green":"color:red")},i(t.record.type==0?"支出":"收入"),5)):f("",!0),t.column.dataIndex==="amount"?(l(),m("span",{key:2,style:k(t.record.amount>0?"color:green":"color:red")},i(r(b).formatAmount(t.record[t.column.dataIndex])),5)):f("",!0)]),_:1},8,["param","searchType"])])}}},ee=j(R,[["__scopeId","data-v-5ca5c42f"]]);export{ee as default};
|