pnkx-admin-mongo/pnkx-app-apk/unpackage/cache/wgt/H5A8E5E14/static/js/chunk-3cb1bb0e.70f88d6c.js
2024-01-13 13:29:20 +08:00

1 line
3.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cb1bb0e"],{"4ca2":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"primary"},[i("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回","right-text":"新建",title:t.title},on:{"click-right":function(e){return t.$router.push("/addClassification?typeLevel=0&typeDifference="+t.queryParams.typeDifference)},"click-left":t.handleBack}}),i("div",{staticClass:"page"},[i("div",{staticClass:"bookkeeping-background background-image-1"},[i("van-row",[t._v(t._s("0"===t.queryParams.typeDifference?"总收入":"总支出")+"")]),i("van-row",[t._v(t._s(t._f("moneyFilter")(t.totalAssets)))])],1),t._l(t.primaryList,(function(e){return i("van-swipe-cell",{key:e.id,scopedSlots:t._u([{key:"right",fn:function(){return[i("van-button",{attrs:{type:"danger",text:"删除"},on:{click:function(i){return t.handleDelete(e)}}}),i("van-button",{attrs:{type:"info",text:"编辑"},on:{click:function(i){return t.$router.push("/addClassification?classificationId="+e.id)}}})]},proxy:!0}],null,!0)},[i("van-cell",{attrs:{center:"",value:t._f("moneyFilter")(e.statistics),"is-link":""},on:{click:function(i){return t.$router.push("/secondary?typeParentId="+e.id+"&typeDifference="+e.typeDifference)}},scopedSlots:t._u([{key:"title",fn:function(){return[i("svg-icon",{attrs:{"icon-class":e.typeIcon||""}}),i("span",[t._v(t._s(e.typeName))])]},proxy:!0}],null,!0)})],1)}))],2)],1)},r=[],a=(i("ac1f"),i("5319"),i("9fb1")),s={name:"classification",data:function(){return{title:"",totalAssets:0,primaryList:this.getLocal("primaryList")||[],queryParams:{typeLevel:"0",typeDifference:this.$route.query.typeDifference}}},mounted:function(){this.title="0"===this.queryParams.typeDifference?"收入分类":"支出分类",this.getClassificationList()},methods:{handleBack:function(){"0"===this.queryParams.typeLevel?this.$router.replace("/classification"):(this.queryParams={typeLevel:"0",typeDifference:this.typeDifference},this.title="0"===this.queryParams.typeDifference?"收入分类":"支出分类",this.getClassificationList())},getClassificationList:function(){var t=this;Object(a["e"])(this.queryParams).then((function(e){t.primaryList=e.rows,t.totalAssets=t.arraySum(t.primaryList,"statistics"),t.setLocal("primaryList",t.primaryList)}))},handleDelete:function(t){var e=this;this.$dialog.confirm({title:"删除提示",message:"删除该分类,也会删除其下二级分类",confirmButtonText:"确认删除"}).then((function(){Object(a["b"])(t.id).then((function(t){e.$toast("删除成功"),e.getClassificationList()}))})).catch((function(){}))}}},c=s,o=(i("8d81"),i("2877")),u=Object(o["a"])(c,n,r,!1,null,"10c4e3aa",null);e["default"]=u.exports},"8d81":function(t,e,i){"use strict";i("cc59")},"9fb1":function(t,e,i){"use strict";i.d(e,"e",(function(){return r})),i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return c})),i.d(e,"f",(function(){return o})),i.d(e,"b",(function(){return u}));var n=i("b775");function r(t){return Object(n["a"])({url:"/bookkeeping/classification/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/bookkeeping/classification/getLatelyTypeList",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/bookkeeping/classification/"+t,method:"get"})}function c(t){return Object(n["a"])({url:"/bookkeeping/classification",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/bookkeeping/classification",method:"put",data:t})}function u(t){return Object(n["a"])({url:"/bookkeeping/classification/"+t,method:"delete"})}},cc59:function(t,e,i){}}]);