(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],w=0;w<3;w++)g[w]="light"===a?Math.floor((255-g[w])*t+g[w]):Math.floor(g[w]*(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},e0d9:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-72eee1f8]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-72eee1f8]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-72eee1f8]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-72eee1f8]{background:#f2f2f2 -webkit-linear-gradient(bottom,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background-size:100% %?600?%;padding:%?118?% %?30?% %?162?%;min-height:100%}.page-raw-receipt .uni-scroll-view-content[data-v-72eee1f8]{overflow-x:auto}.page-raw-receipt .uni-scroll-view-content .single[data-v-72eee1f8]{width:100%;height:80px;display:-webkit-box;display:-webkit-flex;display:flex;padding-top:30px}.page-raw-receipt .uni-scroll-view-content .single .single-left[data-v-72eee1f8]{width:100%;height:60px;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .uni-scroll-view-content .single .single-left uni-view[data-v-72eee1f8]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .uni-scroll-view-content .single .single-right uni-button[data-v-72eee1f8]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .uni-scroll-view-content .singles[data-v-72eee1f8]{width:100%;height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .uni-scroll-view-content .singles .single-lefts[data-v-72eee1f8]{width:80%;height:60px;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .uni-scroll-view-content .singles .single-lefts uni-view[data-v-72eee1f8]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .uni-scroll-view-content .singles .single-rights uni-button[data-v-72eee1f8]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .header[data-v-72eee1f8]{position:fixed;top:%?36?%;left:0;right:0;z-index:99;display:-webkit-box;display:-webkit-flex;display:flex;height:%?88?%;line-height:%?88?%;color:#fff;font-size:%?34?%;font-weight:500;text-align:center}.page-raw-receipt .header .title[data-v-72eee1f8]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-72eee1f8],\n.page-raw-receipt .header .right[data-v-72eee1f8]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-72eee1f8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?88?%;height:%?88?%}.page-raw-receipt .content[data-v-72eee1f8]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .material[data-v-72eee1f8]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-72eee1f8]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-72eee1f8]{width:%?145?%;line-height:%?100?%}.page-raw-receipt .content .material .material-left .search[data-v-72eee1f8]{padding-left:12px}.page-raw-receipt .content .material[data-v-72eee1f8]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right[data-v-72eee1f8]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-72eee1f8]{width:%?145?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-72eee1f8]{width:80%;height:100%;line-height:%?100?%;text-align:left;padding-left:10px}.page-raw-receipt .content .number[data-v-72eee1f8]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-72eee1f8]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-72eee1f8]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-72eee1f8]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-72eee1f8]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-72eee1f8]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .number .number-right .input[data-v-72eee1f8]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .library[data-v-72eee1f8]{width:100%;height:%?100?%}.page-raw-receipt .content .library .library-left[data-v-72eee1f8]{width:100%;height:100%}.page-raw-receipt .content .library .library-left uni-view[data-v-72eee1f8]{width:%?120?%;line-height:%?100?%}.page-raw-receipt .content .library .library-left .material-right-code[data-v-72eee1f8]{width:200px;padding-left:20px}.page-raw-receipt .content .library .library-right[data-v-72eee1f8]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-72eee1f8]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .library .library-right .input[data-v-72eee1f8]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .library .add[data-v-72eee1f8]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .library .add uni-button[data-v-72eee1f8]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-72eee1f8]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-raw-receipt .bottom-bar .container[data-v-72eee1f8]{background:#fff;padding:%?20?%}.page-raw-receipt .bottom-bar .extra[data-v-72eee1f8]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-raw-receipt .bottom-bar .bottom-info .u-form-item[data-v-72eee1f8]{padding:0}',""]),e.exports=t},ec64:function(e,t,a){"use strict";var i=a("7da1"),n=a.n(i);n.a},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"),w=a("54a3"),v=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:w.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:w.session.factoryCode,loginName:w.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:w.session.factoryCode,loginName:w.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:w.session.factoryCode,loginName:w.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:w.session.factoryCode,loginName:w.session.loginName,workareaCode:w.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:w.session.factoryCode,loginName:w.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:w.session.factoryCode,loginName:w.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:w.session.factoryCode,loginName:w.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,g.auth.checkPassword({factoryCode:w.session.factoryCode,loginName:t.operatorPass,rfPwd:t.rfPwd});case 2:return e.next=4,p.default.post(h.url.bl.uRussia,(0,n.default)({factoryCode:w.session.factoryCode,loginName:w.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:"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=v,(0,u.__decorate)([d.Mutation],v.prototype,"clearState",null),(0,u.__decorate)([d.Mutation],v.prototype,"confirmCheckedBlDetailList",null),(0,u.__decorate)([d.MutationAction],v.prototype,"queryItemLoc",null),(0,u.__decorate)([(0,d.Action)({commit:"clearState"})],v.prototype,"saveBlDetailUpload",null),(0,u.__decorate)([d.Action],v.prototype,"unlockBlDetailList",null),(0,u.__decorate)([d.MutationAction],v.prototype,"queryBlDetailList",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],v.prototype,"querydetaildlist",null),(0,u.__decorate)([d.MutationAction],v.prototype,"queryLocationList",null),(0,u.__decorate)([d.MutationAction],v.prototype,"queryMaterialList",null),(0,u.__decorate)([d.MutationAction],v.prototype,"submitList",null),(0,u.__decorate)([d.MutationAction],v.prototype,"lock",null),(0,u.__decorate)([d.MutationAction],v.prototype,"searchBarcode",null),(0,u.__decorate)([(0,d.Action)({commit:"clearState"})],v.prototype,"saveBlDetailSubmit",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],v.prototype,"queryByFactoryCodeAndWorkAreaCode",null),t.FeedingModule=v=(0,u.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.feeding"})],v);var b=(0,d.getModule)(v);t.default=b}}]);