Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-6dd5"],{"5W5M":function(t,e,r){"use strict";r.d(e,"g",function(){return n}),r.d(e,"b",function(){return s}),r.d(e,"d",function(){return c}),r.d(e,"i",function(){return o}),r.d(e,"f",function(){return u}),r.d(e,"e",function(){return l}),r.d(e,"a",function(){return d}),r.d(e,"c",function(){return p}),r.d(e,"h",function(){return h});var a=r("t3Un"),i=r("X4fA");function n(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:t||{}})}function s(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:t})}function o(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:t})}function u(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:t||{}})}function l(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:t||{}})}function d(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:t})}function p(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:t})}function h(t){return Object(a.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:t})}},"5sjq":function(t,e,r){"use strict";var a=r("OneD");r.n(a).a},OneD:function(t,e,r){},brm8:function(t,e,r){"use strict";r.d(e,"r",function(){return n}),r.d(e,"j",function(){return s}),r.d(e,"o",function(){return c}),r.d(e,"t",function(){return o}),r.d(e,"p",function(){return u}),r.d(e,"q",function(){return l}),r.d(e,"s",function(){return d}),r.d(e,"g",function(){return p}),r.d(e,"f",function(){return h}),r.d(e,"c",function(){return f}),r.d(e,"m",function(){return m}),r.d(e,"l",function(){return b}),r.d(e,"h",function(){return y}),r.d(e,"i",function(){return v}),r.d(e,"k",function(){return g}),r.d(e,"d",function(){return j}),r.d(e,"n",function(){return O}),r.d(e,"e",function(){return x}),r.d(e,"a",function(){return Q}),r.d(e,"b",function(){return _});var a=r("X4fA"),i=r("t3Un");function n(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/saleRecord4",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/gender-sale",method:"post",data:t})}function o(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/race-sale",method:"post",data:t})}function u(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/generation-sale",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/getPurchaseDetailInUnit",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/saleRecord3",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord3",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord4",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/export/city-inbound-outbound",method:"post",data:t})}function m(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/enterpriseESS",method:"post",data:t})}function b(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/enterpriseESSExport",method:"post",data:t})}function y(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/cityESS",method:"post",data:t})}function v(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound-detail",method:"post",data:t})}function g(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/city-type-sale",method:"post",data:t})}function j(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-sale",method:"post",data:t})}function O(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-sale",method:"post",data:t})}function x(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-sale",method:"post",data:t})}function Q(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/district-type-sale",method:"post",data:t})}function _(t){return Object(i.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/export/district-type-sale",method:"post",data:t})}},"l/qL":function(t,e,r){"use strict";r.r(e);var a=r("14Xm"),i=r.n(a),n=r("D3Ub"),s=r.n(n),c=r("7Qib"),o=r("brm8"),u=r("WZwz"),l=r("5W5M"),d={name:"enterpriseESS",data:function(){return{tableKey:"",validTime:["",""],cityList:[],provinceList:[],districtList:[],streetList:[],committeeList:[],safetySuperVisionList:[],listQuery:{pageSize:20,pageIndex:1,filter:{province:"",city:"",district:"",street:"",committee:"",starttime:"",endtime:"",safetysupervision:"",enterprisename:"",parententerprisename:"",itemname:"",itemcode:""}},pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,listLoading:!1,productPurchaseData:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.getTime()-6048e5),t.$emit("pick",[r,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.getTime()-2592e6),t.$emit("pick",[r,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.getTime()-7776e6),t.$emit("pick",[r,e])}}]}}},created:function(){this.initValidTime(),this.getProductList(),this.getSafetySuperVisionList(),this.getProvince()},watch:{},methods:{getProductList:function(){var t=this;return s()(i.a.mark(function e(){var r,a;return i.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(o.m)(t.listQuery);case 4:"200"===(r=e.sent).data.code?(a=r.data.result,t.recordTotal=a.totalCount,t.pageSize=a.pageSize,t.pageTotal=Object(c.a)(a.totalCount,a.pageSize),t.currentPage=a.pageIndex,t.productPurchaseData=r.data.result.result):t.$message({type:"warning",message:r.data.message}),t.listLoading=!1;case 7:case"end":return e.stop()}},e,t)}))()},exportToExcel:function(){var t=this;return s()(i.a.mark(function e(){var a,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(o.l)(t.listQuery);case 2:"200"===(a=e.sent).data.code?null===a.data.result||a.data.result===[]||0===a.data.result.length?t.$message({type:"warning",message:"无数据可导出"}):(n=a.data.result,Promise.all([r.e("chunk-0d49"),r.e("chunk-5aa0")]).then(r.bind(null,"S/jZ")).then(function(e){var r=t.formatJson(["enterpriseName","saleNumber","entryNumber","deliveryNumber"],n);e.export_json_to_excel({header:["企业名称","销售数(箱)","入库数(箱)","出库数(箱)"],data:r,filename:"企业进销存信息"})})):t.$message({message:a.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]})})},getSafetySuperVisionList:function(){var t=this;return s()(i.a.mark(function e(){var r,a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r={}).dictionaryType="安全监管分类",e.next=4,Object(l.e)(r);case 4:a=e.sent,t.safetySuperVisionList=a.data.result;case 6:case"end":return e.stop()}},e,t)}))()},getProvince:function(){var t=this;return s()(i.a.mark(function e(){var r;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:"200"===(r=e.sent).data.code&&(t.provinceList=r.data.result.provinceList);case 4:case"end":return e.stop()}},e,t)}))()},changeArea:function(t){var e=this;return s()(i.a.mark(function r(){var a,n,s,c;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if("province"!==t){r.next=12;break}return e.listQuery.filter.city="",e.listQuery.filter.district="",e.listQuery.filter.street="",e.listQuery.filter.committee="",e.areaListQuery={type:2,parenttype:1,parentname:e.listQuery.filter.province},r.next=8,Object(u.a)(e.areaListQuery);case 8:"200"===(a=r.sent).data.code&&(e.cityList=a.data.result),r.next=40;break;case 12:if("city"!==t){r.next=23;break}return e.listQuery.filter.district="",e.listQuery.filter.street="",e.listQuery.filter.committee="",e.areaListQuery={type:3,parenttype:2,parentname:e.listQuery.filter.city},r.next=19,Object(u.a)(e.areaListQuery);case 19:"200"===(n=r.sent).data.code&&(e.districtList=n.data.result),r.next=40;break;case 23:if("district"!==t){r.next=33;break}return e.listQuery.filter.street="",e.listQuery.filter.committee="",e.areaListQuery={type:4,parenttype:3,parentname:e.listQuery.filter.district},r.next=29,Object(u.a)(e.areaListQuery);case 29:"200"===(s=r.sent).data.code&&(e.streetList=s.data.result),r.next=40;break;case 33:if("street"!==t){r.next=40;break}return e.listQuery.filter.committee="",e.areaListQuery={type:5,parenttype:4,parentname:e.listQuery.filter.street},r.next=38,Object(u.a)(e.areaListQuery);case 38:"200"===(c=r.sent).data.code&&(e.committeeList=c.data.result);case 40:case"end":return r.stop()}},r,e)}))()},reset:function(){this.listQuery={pageSize:10,pageIndex:1,filter:{province:"",city:"",district:"",street:"",committee:"",starttime:"",endtime:"",safetysupervision:"",enterprisename:"",parententerprisename:"",itemname:"",itemcode:""}}},searchProductSearch:function(){this.getProductList()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getProductList()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getProductList()},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"}}},p=(r("5sjq"),r("KHd+")),h=Object(p.a)(d,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("div",{staticStyle:{display:"block"}},[r("div",{staticClass:"basic_search"},[r("span",[t._v("区域:")]),t._v(" "),r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(e){t.changeArea("province")}},model:{value:t.listQuery.filter.province,callback:function(e){t.$set(t.listQuery.filter,"province",e)},expression:"listQuery.filter.province"}},t._l(t.provinceList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))],1),t._v(" "),r("div",{staticClass:"basic_search"},[r("el-select",{attrs:{prop:"city",clearable:"",filterable:""},on:{change:function(e){t.changeArea("city")}},model:{value:t.listQuery.filter.city,callback:function(e){t.$set(t.listQuery.filter,"city",e)},expression:"listQuery.filter.city"}},t._l(t.cityList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))],1),t._v(" "),r("div",{staticClass:"basic_search"},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(e){t.changeArea("district")}},model:{value:t.listQuery.filter.district,callback:function(e){t.$set(t.listQuery.filter,"district",e)},expression:"listQuery.filter.district"}},t._l(t.districtList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))],1),t._v(" "),r("div",{staticClass:"basic_search"},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(e){t.changeArea("street")}},model:{value:t.listQuery.filter.street,callback:function(e){t.$set(t.listQuery.filter,"street",e)},expression:"listQuery.filter.street"}},t._l(t.streetList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))],1),t._v(" "),r("div",{staticClass:"basic_search"},[r("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.listQuery.filter.committee,callback:function(e){t.$set(t.listQuery.filter,"committee",e)},expression:"listQuery.filter.committee"}},t._l(t.committeeList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))],1)]),t._v(" "),r("div",{staticStyle:{display:"block"}},[r("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[r("span",[t._v("按时间查询:")]),t._v(" "),r("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(" "),r("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[r("span",[t._v("安全监管分类:")]),t._v(" "),r("el-select",{attrs:{filterable:"",clearable:""},model:{value:t.listQuery.filter.safetysupervision,callback:function(e){t.$set(t.listQuery.filter,"safetysupervision",e)},expression:"listQuery.filter.safetysupervision"}},t._l(t.safetySuperVisionList,function(t){return r("el-option",{key:t.id,attrs:{label:t.text,value:t.text}})}))],1)]),t._v(" "),r("div",{staticStyle:{display:"block"}},[r("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[r("span",[t._v("按企业名称:")]),t._v(" "),r("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:t.listQuery.filter.enterprisename,callback:function(e){t.$set(t.listQuery.filter,"enterprisename",e)},expression:"listQuery.filter.enterprisename"}})],1),t._v(" "),r("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[r("span",[t._v("上级企业名称:")]),t._v(" "),r("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:t.listQuery.filter.parententerprisename,callback:function(e){t.$set(t.listQuery.filter,"parententerprisename",e)},expression:"listQuery.filter.parententerprisename"}})],1),t._v(" "),r("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.reset()}}},[t._v("重置")]),t._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.searchProductSearch("查询","")}}},[t._v("查询")]),t._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:t.exportToExcel}},[t._v("导出")])],1)])]),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.productPurchaseData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{label:"企业名称",prop:"enterpriseName",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"销售数(箱)",prop:"saleNumber",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"入库数(箱)",prop:"entryNumber",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"出库数(箱)",prop:"deliveryNumber",align:"center"}})],1),t._v(" "),r("br"),t._v(" "),r("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(" "),r("br")],1)])},[],!1,null,"c300f91e",null);h.options.__file="enterpriseESS.vue";e.default=h.exports}}]);