(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-a9e2"],{"1Dvt":function(t,e,r){"use strict";r.d(e,"r",function(){return o}),r.d(e,"d",function(){return u}),r.d(e,"c",function(){return i}),r.d(e,"q",function(){return c}),r.d(e,"k",function(){return s}),r.d(e,"l",function(){return l}),r.d(e,"g",function(){return d}),r.d(e,"i",function(){return h}),r.d(e,"f",function(){return p}),r.d(e,"h",function(){return f}),r.d(e,"e",function(){return m}),r.d(e,"p",function(){return b}),r.d(e,"a",function(){return g}),r.d(e,"b",function(){return y}),r.d(e,"j",function(){return j}),r.d(e,"o",function(){return v}),r.d(e,"m",function(){return O}),r.d(e,"n",function(){return _});var n=r("X4fA"),a=r("t3Un");function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/info",method:"get",params:t||{}})}function u(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/enterpriseStaticStock",method:"get",params:t||{}})}function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/enterpriseSale",method:"get",params:t||{}})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/saleInfo",method:"get",params:t||{}})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/detail",method:"get",params:t||{}})}function l(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-delivery",method:"post",data:t})}function d(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-delivery",method:"post",data:t})}function h(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/city-type-delivery",method:"post",data:t})}function p(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-delivery",method:"post",data:t})}function f(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/city-type-entry",method:"post",data:t})}function m(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-entry",method:"post",data:t})}function b(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/refreshStock",method:"post",data:t})}function g(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/clearStock",method:"post",data:t})}function y(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/stock/clearStockByItem",method:"post",data:t})}function j(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/city-stock",method:"post",data:t})}function v(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/stock/history",method:"post",data:t})}function O(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/export/stock/history",method:"post",data:t})}function _(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/statistics/history/city-stock",method:"post",data:t})}},LqZ1:function(t,e,r){"use strict";r.r(e);var n=r("xMja"),a=r("7Qib"),o=r("8fCU"),u=r("1Dvt"),i=r("jJIE"),c=r.n(i),s={name:"saleInfo",data:function(){return{pageSize:20,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,stockData:[],listLoading:!0,manufacturerTree:[],queryForm:{name:"",manufacturer:"",directionCode:"",beginDate:"",endDate:"",type:""},owner:""}},created:function(){this.queryForm.beginDate=this.$route.query.beginDate,this.queryForm.endDate=this.$route.query.endDate},mounted:function(){var t=this;Object(n.g)().then(function(e){t.manufacturerTree=e.data}),this.enterpriseNumber=this.$route.query.enterpriseNumber,this.getSaleList(this.$route.query.enterpriseNumber)},methods:{getSaleList:function(t){var e=this,r={};r.pageIndex=e.currentPage,r.pageSize=e.pageSize,r.sort=e.sort,r.order=e.order,null==t&&(t=e.enterpriseNumber),r.enterpriseNumber=t;var n=c.a.get("userName"),i=c.a.get("name");for(var s in r.operator=i+"("+n+")",e.queryForm)void 0!=e.queryForm[s]&&""!=e.queryForm[s].toString()&&(r[s]=e.queryForm[s]);e.listLoading=!0,Object(u.q)(r).then(function(t){var r=t.data;if("200"===r.code){var n=r.result;e.recordTotal=n.totalCount,e.pageSize=n.pageSize,e.pageTotal=Object(a.a)(n.totalCount,n.pageSize),e.currentPage=n.pageIndex,e.stockData=n.result}else Object(o.a)({error:r.message,vm:e});e.listLoading=!1}).catch(function(t){e.listLoading=!1,Object(o.a)({error:t,vm:e})})},refreshHandle:function(){this.getSaleList()},queryHandle:function(){this.currentPage=1,this.getSaleList()},resetQueryForm:function(){this.queryForm.name="",this.queryForm.manufacturer="",this.queryForm.directionCode=""},handleSizeChange:function(t){this.pageSize=t,this.currentPage=1,this.getSaleList()},handleCurrentChange:function(t){this.currentPage=t,this.getSaleList()},sortChange:function(t){this.sort=t.prop,this.order=t.order,this.getSaleList()},exportAllHandle:function(){var t=this,e={},n=t.enterpriseNumber;e.pageIndex=t.currentPage,e.pageSize=t.pageSize,e.sort=t.sort,e.order=t.order,e.enterpriseNumber=n;var a=c.a.get("userName"),i=c.a.get("name");for(var s in e.operator=i+"("+a+")",t.queryForm)void 0!=t.queryForm[s]&&""!=t.queryForm[s].toString()&&(e[s]=t.queryForm[s]);Object(u.q)(e).then(function(e){var n=e.data;if("200"===n.code){var a=n.result.result;if(0==a.length)return void Object(o.a)({error:"当前没有数据",vm:t});Promise.all([r.e("chunk-0d49"),r.e("chunk-5aa0")]).then(r.bind(null,"S/jZ")).then(function(e){var r=t.formatJson(["name","directioncode","entryNum","returnNum","deliveryNum","returnDeliveryNum","saleNum","boxnumber","manufacturer"],a);e.export_json_to_excel({header:["产品名称","产品编码","入库数(箱)","退货入库数(箱)","出库数(箱)","退库数(箱)","销售数(箱)","每箱数量(挂、个)","生产厂家"],data:r,filename:"进销存详情"})})}else Object(o.a)({error:n.message,vm:t})}).catch(function(e){Object(o.a)({error:e,vm:t})})},formatJson:function(t,e){return e.map(function(e){return t.map(function(t){return"createddate"===t?Object(a.f)(e[t],"{y}-{m}-{d}"):e[t]})})}}},l=(r("bzxj"),r("KHd+")),d=Object(l.a)(s,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container"},[r("el-breadcrumb",{staticStyle:{"padding-top":"10px","padding-bottom":"10px"}},[r("el-breadcrumb-item",{attrs:{to:{path:"/stock/enterpriseSale"}}},[t._v("进销存")]),t._v(" "),r("el-breadcrumb-item",[t._v("进销存详情")])],1),t._v(" "),r("div",{staticClass:"filter-container"},[r("el-row",[r("el-input",{staticClass:"filter-item",staticStyle:{width:"30%",float:"left"},attrs:{placeholder:"产品名称"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.queryHandle(e):null}},model:{value:t.queryForm.name,callback:function(e){t.$set(t.queryForm,"name",e)},expression:"queryForm.name"}}),t._v(" "),r("el-select",{staticStyle:{float:"left","padding-left":"15px"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.queryForm.manufacturer,callback:function(e){t.$set(t.queryForm,"manufacturer",e)},expression:"queryForm.manufacturer"}},t._l(t.manufacturerTree,function(t){return r("el-option",{key:t.attributes,attrs:{label:t.text,value:t.text}})}))],1),t._v(" "),r("el-row",[r("el-input",{staticClass:"filter-item",staticStyle:{width:"30%",float:"left"},attrs:{placeholder:"流向码"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.queryHandle(e):null}},model:{value:t.queryForm.directionCode,callback:function(e){t.$set(t.queryForm,"directionCode",e)},expression:"queryForm.directionCode"}}),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.refreshHandle}},[t._v("刷新\n ")]),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:t.exportAllHandle}},[t._v("导出\n ")]),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.queryHandle}}),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-refresh-right"},on:{click:t.resetQueryForm}},[t._v("重置\n ")])],1)],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.stockData,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),t._v(" "),r("el-table-column",{attrs:{label:"产品名称",prop:"name",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"产品编码",prop:"directionCode",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.directioncode))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"入库数(箱)",prop:"directionCode",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.entryNum))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"退货入库数(箱)",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.returnNum))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"出库数(箱)",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.deliveryNum))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"退库数(箱)",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.returnDeliveryNum))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"销售数(箱)",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.saleNum))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"每箱数量(挂、个)",prop:"boxnumber",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.boxnumber))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"生产厂家",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.manufacturer))])]}}])})],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}})],1)],1)},[],!1,null,"25b23abf",null);d.options.__file="saleInfo.vue";e.default=d.exports},"TeJ/":function(t,e,r){},bzxj:function(t,e,r){"use strict";var n=r("TeJ/");r.n(n).a},xMja:function(t,e,r){"use strict";r.d(e,"n",function(){return o}),r.d(e,"c",function(){return u}),r.d(e,"b",function(){return i}),r.d(e,"q",function(){return c}),r.d(e,"d",function(){return s}),r.d(e,"g",function(){return l}),r.d(e,"p",function(){return d}),r.d(e,"k",function(){return h}),r.d(e,"j",function(){return p}),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 g}),r.d(e,"m",function(){return y}),r.d(e,"h",function(){return j}),r.d(e,"o",function(){return v}),r.d(e,"i",function(){return O}),r.d(e,"l",function(){return _});var n=r("X4fA"),a=r("t3Un");function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/info",method:"get",params:t||{}})}function u(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/add",method:"post",data:t})}function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/addNew",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/update",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/delete",method:"post",data:t})}function l(){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/manufacturerTree",method:"get"})}function d(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/setThreshold",method:"post",data:t})}function h(){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/getThreshold",method:"get"})}function p(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/categorise?name="+t,method:"get"})}function f(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/addCategory",method:"post",data:t})}function m(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/editCategory",method:"post",data:t})}function b(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/delCategory",method:"post",data:t})}function g(){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/majorTree",method:"get"})}function y(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/secondaryTree?major="+t,method:"get"})}function j(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/permitLevelTree?secondary="+t,method:"get"})}function v(t,e,r,o){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/info?name="+e+"&code="+r+"&type="+o,method:"get",params:t||{}})}function O(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/get?directionCode="+t,method:"get"})}function _(t,e){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/product/gets?directionCode="+t+"&endCode="+e,method:"get"})}}}]);
|