1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
|
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2949],{2949:function(t,r,n){n.r(r),n.d(r,{default:function(){return d}});var e=function(){var t=this,r=t._self._c;return r("div",{staticClass:"reoprtManager"},[r("div",{staticClass:"report"},[t._m(0),r("div",{staticClass:"numBox"},[r("div",[r("div",{staticClass:"reportNum"},[r("div",{staticClass:"num"},[t._v(t._s(t.totalReports))]),t._m(1)]),r("div",{staticClass:"detail",on:{click:function(r){return t.toDetail()}}},[t._v("了解详情")])])])]),t._l(t.reportList,(function(n,e){return r("div",{key:e,staticClass:"reportDesc"},[r("div",[r("div",{staticClass:"reportNum"},[r("div",{staticClass:"num"},[t._v(t._s(n.quantity))]),r("div",{staticClass:"text"},[r("p",{staticClass:"font"},[t._v(t._s(n.name))]),r("p",{staticClass:"letter"},[t._v("Reports")])])]),r("div",{staticClass:"detail",on:{click:function(r){return t.toDetail(n.id)}}},[t._v("了解详情")])])])}))],2)},o=[function(){var t=this,r=t._self._c;return r("div",{staticClass:"imgBox"},[r("img",{attrs:{src:n(2070),alt:"",width:"355px",height:"314px"}})])},function(){var t=this,r=t._self._c;return r("div",{staticClass:"text"},[r("p",{staticClass:"font"},[t._v("全部报表")]),r("p",{staticClass:"letter"},[t._v("Reports")])])}],u=n(910),a={name:"ReportList",data(){return{totalReports:0,reportList:[]}},mounted(){this.getList()},methods:{getList(){(0,u.J_)({}).then((t=>{if(0===t.code&&t.data.length>0){this.totalReports=0;for(let r=0;r<t.data.length;r++)this.totalReports+=t.data[r].quantity;this.reportList=t.data}else this.totalReports=0,this.reportList=[]}))},toDetail(t){this.$router.push({name:"reportListDetail",params:{categoryId:t||""}})}}},i=a,s=n(1001),c=(0,s.Z)(i,e,o,!1,null,null,null),d=c.exports},910:function(t,r,n){n.d(r,{$0:function(){return x},A0:function(){return k},D0:function(){return a},ER:function(){return M},Hg:function(){return J},J_:function(){return N},Kl:function(){return q},ME:function(){return d},Or:function(){return b},P4:function(){return c},Py:function(){return f},QL:function(){return E},Qj:function(){return y},Sc:function(){return h},Sl:function(){return C},W0:function(){return Q},WZ:function(){return m},Wj:function(){return s},Zs:function(){return o},_:function(){return w},_1:function(){return Z},a:function(){return A},ag:function(){return R},b8:function(){return g},dN:function(){return p},fZ:function(){return l},gz:function(){return v},jF:function(){return u},kB:function(){return W},m3:function(){return U},oW:function(){return D},qT:function(){return _},sU:function(){return i},sy:function(){return j},tb:function(){return L},wy:function(){return B},xf:function(){return P},yk:function(){return S}});var e=n(8859);function o(t){return(0,e.Z)({url:"/basic/account/page",method:"post",data:t})}function u(t){return(0,e.Z)({url:"/basic/account/add",method:"post",data:t})}function a(t){return(0,e.Z)({url:"/basic/account/get",method:"post",data:t})}function i(t){return(0,e.Z)({url:"/basic/account/update",method:"post",data:t})}function s(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/page",method:"post",data:t})}function c(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/add",method:"post",data:t})}function d(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/get",method:"post",data:t})}function f(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/update",method:"post",data:t})}function p(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/getNameList",method:"post",data:t})}function l(t){return(0,e.Z)({url:"/basic/sparePartsConfiguration/getModelList",method:"post",data:t})}function m(t){return(0,e.Z)({url:"/basic/consumableConfiguration/page",method:"post",data:t})}function h(t){return(0,e.Z)({url:"/basic/consumableConfiguration/add",method:"post",data:t})}function g(t){return(0,e.Z)({url:"/basic/consumableConfiguration/get",method:"post",data:t})}function b(t){return(0,e.Z)({url:"/basic/consumableConfiguration/update",method:"post",data:t})}function C(t){return(0,e.Z)({url:"/basic/consumableConfiguration/getMaterialList",method:"post",data:t})}functio
|