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
32 KiB
JavaScript
1 line
32 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-STO-FactorySTO-Outbound-index"],{"0fe9":function(e,t,i){"use strict";var a=i("4ea4");i("4160"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var n=a(i("1da1")),s=a(i("d4ec")),r=a(i("bee2")),o=a(i("262e")),l=a(i("2caf")),c=i("9ab4"),u=i("60a3"),d=i("22da"),h=a(i("34b3")),f=i("54a3"),p=a(i("77ed")),m=i("6c3e"),b=function(e){(0,o.default)(i,e);var t=(0,l.default)(i);function i(){var e;return(0,s.default)(this,i),e=t.apply(this,arguments),e.border=!0,e.firstFocus=!1,e.barCode="",e.type="text",e.Tabheaders=m.Tabheaders,e.model=p.default,e.dnNo="",e.dnNoList=[],e.DnlineNo={},e.LocList=[],e.Loc={},e.locCode="",e.TheItem={},e.ItemIndex=0,e.item="",e.num="",e.SunmitList=[],e}return(0,r.default)(i,[{key:"QueryLoc",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.model.QueryLoc(this.TheItem.deliveryRegion);case 2:this.LocList=this.model.LocList,this.Loc=this.model.LocList[0];case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.dnNo){e.next=3;break}return this.customToast(this.$t("message.Warehouse_Tip1")),e.abrupt("return");case 3:if(0==this.SunmitList.length){e.next=7;break}uni.showModal({content:this.$t("message.submitted"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.confirm){e.next=10;break}return t.empty(),e.next=4,p.default.QuerydnNo(t.dnNo);case 4:t.dnNoList=t.model.dnNoList,t.DnlineNo=t.model.DnLineList[0],t.TheItem=t.model.dnNoList[0],t.ItemIndex=0,e.next=12;break;case 10:if(!i.cancel){e.next=12;break}return e.abrupt("return");case 12:case"end":return e.stop()}}),e)})));function i(t){return e.apply(this,arguments)}return i}()}),e.next=13;break;case 7:return e.next=9,p.default.QuerydnNo(this.dnNo);case 9:this.dnNoList=this.model.dnNoList,this.DnlineNo=this.model.DnLineList[0],this.TheItem=this.model.dnNoList[0],this.ItemIndex=0;case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"SelectDnLine",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.DnlineNo=t.pickerName,this.model.dnNoList.forEach((function(e,t){e.dnItem==i.DnlineNo.value&&(i.TheItem=e,i.ItemIndex=t)}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"SelectLoc",value:function(e){this.Loc=e.pickerName}},{key:"onOk",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.dnNo){e.next=3;break}return this.customToast(this.$t("message.Warehouse_Tip1")),e.abrupt("return");case 3:if(this.barCode){e.next=6;break}return this.customToast(this.$t("message.barcode_PleaseScan")),e.abrupt("return");case 6:if(this.TheItem.materialCode){e.next=9;break}return this.customToast(this.$t("message.DNLine_PleaseSelect")),e.abrupt("return");case 9:return t={barcode:this.barCode,productCode:this.TheItem.materialCode,loginName:f.session.loginName,factoryCode:f.session.factoryCode},e.next=12,this.model.stoDnProdScan(t);case 12:"1"==this.model.res.code&&(this.customToast(this.$t("message.Warehouse_Tip9")),i=this.model.res.data,this.locCode=i.locCode,this.num=parseFloat(i.qty)-(i.cpRef4?parseFloat(i.cpRef4):0));case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"Add",value:function(){var
|