(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-STO-STO-Storage-index"],{"1ced":function(e,t,i){"use strict";i.r(t);var a=i("2e3c"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},"2e3c":function(e,t,i){"use strict";i("c975"),i("d3b7"),i("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"jPicker",data:function(){return{listData:this.options,nSel:-1,pickerVisable:!1,searchPosition:"middle",selStyle:"height:50px;"}},props:["options","showKey","valKey","val","position","disabled","bgColor","sureColor","focus"],watch:{options:function(e){this.listData=e,this.selByValKey()},val:{handler:function(){this.selByValKey()}},reset:function(e){""!==e&&void 0!==e&&null!==e||(this.nSel=-1)}},computed:{reset:function(){return this.val}},mounted:function(){this.selByValKey(),this.position&&(this.searchPosition=this.position)},methods:{showPicker:function(){this.disabled||(this.pickerVisable=!0,this.listData=this.options)},cancelSel:function(){if(this.pickerVisable=!1,this.val)if(this.valKey){for(var e=this.listData,t=0,i=e.length;t-1&&this.listData.push(i[a])}}else this.listData=this.options,this.nSel=this.val?this.val:-1,this.selByValKey()},selByValKey:function(){var e=this.options;if(this.listData=e,this.valKey){for(var t=0,i=e.length;t0&&-1!=e.nSel?i("v-uni-view",[e._v(e._s(e.listData[e.nSel][e.showKey]||e.listData[e.nSel]))]):i("v-uni-view",{staticStyle:{color:"#7d7d7d"}},[e._v(e._s(e.$t("message.workArea_Selelct")))])],1),e.pickerVisable?i("v-uni-view",{staticClass:"pickerMask"},[i("v-uni-view",{staticClass:"alertArea JAnimateBtmIn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.doNothing.apply(void 0,arguments)}}},["top"==e.searchPosition?i("v-uni-view",{staticClass:"searchInput"},[i("v-uni-view",{staticClass:"clickArea"},[i("v-uni-input",{staticClass:"jInput",attrs:{"placeholder-style":"color:#ffffff"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),i("v-uni-icon",{staticClass:"searchLogo",attrs:{type:"search"}})],1)],1):e._e(),i("v-uni-view",{staticClass:"pickerTop"},[i("v-uni-view",{staticClass:"lefBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelSel.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_Cancel")))]),i("v-uni-view",{staticClass:"midInput"},["middle"==e.searchPosition?[i("v-uni-input",{staticClass:"searchArea",attrs:{focus:e.focus},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),i("v-uni-icon",{staticClass:"searchIcon",attrs:{type:"search"}})]:e._e()],2),i("v-uni-view",{staticClass:"rigBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.workArea_Confirm")))])],1),i("v-uni-picker-view",{staticClass:"pickerView",attrs:{value:[e.nSel],"mask-style":"background-color:"+e.bgColor,"indicator-style":e.selStyle},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.selChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",e._l(e.listData,(function(t,a){return i("v-uni-view",{key:a,staticClass:"opItem"},[e._v(e._s(t[e.showKey]||t))])})),1)],1)],1)],1):e._e()],1)},s=[]},a5df:function(e,t,i){var a=i("24fb");t=a(!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-5d98e345]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-5d98e345]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-5d98e345]{font-size:2em;font-weight:400}.jPicker[data-v-5d98e345]{width:100%}.jPicker .showLine[data-v-5d98e345]{width:100%;display:inline-block}.pickerMask[data-v-5d98e345]{background-color:rgba(0,0,0,.5);height:100vh;width:100vw;position:fixed;left:0;top:0;z-index:999}.alertArea[data-v-5d98e345]{position:fixed;bottom:0;left:0;width:100vw}.alertArea .searchInput[data-v-5d98e345]{width:100%;position:relative}.alertArea .searchInput .clickArea[data-v-5d98e345]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:36px}.alertArea .searchInput .clickArea .jInput[data-v-5d98e345]{text-align:left;width:90%;border:none;height:30px;font-size:17px;padding:2px 8px;box-sizing:border-box;color:#fff}.alertArea .searchInput .clickArea .searchLogo[data-v-5d98e345]{width:30px;height:30px;line-height:30px;text-align:center}.alertArea .searchInput[data-v-5d98e345]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#678699;-webkit-filter:blur(18px);filter:blur(18px);z-index:-1}.alertArea .pickerTop[data-v-5d98e345]{background-color:#fff;height:52px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;\n /*border-bottom: 1px solid #000000;*/font-size:18px;box-sizing:border-box;-webkit-justify-content:space-around;justify-content:space-around}.alertArea .pickerTop .lefBtn[data-v-5d98e345],\n.alertArea .pickerTop .rigBtn[data-v-5d98e345]{font-size:18px;line-height:1rem}.alertArea .pickerTop .lefBtn[data-v-5d98e345]{color:grey}.alertArea .pickerTop .rigBtn[data-v-5d98e345]{color:#1e90ff}.alertArea .pickerTop .midInput[data-v-5d98e345]{width:64%;height:30px;position:relative;line-height:30px}.alertArea .pickerTop .midInput .searchArea[data-v-5d98e345]{text-align:left;background-color:#efefef;border-radius:20px;padding:4px 10px}.alertArea .pickerTop .midInput .searchIcon[data-v-5d98e345]{position:absolute;right:5px;top:0;width:30px;height:30px;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.alertArea .pickerView[data-v-5d98e345]{background-color:#fff;width:100%;height:300px;left:0}.alertArea .pickerView .opItem[data-v-5d98e345]{line-height:50px;text-align:center;background-color:#f3f3f3;color:#000}.JAnimateBtmIn[data-v-5d98e345]{-webkit-animation:btmIn-data-v-5d98e345 .3s ease;animation:btmIn-data-v-5d98e345 .3s ease}@-webkit-keyframes btmIn-data-v-5d98e345{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes btmIn-data-v-5d98e345{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}',""]),e.exports=t},c764:function(e,t,i){"use strict";var a=i("4ea4");i("4160"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var n=a(i("1da1")),s=a(i("d4ec")),r=a(i("bee2")),o=a(i("262e")),l=a(i("2caf")),c=i("9ab4"),d=i("60a3"),u=i("22da"),h=a(i("34b3")),p=i("54a3"),f=a(i("59b8")),m=i("d51e"),v=function(e){(0,o.default)(i,e);var t=(0,l.default)(i);function i(){var e;return(0,s.default)(this,i),e=t.apply(this,arguments),e.border=!0,e.type="text",e.Tabheaders=m.Tabheaders,e.model=f.default,e.dnNo="",e.dnNoList=[],e.DnlineNo={},e.LocList=[],e.Loc={},e.TheItem={},e.ItemIndex=0,e.item="",e.num="",e.SunmitList=[],e}return(0,r.default)(i,[{key:"QueryLoc",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:return e.next=2,this.model.QueryLoc(this.TheItem.receiveRegion);case 2:this.LocList=this.model.LocList,this.Loc=this.model.LocList[0];case 4: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=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.dnNo){e.next=3;break}return this.customToast(this.$t("message.Warehouse_Tip1")),e.abrupt("return");case 3:if(0==this.SunmitList.length){e.next=7;break}uni.showModal({content:this.$t("message.submitted"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.confirm){e.next=12;break}return t.empty(),e.next=4,f.default.QuerydnNo(t.dnNo);case 4:return t.dnNoList=t.model.dnNoList,t.DnlineNo=t.model.DnLineList[0],t.TheItem=t.model.dnNoList[0],t.ItemIndex=0,e.next=10,t.QueryLoc();case 10:e.next=14;break;case 12:if(!i.cancel){e.next=14;break}return e.abrupt("return");case 14:case"end":return e.stop()}}),e)})));function i(t){return e.apply(this,arguments)}return i}()}),e.next=15;break;case 7:return e.next=9,f.default.QuerydnNo(this.dnNo);case 9:return this.dnNoList=this.model.dnNoList,this.DnlineNo=this.model.DnLineList[0],this.TheItem=this.model.dnNoList[0],this.ItemIndex=0,e.next=15,this.QueryLoc();case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"SelectDnLine",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.DnlineNo=t.pickerName,this.model.dnNoList.forEach((function(e,t){e.dnItem==i.DnlineNo.value&&(i.TheItem=e,i.ItemIndex=t)})),e.next=4,this.QueryLoc();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"SelectLoc",value:function(e){this.Loc=e.pickerName}},{key:"Add",value:function(){if(this.dnNo)if(this.TheItem)if(this.Loc)if(this.num)if(parseFloat(this.num)<=0)this.customToast(this.$t("message.Commission_tips3"));else if(parseFloat(this.num)>parseFloat(this.TheItem.orderAmount))this.customToast(this.$t("message.Commission_tips4"));else if(parseFloat(this.num)+parseFloat(this.TheItem.scanAmount)>parseFloat(this.TheItem.orderAmount))this.customToast(this.$t("message.Commission_tips4"));else{this.model.dnNoList[this.ItemIndex].scanAmount+=parseFloat(this.num);var e={loginName:p.session.loginName,factoryCode:p.session.factoryCode,dnNo:this.dnNo,dnItem:this.DnlineNo.value,stoNo:this.TheItem.stoNo,stoItem:this.TheItem.stoItem,materialCode:this.TheItem.materialCode,orderAmount:this.TheItem.orderAmount,scanAmount:this.TheItem.orderAmount,wlCode:this.Loc.value,nowAmount:this.num};this.SunmitList.push(e),this.num="",console.log("this.model.dnNoList",this.model.dnNoList)}else this.customToast(this.$t("message.Summary_PleaseInputNumber"));else this.customToast(this.$t("message.Warehouse_Tip2"));else this.customToast(this.$t("message.Warehouse_Tip6"));else this.customToast(this.$t("message.Warehouse_Tip1"))}},{key:"deleteItem",value:function(e){var t=this;uni.showModal({content:this.$t("message.product_Delete"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(i){if(i.confirm)t.model.dnNoList.forEach((function(t){t.dnItem==e.lineData.dnItem&&(t.scanAmount-=parseFloat(e.lineData.nowAmount))})),t.SunmitList.splice(e.contentIndex,1),console.log("this.model.dnNoList",t.model.dnNoList);else if(i.cancel)return}})}},{key:"Submit",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=!0,this.model.dnNoList.forEach((function(e){if(e.orderAmount!=e.scanAmount)return i.customToast(i.$t("message.AllThem")),t=!1})),!t){e.next=6;break}return e.next=5,this.model.SubmitList(this.SunmitList);case 5:1==this.model.SubCode&&(uni.showToast({title:this.$t("message.success"),image:"/static/icons/icon-51.png"}),this.empty());case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"empty",value:function(){this.dnNo="",this.LocList=[],this.Loc={},this.TheItem={},this.ItemIndex=0,this.dnNoList=[],this.DnlineNo={},this.SunmitList=[],this.model.dnNoList.length=0}}]),i}(u.BasePage);v=(0,c.__decorate)([(0,d.Component)({components:{jPicker:h.default}})],v);var g=v;t.default=g},d51e:function(e,t,i){"use strict";var a=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.containerListHeaders=t.ImportPOReceiveListHeaders=t.Tabheaders=t.headers=void 0;var n=a(i("cd49")),s=[{label:n.default.$t("message.Line"),key:"poLine"},{label:n.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:n.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode"},{label:n.default.$t("message.product_Number"),key:"receiptAmount"},{label:n.default.$t("message.Container"),key:"sn",width:700}];t.headers=s;var r=[{label:n.default.$t("message.STOInventoryOrderNo"),key:"stoNo",width:350},{label:n.default.$t("message.STOLine"),key:"stoItem",width:350},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode",width:350},{label:n.default.$t("message.product_Number"),key:"nowAmount"}];t.Tabheaders=r;var o=[{label:n.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:n.default.$t("message.Line"),key:"poLine"},{label:n.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:n.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:450},{label:n.default.$t("message.po_DemandQuantity"),key:"poAmount"},{label:n.default.$t("message.Pi_unit"),key:"unit"}];t.ImportPOReceiveListHeaders=o;var l=[{label:n.default.$t("message.Container"),key:"palletCode",width:300},{label:n.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:n.default.$t("message.Line"),key:"poLine"},{label:n.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:n.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:450},{label:n.default.$t("message.po_DemandQuantity"),key:"poAmount"},{label:n.default.$t("message.Pi_unit"),key:"unit"}];t.containerListHeaders=l},e5e6:function(e,t,i){"use strict";var a=i("80d7"),n=i.n(a);n.a},f469:function(e,t,i){"use strict";var a=i("7f7f"),n=i.n(a);n.a}}]);