yxk_pc_mdh/gyhl/static/js/100.2ba34a6375b64c33218e.js

1 line
21 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([100],{"6ial":function(e,t){},GADj:function(e,t){},OymR:function(e,t){},QxfE:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),r=a.n(s),i=a("d7EF"),n=a.n(i),l=a("//Fk"),o=a.n(l),p=a("GKmE"),c=(a("NYxO"),a("lbHh")),h=a.n(c),d=a("dWDB"),u=a("qbzX"),m=a("jgtX"),g={name:"listTabPage",inheritAttrs:!0,props:{selectList:{type:Object,default:function(){}},buttons:{type:Array,default:function(){return[]}},disableBtn:{type:Boolean,default:!0},showMoreSearch:{type:Boolean,default:!1},tableData:{type:Array,default:function(){return[]}},searchParamElement:{type:Array,default:function(){return[]}},formTableData:{type:Array,default:function(){return[]}},listQuery:{default:{pageno:1,pagesize:10}},total:{type:Number,default:0},pictLoading:{type:Boolean,default:!1},summary:{type:Object,default:void 0}},data:function(){return{pageSizes:[10,20,50,100,200,500],time:"",param:[],summary1:[{label:"总数量",value:"111"},{label:"总金额",value:"111"},{label:"总金额",value:"111"}],selectDeptIdAll:[],depOptionsAll:[],depOptionsMy:[]}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},watch:{time:function(e){e?(this.listQuery.startTime=e[0],this.listQuery.endTime=e[1]):(this.listQuery.startTime="",this.listQuery.endTime="")}},mounted:function(){this.getDeptList()},methods:{getDeptList:function(){var e=this;this.$api.commonAPI.getDeptsTree().then(function(t){0===t.code&&(e.depOptionsAll=t.data.children,e.setDeptList(e.depOptionsAll),e.setDeptListMy(t.data.children),e.setDeptList(e.depOptionsMy))})},setDeptListMy:function(e){var t=!0,a=!1,s=void 0;try{for(var i,n=r()(e);!(t=(i=n.next()).done);t=!0){var l=i.value;l.id==this.userInfo.deptId?this.depOptionsMy=[l]:l.hasChildren&&this.setDeptListMy(l.children)}}catch(e){a=!0,s=e}finally{try{!t&&n.return&&n.return()}finally{if(a)throw s}}},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var i,n=r()(e);!(t=(i=n.next()).done);t=!0){var l=i.value;l.hasChildren?this.setDeptList(l.children):l.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&n.return&&n.return()}finally{if(a)throw s}}},handleChangeAll:function(e){this.listQuery.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptIdAll=e},getList:function(){this.$emit("getList")},gotoDetail:function(e){this.$emit("gotoDetail",e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},sortChange:function(e){this.$emit("sortChange",e)},search:function(){this.$emit("search")},btnClick:function(e){this.$emit("btnClick",e)},moreSearch:function(){this.$emit("moreSearch")},getSummaries:function(e){var t=this,a=e.columns,s=e.data;console.log("zhuyemian汇总"),console.log(e);var r=[];return a.forEach(function(e,a){if(console.log("进入循环测试了"),0!==a)if("count"===e.property||"taxAmount"===e.property||"saleCount"===e.property||"timearea"===e.property||"totalnumber"===e.property||"needCount"===e.property||"buyCount"===e.property||"amount"===e.property||"processCount"===e.property||"processCount"===e.property||"taxAmount"===e.property||"oneReiCount"===e.property||"reimAmount"===e.property){var i=s.map(function(t){return Number(t[e.property])});i.every(function(e){return isNaN(e)})?r[a]="":r[a]=i.reduce(function(e,t){var a=Number(t);return isNaN(a)?e:e+t},0),"count"!==e.property?"saleCount"!==e.property?"taxAmount"!==e.property?"amount"!==e.property?"needCount"!==e.property?"buyCount"!==e.property?"processCount"!==e.property?"timearea"!==e.property?"totalnumber"!==e.property?"oneReiCount"!==e.property&&"reimAmount"!==e.property||r[a]&&(r[a]=t.summary.allRemiAmount):r[a]&&(r[a]=t.summary.allTotalNumber):r[a]&&(r[a]=t.summary.allTimearea):r[a]&&(r[a]=t.summary.totalProcessCount):r[a]&&(r[a]=t.summary.totalBuyCount):r[a]&&(r[a]=t.summary.totalNeedCount):r[a]&&(r[a]=t.summary.totalAmount):r[a]&&(r[a]=t.summary.totalTaxAmount):r[a]&&(r[a]=t.summary.totalSaleCount):r[a]&&(r[a]=t.summary.totalCount)}else r[a]="";el