(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-feeding-create"],{"0f10":function(e,t,a){"use strict";var i=a("4ea4");a("4160"),a("fb6a"),a("45fc"),a("a434"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=i(a("1da1")),r=i(a("d4ec")),o=i(a("bee2")),s=i(a("262e")),l=i(a("2caf")),c=a("9ab4"),u=a("60a3"),d=a("22da"),f=i(a("f59c")),p=i(a("34b3")),h=a("2bf0"),g=function(e){(0,s.default)(a,e);var t=(0,l.default)(a);function a(){var e;return(0,r.default)(this,a),e=t.apply(this,arguments),e.detailHeader=h.CreteListHeader,e.PropoHeader=h.PropoHeader,e.model=f.default,e.border=!0,e.show=!1,e.PageShow=!0,e.List=[],e.some={},e.qty="",e.PopupList=[],e.prdOrder="",e.materialCode="",e}return(0,o.default)(a,[{key:"propoWindow",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.show=!this.show,void 0!=this.obj&&(this.PopupList=this.obj[0]),0==this.PopupList.length?this.PageShow=!1:this.PageShow=!0;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PageShow=!1,this.PopupList=[],this.obj=void 0,t={prdOrder:this.prdOrder,materialCode:this.materialCode},e.next=6,this.model.queryMaterialList(t);case 6:this.obj=this.group(this.model.MaterialList,10),this.PopupList=this.obj[0],this.PageShow=!0;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"group",value:function(e,t){var a=0,i=[];while(athis.totalPage?this.currentPage=this.totalPage:parseFloat(a)<1?this.currentPage=1:this.currentPage=""===a?i:parseFloat(a),Object.is(i,this.currentPage)||this.$emit("change",{type:"input-page",current:this.currentPage}),this.infoClick=!1,this.$nextTick((function(){t.infoFocus=!1}))},onInfoBlur:function(e){var t=this,a=e.detail.value,i=this.currentPage;parseFloat(a)>this.totalPage?this.currentPage=this.totalPage:parseFloat(a)<1?this.currentPage=1:this.currentPage=""===a?i:parseFloat(a),Object.is(i,this.currentPage)||this.$emit("change",{type:"input-page",current:this.currentPage}),this.infoClick=!1,this.$nextTick((function(){t.infoFocus=!1}))},RGBChange:function(e,t,a){var i=0,n=0,r=0,o=!1,s=1;if(-1!==e.indexOf("#")){if(4===e.length){var l=e.split("");e="#"+l[1]+l[1]+l[2]+l[2]+l[3]+l[3]}var c=[e.substring(1,3),e.substring(3,5),e.substring(5,7)];i=parseInt(c[0],16),n=parseInt(c[1],16),r=parseInt(c[2],16)}else{o=-1!==e.indexOf("a");var u=e.slice(),d=u.indexOf("(")+1;u=u.substring(d);var f=u.indexOf(",");i=parseFloat(u.substring(0,f)),u=u.substring(f+1);var p=u.indexOf(",");if(n=parseFloat(u.substring(0,p)),u=u.substring(p+1),o){var h=u.indexOf(",");r=parseFloat(u.substring(0,h)),s=parseFloat(u.substring(h+1))}else r=parseFloat(u)}for(var g=[i,n,r],b=0;b<3;b++)g[b]="light"===a?Math.floor((255-g[b])*t+g[b]):Math.floor(g[b]*(1-t));return o?"rgba(".concat(g[0],", ").concat(g[1],", ").concat(g[2],", ").concat(s,")"):"rgb(".concat(g[0],", ").concat(g[1],", ").concat(g[2],")")},sortFieldMatch:function(e){var t=e.split(""),a=e;return t.forEach((function(t){/[A-Z]/.test(t)&&(a=e.replace(t,"-".concat(t.toLowerCase())))})),a}}};t.default=i},eaea:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"wyb-pagination-box",style:{paddingLeft:e.padding+"rpx",paddingRight:e.padding+"rpx","--hover":e.autoHover}},[a("v-uni-view",{staticClass:"wyb-pagination-left",style:{opacity:1===e.currentPage?.5:1}},[e.showFirst?a("v-uni-view",{class:"wyb-pagination-first-page-"+(e.showIcon?"i":"t"),style:e.btnStyleStr,attrs:{"hover-class":1===e.currentPage?"":"wyb-pagination-hover"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPageBtnTap("first-page")}}},[e.showIcon?a("v-uni-view",{staticClass:"iconfont icon-shuangjiantou left-arrow"}):a("v-uni-text",[e._v(e._s(e.firstText))])],1):e._e(),a("v-uni-view",{class:"wyb-pagination-prev-page-"+(e.showIcon?"i":"t"),style:e.btnStyleStr,attrs:{"hover-class":1===e.currentPage?"":"wyb-pagination-hover"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPageBtnTap("prev-page")}}},[e.showIcon?a("v-uni-view",{staticClass:"iconfont icon-danjiantou left-arrow"}):a("v-uni-text",[e._v(e._s(e.prevText))])],1)],1),a("v-uni-view",{staticClass:"wyb-pagination-info",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.onInfoTap.apply(void 0,arguments)}}},[e.infoClick?a("v-uni-view",{staticClass:"wyb-pagination-input"},[a("v-uni-input",{style:{color:e.currentColor},attrs:{type:"number",onpaste:!1,focus:e.infoFocus,value:e.currentPage,"cursor-spacing":e.cursorSpacing},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onInfoConfirm.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onInfoBlur.apply(void 0,arguments)}},model:{value:e.inputPage,callback:function(t){e.inputPage=t},expression:"inputPage"}})],1):a("v-uni-view",{staticClass:"wyb-pagination-num"},[a("v-uni-text",{style:{color:e.currentColor}},[e._v(e._s(e.currentPage))]),a("v-uni-text",{staticClass:"wyb-pagination-span",style:{color:e.pageInfoColor}},[e._v("/")]),a("v-uni-text",{style:{color:e.pageInfoColor}},[e._v(e._s(e.totalPage))]),e.showTotalItem?a("v-uni-text",{staticClass:"wyb-pagination-info-total",style:{color:e.RGBChange(e.pageInfoColor,.5,"light")}},[e._v("("+e._s(e.totalItems)+")")]):e._e()],1)],1),a("v-uni-view",{staticClass:"wyb-pagination-right",style:{opacity:e.currentPage===e.totalPage?.5:1}},[a("v-uni-view",{class:"wyb-pagination-next-page-"+(e.showIcon?"i":"t"),style:e.btnStyleStr,attrs:{"hover-class":e.currentPage===e.totalPage?"":"wyb-pagination-hover"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPageBtnTap("next-page")}}},[e.showIcon?a("v-uni-view",{staticClass:"iconfont icon-danjiantou right-arrow"}):a("v-uni-text",[e._v(e._s(e.nextText))])],1),e.showLast?a("v-uni-view",{class:"wyb-pagination-last-page-"+(e.showIcon?"i":"t"),style:e.btnStyleStr,attrs:{"hover-class":e.currentPage===e.totalPage?"":"wyb-pagination-hover"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPageBtnTap("last-page")}}},[e.showIcon?a("v-uni-view",{staticClass:"iconfont icon-shuangjiantou right-arrow"}):a("v-uni-text",[e._v(e._s(e.lastText))])],1):e._e()],1)],1)},r=[]},f59c:function(e,t,a){"use strict";var i=a("4ea4");a("4de4"),a("c740"),a("4160"),a("d81d"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FeedingModule=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=i(a("d4ec")),s=i(a("bee2")),l=i(a("262e")),c=i(a("2caf")),u=a("9ab4"),d=a("6fc5"),f=i(a("0613")),p=i(a("b32d")),h=a("110c"),g=a("cdd0"),b=a("54a3"),w=function(e){(0,l.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,o.default)(this,a),e=t.apply(this,arguments),e.blDetailList=[],e.LocList=[],e.submitListCode="",e.ContainerCode="",e.locationList=[],e.MaterialList=[],e}return(0,s.default)(a,[{key:"clearState",value:function(){this.blDetailList=[]}},{key:"confirmCheckedBlDetailList",value:function(e){this.blDetailList.filter((function(e){return e.checked})).forEach((function(t){e.locationCode&&(t.wkposCodeP=e.locationCode),e.amount&&(t.fillAmount=e.amount)}))}},{key:"queryItemLoc",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a,i,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,p.default.post(h.url.sortscan.save.queryWlByMatBL,t);case 3:return a=e.sent,i=[],a.forEach((function(e){var t={label:e.locationCode,value:e.locationCode+"("+e.sendSpot+")"};i.push(t)})),console.log("res",a),console.log("LocList",i),e.abrupt("return",{LocList:i});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"saveBlDetailUpload",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g.auth.checkPassword({factoryCode:b.session.factoryCode,loginName:t.operatorPass,rfPwd:t.rfPwd});case 2:return e.next=4,p.default.post(h.url.bl.u,(0,n.default)({factoryCode:b.session.factoryCode,loginName:b.session.loginName},t));case 4:uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"unlockBlDetailList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.blDetailList.map((function(e){return e.sapSupplyId})),a={factoryCode:b.session.factoryCode,loginName:b.session.loginName,sapSupplyIdList:t},e.next=5,p.default.post(h.url.bl.unlock,a,{custom:{hideError:!0}});case 5:e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryBlDetailList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.bl.query,(0,n.default)({factoryCode:b.session.factoryCode,loginName:b.session.loginName},t));case 2:return a=e.sent,i=a.list,e.abrupt("return",{blDetailList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/tl/getBlListSn",t);case 2:return a=e.sent,console.log("明细》》》》》》》》》",a.list),this.detailedList=a.list,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryLocationList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.location,{factoryCode:b.session.factoryCode,loginName:b.session.loginName,workareaCode:b.session.workareaCode});case 2:return t=e.sent,a=t.list.map((function(e){return{label:e.locationCode,value:e.locationCode}})),e.abrupt("return",{locationList:a});case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryMaterialList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.queryAppendDetail,{factoryCode:b.session.factoryCode,loginName:b.session.loginName,prdOrder:t.prdOrder,materialCode:t.materialCode});case 2:return a=e.sent,i=a.list,e.abrupt("return",{MaterialList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.createAppendList,t);case 2:return a=e.sent,i=a.code,e.abrupt("return",{submitListCode:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"lock",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.lock,{factoryCode:b.session.factoryCode,loginName:b.session.loginName,sapSupplyIdList:t});case 2:return a=e.sent,console.log(a),e.abrupt("return",{});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"searchBarcode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.barcode,{factoryCode:b.session.factoryCode,loginName:b.session.loginName,barcode:t.barcode,productCode:t.productCode});case 2:return a=e.sent,i=a.data,e.abrupt("return",{ContainerCode:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"saveBlDetailSubmit",value:function(){var e=(0,r.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(h.url.bl.uRussia,(0,n.default)({factoryCode:b.session.factoryCode,loginName:b.session.loginName},t));case 2:uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"});case 3:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;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 a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"hasBlDetailChecked",get:function(){return this.checkedBlDetailList.length>0}},{key:"checkedBlDetailList",get:function(){return this.blDetailList.filter((function(e){return e.checked}))}},{key:"hasBlDetailFillAmount",get:function(){return this.blDetailList.findIndex((function(e){return e.fillAmount}))>-1}},{key:"blDetailUploadList",get:function(){return this.blDetailList.map((function(e){return e.checked||(e.fillAmount=0),e}))}}]),a}(d.VuexModule);t.FeedingModule=w,(0,u.__decorate)([d.Mutation],w.prototype,"clearState",null),(0,u.__decorate)([d.Mutation],w.prototype,"confirmCheckedBlDetailList",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryItemLoc",null),(0,u.__decorate)([(0,d.Action)({commit:"clearState"})],w.prototype,"saveBlDetailUpload",null),(0,u.__decorate)([d.Action],w.prototype,"unlockBlDetailList",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryBlDetailList",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],w.prototype,"querydetaildlist",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryLocationList",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryMaterialList",null),(0,u.__decorate)([d.MutationAction],w.prototype,"submitList",null),(0,u.__decorate)([d.MutationAction],w.prototype,"lock",null),(0,u.__decorate)([d.MutationAction],w.prototype,"searchBarcode",null),(0,u.__decorate)([(0,d.Action)({commit:"clearState"})],w.prototype,"saveBlDetailSubmit",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],w.prototype,"queryByFactoryCodeAndWorkAreaCode",null),t.FeedingModule=w=(0,u.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.feeding"})],w);var v=(0,d.getModule)(w);t.default=v}}]);