Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-0e83"],{"5W5M":function(t,e,r){"use strict";r.d(e,"g",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"d",function(){return c}),r.d(e,"i",function(){return s}),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"),n=r("X4fA");function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:t||{}})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:t})}function u(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:t||{}})}function l(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:t||{}})}function d(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:t})}function p(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:t})}function h(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:t})}},IVCW:function(t,e,r){"use strict";r.r(e);var a=r("14Xm"),n=r.n(a),i=r("D3Ub"),o=r.n(i),c=r("7Qib"),s=r("brm8"),u=r("WZwz"),l=(r("5W5M"),r("xMja")),d={name:"addSelfExam",data:function(){return{tableKey:"",validTime:["",""],cityList:[],provinceList:[],districtList:[],streetList:[],committeeList:[],listQuery:{pageSize:20,pageIndex:1,filter:{province:"",city:"",district:"",street:"",committee:"",starttime:"",endtime:"",enterprisename:"",productname:"",producttype:""}},pageSize:20,recordTotal:0,currentPage:1,pageTotal:0,listLoading:!1,typeOptions:[],secondaryOptions:[],personPurchaseData:[],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.getGenderSaleList(),this.getProvince(),this.getProductMajorCategory()},watch:{},methods:{changeSelect:function(){var t=this;return o()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$forceUpdate();case 1:case"end":return e.stop()}},e,t)}))()},getGenderSaleList:function(){var t=this;return o()(n.a.mark(function e(){var r;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(s.o)(t.listQuery);case 4:"200"===(r=e.sent).data.code?(t.recordTotal=r.data.result.total,t.pageSize=r.data.result.size,t.pageTotal=Object(c.a)(r.data.result.total,r.data.result.size),t.currentPage=r.data.result.current,t.personPurchaseData=r.data.result.records):t.$message({type:"warning",message:r.data.message}),t.listLoading=!1;case 7:case"end":return e.stop()}},e,t)}))()},getProductMajorCategory:function(){var t=this;Object(l.f)().then(function(e){t.typeOptions=e.data})},getProductSecondaryCategory:function(t){var e=this;this.secondaryOptions=[],this.listQuery.filter.secondarytype="",this.secondarytype="",Object(l.m)(t).then(function(t){e.secondaryOptions=t.data})},exportToExcel:function(){var t=this;return o()(n.a.mark(function e(){var a,i;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.f)(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:"无数据可导出"}):(i=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","companynumber","name","identify","num","saletime"],i);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]})})},getProvince:function(){var t=this;return o()(n.a.mark(function e(){var r;return n.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 o()(n.a.mark(function r(){var a,i,o,c;return n.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"===(i=r.sent).data.code&&(e.districtList=i.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"===(o=r.sent).data.code&&(e.streetList=o.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:"",enterprisename:"",productname:"",producttype:""}}},searchGenderSaleList:function(){this.getGenderSaleList()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getGenderSaleList()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getGenderSaleList()},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("rz2t"),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",{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.productname,callback:function(e){t.$set(t.listQuery.filter,"productname",e)},expression:"listQuery.filter.productname"}})],1),t._v(" "),r("span",[t._v("产品名称:")]),t._v(" "),r("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[r("el-select",{staticStyle:{"margin-left":"10px"},attrs:{clearable:"",placeholder:"请选择"},on:{change:t.getProductSecondaryCategory},model:{value:t.listQuery.filter.producttype,callback:function(e){t.$set(t.listQuery.filter,"producttype",e)},expression:"listQuery.filter.producttype"}},t._l(t.typeOptions,function(e){return r("el-option",{key:e.attributes,staticClass:"filter-item",attrs:{label:e.text,value:e.attributes}},[t._v(t._s(e.text)+"\n                    ")])})),t._v(" "),r("el-select",{staticStyle:{"margin-left":"10px"},attrs:{clearable:"",placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.listQuery.filter.secondarytype,callback:function(e){t.$set(t.listQuery.filter,"secondarytype",e)},expression:"listQuery.filter.secondarytype"}},t._l(t.secondaryOptions,function(t){return r("el-option",{key:t.attributes,attrs:{label:t.text,value:t.attributes}})}))],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",{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:{"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.searchGenderSaleList("查询","")}}},[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.personPurchaseData,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:"gender",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"购买数",prop:"sum",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,"b8ec624a",null);h.options.__file="personDetail.vue";e.default=h.exports},McsR:function(t,e,r){},brm8:function(t,e,r){"use strict";r.d(e,"r",function(){return i}),r.d(e,"j",function(){return o}),r.d(e,"o",function(){return c}),r.d(e,"t",function(){return s}),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 g}),r.d(e,"k",function(){return v}),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 z}),r.d(e,"b",function(){return Q});var a=r("X4fA"),n=r("t3Un");function i(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/saleRecord4",method:"post",data:t})}function o(t){return Object(n.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(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/gender-sale",method:"post",data:t})}function s(t){return Object(n.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(n.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(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/getPurchaseDetailInUnit",method:"post",data:t})}function d(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/saleRecord3",method:"post",data:t})}function p(t){return Object(n.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(n.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(n.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(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/enterpriseESS",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/enterpriseESSExport",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/order/cityESS",method:"post",data:t})}function g(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound-detail",method:"post",data:t})}function v(t){return Object(n.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(n.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(n.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(n.a)({headers:{Authorization:Object(a.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(a.a)()},url:"http://39.104.85.193:4105/statistics/district-type-sale",method:"post",data:t})}function Q(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/statistics/export/district-type-sale",method:"post",data:t})}},rz2t:function(t,e,r){"use strict";var a=r("McsR");r.n(a).a},xMja:function(t,e,r){"use strict";r.d(e,"n",function(){return i}),r.d(e,"c",function(){return o}),r.d(e,"b",function(){return c}),r.d(e,"q",function(){return s}),r.d(e,"d",function(){return u}),r.d(e,"g",function(){return l}),r.d(e,"p",function(){return d}),r.d(e,"k",function(){return p}),r.d(e,"j",function(){return h}),r.d(e,"a",function(){return f}),r.d(e,"r",function(){return m}),r.d(e,"e",function(){return b}),r.d(e,"f",function(){return y}),r.d(e,"m",function(){return g}),r.d(e,"h",function(){return v}),r.d(e,"o",function(){return j}),r.d(e,"i",function(){return O}),r.d(e,"l",function(){return x});var a=r("X4fA"),n=r("t3Un");function i(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/info",method:"get",params:t||{}})}function o(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/add",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/addNew",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/update",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/delete",method:"post",data:t})}function l(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/enterprise/manufacturerTree",method:"get"})}function d(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/setThreshold",method:"post",data:t})}function p(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/getThreshold",method:"get"})}function h(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/categorise?name="+t,method:"get"})}function f(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/addCategory",method:"post",data:t})}function m(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/editCategory",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/delCategory",method:"post",data:t})}function y(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/majorTree",method:"get"})}function g(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/secondaryTree?major="+t,method:"get"})}function v(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/permitLevelTree?secondary="+t,method:"get"})}function j(t,e,r,i){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/info?name="+e+"&code="+r+"&type="+i,method:"get",params:t||{}})}function O(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/get?directionCode="+t,method:"get"})}function x(t,e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/gets?directionCode="+t+"&endCode="+e,method:"get"})}}}]);