pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-43dec3a3.02fa4f37.js

1 line
3.6 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43dec3a3"],{4489:function(t,e,n){},"978a":function(t,e,n){"use strict";n("4489")},"9fb1":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return u}));var i=n("b775");function a(t){return Object(i["a"])({url:"/bookkeeping/classification/list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/bookkeeping/classification/getLatelyTypeList",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/bookkeeping/classification/"+t,method:"get"})}function c(t){return Object(i["a"])({url:"/bookkeeping/classification",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/bookkeeping/classification",method:"put",data:t})}function u(t){return Object(i["a"])({url:"/bookkeeping/classification/"+t,method:"delete"})}},f7ca:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"secondary"},[n("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回","right-text":"新建",title:t.title},on:{"click-right":t.handleCreate,"click-left":t.handleBack}}),n("div",{staticClass:"page"},[n("div",{staticClass:"bookkeeping-background background-image-1"},[n("van-row",[t._v(t._s("0"===t.queryParams.typeDifference?"总收入":"总支出")+"")]),n("van-row",[t._v(t._s(t._f("moneyFilter")(t.totalAssets)))])],1),t._l(t.secondaryList,(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("/addClassification?classificationId="+e.id)}}})]},proxy:!0}],null,!0)},[n("van-cell",{attrs:{center:"",value:t._f("moneyFilter")(e.statistics),"is-link":""},on:{click:function(n){return t.$router.push("/classificationDetails?classificationId="+e.id)}},scopedSlots:t._u([{key:"title",fn:function(){return[n("svg-icon",{attrs:{"icon-class":e.typeIcon||""}}),n("span",[t._v(t._s(e.typeName))])]},proxy:!0}],null,!0)})],1)}))],2)],1)},a=[],r=(n("ac1f"),n("5319"),n("9fb1")),s={name:"classification",data:function(){return{title:"",totalAssets:0,secondaryList:[],queryParams:{typeLevel:"1",typeDifference:this.$route.query.typeDifference,typeParentId:this.$route.query.typeParentId}}},mounted:function(){var t=this;this.getClassificationList(),Object(r["c"])(this.queryParams.typeParentId).then((function(e){t.title=e.data.typeName}))},methods:{handleCreate:function(){this.$router.push("/addClassification?typeLevel=1&typeDifference="+this.queryParams.typeDifference+"&typeParentId="+this.queryParams.typeParentId),this.setLocal("typeParentName",this.title)},handleBack:function(){this.$router.replace("/primary?typeDifference="+this.queryParams.typeDifference)},getClassificationList:function(){var t=this;Object(r["e"])(this.queryParams).then((function(e){t.secondaryList=e.rows,t.totalAssets=t.arraySum(t.secondaryList,"statistics")}))},handleDelete:function(t){var e=this;this.$dialog.confirm({title:"删除提示",message:"0"===t.typeLevel?"删除该分类,也会删除其下二级分类":"确认删除该分类",confirmButtonText:"确认删除"}).then((function(){Object(r["b"])(t.id).then((function(t){e.$toast("删除成功"),e.getClassificationList()}))})).catch((function(){}))}}},c=s,o=(n("978a"),n("2877")),u=Object(o["a"])(c,i,a,!1,null,"08764dfb",null);e["default"]=u.exports}}]);