马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-15b9"],{"/LFR":function(e,t,a){"use strict";var r=a("1RsV");a.n(r).a},"1Dvt":function(e,t,a){"use strict";a.d(t,"r",function(){return n}),a.d(t,"d",function(){return o}),a.d(t,"c",function(){return s}),a.d(t,"q",function(){return l}),a.d(t,"k",function(){return c}),a.d(t,"l",function(){return u}),a.d(t,"g",function(){return d}),a.d(t,"i",function(){return p}),a.d(t,"f",function(){return h}),a.d(t,"h",function(){return m}),a.d(t,"e",function(){return f}),a.d(t,"p",function(){return g}),a.d(t,"a",function(){return b}),a.d(t,"b",function(){return y}),a.d(t,"j",function(){return v}),a.d(t,"o",function(){return _}),a.d(t,"m",function(){return w}),a.d(t,"n",function(){return S});var r=a("X4fA"),i=a("t3Un");function n(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/info",method:"get",params:e||{}})}function o(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/enterpriseStaticStock",method:"get",params:e||{}})}function s(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/enterpriseSale",method:"get",params:e||{}})}function l(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/saleInfo",method:"get",params:e||{}})}function c(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/detail",method:"get",params:e||{}})}function u(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/enterprise-type-delivery",method:"post",data:e})}function d(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/enterprise-type-delivery",method:"post",data:e})}function p(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-type-delivery",method:"post",data:e})}function h(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-delivery",method:"post",data:e})}function m(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-type-entry",method:"post",data:e})}function f(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/city-type-entry",method:"post",data:e})}function g(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/refreshStock",method:"post",data:e})}function b(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/clearStock",method:"post",data:e})}function y(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/stock/clearStockByItem",method:"post",data:e})}function v(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/city-stock",method:"post",data:e})}function _(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/stock/history",method:"post",data:e})}function w(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/export/stock/history",method:"post",data:e})}function S(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/statistics/history/city-stock",method:"post",data:e})}},"1RsV":function(e,t,a){},"5W5M":function(e,t,a){"use strict";a.d(t,"g",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return s}),a.d(t,"i",function(){return l}),a.d(t,"f",function(){return c}),a.d(t,"e",function(){return u}),a.d(t,"a",function(){return d}),a.d(t,"c",function(){return p}),a.d(t,"h",function(){return h});var r=a("t3Un"),i=a("X4fA");function n(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:e||{}})}function o(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:e})}function s(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:e})}function c(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:e||{}})}function u(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:e||{}})}function d(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:e})}function p(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:e})}function h(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:e})}},"6Ua/":function(e,t,a){"use strict";var r=a("M6sW");a.n(r).a},"9pme":function(e,t,a){},Amwt:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("S/i2"),l=(a("7Qib"),{name:"addSelfExam",data:function(){return{dialogVisible:!1,tableKey:"",directionCode:"",listLoading:!1,directionCodeData:[]}},watch:{},methods:{openFlow:function(e){this.dialogVisible=!0,this.directionCode=e,this.getDirectionCodeDataList()},getDirectionCodeDataList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.listLoading=!0,null===e.directionCode||""===e.directionCode){t.next=7;break}return t.next=5,Object(s.g)(e.directionCode);case 5:"200"===(a=t.sent).data.code?e.directionCodeData=a.data.result:e.$message({type:"warning",message:a.data.message});case 7:e.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()},search:function(){this.getDirectionCodeDataList()}}}),c=(a("Rnmp"),a("ZrdR")),u=Object(c.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[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-input",{staticStyle:{width:"300px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:e.directionCode,callback:function(t){e.directionCode=t},expression:"directionCode"}})],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.directionCodeData,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:"content",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"流向码",prop:"directioncode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"身份证号",prop:"idCardNumber",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"流向轨迹",prop:"detail",align:"center",width:"350"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"modifieddate",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"typeName",align:"center"}})],1)],1)])])},[],!1,null,"b729b44a",null);u.options.__file="flow.vue";t.default=u.exports},M6sW:function(e,t,a){},NSDa:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("S/i2"),l=(a("7Qib"),{name:"addSelfExam",data:function(){return{dialogVisible:!1,tableKey:"",directionCode:"",listLoading:!1,directionCodeData:[]}},watch:{},methods:{openFlow:function(e){this.dialogVisible=!0,this.directionCode=e,this.getDirectionCodeDataList()},getDirectionCodeDataList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.listLoading=!0,null===e.directionCode||""===e.directionCode){t.next=7;break}return t.next=5,Object(s.g)(e.directionCode);case 5:"200"===(a=t.sent).data.code?e.directionCodeData=a.data.result:e.$message({type:"warning",message:a.data.message});case 7:e.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()},search:function(){this.getDirectionCodeDataList()}}}),c=(a("6Ua/"),a("ZrdR")),u=Object(c.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[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-input",{staticStyle:{width:"300px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:e.directionCode,callback:function(t){e.directionCode=t},expression:"directionCode"}})],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.directionCodeData,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:"content",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"流向码",prop:"directioncode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"身份证号",prop:"idCardNumber",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"流向轨迹",prop:"detail",align:"center",width:"350"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"modifieddate",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"typeName",align:"center"}})],1)],1)])])},[],!1,null,"75e551ce",null);u.options.__file="flow.vue";t.default=u.exports},Pfsf:function(e,t,a){},Q31b:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("X4S0"),l=a("S/i2"),c=a("7Qib"),u={name:"index",data:function(){return{dialogVisible:!1,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,dataList:[],typeList:[{id:1,name:"常规入库"},{id:2,name:"退货入库"}],listQuery:{pageSize:10,pageIndex:1,filter:{province:"",city:"",district:"",street:"",committee:"",starttime:"",endtime:"",enterprisename:"",transportcert:"",type:""}}}},components:{inStorageDetail:s.default},methods:{showInStorageDetail:function(e,t,a){this.dialogVisible=!0,this.listQuery.filter.starttime=e,this.listQuery.filter.endtime=t,this.listQuery.filter.enterprisename=a,this.listQuery.filter.type=1,this.listQuery.pageIndex=1,this.getList()},showQuitInStorageDetail:function(e,t,a){this.dialogVisible=!0,this.listQuery.filter.starttime=e,this.listQuery.filter.endtime=t,this.listQuery.filter.enterprisename=a,this.listQuery.filter.type=2,this.listQuery.pageIndex=1,this.getList()},getList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l.o)(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(c.a)(a.data.result.total,a.data.result.size),e.currentPage=a.data.result.current,e.dataList=a.data.result.records):e.$message({type:"warning",message:a.data.message}),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},showStorageDetail:function(e){this.$refs.storage.openInStorageDetail(e,this.listQuery.filter.starttime,this.listQuery.filter.endtime)},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getList()}}},d=(a("RDJe"),a("ZrdR")),p=Object(d.a)(u,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[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-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.enterprisename,callback:function(t){e.$set(this.listQuery.filter,"enterprisename",t)},expression:"this.listQuery.filter.enterprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("开始时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.starttime,callback:function(t){e.$set(this.listQuery.filter,"starttime",t)},expression:"this.listQuery.filter.starttime"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("结束时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.endtime,callback:function(t){e.$set(this.listQuery.filter,"endtime",t)},expression:"this.listQuery.filter.endtime"}})],1)])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,ref:"table",staticStyle:{width:"100%"},attrs:{data:e.dataList,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:"code",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库企业",prop:"unit",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createddate",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运输证号",prop:"transportcert",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"数量(箱)",prop:"boxnum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库类型",prop:"type",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.typeList,function(r){return a("div",[r.id===t.row.type?a("div",[e._v("\n                            "+e._s(r.name)+"\n                        ")]):e._e()])})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStorageDetail(t.row)}}},[e._v("查看")])]}}])})],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),e._v(" "),a("in-storage-detail",{ref:"storage"})],1)},[],!1,null,"8c696d70",null);p.options.__file="index.vue";t.default=p.exports},RDJe:function(e,t,a){"use strict";var r=a("9pme");a.n(r).a},Rnmp:function(e,t,a){"use strict";var r=a("ygLM");a.n(r).a},VmWm:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("unDg"),l=a.n(s),c=a("XtOJ"),u=a("cvdQ"),d=a("Q31b"),p=a("xMja"),h=a("7Qib"),m=a("8fCU"),f=a("1Dvt"),g=a("jJIE"),b=a.n(g),y=a("WZwz"),v=a("5W5M"),_={name:"enterpriseSale",data:function(){return{pageSize:30,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,stockData:[],listLoading:!0,manufacturerTree:[],provinceList:[],cityList:[],districtList:[],streetList:[],committeeList:[],checkTypeList:[],dateRange:[],isSupervision:b.a.get("isSupervision"),queryForm:{name:"",beginDate:"",endDate:"",province:"",city:"",area:"",town:"",community:"",enterpriseType:""},totalRow:{}}},components:{inStorageDetail:d.default,outStorageDetail:u.default,saleDetail:c.default},mounted:function(){var e=this;Object(p.g)().then(function(t){e.manufacturerTree=t.data}),this.queryDateHandle(),"null"===this.isSupervision&&(this.queryForm.enterpriseType="烟花爆竹批发经营"),this.getDictionaryCheckType(),this.getSaleList(),this.getProvince()},computed:{tableData:function(){var e=this.stockData;return this.totalRow.enterpriseName="总计",e.length?[].concat(l()(e),[this.totalRow]):[]}},methods:{getSaleList:function(){var e=this;e.queryForm.beginDate=e.formatTime(e.dateRange[0]),e.queryForm.endDate=e.formatTime(e.dateRange[1]);var t={};for(var a in t.pageIndex=e.currentPage,t.pageSize=e.pageSize,t.sort=e.sort,t.order=e.order,t.operator=b.a.get("userName"),e.queryForm)void 0!=e.queryForm[a]&&""!==e.queryForm[a].toString()&&(t[a]=e.queryForm[a]);e.listLoading=!0,Object(f.c)(t).then(function(t){var a=t.data;if("200"===a.code){var r=a.result;e.recordTotal=r.totalCount,e.pageSize=r.pageSize,e.pageTotal=Object(h.a)(r.totalCount,r.pageSize),e.currentPage=r.pageIndex,e.stockData=r.result,e.totalRow=r.extension}else Object(m.a)({error:a.message,vm:e});e.listLoading=!1}).catch(function(t){e.listLoading=!1,Object(m.a)({error:t,vm:e})})},showMore:function(e,t){"one"===e?this.$refs.inStorageDetail.showInStorageDetail(this.queryForm.beginDate,this.queryForm.endDate,t.enterpriseName):"two"===e?this.$refs.inStorageDetail.showQuitInStorageDetail(this.queryForm.beginDate,this.queryForm.endDate,t.enterpriseName):"three"===e?this.$refs.outStorageDetail.showOutStorageDetail(this.queryForm.beginDate,this.queryForm.endDate,t.enterpriseName):"four"===e?this.$refs.outStorageDetail.showQuitOutStorageDetail(this.queryForm.beginDate,this.queryForm.endDate,t.enterpriseName):this.$refs.saleDetail.showSaleDetail(this.queryForm.beginDate,this.queryForm.endDate,t.enterpriseName)},showDetail:function(e){this.$router.push({path:"/sale/info",query:{enterpriseNumber:e,beginDate:this.queryForm.beginDate,endDate:this.queryForm.endDate}})},refreshHandle:function(){this.getSaleList()},queryHandle:function(){this.currentPage=1,this.getSaleList()},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getSaleList()},handleCurrentChange:function(e){this.currentPage=e,this.getSaleList()},sortChange:function(e){this.sort=e.prop,this.order=e.order,this.getSaleList()},getProvince:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(y.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 o()(i.a.mark(function a(){var r,n,o,s;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if("province"!==e){a.next=12;break}return t.queryForm.city="",t.queryForm.area="",t.queryForm.town="",t.queryForm.community="",t.areaListQuery={type:2,parenttype:1,parentname:t.queryForm.province},a.next=8,Object(y.a)(t.areaListQuery);case 8:"200"===(r=a.sent).data.code&&(t.cityList=r.data.result),a.next=40;break;case 12:if("city"!==e){a.next=23;break}return t.queryForm.area="",t.queryForm.town="",t.queryForm.community="",t.areaListQuery={type:3,parenttype:2,parentname:t.queryForm.city},a.next=19,Object(y.a)(t.areaListQuery);case 19:"200"===(n=a.sent).data.code&&(t.districtList=n.data.result),a.next=40;break;case 23:if("area"!==e){a.next=33;break}return t.queryForm.town="",t.queryForm.community="",t.areaListQuery={type:4,parenttype:3,parentname:t.queryForm.area},a.next=29,Object(y.a)(t.areaListQuery);case 29:"200"===(o=a.sent).data.code&&(t.streetList=o.data.result),a.next=40;break;case 33:if("town"!==e){a.next=40;break}return t.queryForm.community="",t.areaListQuery={type:5,parenttype:4,parentname:t.queryForm.town},a.next=38,Object(y.a)(t.areaListQuery);case 38:"200"===(s=a.sent).data.code&&(t.committeeList=s.data.result);case 40:case"end":return a.stop()}},a,t)}))()},getDictionaryCheckType:function(){var e=this;if(!(e.checkTypeList&&e.checkTypeList.length>0)){var t={dictionaryType:"安全监管分类"};Object(v.e)(t).then(function(t){var a=t.data;"200"===a.code?e.checkTypeList=a.result:Object(m.a)({error:a.message,vm:e})}).catch(function(t){Object(m.a)({error:t,vm:e})})}},queryDateHandle:function(){var e=new Date,t=new Date;t.setTime(t.getTime()-2592e6),t.setHours(0),t.setMinutes(0),t.setSeconds(0),this.dateRange.push(t,e),this.queryForm.beginDate=t,this.queryForm.endDate=e},exportAllHandle:function(){var e=this,t=this,r={pageIndex:1,pageSize:1e5};r.sort=t.sort,r.order=t.order;var i=b.a.get("userName"),n=b.a.get("name");for(var o in r.operator=n+"("+i+")",t.queryForm)void 0!=t.queryForm[o]&&""!==t.queryForm[o].toString()&&(r[o]=t.queryForm[o]);Object(f.c)(r).then(function(r){var i=r.data;if("200"===i.code){var n=i.result.result;if(0==n.length)return void Object(m.a)({error:"当前没有数据",vm:t});n.push(e.totalRow),Promise.all([a.e("chunk-1560"),a.e("chunk-7a50")]).then(a.bind(null,"S/jZ")).then(function(e){var a=t.formatJson(["enterpriseName","entryNum","returnNum","deliveryNum","returnDeliveryNum","saleNum"],n);e.export_json_to_excel({header:["企业名称","入库数(箱)","退货入库数(箱)","出库数(箱)","退库数(箱)","销售数(箱)"],data:a,filename:"进销存汇总"})})}else Object(m.a)({error:i.message,vm:t})}).catch(function(e){Object(m.a)({error:e,vm:t})})},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return"createddate"===e?Object(h.f)(t[e],"{y}-{m}-{d}"):t[e]})})},formatTime:function(e){var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var i=t.getDate();i=i<10?"0"+i:i;var n=t.getHours();n=n<10?"0"+n:n;var o=t.getMinutes();o=o<10?"0"+o:o;var s=t.getSeconds();return a+"-"+r+"-"+i+" "+n+":"+o+":"+(s=s<10?"0"+s:s)}}},w=(a("duvX"),a("ZrdR")),S=Object(w.a)(_,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("el-breadcrumb",{staticStyle:{"padding-top":"10px","padding-bottom":"10px"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/stock/enterpriseSale"}}},[e._v("进销存")]),e._v(" "),a("el-breadcrumb-item",[e._v("进销存详情")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-row",[e._v("\n            时间:  \n            "),a("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"default-time":["00:00:00","23:59:59"]},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:e.refreshHandle}},[e._v("刷新\n            ")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.exportAllHandle}},[e._v("导出\n            ")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryHandle}})],1),e._v(" "),a("el-row",{staticStyle:{"padding-top":"10px"}},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search"},[a("span",[e._v("地域:  ")]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择省份",clearable:"",filterable:""},on:{change:function(t){e.changeArea("province")}},model:{value:e.queryForm.province,callback:function(t){e.$set(e.queryForm,"province",t)},expression:"queryForm.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:""},on:{change:function(t){e.changeArea("city")}},model:{value:e.queryForm.city,callback:function(t){e.$set(e.queryForm,"city",t)},expression:"queryForm.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:""},on:{change:function(t){e.changeArea("area")}},model:{value:e.queryForm.area,callback:function(t){e.$set(e.queryForm,"area",t)},expression:"queryForm.area"}},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:""},on:{change:function(t){e.changeArea("town")}},model:{value:e.queryForm.town,callback:function(t){e.$set(e.queryForm,"town",t)},expression:"queryForm.town"}},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:{clearable:"",filterable:""},model:{value:e.queryForm.community,callback:function(t){e.$set(e.queryForm,"community",t)},expression:"queryForm.community"}},e._l(e.committeeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)])]),e._v(" "),a("el-row",{staticStyle:{"padding-top":"10px"}},[e._v("\n            企业名称:\n            "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"20%","padding-right":"15px"},attrs:{placeholder:"企业名称"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.queryHandle(t):null}},model:{value:e.queryForm.name,callback:function(t){e.$set(e.queryForm,"name",t)},expression:"queryForm.name"}}),e._v("\n\n            企业类型:\n            "),a("el-select",{staticStyle:{width:"13%"},attrs:{placeholder:"请选择企业类型"},model:{value:e.queryForm.enterpriseType,callback:function(t){e.$set(e.queryForm,"enterpriseType","string"==typeof t?t.trim():t)},expression:"queryForm.enterpriseType"}},e._l(e.checkTypeList,function(e,t){return a("el-option",{key:t,attrs:{label:e.text,value:e.text}})}))],1)],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.tableData,border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"企业名称",prop:"enterpriseName",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return["总计"!==t.row.enterpriseName?a("el-link",{attrs:{type:"primary"},on:{click:function(a){e.showDetail(t.row.enterpriseNumber)}}},[e._v(e._s(t.row.enterpriseName))]):e._e(),e._v(" "),"总计"===t.row.enterpriseName?a("span",[e._v("总计")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库数(箱)",prop:"entryNum",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{"click-color":t.row.entryNum>0&&"总计"!==t.row.enterpriseName},on:{click:function(a){t.row.entryNum>0&&"总计"!==t.row.enterpriseName&&e.showMore("one",t.row)}}},[e._v(e._s(t.row.entryNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货入库数(箱)",prop:"returnNum",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{"click-color":t.row.returnNum>0&&"总计"!==t.row.enterpriseName},on:{click:function(a){t.row.returnNum>0&&"总计"!==t.row.enterpriseName&&e.showMore("two",t.row)}}},[e._v(e._s(t.row.returnNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数(箱)",prop:"deliveryNum",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{"click-color":t.row.deliveryNum>0&&"总计"!==t.row.enterpriseName},on:{click:function(a){t.row.deliveryNum>0&&"总计"!==t.row.enterpriseName&&e.showMore("three",t.row)}}},[e._v(e._s(t.row.deliveryNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数(箱)",prop:"returnDeliveryNum",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{"click-color":t.row.returnDeliveryNum>0&&"总计"!==t.row.enterpriseName},on:{click:function(a){t.row.returnDeliveryNum>0&&"总计"!==t.row.enterpriseName&&e.showMore("four",t.row)}}},[e._v(e._s(t.row.returnDeliveryNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"销售数(箱)",prop:"saleNum",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{"click-color":t.row.saleNum>0&&"总计"!==t.row.enterpriseName},on:{click:function(a){t.row.saleNum>0&&"总计"!==t.row.enterpriseName&&e.showMore("five",t.row)}}},[e._v(e._s(t.row.saleNum))])]}}])})],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":[30,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}})],1),e._v(" "),a("in-storage-detail",{ref:"inStorageDetail"}),e._v(" "),a("out-storage-detail",{ref:"outStorageDetail"}),e._v(" "),a("sale-detail",{ref:"saleDetail"})],1)},[],!1,null,"0b9a1708",null);S.options.__file="enterpriseSale.vue";t.default=S.exports},X4S0:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("Amwt"),l=a("S/i2"),c=a("7Qib"),u={name:"index",data:function(){return{code:"",entryDate:"",num:"",tableKey:"",transportCert:"",listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,personPurchaseDetailData:[],personPurchaseDetailVisible:!1,listQuery:{pageSize:10,pageIndex:1,filter:{code:"",enterprisename:"",starttime:"",endtime:""}}}},components:{flow:s.default},methods:{openInStorageDetail:function(e,t,a){this.personPurchaseDetailVisible=!0,this.listQuery.filter.code=e.code,this.listQuery.filter.enterprisename=e.unit,this.listQuery.filter.starttime=t,this.listQuery.filter.endtime=a,this.getInStorageDetailList()},getInStorageDetailList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l.i)(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(c.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)}))()},showFlow:function(e){this.$refs.flow.openFlow(e)},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getInStorageDetailList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getInStorageDetailList()}}},d=(a("uHU2"),a("ZrdR")),p=Object(d.a)(u,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:"70%","append-to-body":!0},on:{"update:visible":function(t){e.personPurchaseDetailVisible=t}}},[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-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.code,callback:function(t){e.$set(this.listQuery.filter,"code",t)},expression:"this.listQuery.filter.code"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("企业名称:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.enterprisename,callback:function(t){e.$set(this.listQuery.filter,"enterprisename",t)},expression:"this.listQuery.filter.enterprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("开始时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.starttime,callback:function(t){e.$set(this.listQuery.filter,"starttime",t)},expression:"this.listQuery.filter.starttime"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("结束时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.endtime,callback:function(t){e.$set(this.listQuery.filter,"endtime",t)},expression:"this.listQuery.filter.endtime"}})],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.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:"productname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"产品包装码",prop:"directioncode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"blue"},on:{click:function(a){e.showFlow(t.row.directioncode)}}},[e._v(e._s(t.row.directioncode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"含药量",prop:"explosivecontent",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"箱含量",prop:"boxnumber",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库数量",prop:"num",align:"center"}})],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),e._v(" "),a("flow",{ref:"flow"})],1)])},[],!1,null,"6a146b44",null);p.options.__file="inStorageDetailMore.vue";t.default=p.exports},XtOJ:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("t3Lb"),l=a("S/i2"),c=a("7Qib"),u={name:"index",data:function(){return{dialogVisible:!1,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,dataList:[],typeList:[{id:1,name:"常规出库"},{id:2,name:"退货出库"}],listQuery:{pageSize:10,pageIndex:1,filter:{province:"",city:"",district:"",street:"",committee:"",starttime:"",endtime:"",enterprisename:"",transportcert:"",type:""}}}},components:{outStorageDetail:s.default},methods:{showSaleDetail:function(e,t,a){this.dialogVisible=!0,this.listQuery.filter.starttime=e,this.listQuery.filter.endtime=t,this.listQuery.filter.enterprisename=a,this.listQuery.filter.type=1,this.listQuery.pageIndex=1,this.getList()},getList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l.n)(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(c.a)(a.data.result.total,a.data.result.size),e.currentPage=a.data.result.current,e.dataList=a.data.result.records):e.$message({type:"warning",message:a.data.message}),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},showStorageDetail:function(e){this.$refs.storage.openInStorageDetail(e,this.listQuery.filter.starttime,this.listQuery.filter.endtime)},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getList()}}},d=(a("/LFR"),a("ZrdR")),p=Object(d.a)(u,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[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-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.enterprisename,callback:function(t){e.$set(this.listQuery.filter,"enterprisename",t)},expression:"this.listQuery.filter.enterprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("开始时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.starttime,callback:function(t){e.$set(this.listQuery.filter,"starttime",t)},expression:"this.listQuery.filter.starttime"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("结束时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.endtime,callback:function(t){e.$set(this.listQuery.filter,"endtime",t)},expression:"this.listQuery.filter.endtime"}})],1)])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.dataList,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:"name",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"产品码",prop:"itemcode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"等级",prop:"level",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"箱含量",prop:"boxNumber",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"数量(箱)",prop:"num",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStorageDetail(t.row)}}},[e._v("查看")])]}}])})],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),e._v(" "),a("out-storage-detail",{ref:"storage"})],1)},[],!1,null,"f0fe8264",null);p.options.__file="index.vue";t.default=p.exports},duvX:function(e,t,a){"use strict";var r=a("Pfsf");a.n(r).a},erv5:function(e,t,a){},nrJ2:function(e,t,a){},t3Lb:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),o=a.n(n),s=a("NSDa"),l=a("7Qib"),c=a("S/i2"),u={name:"index",data:function(){return{code:"",entryDate:"",num:"",tableKey:"",transportCert:"",listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,personPurchaseDetailData:[],returnFlagList:[{id:0,name:""},{id:1,name:"已退货"}],personPurchaseDetailVisible:!1,listQuery:{pageSize:10,pageIndex:1,filter:{itemcode:"",starttime:"",endtime:"",enterprisename:""}}}},components:{flow:s.default},methods:{openInStorageDetail:function(e,t,a){this.personPurchaseDetailVisible=!0,this.listQuery.filter.itemcode=e.itemcode,this.listQuery.filter.starttime=t,this.listQuery.filter.endtime=a,this.listQuery.filter.enterprisename=e.enterprisename,this.getInStorageDetailList()},getInStorageDetailList:function(){var e=this;return o()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(c.m)(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(l.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)}))()},showFlow:function(e){this.$refs.flow.openFlow(e)},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getInStorageDetailList()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getInStorageDetailList()}}},d=(a("yuFU"),a("ZrdR")),p=Object(d.a)(u,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:"70%","append-to-body":!0},on:{"update:visible":function(t){e.personPurchaseDetailVisible=t}}},[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-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.itemcode,callback:function(t){e.$set(this.listQuery.filter,"itemcode",t)},expression:"this.listQuery.filter.itemcode"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("开始时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.starttime,callback:function(t){e.$set(this.listQuery.filter,"starttime",t)},expression:"this.listQuery.filter.starttime"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("结束时间:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:"",readonly:""},model:{value:this.listQuery.filter.endtime,callback:function(t){e.$set(this.listQuery.filter,"endtime",t)},expression:"this.listQuery.filter.endtime"}})],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.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:"itemname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"产品包装码",prop:"directioncode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"blue"},on:{click:function(a){e.showFlow(t.row.directioncode)}}},[e._v(e._s(t.row.directioncode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"销售单号",prop:"ordercode",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货",prop:"returnflag",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.returnFlagList,function(r){return a("div",[r.id===t.row.returnflag?a("div",[a("span",[e._v(e._s(r.name))])]):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":[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),e._v(" "),a("flow",{ref:"flow"})],1)])},[],!1,null,"3c043ead",null);p.options.__file="inStorageDetailMore.vue";t.default=p.exports},uHU2:function(e,t,a){"use strict";var r=a("nrJ2");a.n(r).a},xMja:function(e,t,a){"use strict";a.d(t,"n",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"b",function(){return s}),a.d(t,"q",function(){return l}),a.d(t,"d",function(){return c}),a.d(t,"g",function(){return u}),a.d(t,"p",function(){return d}),a.d(t,"k",function(){return p}),a.d(t,"j",function(){return h}),a.d(t,"a",function(){return m}),a.d(t,"r",function(){return f}),a.d(t,"e",function(){return g}),a.d(t,"f",function(){return b}),a.d(t,"m",function(){return y}),a.d(t,"h",function(){return v}),a.d(t,"o",function(){return _}),a.d(t,"i",function(){return w}),a.d(t,"l",function(){return S});var r=a("X4fA"),i=a("t3Un");function n(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/info",method:"get",params:e||{}})}function o(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/add",method:"post",data:e})}function s(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/addNew",method:"post",data:e})}function l(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/update",method:"post",data:e})}function c(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/delete",method:"post",data:e})}function u(){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/enterprise/manufacturerTree",method:"get"})}function d(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/setThreshold",method:"post",data:e})}function p(){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/getThreshold",method:"get"})}function h(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/categorise?name="+e,method:"get"})}function m(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/addCategory",method:"post",data:e})}function f(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/editCategory",method:"post",data:e})}function g(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/delCategory",method:"post",data:e})}function b(){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/majorTree",method:"get"})}function y(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/secondaryTree?major="+e,method:"get"})}function v(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/permitLevelTree?secondary="+e,method:"get"})}function _(e,t,a,n){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/info?name="+t+"&code="+a+"&type="+n,method:"get",params:e||{}})}function w(e){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/get?directionCode="+e,method:"get"})}function S(e,t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/product/gets?directionCode="+e+"&endCode="+t,method:"get"})}},ygLM:function(e,t,a){},yuFU:function(e,t,a){"use strict";var r=a("erv5");a.n(r).a}}]);