Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-303e","chunk-4c4f","chunk-638d"],{IKCV:function(e,t,a){"use strict";a.r(t);var i=a("14Xm"),r=a.n(i),n=a("D3Ub"),s=a.n(n),l=a("zk4m"),o=a("7Qib"),c=a("brm8"),u=a("WZwz"),d=a("t0Cj"),p=a("jJIE"),h=a.n(p),f={name:"addSelfExam",data:function(){return{tableKey:"",validTime:["",""],listQuery:{pageSize:10,pageIndex:1,filter:{starttime:"",endtime:"",identify:"",enterprisename:"",parententerprisename:"",directioncode:"",isNeedUploadPhoto:"",province:"",city:"",district:"",street:"",committee:"",nation:""}},Cookies:h.a,pageSize:20,recordTotal:0,currentPage:1,pageTotal:0,listLoading:!1,personPurchaseData:[],previewList:[],cityList:[],provinceList:[],districtList:[],streetList:[],committeeList:[],options:[{label:"全部",value:""},{label:"是",value:1},{label:"否",value:-1}],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]}}},components:{personPurchaseDetail:l.default,uploadDialog:d.default},created:function(){this.initValidTime(),this.getPersonProductList(),this.getProvince()},watch:{},methods:{getPersonProductList:function(){var e=this;return s()(r.a.mark(function t(){var a,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,null!==e.validTime?(e.listQuery.filter.starttime=e.validTime[0],e.listQuery.filter.endtime=e.validTime[1]):(e.listQuery.filter.starttime="",e.listQuery.filter.endtime=""),t.next=4,Object(c.r)(e.listQuery);case 4:a=t.sent,"200"===(i=JSON.parse(Base64.decode(a.data))).code?(e.recordTotal=i.result.total,e.pageSize=i.result.size,e.pageTotal=Object(o.a)(i.result.total,i.result.size),e.currentPage=i.result.current,i.result.records.map(function(e){return e.path=void 0===e.path?null:"http://39.104.85.193:4105/upload/"+e.path}),e.previewList=i.result.records.map(function(e){return e.path}).filter(function(e){return null!==e}),e.personPurchaseData=i.result.records):e.$message({type:"warning",message:a.data.message}),e.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()},showPurchaseDetail:function(e){this.$refs.person.openPersonPurchaseDetail(this.listQuery.filter.starttime,this.listQuery.filter.endtime,e.identify,e.companynumber,this.listQuery.filter.directioncode)},showUploadDialogHandler:function(e){this.$refs.upload.showDialog(e)},refresh:function(){this.getPersonProductList()},exportToExcel:function(){var e=this;return s()(r.a.mark(function t(){var i,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.f)(e.listQuery);case 2:"200"===(i=t.sent).data.code?null===i.data.result||i.data.result===[]||0===i.data.result.length?e.$message({type:"warning",message:"无数据可导出"}):(n=i.data.result,Promise.all([a.e("chunk-0d49"),a.e("chunk-5aa0")]).then(a.bind(null,"S/jZ")).then(function(e){var t=n.map(function(e){return[e.city,e.enterprisename,e.name,e.nation,e.identify,e.num,e.returnnum,e.saletime]});e.export_json_to_excel({header:["地区","公司名称","购买人姓名","民族","购买人身份证","购买数量(挂、个)","退货数量(挂、个)","最近购买时间"],data:t,filename:"实名销售分析"})})):e.$message({message:i.data.message,type:"warning"});case 4:case"end":return t.stop()}},t,e)}))()},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return t[e]})})},reset:function(){this.listQuery={pageSize:10,pageIndex:1,filter:{starttime:"",endtime:"",identify:"",enterprisename:"",parententerprisename:"",directioncode:"",isNeedUploadPhoto:"",province:"",city:"",district:"",street:"",committee:"",nation:""}}},searchProductSearch:function(){this.getPersonProductList()},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getPersonProductList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getPersonProductList()},initValidTime:function(){var e=new Date,t=new Date;e.setTime(t.getTime()-0),this.validTime[0]=[e.getFullYear(),e.getMonth()+1,e.getDate()].join("-")+" 00:00:00",this.validTime[1]=[t.getFullYear(),t.getMonth()+1,t.getDate()].join("-")+" 23:59:59"},getProvince:function(){var e=this;return s()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.b)();case 2:"200"===(a=t.sent).data.code&&(e.provinceList=a.data.result.provinceList);case 4:case"end":return t.stop()}},t,e)}))()},changeArea:function(e){var t=this;return s()(r.a.mark(function a(){var i,n,s,l;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if("province"!==e){a.next=12;break}return t.listQuery.filter.city="",t.listQuery.filter.district="",t.listQuery.filter.street="",t.listQuery.filter.committee="",t.areaListQuery={type:2,parenttype:1,parentname:t.listQuery.filter.province},a.next=8,Object(u.a)(t.areaListQuery);case 8:"200"===(i=a.sent).data.code&&(t.cityList=i.data.result),a.next=40;break;case 12:if("city"!==e){a.next=23;break}return t.listQuery.filter.district="",t.listQuery.filter.street="",t.listQuery.filter.committee="",t.areaListQuery={type:3,parenttype:2,parentname:t.listQuery.filter.city},a.next=19,Object(u.a)(t.areaListQuery);case 19:"200"===(n=a.sent).data.code&&(t.districtList=n.data.result),a.next=40;break;case 23:if("district"!==e){a.next=33;break}return t.listQuery.filter.street="",t.listQuery.filter.committee="",t.areaListQuery={type:4,parenttype:3,parentname:t.listQuery.filter.district},a.next=29,Object(u.a)(t.areaListQuery);case 29:"200"===(s=a.sent).data.code&&(t.streetList=s.data.result),a.next=40;break;case 33:if("street"!==e){a.next=40;break}return t.listQuery.filter.committee="",t.areaListQuery={type:5,parenttype:4,parentname:t.listQuery.filter.street},a.next=38,Object(u.a)(t.areaListQuery);case 38:"200"===(l=a.sent).data.code&&(t.committeeList=l.data.result);case 40:case"end":return a.stop()}},a,t)}))()}}},m=(a("ccxD"),a("KHd+")),b=Object(m.a)(f,function(){var e=this,t=e.$createElement,a=e._self._c||t;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",[e._v("按照时间查询:")]),e._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":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.validTime,callback:function(t){e.validTime=t},expression:"validTime"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px","margin-left":"20px"}},[a("span",[e._v("是否需上传身份证:")]),e._v(" "),a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择"},model:{value:e.listQuery.filter.isNeedUploadPhoto,callback:function(t){e.$set(e.listQuery.filter,"isNeedUploadPhoto",t)},expression:"listQuery.filter.isNeedUploadPhoto"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)]),e._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search"},[a("span",[e._v("区域:")]),e._v(" "),a("el-select",{attrs:{clearable:"",filterable:"",size:"small"},on:{change:function(t){e.changeArea("province")}},model:{value:e.listQuery.filter.province,callback:function(t){e.$set(e.listQuery.filter,"province",t)},expression:"listQuery.filter.province"}},e._l(e.provinceList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("el-select",{attrs:{prop:"city",clearable:"",filterable:"",size:"small"},on:{change:function(t){e.changeArea("city")}},model:{value:e.listQuery.filter.city,callback:function(t){e.$set(e.listQuery.filter,"city",t)},expression:"listQuery.filter.city"}},e._l(e.cityList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("el-select",{attrs:{clearable:"",filterable:"",size:"small"},on:{change:function(t){e.changeArea("district")}},model:{value:e.listQuery.filter.district,callback:function(t){e.$set(e.listQuery.filter,"district",t)},expression:"listQuery.filter.district"}},e._l(e.districtList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("el-select",{attrs:{clearable:"",filterable:"",size:"small"},on:{change:function(t){e.changeArea("street")}},model:{value:e.listQuery.filter.street,callback:function(t){e.$set(e.listQuery.filter,"street",t)},expression:"listQuery.filter.street"}},e._l(e.streetList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("el-select",{attrs:{size:"small",clearable:"",filterable:""},model:{value:e.listQuery.filter.committee,callback:function(t){e.$set(e.listQuery.filter,"committee",t)},expression:"listQuery.filter.committee"}},e._l(e.committeeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)]),e._v(" "),a("div",{staticStyle:{display:"block","margin-top":"10px"}},[a("div",{staticClass:"basic_search"},[a("span",[e._v("购买人身份证:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",size:"small"},model:{value:e.listQuery.filter.identify,callback:function(t){e.$set(e.listQuery.filter,"identify",t)},expression:"listQuery.filter.identify"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-left":"15px"}},[a("span",[e._v("产品流向码:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",size:"small"},model:{value:e.listQuery.filter.directioncode,callback:function(t){e.$set(e.listQuery.filter,"directioncode",t)},expression:"listQuery.filter.directioncode"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-left":"15px"}},[a("span",[e._v("民族:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",size:"small"},model:{value:e.listQuery.filter.nation,callback:function(t){e.$set(e.listQuery.filter,"nation",t)},expression:"listQuery.filter.nation"}})],1)]),e._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("div",{staticClass:"basic_search"},[a("span",[e._v("上级企业名称:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",size:"small"},model:{value:e.listQuery.filter.parententerprisename,callback:function(t){e.$set(e.listQuery.filter,"parententerprisename",t)},expression:"listQuery.filter.parententerprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-left":"15px"}},[a("span",[e._v("按企业名称:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",size:"small"},model:{value:e.listQuery.filter.enterprisename,callback:function(t){e.$set(e.listQuery.filter,"enterprisename",t)},expression:"listQuery.filter.enterprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:function(t){e.reset()}}},[e._v("重置")]),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){e.searchProductSearch("查询","")}}},[e._v("查询")]),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:e.exportToExcel}},[e._v("导出")])],1)])])]),e._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.personPurchaseData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"地区",prop:"city",align:"center",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{label:"公司名称",prop:"enterprisename",align:"center",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"公司编号",prop:"companynumber",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"购买人姓名",prop:"name",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"民族",prop:"nation",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"购买人身份证",prop:"identify",align:"center",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"购买数量(挂、个)",prop:"num",align:"center",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量(挂、个)",prop:"returnnum",align:"center",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近购买时间",prop:"saletime",align:"center",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"证件照",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[null!==t.row.path?a("el-image",{staticStyle:{width:"66px",height:"66px"},attrs:{src:t.row.path,"preview-src-list":e.previewList}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[void 0!==t.row.companynumber?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showPurchaseDetail(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),"null"!==e.Cookies.get("isSupervision")?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showUploadDialogHandler(t.row.identify)}}},[e._v("上传")]):e._e()]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.currentPage,"page-sizes":[20,50,100,200],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),a("br")],1),e._v(" "),a("personPurchaseDetail",{ref:"person"}),e._v(" "),a("upload-dialog",{ref:"upload",on:{refresh:e.refresh}})],1)},[],!1,null,"140493d0",null);b.options.__file="person.vue";t.default=b.exports},LiOE:function(e,t,a){},VExX:function(e,t,a){"use strict";var i=a("XYQP");a.n(i).a},XYQP:function(e,t,a){},YvpD:function(e,t,a){"use strict";var i=a("qqU0");a.n(i).a},brm8:function(e,t,a){"use strict";a.d(t,"r",function(){return n}),a.d(t,"j",function(){return s}),a.d(t,"o",function(){return l}),a.d(t,"t",function(){return o}),a.d(t,"p",function(){return c}),a.d(t,"q",function(){return u}),a.d(t,"s",function(){return d}),a.d(t,"g",function(){return p}),a.d(t,"f",function(){return h}),a.d(t,"c",function(){return f}),a.d(t,"m",function(){return m}),a.d(t,"l",function(){return b}),a.d(t,"h",function(){return v}),a.d(t,"i",function(){return y}),a.d(t,"k",function(){return g}),a.d(t,"d",function(){return _}),a.d(t,"n",function(){return x}),a.d(t,"e",function(){return Q}),a.d(t,"a",function(){return w}),a.d(t,"b",function(){return k});var i=a("X4fA"),r=a("t3Un");function n(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/saleRecord4",method:"post",data:e})}function s(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/gender-sale",method:"post",data:e})}function o(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/race-sale",method:"post",data:e})}function c(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/generation-sale",method:"post",data:e})}function u(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/getPurchaseDetailInUnit",method:"post",data:e})}function d(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/saleRecord3",method:"post",data:e})}function p(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord3",method:"post",data:e})}function h(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/export/saleRecord4",method:"post",data:e})}function f(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/city-inbound-outbound",method:"post",data:e})}function m(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/enterpriseESS",method:"post",data:e})}function b(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/enterpriseESSExport",method:"post",data:e})}function v(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/order/cityESS",method:"post",data:e})}function y(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/city-inbound-outbound-detail",method:"post",data:e})}function g(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/city-type-sale",method:"post",data:e})}function _(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-sale",method:"post",data:e})}function x(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-sale",method:"post",data:e})}function Q(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-sale",method:"post",data:e})}function w(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/district-type-sale",method:"post",data:e})}function k(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/statistics/export/district-type-sale",method:"post",data:e})}},ccxD:function(e,t,a){"use strict";var i=a("LiOE");a.n(i).a},qqU0:function(e,t,a){},t0Cj:function(e,t,a){"use strict";a.r(t);var i=a("X4fA"),r={name:"photo",data:function(){return{dialogVisible:!1,idCard:"",headers:{Authorization:Object(i.a)()},url:"",isReturn:!0}},created:function(){},watch:{},methods:{showDialog:function(e){this.idCard=e,this.url="http://39.104.85.193:4105/order/customer/upload/"+e,this.dialogVisible=!0},uploadHandler:function(){this.isReturn=!1,this.$refs.upload.submit()},handleSuccess:function(e,t,a){this.isReturn=!0,"200"===e.code?(this.dialogVisible=!1,this.$notify({title:"成功",duration:2e3,message:"上传成功",type:"success"}),this.$emit("refresh")):this.$message.warning(e.message)}}},n=(a("VExX"),a("KHd+")),s=Object(n.a)(r,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"身份证更新",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form",attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"身份证"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入内容",disabled:!0},model:{value:e.idCard,callback:function(t){e.idCard=t},expression:"idCard"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"照片"}},[a("el-upload",{ref:"upload",attrs:{action:e.url,headers:e.headers,"on-success":e.handleSuccess,limit:1,"auto-upload":!1,"list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.isReturn},on:{click:e.uploadHandler}},[e._v("确 定")])],1)],1)},[],!1,null,"15b429cb",null);s.options.__file="index.vue";t.default=s.exports},zk4m:function(e,t,a){"use strict";a.r(t);var i=a("14Xm"),r=a.n(i),n=a("D3Ub"),s=a.n(n),l=a("brm8"),o=a("7Qib"),c={name:"index",data:function(){return{tableKey:"",listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,personPurchaseDetailData:[],personPurchaseDetailVisible:!1,listQuery:{pageSize:10,pageIndex:1,filter:{starttime:"",endtime:"",identify:"",enterprisenumber:"",directionCode:""}}}},created:function(){},methods:{openPersonPurchaseDetail:function(e,t,a,i,r){this.listQuery.filter.starttime=e,this.listQuery.filter.endtime=t,this.listQuery.filter.identify=a,this.listQuery.filter.enterprisenumber=i,this.listQuery.filter.directioncode=r,this.listQuery.pageIndex=1,this.listQuery.pageSize=10,this.personPurchaseDetailVisible=!0,this.getPersonProductDetailList()},getPersonProductDetailList:function(){var e=this;return s()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l.q)(e.listQuery);case 3:"200"===(a=t.sent).data.code?(e.recordTotal=a.data.result.total,e.pageSize=a.data.result.size,e.pageTotal=Object(o.a)(a.data.result.total,a.data.result.size),e.currentPage=a.data.result.current,e.personPurchaseDetailData=a.data.result.records):e.$message({type:"warning",message:a.data.message}),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getPersonProductDetailList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getPersonProductDetailList()}}},u=(a("YvpD"),a("KHd+")),d=Object(u.a)(c,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.personPurchaseDetailVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.personPurchaseDetailVisible=t}}},[a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.personPurchaseDetailData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"流向码",prop:"directioncode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"购买单号",prop:"ordercode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"产品名称",prop:"itemname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"产品编号",prop:"itemcode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",prop:"price",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"购买时间",prop:"createdat",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否退货",prop:"returnflag",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n                    "+e._s(1===t.row.returnflag?"√":"")+"\n                ")]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),a("br")],1)])},[],!1,null,"567027b6",null);d.options.__file="index.vue";t.default=d.exports}}]);