1 line
6.0 KiB
JavaScript
1 line
6.0 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 k},A0:function(){return q},D0:function(){return a},ER:function(){return w},Hg:function(){return J},J_:function(){return N},Kl:function(){return L},ME:function(){return d},Or:function(){return b},P4:function(){return c},Py:function(){return f},QL:function(){return E},Qj:function(){return _},Sc:function(){return h},W0:function(){return Q},WZ:function(){return m},Wj:function(){return s},Zs:function(){return o},_:function(){return D},_1:function(){return C},a:function(){return A},ag:function(){return x},b8:function(){return g},dN:function(){return p},fZ:function(){return l},gz:function(){return Z},jF:function(){return u},kB:function(){return W},m3:function(){return U},oW:function(){return P},qT:function(){return v},sU:function(){return i},sy:function(){return j},tb:function(){return y},wy:function(){return B},xf:function(){return R},yk:function(){return M}});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/materialAndUnit",method:"post",data:t})}function Z(t){return(0,e.Z)({url:"/basic/consumableConfiguration/specList",method:"post",data:t})}function v(t){return(0,e.Z)({url:"/basic/sideLibraryConfiguration/page",method:"post",data:t})}function _(t){return(0,e.Z)({url:"/basic/sideLibraryConfiguration/add",method:"post",data:t})}function y(t){return(0,e.Z)({url:"/basic/sideLibraryConfiguration/get",method:"post",data:t})}function L(t){return(0,e.Z)({url:"/basic/sideLibraryConfiguration/update",method:"post",data:t})}function q(t){return(0,e.Z)({url:"/basic/sideLibraryConfiguration/list",method:"post",data:t})}function k(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/page",method:"post",data:t})}function x(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/add",method:"post",data:t})}function R(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/get",method:"post",data:t})}function P(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/update",method:"post",data:t})}function D(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/getUnitList",method:"post",formState:!0,data:t})}function w(t){return(0,e.Z)({url:"/basic/equipmentConfiguration/getEqCode",method:"post",data:t})}function N(t){return(0,e.Z)({url:"/report/report-sheet-category/list",method:"post",data:t})}function W(t){return(0,e.Z)({url:"/report/report-sheet/page",method:"post",data:t})}function j(t){return(0,e.Z)({url:"/report/report-sheet/update",method:"post",data:t})}function B(t){return(0,e.Z)({url:"/report/report-sheet/delete",method:"post",data:t})}function E(t){return(0,e.Z)({url:"/report/report-sheet/get",method:"post",data:t})}function M(t){return(0,e.Z)({url:"/report/report-sheet-category/page",method:"post",data:t})}function U(t){return(0,e.Z)({url:"/report/report-sheet-category/add",method:"post",data:t})}function A(t){return(0,e.Z)({url:"/report/report-sheet-category/update",method:"post",data:t})}function J(t){return(0,e.Z)({url:"/report/report-sheet-category/get",method:"post",data:t})}function Q(t){return(0,e.Z)({url:"/report/report-sheet-category/delete",method:"post",data:t})}},2070:function(t,r,n){t.exports=n.p+"img/report.b2b3c253.png"}}]); |