|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-picking-ByOrder","pages-raw-handover-picking-Local-details~pages-raw-handover-picking-Summary-details~pages-raw-handov~143d8a5d"],{"04a4":function(e,t,r){"use strict";r.r(t);var a=r("dbaa"),n=r("c380");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("0e55");var o,s=r("f0c5"),u=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"166f0bec",null,!1,a["a"],o);t["default"]=u.exports},"0e55":function(e,t,r){"use strict";var a=r("a2d6"),n=r.n(a);n.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=n(r("ade3"));function n(e){return e&&e.__esModule?e:{default:e}}function i(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?i(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},"6f41":function(e,t,r){"use strict";r.r(t);var a=r("a360"),n=r.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},"7c2b":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 n=a(r("cd49")),i=[{label:n.default.$t("message.Pi_OrderNo"),key:"prdOrder",width:250},{label:n.default.$t("message.po_DemandQuantity"),key:"amount",width:255},{label:n.default.$t("message.Pi_materielNo"),key:"materialCode",width:250},{label:n.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:300},{label:n.default.$t("message.Summary_ProductionDate"),key:"requireDate",width:300},{label:n.default.$t("message.product_FGCode"),key:"prodCode"},{label:n.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.headers=i;var o=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_DemandQuantity"),key:"amount"},{label:n.default.$t("message.Pi_CumulativePickingQuantity"),key:"totalMoAmount",width:300},{label:n.default.$t("message.Pi_HandoverQuantity"),key:"totalHvAmount"},{label:n.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:n.default.$t("message.Pi_Station"),key:"sendSpot"},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:"MRP",key:"mrpCode"},{label:n.default.$t("message.Pi_unit"),key:"unit"},{label:n.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:n.default.$t("message.po_Location"),key:"wkposCode"},{label:n.default.$t("message.product_FGCode"),key:"prodCode"},{label:n.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.resultHeaders=o;var s=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_DemandQuantity"),key:"amount"},{label:n.default.$t("message.shortage"),key:"differences"},{label:n.default.$t("message.Pi_CurrentPickingQuantity"),key:"currentAmount",width:300},{label:n.default.$t("message.Pi_PickedQuantity"),key:"totalMoAmount"},{label:n.default.$t("message.Pi_QuantityHandedOver"),key:"totalHvAmount"},{label:n.default.$t("message.po_Location"),key:"wkposCode"},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:n.default.$t("message.Pi_unit"),key:"unit"},{label:n.default.$t("message.target"),key:"sendSpot"}];t.summaryHeaders=s;var u=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_DemandQuantity"),key:"amount"},{label:n.default.$t("message.shortage"),key:"differences"},{label:n.default.$t("message.Pi_CurrentPickingQuantity"),key:"currentAmount",width:300},{label:n.default.$t("message.Pi_PickedQuantity"),key:"totalMoAmount"},{label:n.default.$t("message.Pi_QuantityHandedOver"),key:"totalHvAmount"},{label:n.default.$t("message.target"),key:"sendSpot"},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:n.default.$t("message.Pi_unit"),key:"unit"},{label:n.default.$t("message.Pi_FinishedProductModel"),key:"prdMaterialDesc",width:300},{label:n.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:n.default.$t("message.Pi_Station"),key:"wkposCode"},{label:n.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:n.default.$t("message.product_FGCode"),key:"prodCode"},{label:n.default.$t("message.Pi_FinishedProductModel"),key:"prodDesc",width:300}];t.orderHeaders=u;var l=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_DemandQuantity"),key:"amount"},{label:n.default.$t("message.Pi_CurrentPickingQuantity"),key:"operatorAmount",width:300},{label:n.default.$t("message.po_Location"),key:"originLocation"},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:n.default.$t("message.Pi_unit"),key:"unit"},{label:n.default.$t("message.Pi_factory"),key:"sapFactoryCode"},{label:n.default.$t("message.Pi_Station"),key:"sendSpot"},{label:n.default.$t("message.Pi_OrderNo"),key:"prdOrder"},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode"}];t.Headers=l},9741:function(e,t,r){var a=r("a8b4");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("4f06").default;n("3a1d922c",a,!0,{sourceMap:!1,shadowMode:!1})},a2d6:function(e,t,r){var a=r("e086");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("4f06").default;n("4ee30920",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,n=0,i=[];t.fields.map((function(o){o.validation("",(function(o){o&&(a=!1,i.push(o)),++n===t.fields.length&&(r(a),-1===t.errorType.indexOf("none")&&t.errorType.indexOf("toast")>=0&&i.length&&t.$u.toast(i[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"),n=r("6f41");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("ecb9");var o,s=r("f0c5"),u=Object(s["a"])(n["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 n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},i=[]},b5bf: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 n=a(r("1da1")),i=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("ef95")),p=r("7c2b"),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,i.default)(this,r),e=t.apply(this,arguments),e.submitForm={receiver:"",receiverName:"",password:""},e.model=f.default,e.type="text",e.wlCode="",e.LOCKProOrderResultListParams="",e.border=!0,e.disableflg=!1,e.LocationList=[],e.Location=[],e.someIndex=0,e.some={},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,n.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:return 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=r[0].lineData.differences,e.next=13,this.model.queryItemLoc({workArea:h.session.workareaCode,loginName:h.session.loginName,sendSpot:null,materialCode:this.some.materialCode,factoryCode:h.session.factoryCode});case 13:this.Location=[],0==this.model.LocList.length?uni.showModal({content:this.$t("message.selected"),showCancel:!1,confirmText:this.$t("message.workArea_Confirm")}):(this.Location=this.model.LocList,console.log("this.Location",this.Location),this.wlCode=this.Location[0]);case 15:case"end":return e.stop()}}),e,this)})));function t(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;if(0!=this.LocationList.length&&this.LocationList.forEach((function(r){if(e.wlCode.sendSpot!=r.Code||e.wlCode.label===r.wlCode)return e.customToast(e.$t("message.Commission_tips7")),t=!1})),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};e.LocationList.push(r);var a=JSON.stringify(e.some),n=JSON.parse(a);n.wlList=null,n.wlCode=e.wlCode.label,n.qty=e.qty,e.model.proOrderResultList[e.someIndex].wlList.push(n),e.model.proOrderResultList[e.someIndex].currentAmount+=parseFloat(e.qty),e.qty=""}}});else{var r={wlCode:this.wlCode.label,qty:this.qty,Code:this.wlCode.sendSpot};this.LocationList.push(r);var a=JSON.stringify(this.some),n=JSON.parse(a);n.wlList=null,n.wlCode=this.wlCode.label,n.qty=this.qty,this.model.proOrderResultList[this.someIndex].wlList.push(n),this.model.proOrderResultList[this.someIndex].currentAmount+=parseFloat(this.qty),this.qty=""}}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,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.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,n.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.picking.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,n.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.saveProOrderResultUpload(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,n.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.model.queryProOrder(this.model.formParams);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),this.model.proOrderResultList.forEach((function(e,r){parseFloat(e.amount)<=parseFloat(e.currentAmount)+parseFloat(e.totalMoAmount)&&t.model.proOrderResultList.splice(r,1)}));case 8:return e.prev=8,e.next=11,this.model.queryProOrderResult(this.model.NEWparams);case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](8),this.model.proOrderResultList.forEach((function(e,r){parseFloat(e.amount)<=parseFloat(e.currentAmount)+parseFloat(e.totalMoAmount)&&t.model.proOrderResultList.splice(r,1)}));case 16:if(0!=this.model.proOrderResultList.length){e.next=22;break}return this.disableflg=!1,this.some={},this.LocationList=[],this.wlCode="",e.abrupt("return");case 22:return this.LOCKProOrderResultListParams=this.model.proOrderResultList,e.next=25,this.model.lockProOrderResult(this.model.proOrderResultList);case 25:this.disableflg=!1,this.some={},this.LocationList=[],this.wlCode="";case 29:case"end":return e.stop()}}),e,this,[[0,5],[8,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"GetLocation",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,r,a,n=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,n.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,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.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 y=m;t.default=y},c380:function(e,t,r){"use strict";r.r(t);var a=r("b5bf"),n=r.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},dbaa:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var a={uIcon:r("f86b").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},n=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:"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"},[e._v(e._s(e.$t("message.product_Location")))]),r("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.product_Number")))]),r("u-th",{staticClass:"u-th"},[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"},[e._v(e._s(t.wlCode))]),r("u-td",{staticClass:"u-td"},[e._v(e._s(t.qty))]),r("u-td",{staticClass:"u-td"},[r("u-button",{staticStyle:{"font-size":"20px"},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)},i=[]},e086: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-166f0bec]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-166f0bec]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-166f0bec]{font-size:2em;font-weight:400}.page-picking-order[data-v-166f0bec]{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-166f0bec]{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-166f0bec]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-picking-order .header .left[data-v-166f0bec],\n.page-picking-order .header .right[data-v-166f0bec]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-picking-order .header .icon[data-v-166f0bec]{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-166f0bec]{background-color:#fff;height:%?500?%;overflow-x:auto}.page-picking-order .form[data-v-166f0bec]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-picking-order .Exhibition[data-v-166f0bec]{width:100%;height:%?100?%;margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left[data-v-166f0bec]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-title[data-v-166f0bec]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-data[data-v-166f0bec]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right[data-v-166f0bec]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-title[data-v-166f0bec]{width:50%;height:100%;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-data[data-v-166f0bec]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .library[data-v-166f0bec]{width:100%;height:%?200?%;display:block}.page-picking-order .library .library-left[data-v-166f0bec]{width:100%;height:%?100?%;padding-left:%?36?%}.page-picking-order .library .library-right[data-v-166f0bec]{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-166f0bec]{width:%?120?%;height:100%;line-height:%?100?%}.page-picking-order .library .library-right .input[data-v-166f0bec]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?4?%}.page-picking-order .library .library-right .add[data-v-166f0bec]{width:%?200?%;height:%?100?%;position:relative}.page-picking-order .library .library-right .add uni-button[data-v-166f0bec]{position:absolute;top:%?10?%;right:%?20?%}.page-picking-order .bottom-bar[data-v-166f0bec]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-picking-order .bottom-bar .container[data-v-166f0bec]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-picking-order .bottom-bar .extra[data-v-166f0bec]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-picking-order .bottom-bar .bottom-info .u-form-item[data-v-166f0bec]{padding:0}',""]),e.exports=t},ecb9:function(e,t,r){"use strict";var a=r("9741"),n=r.n(a);n.a},ef95: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 n=a(r("1da1")),i=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")),y=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.mrpcode="",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,i.default)((0,i.default)({},t),{},{checked:e})}))}},{key:"checkAllAggregateList",value:function(e){this.aggregateList=this.aggregateList.map((function(t){return(0,i.default)((0,i.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,i.default)((0,i.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,n.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:"checkUserAndMrp",value:function(){var e=(0,n.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.checkUserAndMrp,t);case 2:return r=e.sent,a=r.code,e.abrupt("return",{mrpcode:a});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryOrder",value:function(){var e=(0,n.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,n.default)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/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,n.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:"queryAggregateList",value:function(){var e=(0,n.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,n.default)(regeneratorRuntime.mark((function e(){var t,r,a,n;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,n=a.map((function(e){return{label:e,value:e}})),e.abrupt("return",{locationList:n});case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"lock",value:function(){var e=(0,n.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:"saveAggregateUpload",value:function(){var e=(0,n.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.aggregate,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:"saveProOrderResultUpload",value:function(){var e=(0,n.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.order,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,n.default)(regeneratorRuntime.mark((function e(){var t,r,a,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.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,n.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.default.post(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,n.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.default.post(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,n.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(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,n.default)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/sortscan/getJhListSn",t);case 2:return r=e.sent,this.detailedList=r.list,console.log(this.detailedList),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getMRP",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,r,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,p.default.post(h.url.sortscan.save.queryMrpByUser,t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));function 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=y,(0,c.__decorate)([d.Mutation],y.prototype,"clearState",null),(0,c.__decorate)([d.Mutation],y.prototype,"clearProOrderList",null),(0,c.__decorate)([d.Mutation],y.prototype,"checkAllProOrderList",null),(0,c.__decorate)([d.Mutation],y.prototype,"checkAllAggregateList",null),(0,c.__decorate)([d.Mutation],y.prototype,"confirmCheckedAggregateList",null),(0,c.__decorate)([d.Mutation],y.prototype,"checkAllProOrderResultList",null),(0,c.__decorate)([d.Mutation],y.prototype,"confirmCheckedProOrderResultList",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryProOrder",null),(0,c.__decorate)([d.MutationAction],y.prototype,"checkUserAndMrp",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryOrder",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],y.prototype,"queryStockList",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryProOrderResult",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryAggregateList",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryLocationList",null),(0,c.__decorate)([d.MutationAction],y.prototype,"lock",null),(0,c.__decorate)([d.MutationAction],y.prototype,"saveAggregateUpload",null),(0,c.__decorate)([d.MutationAction],y.prototype,"saveProOrderResultUpload",null),(0,c.__decorate)([d.MutationAction],y.prototype,"queryItemLoc",null),(0,c.__decorate)([d.Action],y.prototype,"unlockProOrderResult",null),(0,c.__decorate)([d.Action],y.prototype,"unlockAggregateResult",null),(0,c.__decorate)([d.Action],y.prototype,"lockProOrderResult",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],y.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],y.prototype,"querydetaildlist",null),(0,c.__decorate)([d.Action],y.prototype,"getMRP",null),t.PickingModule=y=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.picking"})],y);var b=(0,d.getModule)(y);t.default=b}}]); |