1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ef4b6cf"],{"51eb":function(t,e,n){"use strict";var c=n("825a"),r=n("c04e");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(c(this),"number"!==t)}},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var c=n("53ca");n("8172"),n("efec"),n("e01a"),n("a9e3");function r(t,e){if("object"!==Object(c["a"])(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Object(c["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=r(t,"string");return"symbol"===Object(c["a"])(e)?e:String(e)}function i(t,e,n){return e=o(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,c)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"7db0":function(t,e,n){"use strict";var c=n("23e7"),r=n("b727").find,o=n("44d2"),i=n("ae40"),a="find",u=!0,s=i(a);a in[]&&Array(1)[a]((function(){u=!1})),c({target:"Array",proto:!0,forced:u||!s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},8172:function(t,e,n){var c=n("746f");c("toPrimitive")},9598:function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"account"},[n("van-nav-bar",{attrs:{fixed:"",title:"账户管理","left-arrow":"","left-text":"返回","right-text":"添加"},on:{"click-left":function(e){return t.$router.go(-1)},"click-right":function(e){return t.$router.push("/accountAdd")}}}),n("div",{staticClass:"page"},[n("div",{staticClass:"bookkeeping-background background-image-1"},[n("van-row",[t._v("总资产:")]),n("van-row",[t._v(t._s(t._f("moneyFilter")(t.totalAssets)))])],1),t._l(t.accountTypeList,(function(e){return n("div",{staticClass:"account-type"},[n("van-row",{staticClass:"page-title",attrs:{type:"flex",align:"center"}},[n("van-col",[t._v(" "+t._s(e.dictLabel)+" ")]),n("van-col",{staticClass:"assets",attrs:{offset:1}},[t._v(" 资产:"+t._s(t._f("moneyFilter")(t.arraySum(e.accountList,"balance")))+" ")])],1),t._l(e.accountList,(function(e){return n("van-swipe-cell",{key:e.id,scopedSlots:t._u([{key:"right",fn:function(){return[n("van-button",{attrs:{type:"danger",text:"删除"},on:{click:function(n){return t.handleDelete(e)}}}),n("van-button",{attrs:{type:"info",text:"编辑"},on:{click:function(n){return t.$router.push("/accountAdd?accountId="+e.id)}}})]},proxy:!0}],null,!0)},[n("van-cell",{attrs:{center:"",value:t._f("moneyFilter")(e.balance),"is-link":""},on:{click:function(n){return t.$router.push("/accountDetails?accountId="+e.id)}},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"left"},[n("svg-icon",{attrs:{"icon-class":e.accountIcon||t.accountTypeList.filter((function(t){return t.dictValue===e.accountType}))[0].remark}})],1),n("div",{staticClass:"right"},[n("div",{staticClass:"title"},[t._v(t._s(e.accountName))]),n("div",{staticClass:"label"},[t._v(t._s(e.remark))])])]},proxy:!0}],null,!0)})],1)}))],2)}))],2)],1)},r=[],o=n("5530"),i=(n("d81d"),n("d3b7"),n("159b"),n("7db0"),n("cb13")),a={name:"Account",data:function(){return{accountTypeList:this.getLocal("accountTypeList"),totalAssets:0}},mounted:function(){this.getAccountTypeList()},methods:{getAccountTypeList:function(){var t=this,e=[];this.totalAssets=0,Object(i["e"])().then((function(n){e=n.row
|