!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function n(e){for(var n=1;n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0){var n,a=r(e);try{for(a.s();!(n=a.n()).done;){t=t+=n.value.bd_money}}catch(l){a.e(l)}finally{a.f()}}return t}return o((function(){i()})),{__sfc:!0,tableDataList:t,filter:n,getTableData:i,getByMoney:u}}},(function(){var e=this._self._c;return e("div",[e("div",{staticClass:"container"},[e("el-table",{attrs:{data:this._self._setupProxy.tableDataList,border:"","header-cell-style":{background:"#F6FAFF"}}},[e("el-table-column",{attrs:{align:"center",prop:"field_name",label:"项目"}}),e("el-table-column",{attrs:{prop:"source",align:"center",label:"数据来源"}}),e("el-table-column",{attrs:{align:"center",prop:"bd_money",label:"经营数据(元)"}})],1)],1)])}),[],!1,null,"03639ffc",null,null).exports,f=s({__name:"secondLevelReport",setup:function(e){var t=l({limit:9999,offset:0,del_flag:0,ordering:"weight"}),r=a([]),u=a([]),s=a(!1),f=a(i((function(){return c.getters.appMainHeight-111-104})));function d(){t.bd_year=(new Date).getFullYear(),HTTP.get("business_data_fields_frame",t).then((function(e){0==e.code&&(0==e.data.results.length?s.value=!0:s.value=!1);p([e.data.results[0],e.data.results[1],e.data.results[3]],[[["项目","field_name"],["","field_name"],["","field_name"]],[["数据来源","source"],["经营数据(元)","bd_money"]]],u.value,r.value)}))}function p(e,t,n,a){h(t,n,a),e.map((function(e,r){if(e.children&&e.children.length){var l=0;e.children.map((function(e){e.children&&e.children.length?l+=e.children.length:l+=1})),e.children.map((function(o,i){(o.children||o.children.length)&&b(n,a,[e,o],t,2,[r,i,0],[l,0])}))}else b(n,a,[e],t,1)}))}function h(e,t,n){var a={},r={};e[0].map((function(e,t){a["key"+(t+1)]=e[0]})),e[1].map((function(e,t){r["val"+(t+1)]=e[0]})),t.push(m(a,r)),n.push([[1,e[0].length],[0,0],[0,0]])}function m(e,t){return n(n({},e),t)}function b(e,t,n,a,r,l,o){var i={},u={},s=[];a[0].map((function(e,t){i["key"+(t+1)]=r>t?n[t][e[1]]:""})),a[1].map((function(e,t){u["val"+(t+1)]=n[n.length-1][e[1]]})),e.push(m(i,u)),1==r?a[0].map((function(e,t){r>t?s.push([1,a[0].length]):s.push([0,0])})):2==r?a[0].map((function(e,t){0==t?0==l[1]?s.push([o[t],1]):s.push([0,0]):1==t?s.push([1,a[0].length-1]):s.push([0,0])})):a[0].map((function(e,t){0==t?0==l[1]&&0==l[2]?s.push([o[t],1]):s.push([0,0]):1==t&&(0==l[2]?s.push([o[t],1]):s.push([0,0]))})),t.push(s)}return o((function(){d()})),{__sfc:!0,filter:t,mergeDataList:r,tableDataList:u,noneData:s,tableHeight:f,arraySpanMethod1:function(e){e.row,e.column;var t=e.rowIndex,n=e.columnIndex;if(tn?e[n][t[1]]:""})),console.log("object_keys",i),console.log("item_list",e),n[1].map((function(t,n){u["val"+(n+1)]=e[e.length-1][t[1]]})),t.value.push(m(i,u)),1==a?n[0].map((function(e,t){a>t?s.push([1,n[0].length]):s.push([0,0])})):2==a?n[0].map((function(e,t){0==t?0==l[1]?s.push([o[t],1]):s.push([0,0]):1==t?s.push([1,n[0].length-1]):s.push([0,0])})):n[0].map((function(e,t){0==t?0==l[1]&&0==l[2]?s.push([o[t],1]):s.push([0,0]):1==t&&(0==l[2]?s.push([o[t],1]):s.push([0,0]))})),console.log("index_list:",l),console.log("merge_list:",s),r.value.push(s)}return o((function(){d()})),{__sfc:!0,tableData:t,mergeData:r,noneData:u,filter:s,tableHeight:f,arraySpanMethod:function(e){e.row,e.column;var t=e.rowIndex,n=e.columnIndex;if(t