(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-picking-ByOrder~pages-raw-handover-picking-BySummary~pages-raw-handover-picking-L~c657960f"],{5530:function(e,t,r){"use strict";r("a4d3"),r("4de4"),r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(r("ade3"));function n(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function o(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},e.next=3,p.default.post(g.url.sortscan.save.order,t);case 3:return r=e.sent,a=r.data,console.log("list",a),e.abrupt("return",{LocList:a});case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"unlockProOrderResult",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.default.post(g.url.sortscan.unlock.list,t,{custom:{hideError:!0}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"lockProOrderResult",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(g.url.sortscan.lock.list,t);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/sortscan/getJhListSn",t);case 2:return r=e.sent,this.detailedList=r.list,console.log(this.detailedList),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isCheckedAll",get:function(){return!this.proOrderList.filter((function(e){return!e.checked})).length}},{key:"hasChecked",get:function(){return this.checkedProOrderList.length>0}},{key:"checkedProOrderList",get:function(){return this.proOrderList.filter((function(e){return e.checked}))}},{key:"isAggregateCheckedAll",get:function(){return!this.aggregateList.filter((function(e){return!e.checked})).length}},{key:"hasAggregateChecked",get:function(){return this.checkedAggregateList.length>0}},{key:"checkedAggregateList",get:function(){return this.aggregateList.filter((function(e){return e.checked}))}},{key:"hasAggregateCurrentAmount",get:function(){return this.aggregateList.findIndex((function(e){return e.currentAmount}))>-1}},{key:"aggregateUploadList",get:function(){return this.aggregateList.map((function(e){return e.checked||(e.currentAmount=0),e}))}},{key:"isProOrderResultCheckedAll",get:function(){return!this.proOrderResultList.filter((function(e){return!e.checked})).length}},{key:"hasProOrderResultChecked",get:function(){return this.checkedProOrderResultList.length>0}},{key:"checkedProOrderResultList",get:function(){return this.proOrderResultList.filter((function(e){return e.checked}))}},{key:"hasProOrderResultCurrentAmount",get:function(){return this.proOrderResultList.findIndex((function(e){return e.currentAmount}))>-1}},{key:"proOrderResultUploadList",get:function(){return this.proOrderResultList.map((function(e){return e.checked||(e.currentAmount=0),e}))}}]),r}(d.VuexModule);t.PickingModule=h,(0,c.__decorate)([d.Mutation],h.prototype,"clearState",null),(0,c.__decorate)([d.Mutation],h.prototype,"clearProOrderList",null),(0,c.__decorate)([d.Mutation],h.prototype,"checkAllProOrderList",null),(0,c.__decorate)([d.Mutation],h.prototype,"checkAllAggregateList",null),(0,c.__decorate)([d.Mutation],h.prototype,"confirmCheckedAggregateList",null),(0,c.__decorate)([d.Mutation],h.prototype,"checkAllProOrderResultList",null),(0,c.__decorate)([d.Mutation],h.prototype,"confirmCheckedProOrderResultList",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryProOrder",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryOrder",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],h.prototype,"queryStockList",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryProOrderResult",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryAggregateList",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryLocationList",null),(0,c.__decorate)([d.MutationAction],h.prototype,"saveAggregateUpload",null),(0,c.__decorate)([d.MutationAction],h.prototype,"saveProOrderResultUpload",null),(0,c.__decorate)([d.MutationAction],h.prototype,"queryItemLoc",null),(0,c.__decorate)([d.Action],h.prototype,"unlockProOrderResult",null),(0,c.__decorate)([d.Action],h.prototype,"lockProOrderResult",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],h.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],h.prototype,"querydetaildlist",null),t.PickingModule=h=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.picking"})],h);var k=(0,d.getModule)(h);t.default=k}}]);