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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-feeding-RUS-Location"],{"09b0":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")),o=i(a("d4ec")),s=i(a("bee2")),l=i(a("262e")),u=i(a("2caf")),c=a("9ab4"),d=a("60a3"),f=a("22da"),p=i(a("f59c")),h=a("54a3"),m=i(a("34b3")),b=a("2bf0"),v=a("cdd0"),g=function(e){(0,l.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,o.default)(this,a),e=t.apply(this,arguments),e.submitForm={receiver:"",receiverName:"",password:""},e.model=p.default,e.materialList=[],e.type="text",e.wlCode="",e.border=!0,e.operatorName="",e.LocationList=[],e.Location=[],e.someIndex=0,e.some={},e.Container={},e.qty="",e.isfocus=!1,e.form={documentNo:"",amount:null},e.form2={operatorPass:"",rfPwd:""},e.rules={amount:[{required:!0,message:e.$t("message.Pi_tip1")}]},e.RUSdetailHeader=b.RUSdetailHeader,e.sapSupplyIdList=[],e.Barcode="",e}return(0,s.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=[],this.Barcode="",this.Container={}}},{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){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:if(0==this.sapSupplyIdList.length){e.next=7;break}return e.next=6,this.lock();case 6:this.sapSupplyIdList=[];case 7:return this.LocEmpty(),t=this.form.documentNo.split(","),a={inPrdOrderList:t},e.next=12,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)})),i.some=i.model.blDetailList[0],i.someIndex=0}));case 12: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:r