(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-2a68","chunk-7b34"],{"/Sza":function(t,e,a){"use strict";var i=a("B/4r");a.n(i).a},"B/4r":function(t,e,a){},Vg2L:function(t,e,a){"use strict";a.r(e);var i=a("14Xm"),n=a.n(i),r=a("D3Ub"),s=a.n(r),o=a("brm8"),l=a("7Qib"),u={name:"index",data:function(){return{tableKey:"",listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,detailData:[],detailVisible:!1,listQuery:{pageSize:10,pageIndex:1,filter:{starttime:"",endtime:"",safetysupervision:""}}}},created:function(){},methods:{openDialog:function(t){this.listQuery.filter.city=t.city,this.listQuery.filter.starttime=t.starttime,this.listQuery.filter.endtime=t.endtime,this.listQuery.filter.safetysupervision=t.safetysupervision,this.detailVisible=!0,this.getCityInAndOutDetail()},getCityInAndOutDetail:function(){var t=this;return s()(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(o.i)(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(l.a)(a.data.result.total,a.data.result.size),t.currentPage=a.data.result.current,t.detailData=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.getCityInAndOutDetail()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getCityInAndOutDetail()}}},c=(a("/Sza"),a("KHd+")),d=Object(c.a)(u,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.detailVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(e){t.detailVisible=e}}},[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.detailData,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:"enterprisename",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"进货数量(箱)",prop:"innum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"出货数量(箱)",prop:"outnum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"销售数量(箱)",prop:"salenum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"销售额(万元)",prop:"sales",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,"197bf9ff",null);d.options.__file="index.vue";e.default=d.exports},brm8:function(t,e,a){"use strict";a.d(e,"r",function(){return r}),a.d(e,"j",function(){return s}),a.d(e,"o",function(){return o}),a.d(e,"t",function(){return l}),a.d(e,"p",function(){return u}),a.d(e,"q",function(){return c}),a.d(e,"s",function(){return d}),a.d(e,"g",function(){return p}),a.d(e,"f",function(){return h}),a.d(e,"c",function(){return f}),a.d(e,"m",function(){return m}),a.d(e,"l",function(){return g}),a.d(e,"h",function(){return b}),a.d(e,"i",function(){return v}),a.d(e,"k",function(){return y}),a.d(e,"d",function(){return O}),a.d(e,"n",function(){return j}),a.d(e,"e",function(){return z}),a.d(e,"a",function(){return _}),a.d(e,"b",function(){return x});var i=a("X4fA"),n=a("t3Un");function r(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/saleRecord4",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound",method:"post",data:t})}function o(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/gender-sale",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/race-sale",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(i.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(i.a)()},url:"http://39.104.85.193:4105/order/getPurchaseDetailInUnit",method:"post",data:t})}function d(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/saleRecord3",method:"post",data:t})}function p(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord3",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord4",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/city-inbound-outbound",method:"post",data:t})}function m(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/enterpriseESS",method:"post",data:t})}function g(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/enterpriseESSExport",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/cityESS",method:"post",data:t})}function v(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound-detail",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(i.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(i.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-sale",method:"post",data:t})}function j(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-sale",method:"post",data:t})}function z(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-sale",method:"post",data:t})}function _(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/district-type-sale",method:"post",data:t})}function x(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/district-type-sale",method:"post",data:t})}},eBhl:function(t,e,a){},wlSw:function(t,e,a){"use strict";a.r(e);var i=a("14Xm"),n=a.n(i),r=a("D3Ub"),s=a.n(r),o=a("Vg2L"),l=a("7Qib"),u=a("brm8"),c={name:"addSelfExam",data:function(){return{tableKey:"",validTime:["",""],listQuery:{pageSize:20,pageIndex:1,filter:{starttime:"",endtime:"",safetysupervision:""}},safetysupervision:["烟花爆竹生产","烟花爆竹批发经营","烟花爆竹零售经营(短期)","烟花爆竹零售经营(长期)"],pageSize:20,recordTotal:0,currentPage:1,pageTotal:0,listLoading:!1,personPurchaseData:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}},components:{detail:o.default},created:function(){this.initValidTime(),this.getCityInOutList()},watch:{},methods:{getCityInOutList:function(){var t=this;return s()(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,null!==t.validTime?(t.listQuery.filter.starttime=t.validTime[0],t.listQuery.filter.endtime=t.validTime[1]):(t.listQuery.filter.starttime="",t.listQuery.filter.endtime=""),e.next=4,Object(u.j)(t.listQuery);case 4:"200"===(a=e.sent).data.code?(t.recordTotal=a.data.result.total,t.pageSize=a.data.result.size,t.pageTotal=Object(l.a)(a.data.result.total,a.data.result.size),t.currentPage=a.data.result.current,t.personPurchaseData=a.data.result.records):t.$message({type:"warning",message:a.data.message}),t.listLoading=!1;case 7:case"end":return e.stop()}},e,t)}))()},exportToExcel:function(){var t=this;return s()(n.a.mark(function e(){var i,r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.c)(t.listQuery);case 2:"200"===(i=e.sent).data.code?null===i.data.result||i.data.result===[]||0===i.data.result.length?t.$message({type:"warning",message:"无数据可导出"}):(r=i.data.result,Promise.all([a.e("chunk-0d49"),a.e("chunk-5aa0")]).then(a.bind(null,"S/jZ")).then(function(e){var a=t.formatJson(["name","innum","outnum","salenum","sales"],r);e.export_json_to_excel({header:["地区","进货数量(箱)","出货数量(箱)","销售数量(箱)","售销额(万元)"],data:a,filename:"地州市进销"})})):t.$message({message:i.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]})})},openDetailDialog:function(t,e,a){null==e&&this.$message({type:"warning",message:"请输入具体时间范围"});var i={city:t,starttime:e[0],endtime:e[1],safetysupervision:a};this.$refs.detail.openDialog(i)},searchCityInOutSearch:function(){this.getCityInOutList()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getCityInOutList()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getCityInOutList()},initValidTime:function(){var t=new Date,e=new Date;t.setTime(e.getTime()-5184e5),this.validTime[0]=[t.getFullYear(),t.getMonth()+1,t.getDate()].join("-")+" 00:00:00",this.validTime[1]=[e.getFullYear(),e.getMonth()+1,e.getDate()].join("-")+" 23:59:59"}}},d=(a("yQis"),a("KHd+")),p=Object(d.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[t._v("按时间查询:")]),t._v(" "),a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.validTime,callback:function(e){t.validTime=e},expression:"validTime"}})],1),t._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px","margin-left":"15px"}},[a("span",[t._v("企业类型:")]),t._v(" "),a("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.listQuery.filter.safetysupervision,callback:function(e){t.$set(t.listQuery.filter,"safetysupervision",e)},expression:"listQuery.filter.safetysupervision"}},[a("el-option",{attrs:{value:"",label:"全部"}}),t._v(" "),t._l(t.safetysupervision,function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})],2)],1),t._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.searchCityInOutSearch("查询","")}}},[t._v("查询")]),t._v(" "),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.personPurchaseData,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"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"click-color",on:{click:function(a){t.openDetailDialog(e.row.name,t.validTime,t.listQuery.filter.safetysupervision)}}},[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进货数量(箱)",prop:"innum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"出货数量(箱)",prop:"outnum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"销售数量(箱)",prop:"salenum",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"售销额(万元)",prop:"sales",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":[20,50,100,200],"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),t._v(" "),a("detail",{ref:"detail"})],1)},[],!1,null,"53db76b1",null);p.options.__file="cityInAndOut.vue";e.default=p.exports},yQis:function(t,e,a){"use strict";var i=a("eBhl");a.n(i).a}}]);
|