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
47 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-feeding-Location"],{"0872":function(e,t,a){var i=a("800b");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("cb363acc",i,!0,{sourceMap:!1,shadowMode:!1})},"1a6e":function(e,t,a){"use strict";a.r(t);var i=a("e430"),n=a("3bce");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("685a");var s,o=a("f0c5"),l=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"a36d3fbe",null,!1,i["a"],s);t["default"]=l.exports},"1ced":function(e,t,a){"use strict";a.r(t);var i=a("2e3c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"2bf0":function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.CreteListHeader=t.PropoHeader=t.detailHeader=t.headers=void 0;var n=i(a("cd49")),r=[{label:n.default.$t("message.InventoryOrderNo"),key:"prdOrder",width:220},{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:n.default.$t("message.po_ActualQuantity"),key:"fillAmount"},{label:n.default.$t("message.Summary_Number"),key:"amount"},{label:n.default.$t("message.Feeding_ReplenishedQuantity"),key:"totalFillAmount"},{label:n.default.$t("message.po_Location"),key:"locationCode"}];t.headers=r;var s=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:177},{label:n.default.$t("message.receiveAStation"),key:"sendSpot"},{label:n.default.$t("message.Production"),key:"wlCode"},{label:n.default.$t("message.quantityNum"),key:"qty"}];t.detailHeader=s;var o=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:300},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:450},{label:n.default.$t("message.Pi_unit"),key:"unit",width:300},{label:n.default.$t("message.Production"),key:"prdOrder",width:300}];t.PropoHeader=o;var l=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:200},{label:n.default.$t("message.receiveAStation"),key:"sendSpot"},{label:n.default.$t("message.Production"),key:"prdOrder"},{label:n.default.$t("message.quantityNum"),key:"amount"}];t.CreteListHeader=l},"2e3c":function(e,t,a){"use strict";a("c975"),a("d3b7"),a("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={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,a=e.length;t<a;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val;else this.nSel=-1},sureSelect:function(){if(this.pickerVisable=!1,0==this.listData.length)uni.showToast({icon:"none",title:this.$t("message.unselected")}),this.$emit("sure",{});else{var e={pickerVal:this.nSel,pickerName:-1==this.nSel?this.listData[0]:this.listData[this.nSel]};console.log("子组件要传的值",e),this.$emit("bindpicker",e)}},selChange:function(e){console.log("触发机制。。"),this.nSel=e.detail.value[0]},filterOp:function(e){var t=e.detail.value;if(""!=t){t=t.toLowerCase();var a=this.options;this.listData=[],this.nSel=0;for(var i=0;i<a.length;i++){var n=a[i];this.showKey&&(n=a[i][this.showKey]),n.toString().toLowerCase().indexOf(t)>-1&&this.listData.push(a[i])}}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,a=e.length;t<a;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val},doNothing:function(){}}};t.default=i},"34b3":function(e,t,a){"use strict";a.r(t);var i=a("85f5"),n=a("1ced");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("f469");var s,o=a("f0c5"),l=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"5d98e345",null,!1,i["a"],s);t["default"]=l.exports},"3bce":function(e,t,a){"use strict";a.r(t);var i=a("9f6e"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},5530:function(e,t,a){"use strict";a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=n(a("ade3"));function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){(0,i.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},"685a":function(e,t,a){"use strict";var i=a("0872"),n=a.n(i);n.a},"6f41":function(e,t,a){"use strict";a.r(t);var i=a("a360"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"7f7f":function(e,t,a){var i=a("a5df");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("59e86729",i,!0,{sourceMap:!1,shadowMode:!1})},"800b":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-a36d3fbe]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-a36d3fbe]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-a36d3fbe]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-a36d3fbe]{background:#f2f2f2 -webkit-linear-gradient(bottom,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background-size:100% %?600?%;padding:%?118?% %?30?% %?162?%;min-height:100%}.page-raw-receipt .header[data-v-a36d3fbe]{position:fixed;top:%?36?%;left:0;right:0;z-index:99;display:-webkit-box;display:-webkit-flex;display:flex;height:%?88?%;line-height:%?88?%;color:#fff;font-size:%?34?%;font-weight:500;text-align:center}.page-raw-receipt .header .title[data-v-a36d3fbe]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-a36d3fbe],\n.page-raw-receipt .header .right[data-v-a36d3fbe]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-a36d3fbe]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?88?%;height:%?88?%}.page-raw-receipt .content[data-v-a36d3fbe]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-a36d3fbe]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-a36d3fbe]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-a36d3fbe]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .single .single-right uni-button[data-v-a36d3fbe]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .material[data-v-a36d3fbe]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-a36d3fbe]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-a36d3fbe]{width:%?145?%;line-height:%?100?%}.page-raw-receipt .content .material .material-left .search[data-v-a36d3fbe]{padding-left:12px}.page-raw-receipt .content .material[data-v-a36d3fbe]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right[data-v-a36d3fbe]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-a36d3fbe]{width:%?145?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-a36d3fbe]{width:80%;height:100%;line-height:%?100?%;text-align:left;padding-left:10px}.page-raw-receipt .content .number[data-v-a36d3fbe]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-a36d3fbe]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-a36d3fbe]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-a36d3fbe]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-a36d3fbe]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-a36d3fbe]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .number .number-right .input[data-v-a36d3fbe]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .library[data-v-a36d3fbe]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left[data-v-a36d3fbe]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left uni-view[data-v-a36d3fbe]{width:%?100?%;line-height:%?100?%}.page-raw-receipt .content .library .library-left .search[data-v-a36d3fbe]{padding-left:19px;text-align:left}.page-raw-receipt .content .library .library-right[data-v-a36d3fbe]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-a36d3fbe]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .library .library-right .input[data-v-a36d3fbe]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .add[data-v-a36d3fbe]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .add uni-button[data-v-a36d3fbe]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-a36d3fbe]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-raw-receipt .bottom-bar .container[data-v-a36d3fbe]{background:#fff;padding:%?20?%}.page-raw-receipt .bottom-bar .extra[data-v-a36d3fbe]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-raw-receipt .bottom-bar .bottom-info .u-form-item[data-v-a36d3fbe]{padding:0}',""]),e.exports=t},"85f5":function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"jPicker"},[a("v-uni-view",{staticClass:"showLine",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPicker.apply(void 0,arguments)}}},[e.listData.length>0&&-1!=e.nSel?a("v-uni-view",[e._v(e._s(e.listData[e.nSel][e.showKey]||e.listData[e.nSel]))]):a("v-uni-view",{staticStyle:{color:"#7d7d7d"}},[e._v(e._s(e.$t("message.workArea_Selelct")))])],1),e.pickerVisable?a("v-uni-view",{staticClass:"pickerMask"},[a("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?a("v-uni-view",{staticClass:"searchInput"},[a("v-uni-view",{staticClass:"clickArea"},[a("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)}}}),a("v-uni-icon",{staticClass:"searchLogo",attrs:{type:"search"}})],1)],1):e._e(),a("v-uni-view",{staticClass:"pickerTop"},[a("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")))]),a("v-uni-view",{staticClass:"midInput"},["middle"==e.searchPosition?[a("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)}}}),a("v-uni-icon",{staticClass:"searchIcon",attrs:{type:"search"}})]:e._e()],2),a("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),a("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)}}},[a("v-uni-picker-view-column",e._l(e.listData,(function(t,i){return a("v-uni-view",{key:i,staticClass:"opItem"},[e._v(e._s(t[e.showKey]||t))])})),1)],1)],1)],1):e._e()],1)},r=[]},9741:function(e,t,a){var i=a("a8b4");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("3a1d922c",i,!0,{sourceMap:!1,shadowMode:!1})},"9f6e":function(e,t,a){"use strict";var i=a("4ea4");a("4160"),a("45fc"),a("a434"),a("acd8"),a("ac1f"),a("1276"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),s=i(a("d4ec")),o=i(a("bee2")),l=i(a("262e")),u=i(a("2caf")),c=a("9ab4"),d=a("60a3"),p=a("22da"),f=i(a("f59c")),h=a("54a3"),m=i(a("34b3")),v=a("2bf0"),b=a("cdd0"),g=function(e){(0,l.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,s.default)(this,a),e=t.apply(this,arguments),e.submitForm={receiver:"",receiverName:"",password:""},e.model=f.default,e.materialList=[],e.type="text",e.wlCode="",e.border=!0,e.operatorName="",e.LocationList=[],e.Location=[],e.someIndex=0,e.some={},e.qty="",e.form={documentNo:"",amount:null},e.form2={operatorPass:"",rfPwd:""},e.rules={amount:[{required:!0,message:e.$t("message.Pi_tip1")}]},e.detailHeader=v.detailHeader,e.sapSupplyIdList=[],e}return(0,o.default)(a,[{key:"empty",value:function(){this.some={},this.someIndex=0,this.qty="",this.Location=[],this.wlCode="",this.materialList=[],this.model.blDetailList.length=0}},{key:"LocEmpty",value:function(){this.some={},this.someIndex=0,this.qty="",this.wlCode="",this.materialList=[],this.model.blDetailList.length=0,this.LocationList=[]}},{key:"back",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0==this.sapSupplyIdList.length){e.next=3;break}return e.next=3,this.lock();case 3:uni.navigateBack({delta:1});case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"lock",value:function(){var e=(0,r.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.lock(this.sapSupplyIdList);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""==this.form.documentNo&&this.customToast(this.$t("message.Commission_tips1")),0==this.sapSupplyIdList.length){e.next=5;break}return e.next=4,this.lock();case 4:this.sapSupplyIdList=[];case 5:return this.LocEmpty(),this.wlCode=this.Location[0],t=this.form.documentNo.split(","),a={inPrdOrderList:t},e.next=11,this.model.queryBlDetailList(a).then((function(){i.model.blDetailList.forEach((function(e){var t={label:e.materialCode,value:e.materialCode,sapSupplyId:e.sapSupplyId};i.materialList.push(t),e.wlList=[],i.sapSupplyIdList.push(e.sapSupplyId)})),console.log("this.sapSupplyIdList",i.sapSupplyIdList),i.some=i.model.blDetailList[0],i.someIndex=0}));case 11:return 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:0!=this.model.LocList.length?(this.Location=[],this.Location=this.model.LocList,this.wlCode=this.Location[0]):console.log("1");case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"materialChoice",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.model.blDetailList.forEach((function(e,i){e.sapSupplyId==t.pickerName.sapSupplyId&&(a.some=e,a.someIndex=i)})),e.next=3,this.model.queryItemLoc({workArea:h.session.workareaCode,loginName:h.session.loginName,sendSpot:null,materialCode:this.some.materialCode,factoryCode:h.session.factoryCode});case 3:0!=this.model.LocList.length?(this.Location=[],this.Location=this.model.LocList,this.wlCode=this.Location[0]):console.log("1"),this.qty="";case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"LocationChoice",value:function(e){this.wlCode=e.pickerName}},{key:"onOperatorConfirm",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b.auth.getUserInfo({loginName:t});case 3:a=e.sent,i=a.userName,this.form2.operatorPass=t,this.operatorName=i,e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](0),this.form2.operatorPass="",this.operatorName="";case 13:case"end":return e.stop()}}),e,this,[[0,9]])})));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.AppendMateriel2"));else if(parseFloat(this.qty)>f.default.blDetailList[this.someIndex].amount)this.customToast(this.$t("message.AppendMateriel3"));else{var t=parseFloat(this.qty);if(this.model.blDetailList[this.someIndex].wlList.forEach((function(e){t+=parseFloat(e.qty)})),t>this.model.blDetailList[this.someIndex].amount)this.customToast(this.$t("message.AppendMateriel3"));else{var a=!0;if(0!=this.LocationList.length&&this.model.blDetailList[this.someIndex].wlList.forEach((function(t){if(e.wlCode.sendSpot!=t.Code)return e.customToast(e.$t("message.AppendMateriel4")),a=!1})),this.some!={}){if(1==a){var i=(0,n.default)({wlCode:this.wlCode.label,qty:this.qty,Code:this.wlCode.sendSpot},this.some);this.LocationList.push(i),this.model.blDetailList[this.someIndex].wlList.push(i),this.qty="",this.business()}}else this.customToast(this.$t("message.AppendMateriel5"))}}else this.customToast(this.$t("message.AppendMateriel1"))}},{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(a){if(a.confirm){var i,n,r=e.lineData;t.model.blDetailList.forEach((function(e,t){e.materialCode==r.materialCode&&e.sendSpot==r.sendSpot&&(i=t)})),t.model.blDetailList[i].wlList.forEach((function(e,t){e.wlCode==r.wlCode&&e.qty==r.qty&&(n=t)})),t.model.blDetailList[i].wlList.splice(n,1),t.LocationList.splice(e.contentIndex,1);var s=0;t.model.blDetailList[i].wlList.forEach((function(e){s+=parseFloat(e.qty)})),t.model.blDetailList[i].fillAmount=s,console.log("this.model.blDetailList",t.model.blDetailList)}else if(a.cancel)return}})}},{key:"business",value:function(){var e=0;this.model.blDetailList[this.someIndex].wlList.forEach((function(t){e+=parseFloat(t.qty)})),this.model.blDetailList[this.someIndex].fillAmount=e,this.some.fillAmount=e,console.log("this.model.blDetailList",this.model.blDetailList)}},{key:"onReady",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={loginName:h.session.loginName,sendSpot:null,factoryCode:h.session.factoryCode,workArea:h.session.workareaCode},e.next=3,this.model.queryByFactoryCodeAndWorkAreaCode(t);case 3:a=e.sent,console.log("res>>>>>>>>>>>>>>>>>>>>>>",a),a.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,i.Location.push(t)})),this.model.blDetailList.forEach((function(e){e.receiptAmount=0,e.wlQTyList=[]})),this.model.blDetailList.length=0,this.wlCode=this.Location[0];case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0: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__")),a={loginName:t.session.user.loginName,prdOrder:this.some.prdOrder},e.next=7,this.model.querydetaildlist(a);case 7:this.redirectTo(this.page.raw.handover.feeding.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,r.default)(regeneratorRuntime.mark((function e(){var t,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.model.blDetailList.forEach((function(e){e.wlList.forEach((function(e){e.wlList=null}))})),t=this.model.blDetailList,a=(0,n.default)((0,n.default)({dataList:t},this.form2),{},{factoryCode:this.session.factoryCode,loginName:this.session.loginName}),e.next=5,this.model.saveBlDetailUpload(a).then((function(){i.qty="",i.LocationList=[],i.sapSupplyIdList=[],i.query()}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(p.BasePage);(0,c.__decorate)([(0,d.Ref)("form")],g.prototype,"$form",void 0),(0,c.__decorate)([(0,d.Ref)("submitForm")],g.prototype,"$submitForm",void 0),(0,c.__decorate)([(0,d.Ref)("form2")],g.prototype,"$form2",void 0),g=(0,c.__decorate)([(0,d.Component)({components:{jPicker:m.default}})],g);var y=g;t.default=y},a360:function(e,t,a){"use strict";a("c975"),a("d81d"),a("a9e3"),a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={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(a){var i=!0,n=0,r=[];t.fields.map((function(s){s.validation("",(function(s){s&&(i=!1,r.push(s)),++n===t.fields.length&&(a(i),-1===t.errorType.indexOf("none")&&t.errorType.indexOf("toast")>=0&&r.length&&t.$u.toast(r[0]),"function"==typeof e&&e(i))}))}))}))}}};t.default=i},a5df:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-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},a8b4:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-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,a){"use strict";a.r(t);var i=a("b0df"),n=a("6f41");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("ecb9");var s,o=a("f0c5"),l=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"1f4305a4",null,!1,i["a"],s);t["default"]=l.exports},b0df:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},r=[]},cdd0:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.auth=void 0,a("96cf");var n=i(a("1da1")),r=i(a("d4ec")),s=i(a("bee2")),o=i(a("262e")),l=i(a("2caf")),u=a("9ab4"),c=a("6fc5"),d=i(a("b32d")),p=i(a("0613")),f=a("110c"),h=function(e){(0,o.default)(a,e);var t=(0,l.default)(a);function a(){return(0,r.default)(this,a),t.apply(this,arguments)}return(0,s.default)(a,[{key:"getUserInfo",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.loginName,e.next=3,d.default.post(f.url.auth.userInfo,{loginName:a});case 3:if(i=e.sent,"1"===i.code){e.next=8;break}throw new Error(i.msg);case 8:return e.abrupt("return",i.list[0]);case 9:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkPassword",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.rfPwd,i=t.factoryCode,n=t.loginName,e.next=3,d.default.post(f.url.auth.pwd.check,{rfPwd:a,factoryCode:i,loginName:n});case 3:if(r=e.sent,"1"===r.code){e.next=8;break}throw new Error(r.msg);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),a}(c.VuexModule);(0,u.__decorate)([c.Action],h.prototype,"getUserInfo",null),(0,u.__decorate)([c.Action],h.prototype,"checkPassword",null),h=(0,u.__decorate)([(0,c.Module)({dynamic:!0,store:p.default,namespaced:!0,name:"auth"})],h);var m=(0,c.getModule)(h);t.auth=m},e430:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={uIcon:a("f86b").default,uSearch:a("9cf5").default,uButton:a("d9ad").default,uInput:a("d5da").default,uForm:a("aa8f").default,uRow:a("d67a").default,uCol:a("b408").default,uFormItem:a("e0a3").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page-raw-receipt"},[a("v-uni-view",{staticClass:"top"}),a("v-uni-view",{staticClass:"header"},[a("v-uni-view",{staticClass:"left"},[a("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.back.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.FillingMaterials")))]),a("v-uni-view",{staticClass:"right"})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"single"},[a("v-uni-view",{staticClass:"single-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.InventoryOrderNo"))+":")]),a("u-search",{attrs:{placeholder:e.$t("message.InventoryPleaseScan"),"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}},model:{value:e.form.documentNo,callback:function(t){e.$set(e.form,"documentNo",t)},expression:"form.documentNo"}})],1),a("v-uni-view",{staticClass:"single-right"},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.Query")))])],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedMaterielNo"))+":")]),a("jPicker",{staticClass:"search",staticStyle:{width:"260rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.some.materialCode,options:e.materialList},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.materialChoice.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-right"},[a("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.CommissionedMaterielDesc"))+":")]),a("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.some.materialDesc))])],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-right"},[a("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.Feeding_ReplenishedQuantity"))+":")]),a("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.some.totalFillAmount))])],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-right"},[a("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.Replenishment_Number"))+":")]),a("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.some.amount))])],1)],1),a("v-uni-view",{staticClass:"number"},[a("v-uni-view",{staticClass:"number-left"},[a("v-uni-view",{staticClass:"number-left-title"},[e._v(e._s(e.$t("message.Pi_Station"))+":")]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.some.sendSpot,callback:function(t){e.$set(e.some,"sendSpot",t)},expression:"some.sendSpot"}})],1),a("v-uni-view",{staticClass:"number-right"},[a("v-uni-view",{staticClass:"number-right-title"},[e._v(e._s(e.$t("message.total"))+":")]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.some.fillAmount,callback:function(t){e.$set(e.some,"fillAmount",t)},expression:"some.fillAmount"}})],1)],1),a("v-uni-view",{staticClass:"library"},[a("v-uni-view",{staticClass:"library-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation"))+":")]),a("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},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),a("v-uni-view",{staticClass:"library-right"},[a("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber"))+":")]),a("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),type:"number",border:e.border},model:{value:e.qty,callback:function(t){e.qty=t},expression:"qty"}})],1)],1),a("v-uni-view",{staticClass:"add"},[a("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),a("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","show-left-and-right-border":!0,headers:e.detailHeader,contents:e.LocationList,"show-vert-border":!1},on:{onCellClick:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(t)}}})],1),a("v-uni-view",{staticClass:"bottom-bar"},[a("div",{staticClass:"extra"},[a("u-form",{ref:"form",attrs:{model:e.form,"error-type":["toast"]}},[a("u-row",{staticClass:"bottom-info"})],1)],1),a("u-form",{ref:"form2",staticStyle:{background:"rgb(255, 255, 255)"},attrs:{model:e.form2,"error-type":["toast"]}},[a("u-row",{staticClass:"bottom-info"},[a("u-col",{attrs:{span:6}},[a("u-form-item",{attrs:{prop:"operatorPass",label:e.$t("message.Summary_Receiver"),"label-width":"120rpx"}},[a("u-input",{attrs:{border:e.border,placeholder:e.$t("message.po_PleaseInput")},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onOperatorConfirm.apply(void 0,arguments)}},model:{value:e.operatorName,callback:function(t){e.operatorName=t},expression:"operatorName"}})],1)],1),a("u-col",{attrs:{span:6}},[a("u-form-item",{attrs:{prop:"rfPwd",label:e.$t("message.Summary_Password")}},[a("u-input",{attrs:{border:e.border,type:"password",placeholder:e.$t("message.po_PleaseInput")},model:{value:e.form2.rfPwd,callback:function(t){e.$set(e.form2,"rfPwd",t)},expression:"form2.rfPwd"}})],1)],1)],1)],1),a("div",{staticClass:"container"},[a("u-row",[a("u-col",{attrs:{span:4}},[a("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.Feeding_ReplenishmentDetails")))])],1),a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"success"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_Upload")))])],1),a("u-col",{attrs:{span:4}},[a("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)],1)},r=[]},ecb9:function(e,t,a){"use strict";var i=a("9741"),n=a.n(i);n.a},f469:function(e,t,a){"use strict";var i=a("7f7f"),n=a.n(i);n.a},f59c:function(e,t,a){"use strict";var i=a("4ea4");a("4de4"),a("c740"),a("4160"),a("d81d"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FeedingModule=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),s=i(a("d4ec")),o=i(a("bee2")),l=i(a("262e")),u=i(a("2caf")),c=a("9ab4"),d=a("6fc5"),p=i(a("0613")),f=i(a("b32d")),h=a("110c"),m=a("cdd0"),v=a("54a3"),b=function(e){(0,l.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,s.default)(this,a),e=t.apply(this,arguments),e.blDetailList=[],e.LocList=[],e.submitListCode="",e.locationList=[],e.MaterialList=[],e}return(0,o.default)(a,[{key:"clearState",value:function(){this.blDetailList=[]}},{key:"confirmCheckedBlDetailList",value:function(e){this.blDetailList.filter((function(e){return e.checked})).forEach((function(t){e.locationCode&&(t.wkposCodeP=e.locationCode),e.amount&&(t.fillAmount=e.amount)}))}},{key:"queryItemLoc",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a,i,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,f.default.post(h.url.sortscan.save.queryWlByMatBL,t);case 3:return a=e.sent,i=[],a.forEach((function(e){var t={label:e.locationCode,value:e.locationCode+"("+e.sendSpot+")"};i.push(t)})),console.log("res",a),console.log("LocList",i),e.abrupt("return",{LocList:i});case 9:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"saveBlDetailUpload",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.auth.checkPassword({factoryCode:v.session.factoryCode,loginName:v.session.loginName,rfPwd:t.rfPwd});case 2:return e.next=4,f.default.post(h.url.bl.u,(0,n.default)({factoryCode:v.session.factoryCode,loginName:v.session.loginName},t));case 4:uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"unlockBlDetailList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.blDetailList.map((function(e){return e.sapSupplyId})),a={factoryCode:v.session.factoryCode,loginName:v.session.loginName,sapSupplyIdList:t},e.next=5,f.default.post(h.url.bl.unlock,a,{custom:{hideError:!0}});case 5:e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryBlDetailList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.bl.query,(0,n.default)({factoryCode:v.session.factoryCode,loginName:v.session.loginName},t));case 2:return a=e.sent,i=a.list,e.abrupt("return",{blDetailList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/tl/getBlListSn",t);case 2:return a=e.sent,console.log("明细》》》》》》》》》",a.list),this.detailedList=a.list,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryLocationList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.auth.query.location,{factoryCode:v.session.factoryCode,loginName:v.session.loginName,workareaCode:v.session.workareaCode});case 2:return t=e.sent,a=t.list.map((function(e){return{label:e.locationCode,value:e.locationCode}})),e.abrupt("return",{locationList:a});case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryMaterialList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.auth.query.queryAppendDetail,{factoryCode:v.session.factoryCode,loginName:v.session.loginName,prdOrder:t.prdOrder,materialCode:t.materialCode});case 2:return a=e.sent,i=a.list,e.abrupt("return",{MaterialList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.auth.query.createAppendList,t);case 2:return a=e.sent,i=a.code,e.abrupt("return",{submitListCode:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"lock",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.auth.query.lock,{factoryCode:v.session.factoryCode,loginName:v.session.loginName,sapSupplyIdList:t});case 2:return a=e.sent,console.log(a),e.abrupt("return",{});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"hasBlDetailChecked",get:function(){return this.checkedBlDetailList.length>0}},{key:"checkedBlDetailList",get:function(){return this.blDetailList.filter((function(e){return e.checked}))}},{key:"hasBlDetailFillAmount",get:function(){return this.blDetailList.findIndex((function(e){return e.fillAmount}))>-1}},{key:"blDetailUploadList",get:function(){return this.blDetailList.map((function(e){return e.checked||(e.fillAmount=0),e}))}}]),a}(d.VuexModule);t.FeedingModule=b,(0,c.__decorate)([d.Mutation],b.prototype,"clearState",null),(0,c.__decorate)([d.Mutation],b.prototype,"confirmCheckedBlDetailList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryItemLoc",null),(0,c.__decorate)([(0,d.Action)({commit:"clearState"})],b.prototype,"saveBlDetailUpload",null),(0,c.__decorate)([d.Action],b.prototype,"unlockBlDetailList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryBlDetailList",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],b.prototype,"querydetaildlist",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryLocationList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"queryMaterialList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"submitList",null),(0,c.__decorate)([d.MutationAction],b.prototype,"lock",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],b.prototype,"queryByFactoryCodeAndWorkAreaCode",null),t.FeedingModule=b=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:p.default,name:"raw.handover.feeding"})],b);var g=(0,d.getModule)(b);t.default=g}}]);