(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-5a8d"],{"/y7h":function(t,e,a){"use strict";a.r(e);var r=a("cLjf"),n=a.n(r),i=a("hDQ3"),o=a.n(i),s=a("brm8"),u=a("7Qib"),l={name:"index",data:function(){return{tableKey:"",listLoading:!1,pageSize:20,recordTotal:0,currentPage:1,pageTotal:0,citySaleDetailData:[],citySaleDetailVisible:!1,listQuery:{pageSize:20,pageIndex:1,filter:{starttime:"",endtime:"",enterprisename:"",safetysupervision:"",city:""}}}},created:function(){},methods:{showCitySaleDetail:function(t,e,a,r,n){this.listQuery.filter.starttime=t,this.listQuery.filter.endtime=e,this.listQuery.filter.enterprisename=a,this.listQuery.filter.safetysupervision=r,this.listQuery.filter.city=n,this.listQuery.pageIndex=1,this.listQuery.pageSize=20,this.citySaleDetailVisible=!0,this.getCitySaleDetailList()},getCitySaleDetailList:function(){var t=this;return o()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(s.a)(t.listQuery);case 3:"200"===(a=e.sent).data.code?(t.recordTotal=a.data.result.total,t.pageSize=a.data.result.size,t.pageTotal=Object(u.a)(a.data.result.total,a.data.result.size),t.currentPage=a.data.result.current,t.citySaleDetailData=a.data.result.records):t.$message({type:"warning",message:a.data.message}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getCitySaleDetailList()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getCitySaleDetailList()},exportToExcel:function(){var t=this;return o()(n.a.mark(function e(){var r,i;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.b)(t.listQuery);case 2:"200"===(r=e.sent).data.code?null===r.data.result||r.data.result===[]||0===r.data.result.length?t.$message({type:"warning",message:"无数据可导出"}):(i=r.data.result,Promise.all([a.e("chunk-1560"),a.e("chunk-7a50")]).then(a.bind(null,"S/jZ")).then(function(e){var a=t.formatJson(["name","num_爆竹类","num_喷花类","num_旋转类","num_吐珠类","num_玩具类","num_组合烟花类","totalcol","personnum"],i);e.export_json_to_excel({header:["地区","爆竹类(箱)","喷花类(箱)","旋转类(箱)","吐珠类(箱)","玩具类(箱)","组合烟花类(箱)","合计(箱)","总人数"],data:a,filename:t.listQuery.filter.city+"分类销售统计"})})):t.$message({message:r.data.message,type:"warning"});case 4:case"end":return e.stop()}},e,t)}))()},formatJson:function(t,e){return e.map(function(e){return t.map(function(t){return e[t]})})}}},c=(a("uY3I"),a("ZrdR")),d=Object(c.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.citySaleDetailVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(e){t.citySaleDetailVisible=e}}},[a("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:t.exportToExcel}},[t._v("导出")])],1),t._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.citySaleDetailData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"县区",prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"爆竹类(箱)",prop:"num_爆竹类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"喷花类(箱)",prop:"num_喷花类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"旋转类(箱)",prop:"num_旋转类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"吐珠类(箱)",prop:"num_吐珠类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"玩具类(箱)",prop:"num_玩具类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"组合烟花类(箱)",prop:"num_组合烟花类",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"合计(箱)",prop:"totalcol",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"总人数",prop:"personnum",align:"center"}})],1),t._v(" "),a("br"),t._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),a("br")],1)])},[],!1,null,"43cd0bc0",null);d.options.__file="index.vue";e.default=d.exports},"9Lpn":function(t,e,a){},brm8:function(t,e,a){"use strict";a.d(e,"r",function(){return i}),a.d(e,"j",function(){return o}),a.d(e,"o",function(){return s}),a.d(e,"t",function(){return u}),a.d(e,"p",function(){return l}),a.d(e,"q",function(){return c}),a.d(e,"s",function(){return d}),a.d(e,"g",function(){return h}),a.d(e,"f",function(){return p}),a.d(e,"c",function(){return b}),a.d(e,"m",function(){return f}),a.d(e,"l",function(){return m}),a.d(e,"h",function(){return g}),a.d(e,"i",function(){return y}),a.d(e,"k",function(){return j}),a.d(e,"d",function(){return O}),a.d(e,"n",function(){return v}),a.d(e,"e",function(){return _}),a.d(e,"a",function(){return z}),a.d(e,"b",function(){return S});var r=a("X4fA"),n=a("t3Un");function i(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/saleRecord4",method:"post",data:t})}function o(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/gender-sale",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/race-sale",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/generation-sale",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/getPurchaseDetailInUnit",method:"post",data:t})}function d(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/saleRecord3",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord3",method:"post",data:t})}function p(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord4",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/city-inbound-outbound",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/enterpriseESS",method:"post",data:t})}function m(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/enterpriseESSExport",method:"post",data:t})}function g(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/order/cityESS",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound-detail",method:"post",data:t})}function j(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-type-sale",method:"post",data:t})}function O(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-sale",method:"post",data:t})}function v(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-sale",method:"post",data:t})}function _(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-sale",method:"post",data:t})}function z(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/district-type-sale",method:"post",data:t})}function S(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/district-type-sale",method:"post",data:t})}},uY3I:function(t,e,a){"use strict";var r=a("9Lpn");a.n(r).a}}]);
|