You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
49 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-RUS-picking-ByOrder","pages-raw-handover-RUS-picking-Local-details~pages-raw-handover-RUS-picking-Summary-details~pages-ra~bd35a87f"],{"1b79":function(e,t,r){"use strict";var a=r("4ea4");r("4de4"),r("c740"),r("4160"),r("d81d"),r("d3b7"),r("acd8"),r("159b"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PickingModule=void 0,r("96cf");var i=a(r("1da1")),n=a(r("5530")),o=a(r("d4ec")),s=a(r("bee2")),u=a(r("262e")),l=a(r("2caf")),c=r("9ab4"),d=r("6fc5"),f=a(r("0613")),p=a(r("b32d")),h=r("110c"),g=r("54a3"),m=a(r("cd49")),b=function(e){(0,u.default)(r,e);var t=(0,l.default)(r);function r(){var e;return(0,o.default)(this,r),e=t.apply(this,arguments),e.proOrderList=[],e.code="",e.LocList=[],e.lockCode="",e.ContainerCode="",e.CategoryList=[],e.proOrderResultList=[],e.aggregateList=[],e.locationList=[],e}return(0,s.default)(r,[{key:"clearState",value:function(){this.proOrderList=[],this.proOrderResultList=[],this.aggregateList=[]}},{key:"clearProOrderList",value:function(){this.proOrderList=[]}},{key:"checkAllProOrderList",value:function(e){this.proOrderList=this.proOrderList.map((function(t){return(0,n.default)((0,n.default)({},t),{},{checked:e})}))}},{key:"checkAllAggregateList",value:function(e){this.aggregateList=this.aggregateList.map((function(t){return(0,n.default)((0,n.default)({},t),{},{checked:e})}))}},{key:"confirmCheckedAggregateList",value:function(e){this.aggregateList.filter((function(e){return e.checked})).forEach((function(t){e.locationCode&&(t.currentWkposCode=e.locationCode),e.amount&&(t.currentAmount=e.amount)}))}},{key:"checkAllProOrderResultList",value:function(e){this.proOrderResultList=this.proOrderResultList.map((function(t){return(0,n.default)((0,n.default)({},t),{},{checked:e})}))}},{key:"confirmCheckedProOrderResultList",value:function(e){this.proOrderResultList.filter((function(e){return e.checked})).forEach((function(t){e.amount&&(t.currentAmount=e.amount)}))}},{key:"queryProOrder",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.query.prdorder,t);case 2:return r=e.sent,a=r.list,a.length||m.default.customToast(m.default.$t("message.Pi_NoDataFound")),e.abrupt("return",{proOrderList:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryOrder",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.query.prdorder,this.formParams);case 2:return t=e.sent,r=t.list,r.length||m.default.customToast(m.default.$t("message.Pi_NoDataFound")),e.abrupt("return",{proOrderList:r});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryStockList",value:function(){var e=(0,i.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("/material/queryOdsRawStorageNews",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:"queryProOrderResult",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.query.prdorderList,t);case 2:return r=e.sent,a=r.list,a.forEach((function(e){e.loginName=t.loginName,e.differences=parseFloat(e.amount)-parseFloat(e.totalMoAmount)})),e.abrupt("return",{proOrderResultList:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSendSpotList2",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,p.default.post(h.url.sumscan.query.getSendSpotList,t);case 3:return r=e.sent,a=[],r.data.forEach((function(e){var t={label:e.sendSpot,value:e.sendSpot};a.push(t)})),console.log("res",r),console.log("LocList",a),e.abrupt("return",{CategoryList:a});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryAggregateList",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.query.aggregateList,t);case 2:if(r=e.sent,a=r.list,a.length){e.next=6;break}return e.abrupt("return");case 6:return a.forEach((function(e){e.loginName=t.loginName,e.differences=parseFloat(e.amount)-parseFloat(e.totalMoAmount)})),e.abrupt("return",{aggregateList:a});case 8:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryLocationList",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={factoryCode:g.session.factoryCode,loginName:g.session.loginName},e.next=3,p.default.post(h.url.auth.locations,t);case 3:return r=e.sent,a=r.values,i=a.map((function(e){return{label:e,value:e}})),e.abrupt("return",{locationList:i});case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"lock",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.lock.list,t);case 2:return r=e.sent,a=r.code,e.abrupt("return",{lockCode:a});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,i.default)(regeneratorRuntime.mark((function e(t){var r,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.barcode,t);case 2:return r=e.sent,a=r.data,e.abrupt("return",{ContainerCode:a});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"saveAggregateUploadRussia",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.save.aggregateRussia,t);case 2:return r=e.sent,console.log("res",r),a=r.code,e.abrupt("return",{code:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"saveProOrderResultUploadRussia",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.sortscan.save.orderRussia,t);case 2:return r=e.sent,a=r.code,console.log("code",a),e.abrupt("return",{code:a});case 6:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryItemLoc",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,p.default.post(h.url.sortscan.save.queryWlByMat,t);case 3:return r=e.sent,a=[],r.forEach((function(e){var t={label:e.locationCode,value:e.locationCode+"("+e.sendSpot+")("+e.amount+")"};a.push(t)})),console.log("res",r),console.log("LocList",a),e.abrupt("return",{LocList:a});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"unlockProOrderResult",value:function(){var e=(0,i.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(h.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:"unlockAggregateResult",value:function(){var e=(0,i.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(h.url.sortscan.unlock.aggregateList,t);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,i.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.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,i.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,i.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=b,(0,c.__decorate)([d.Mutation],b.prototype,"clearState",null),(0,c.__decorate)([d.Mutation],b.prototype,"clearProOrderList",null),(0,c.__decorate)([d.Mutation],b.prototype,"checkAllProOrderList",null),(0,c.__decorate)([d.Mutation],b.prototype,"checkAllAggregateList",null),(0,c.__decorate)([d.Mutation],b.prototype,"confirmCheckedAggregateList",null),(0,c.__decorate)([d.Mutation],b.prototype,"checkAllProOrderResultList",null),(0,c.__decorate)([d.Mutation],b.prototype,"confirmCheckedProOrderResultList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryProOrder",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryOrder",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],b.prototype,"queryStockList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryProOrderResult",null),(0,c.__decorate)([d.MutationAction],b.prototype,"getSendSpotList2",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryAggregateList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryLocationList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"lock",null),(0,c.__decorate)([d.MutationAction],b.prototype,"searchBarcode",null),(0,c.__decorate)([d.MutationAction],b.prototype,"saveAggregateUploadRussia",null),(0,c.__decorate)([d.MutationAction],b.prototype,"saveProOrderResultUploadRussia",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryItemLoc",null),(0,c.__decorate)([d.Action],b.prototype,"unlockProOrderResult",null),(0,c.__decorate)([d.Action],b.prototype,"unlockAggregateResult",null),(0,c.__decorate)([d.Action],b.prototype,"lockProOrderResult",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],b.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],b.prototype,"querydetaildlist",null),t.PickingModule=b=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.picking"})],b);var y=(0,d.getModule)(b);t.default=y},"221b":function(e,t,r){var a=r("8cda");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("4f06").default;i("99133d94",a,!0,{sourceMap:!1,shadowMode:!1})},"291d":function(e,t,r){var a=r("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-3783e340]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3783e340]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3783e340]{font-size:2em;font-weight:400}.u-search[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-content[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?18?%;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-clear-icon[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center}.u-input[data-v-3783e340]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-3783e340]{width:%?40?%;height:100%;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-3783e340]{color:#909399}.u-action[data-v-3783e340]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;-webkit-transition:all .3s;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-3783e340]{width:%?80?%;margin-left:%?10?%}',""]),e.exports=t},"43f6":function(e,t,r){"use strict";r.r(t);var a=r("980b"),i=r.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t["default"]=i.a},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=i(r("ade3"));function i(e){return e&&e.__esModule?e:{default:e}}function n(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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},"593e":function(e,t,r){"use strict";var a=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=t.orderHeaders=t.summaryHeaders=t.resultHeaders=t.headers=void 0;var i=a(r("cd49")),n=[{label:i.default.$t("message.Pi_OrderNo"),key:"prdOrder",width:250},{label:i.default.$t("message.po_DemandQuantity"),key:"amount",width:255},{label:i.default.$t("message.Pi_materielNo"),key:"materialCode",width:250},{label:i.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:300},{label:i.default.$t("message.Summary_ProductionDate"),key:"requireDate",width:300},{label:i.default.$t("message.product_FGCode"),key:"prodCode"},{label:i.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.headers=n;var o=[{label:i.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:i.default.$t("message.po_DemandQuantity"),key:"amount"},{label:i.default.$t("message.Pi_CumulativePickingQuantity"),key:"totalMoAmount",width:300},{label:i.default.$t("message.Pi_HandoverQuantity"),key:"totalHvAmount"},{label:i.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:i.default.$t("message.Pi_Station"),key:"sendSpot"},{label:i.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:"MRP",key:"mrpCode"},{label:i.default.$t("message.Pi_unit"),key:"unit"},{label:i.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:i.default.$t("message.po_Location"),key:"wkposCode"},{label:i.default.$t("message.product_FGCode"),key:"prodCode"},{label:i.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.resultHeaders=o;var s=[{label:i.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:i.default.$t("message.po_DemandQuantity"),key:"amount"},{label:i.default.$t("message.shortage"),key:"differences"},{label:i.default.$t("message.Pi_CurrentPickingQuantity"),key:"currentAmount",width:300},{label:i.default.$t("message.Pi_PickedQuantity"),key:"totalMoAmount"},{label:i.default.$t("message.Pi_QuantityHandedOver"),key:"totalHvAmount"},{label:i.default.$t("message.po_Location"),key:"wkposCode"},{label:i.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:i.default.$t("message.Pi_unit"),key:"unit"},{label:i.default.$t("message.target"),key:"sendSpot"}];t.summaryHeaders=s;var u=[{label:i.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:i.default.$t("message.po_DemandQuantity"),key:"amount"},{label:i.default.$t("message.shortage"),key:"differences"},{label:i.default.$t("message.Pi_CurrentPickingQuantity"),key:"currentAmount",width:300},{label:i.default.$t("message.Pi_PickedQuantity"),key:"totalMoAmount"},{label:i.default.$t("message.Pi_QuantityHandedOver"),key:"totalHvAmount"},{label:i.default.$t("message.target"),key:"sendSpot"},{label:i.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:i.default.$t("message.Pi_unit"),key:"unit"},{label:i.default.$t("message.Pi_FinishedProductModel"),key:"prdMaterialDesc",width:300},{label:i.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:i.default.$t("message.Pi_Station"),key:"wkposCode"},{label:i.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:i.default.$t("message.product_FGCode"),key:"prodCode"},{label:i.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.orderHeaders=u;var l=[{label:i.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:i.default.$t("message.product_barCode"),key:"userDefined1",width:220},{label:i.default.$t("message.po_DemandQuantity"),key:"amount"},{label:i.default.$t("message.Pi_CurrentPickingQuantity"),key:"operatorAmount",width:300},{label:i.default.$t("message.po_Location"),key:"originLocation"},{label:i.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:i.default.$t("message.Pi_unit"),key:"unit"},{label:i.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:i.default.$t("message.Pi_Station"),key:"sendSpot"},{label:i.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:i.default.$t("message.CommissionedLocation"),key:"wlCode"}];t.Headers=l},"60a3b":function(e,t,r){"use strict";var a=r("a0d2"),i=r.n(a);i.a},"6f41":function(e,t,r){"use strict";r.r(t);var a=r("a360"),i=r.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t["default"]=i.a},"7c76":function(e,t,r){"use strict";var a=r("221b"),i=r.n(a);i.a},"7e40":function(e,t,r){"use strict";r.r(t);var a=r("f777"),i=r.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t["default"]=i.a},"8cda":function(e,t,r){var a=r("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-3d775fb2]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3d775fb2]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3d775fb2]{font-size:2em;font-weight:400}.page-picking-order[data-v-3d775fb2]{background:#f2f2f2 -webkit-linear-gradient(bottom,#eee7e7,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#eee7e7,#4a78ea 51%,#1753ea) no-repeat;background-size:100% %?600?%;padding:%?30?%;min-height:100%;padding-top:%?118?%;padding-bottom:%?222?%}.page-picking-order .header[data-v-3d775fb2]{position:fixed;top:%?36?%;left:0;right:0;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-picking-order .header .title[data-v-3d775fb2]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-picking-order .header .left[data-v-3d775fb2],\n.page-picking-order .header .right[data-v-3d775fb2]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-picking-order .header .u-th[data-v-3d775fb2]{-webkit-box-flex:1;-webkit-flex:auto;flex:auto}.page-picking-order .header .icon[data-v-3d775fb2]{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-picking-order .table-wrapper[data-v-3d775fb2]{background-color:#fff;height:%?500?%;overflow-x:auto}.page-picking-order .form[data-v-3d775fb2]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-picking-order .Exhibition[data-v-3d775fb2]{width:100%;height:%?100?%;margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left[data-v-3d775fb2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-title[data-v-3d775fb2]{width:50%;height:100%;text-align:center;line-height:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-data[data-v-3d775fb2]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right[data-v-3d775fb2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-title[data-v-3d775fb2]{width:50%;height:100%;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-data[data-v-3d775fb2]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .library[data-v-3d775fb2]{width:100%;height:%?300?%;display:block}.page-picking-order .library .library-left[data-v-3d775fb2]{width:100%;height:%?100?%;padding-left:%?36?%}.page-picking-order .library .single-left[data-v-3d775fb2]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:18px}.page-picking-order .library .single-left uni-view[data-v-3d775fb2]{width:%?210?%;height:%?100?%;line-height:%?100?%}.page-picking-order .library .library-right[data-v-3d775fb2]{width:100%;height:%?100?%;padding-left:%?36?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-right .library-right-title[data-v-3d775fb2]{width:%?120?%;height:100%;line-height:%?100?%}.page-picking-order .library .library-right .input[data-v-3d775fb2]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?4?%}.page-picking-order .library .library-right .add[data-v-3d775fb2]{width:%?200?%;height:%?100?%;position:relative}.page-picking-order .library .library-right .add uni-button[data-v-3d775fb2]{position:absolute;top:%?10?%;right:%?20?%}.page-picking-order .bottom-bar[data-v-3d775fb2]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-picking-order .bottom-bar .container[data-v-3d775fb2]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-picking-order .bottom-bar .extra[data-v-3d775fb2]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-picking-order .bottom-bar .bottom-info .u-form-item[data-v-3d775fb2]{padding:0}',""]),e.exports=t},9741:function(e,t,r){var a=r("a8b4");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("4f06").default;i("3a1d922c",a,!0,{sourceMap:!1,shadowMode:!1})},"980b":function(e,t,r){"use strict";r("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(e){this.$emit("input",e),this.$emit("change",e)},value:{immediate:!0,handler:function(e){this.keyword=e}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(e){this.keyword=e.detail.value},clear:function(){var e=this;this.keyword="",this.$nextTick((function(){e.$emit("clear")}))},search:function(e){this.$emit("search",e.detail.value);try{uni.hideKeyboard()}catch(e){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(e){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var e=this;setTimeout((function(){e.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};t.default=a},"9cf5":function(e,t,r){"use strict";r.r(t);var a=r("c690"),i=r("43f6");for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);r("60a3b");var o,s=r("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"3783e340",null,!1,a["a"],o);t["default"]=u.exports},a0d2:function(e,t,r){var a=r("291d");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("4f06").default;i("4fc5a69a",a,!0,{sourceMap:!1,shadowMode:!1})},a360:function(e,t,r){"use strict";r("c975"),r("d81d"),r("a9e3"),r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"u-form",props:{model:{type:Object,default:function(){return{}}},errorType:{type:Array,default:function(){return["message","toast"]}},borderBottom:{type:Boolean,default:!0},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:90},labelAlign:{type:String,default:"left"},labelStyle:{type:Object,default:function(){return{}}}},provide:function(){return{uForm:this}},data:function(){return{rules:{}}},created:function(){this.fields=[]},methods:{setRules:function(e){this.rules=e},resetFields:function(){this.fields.map((function(e){e.resetField()}))},validate:function(e){var t=this;return new Promise((function(r){var a=!0,i=0,n=[];t.fields.map((function(o){o.validation("",(function(o){o&&(a=!1,n.push(o)),++i===t.fields.length&&(r(a),-1===t.errorType.indexOf("none")&&t.errorType.indexOf("toast")>=0&&n.length&&t.$u.toast(n[0]),"function"==typeof e&&e(a))}))}))}))}}};t.default=a},a8b4:function(e,t,r){var a=r("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-1f4305a4]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-1f4305a4]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-1f4305a4]{font-size:2em;font-weight:400}',""]),e.exports=t},aa8f:function(e,t,r){"use strict";r.r(t);var a=r("b0df"),i=r("6f41");for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);r("ecb9");var o,s=r("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"1f4305a4",null,!1,a["a"],o);t["default"]=u.exports},b0df:function(e,t,r){"use strict";var a;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},n=[]},c690:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return a}));var a={uIcon:r("f86b").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-search",style:{margin:e.margin},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"u-content",style:{backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100rpx":"10rpx",border:e.borderStyle,height:e.height+"rpx"}},[r("v-uni-view",{staticClass:"u-icon-wrap"},[r("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color}})],1),r("v-uni-input",{staticClass:"u-input",style:[{textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor},e.inputStyle],attrs:{"confirm-type":"search",value:e.value,disabled:e.disabled,focus:e.focus,maxlength:e.maxlength,"placeholder-class":"u-placeholder-class",placeholder:e.placeholder,"placeholder-style":"color: "+e.placeholderColor,type:"text"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.blur.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.search.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.inputChange.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.getFocus.apply(void 0,arguments)}}}),e.keyword&&e.clearabled&&e.focused?r("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[r("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):e._e()],1),r("v-uni-view",{staticClass:"u-action",class:[e.showActionBtn||e.show?"u-action-active":""],style:[e.actionStyle],on:{click:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.custom.apply(void 0,arguments)}}},[e._v(e._s(e.actionText))])],1)},n=[]},ecb9:function(e,t,r){"use strict";var a=r("9741"),i=r.n(a);i.a},ecd0:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return a}));var a={uIcon:r("f86b").default,uSearch:r("9cf5").default,uInput:r("d5da").default,uButton:r("d9ad").default,uTable:r("8365").default,uTr:r("18fd").default,uTh:r("4145").default,uTd:r("acc3").default,uForm:r("aa8f").default,uRow:r("d67a").default,uCol:r("b408").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"page-picking-order"},[r("v-uni-view",{staticClass:"header"},[r("v-uni-view",{staticClass:"left"},[r("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}})],1),r("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.Pi_ByOrderPicking")))]),r("v-uni-view",{staticClass:"right"})],1),r("v-uni-view",{staticClass:"table-wrapper"},[r("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","enable-check":"single","show-left-and-right-border":!0,headers:e.headers,contents:e.model.proOrderResultList,"show-vert-border":!1},on:{onCheck:function(t){arguments[0]=t=e.$handleEvent(t),e.handleRow.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"Exhibition"},[r("v-uni-view",{staticClass:"Exhibition-left"},[r("v-uni-view",{staticClass:"Exhibition-left-title"},[e._v(e._s(e.$t("message.Pi_Station"))+":")]),r("v-uni-view",{staticClass:"Exhibition-left-data"},[e._v(e._s(e.some.sendSpot))])],1),r("v-uni-view",{staticClass:"Exhibition-right"},[r("v-uni-view",{staticClass:"Exhibition-right-title"},[e._v(e._s(e.$t("message.Pi_PickedQuantity"))+":")]),r("v-uni-view",{staticClass:"Exhibition-right-data"},[e._v(e._s(e.some.totalMoAmount))])],1)],1),r("v-uni-view",{staticClass:"library"},[r("v-uni-view",{staticClass:"single-left"},[r("v-uni-view",[e._v(e._s(e.$t("message.Container")))]),r("u-search",{attrs:{placeholder:e.$t("message.PleaseScan"),focus:e.isfocus,"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.searchBarcode.apply(void 0,arguments)}},model:{value:e.Barcode,callback:function(t){e.Barcode=t},expression:"Barcode"}})],1),r("v-uni-view",{staticClass:"library-left"},[r("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation"))+":")]),r("jPicker",{staticClass:"search",staticStyle:{width:"400rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wlCode.value,options:e.Location},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.LocationChoice.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"library-right"},[r("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber"))+":")]),r("u-input",{staticClass:"input",attrs:{type:"number",border:e.border,placeholder:e.$t("message.Summary_PleaseInputNumber")},model:{value:e.qty,callback:function(t){e.qty=t},expression:"qty"}}),r("v-uni-view",{staticClass:"add"},[r("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.Add.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_add")))])],1)],1)],1),r("u-table",{staticClass:"library-table"},[r("u-tr",{staticClass:"u-tr"},[r("u-th",{staticClass:"u-th",staticStyle:{width:"65px",flex:"auto"}},[e._v(e._s(e.$t("message.product_Location")))]),r("u-th",{staticClass:"u-th",staticStyle:{width:"65px",flex:"auto"}},[e._v(e._s(e.$t("message.product_Number")))]),r("u-th",{staticClass:"u-th",staticStyle:{width:"174px",flex:"auto"}},[e._v(e._s(e.$t("message.Container")))]),r("u-th",{staticClass:"u-th",staticStyle:{width:"80px",flex:"auto"}},[e._v(e._s(e.$t("message.operation")))])],1),e._l(e.LocationList,(function(t,a){return r("u-tr",{key:a,staticClass:"u-tr"},[r("u-td",{staticClass:"u-td",staticStyle:{width:"65px",height:"60px"}},[e._v(e._s(t.wlCode))]),r("u-td",{staticClass:"u-td",staticStyle:{width:"65px",height:"60px"}},[e._v(e._s(t.qty))]),r("u-td",{staticClass:"u-td",staticStyle:{width:"174px",height:"60px","word-wrap":"break-word","word-break":"normal"}},[e._v(e._s(t.barcode))]),r("u-td",{staticClass:"u-td",staticStyle:{width:"80px",height:"60px"}},[r("u-button",{staticStyle:{"font-size":"20px",width:"74px"},attrs:{type:"error",size:"small"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(a)}}},[e._v(e._s(e.$t("message.product_Delete")))])],1)],1)}))],2),r("v-uni-view",{staticClass:"bottom-bar"},[r("div",{staticClass:"extra"},[r("u-form",{ref:"form",attrs:{model:e.form,"error-type":["toast"]}},[r("u-row",{staticClass:"bottom-info"})],1)],1),r("div",{staticClass:"container"},[r("u-row",[r("u-col",{attrs:{span:4}},[r("u-button",{staticClass:"appoint",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bill.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.detailed")))])],1),r("u-col",{attrs:{span:4}},[r("u-button",{attrs:{type:"success",disabled:e.disableflg},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.po_Submit")))])],1),r("u-col",{attrs:{span:4}},[r("u-button",{attrs:{type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}},[e._v(e._s(e.$t("message.po_Return")))])],1)],1)],1)])],1)},n=[]},f753:function(e,t,r){"use strict";r.r(t);var a=r("ecd0"),i=r("7e40");for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);r("7c76");var o,s=r("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"3d775fb2",null,!1,a["a"],o);t["default"]=u.exports},f777:function(e,t,r){"use strict";var a=r("4ea4");r("4160"),r("45fc"),r("a434"),r("acd8"),r("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("96cf");var i=a(r("1da1")),n=a(r("d4ec")),o=a(r("bee2")),s=a(r("262e")),u=a(r("2caf")),l=r("9ab4"),c=r("60a3"),d=r("22da"),f=a(r("1b79")),p=r("593e"),h=r("54a3"),g=a(r("34b3")),m=function(e){(0,s.default)(r,e);var t=(0,u.default)(r);function r(){var e;return(0,n.default)(this,r),e=t.apply(this,arguments),e.submitForm={receiver:"",receiverName:"",password:""},e.model=f.default,e.disableflg=!1,e.type="text",e.wlCode="",e.LOCKProOrderResultListParams="",e.border=!0,e.LocationList=[],e.Location=[],e.someIndex=0,e.some={},e.Container={},e.Barcode="",e.isfocus=!1,e.qty="",e.form={amount:null},e.rules={amount:[{required:!0,message:e.$t("message.Pi_tip1")}]},e.locationCodeSelect=!1,e.headers=p.orderHeaders,e}return(0,o.default)(r,[{key:"LocationChoice",value:function(e){console.log("e>>>>>>>>>>>>>>>>>>>>>>>>",e),this.wlCode=e.pickerName}},{key:"handleRow",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var r,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.data,console.log("data[0]",r[0]),this.model.proOrderResultList[r[0].index].sendSpot){e.next=5;break}return uni.showModal({content:this.$t("message.SAPLocation"),success:function(e){e.confirm&&(a.model.proOrderResultList[r[0].index].checked=!1)}}),e.abrupt("return");case 5:this.someIndex=r[0].index,this.some=r[0].lineData,this.model.proOrderResultList[this.someIndex].wlList=[],this.model.proOrderResultList[this.someIndex].currentAmount=0,this.LocationList=[],this.qty="",this.Barcode="";case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"searchBarcode",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.Barcode){e.next=3;break}return this.customToast(this.$t("message.barcode")),e.abrupt("return");case 3:if("{}"!=JSON.stringify(this.some)){e.next=6;break}return this.customToast(this.$t("message.Commission_tips6")),e.abrupt("return");case 6:return e.next=8,this.model.searchBarcode({factoryCode:h.session.factoryCode,loginName:h.session.loginName,barcode:this.Barcode,productCode:this.some.materialCode});case 8:this.Container=this.model.ContainerCode,t={label:this.Container.locCode,value:this.Container.locCode+"("+this.Container.sendSpot+")",sendSpot:this.Container.sendSpot},this.Location=[],this.Location.push(t),this.wlCode=this.Location[0],this.qty=this.Container.qty-parseFloat(this.Container.cpRef4?this.Container.cpRef4:0);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"Add",value:function(){var e=this;if(""!=this.qty&&""!=this.wlCode)if(parseFloat(this.qty)<=0)this.customToast(this.$t("message.Commission_tips3"));else if("{}"!=JSON.stringify(this.some)){var t=!0,r=0;if(0!=this.LocationList.length){if(this.LocationList.forEach((function(a){if(e.wlCode.sendSpot!=a.Code)return e.customToast(e.$t("message.Commission_tips7")),t=!1;e.Barcode==a.barcode&&(r+=parseFloat(a.qty))})),r+parseFloat(this.qty)>parseFloat(this.Container.qty)-parseFloat(this.Container.cpRef4?this.Container.cpRef4:0))return this.customToast(this.$t("message.Pi_tip20")),t=!1}else if(parseFloat(this.qty)>parseFloat(this.Container.qty)-parseFloat(this.Container.cpRef4?this.Container.cpRef4:0))return this.customToast(this.$t("message.Pi_tip20")),t=!1;if(1==t)if(parseFloat(this.qty)+parseFloat(this.some.totalMoAmount)>parseFloat(this.some.amount))uni.showModal({title:"Tip",content:this.$t("message.Pi_tip11"),confirmText:this.$t("message.workArea_Confirm"),cancelText:this.$t("message.Cancel"),showCancel:!0,success:function(t){if(t.confirm){var r={wlCode:e.wlCode.label,qty:e.qty,Code:e.wlCode.sendSpot,barcode:e.Barcode};e.LocationList.push(r);var a=JSON.stringify(e.some),i=JSON.parse(a);i.wlList=null,i.wlCode=e.wlCode.label,i.qty=e.qty,i.barcode=e.Barcode,e.model.proOrderResultList[e.someIndex].wlList.push(i),e.model.proOrderResultList[e.someIndex].currentAmount+=parseFloat(e.qty),e.qty="",e.Barcode="",e.isfocus=!1,e.$nextTick((function(){e.isfocus=!0}))}}});else{var a={wlCode:this.wlCode.label,qty:this.qty,Code:this.wlCode.sendSpot,barcode:this.Barcode};this.LocationList.push(a);var i=JSON.stringify(this.some),n=JSON.parse(i);n.wlList=null,n.wlCode=this.wlCode.label,n.qty=this.qty,n.barcode=this.Barcode,this.model.proOrderResultList[this.someIndex].wlList.push(n),this.model.proOrderResultList[this.someIndex].currentAmount+=parseFloat(this.qty),this.qty="",this.Barcode="",this.isfocus=!1,this.$nextTick((function(){e.isfocus=!0}))}}else this.customToast(this.$t("message.Commission_tips6"));else this.customToast(this.$t("message.Commission_tips2"))}},{key:"deleteItem",value:function(e){this.LocationList.splice(e,1),this.model.proOrderResultList[this.someIndex].wlList.splice(e,1),this.business()}},{key:"business",value:function(){var e=0;this.LocationList.forEach((function(t){e+=parseFloat(t.qty)})),this.model.proOrderResultList[this.someIndex].currentAmount=e}},{key:"onReady",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.onAggregate();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.some!={}&&null!=this.some.prdOrder){e.next=3;break}return this.customToast(this.$t("message.Commission_tips6")),e.abrupt("return");case 3:return t=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),r={loginName:t.session.user.loginName,prdOrder:this.some.prdOrder},e.next=7,this.model.querydetaildlist(r);case 7:this.redirectTo(this.page.raw.handover.RUSpicking.Local);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSubmit",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.disableflg=!0,t=[],this.model.proOrderResultList.forEach((function(e){1==e.checked&&t.push(e)})),0!=t.length){e.next=7;break}return this.customToast(this.$t("message.Warehouse_Tip6")),this.disableflg=!1,e.abrupt("return");case 7:return e.prev=7,e.next=10,this.model.saveProOrderResultUploadRussia(t);case 10:"1"==this.model.code&&(uni.showToast({title:this.$t("message.Warehouse_Tip9"),duration:2e3,image:"/static/icons/icon-51.png"}),setTimeout((function(){r.onAggregate()}),2e3)),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](7),this.disableflg=!1;case 16:case"end":return e.stop()}}),e,this,[[7,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onAggregate",value:function(){var e=(0,i.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.queryProOrder(this.model.formParams);case 2:return e.next=4,this.model.queryProOrderResult(this.model.NEWparams);case 4:if(0!=this.model.proOrderResultList.length){e.next=11;break}return this.disableflg=!1,this.some={},this.LocationList=[],this.wlCode="",this.Barcode="",e.abrupt("return");case 11:return this.LOCKProOrderResultListParams=this.model.proOrderResultList,e.next=14,this.model.lockProOrderResult(this.model.proOrderResultList);case 14:this.disableflg=!1,this.some={},this.LocationList=[],this.wlCode="",this.Barcode="";case 19:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"GetLocation",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,r,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Location=[],t=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),r={loginName:t.session.user.loginName,sendSpot:null,factoryCode:t.session.user.factoryCode,workArea:h.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(r);case 5:a=e.sent,a.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,i.Location.push(t)}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"beforeDestroy",value:function(){this.unlock()}},{key:"onHide",value:function(){this.unlock()}},{key:"unlock",value:function(){var e=(0,i.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.unlockProOrderResult(this.LOCKProOrderResultListParams);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(d.BasePage);(0,l.__decorate)([(0,c.Ref)("form")],m.prototype,"$form",void 0),(0,l.__decorate)([(0,c.Ref)("submitForm")],m.prototype,"$submitForm",void 0),m=(0,l.__decorate)([(0,c.Component)({components:{jPicker:g.default}})],m);var b=m;t.default=b}}]);