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
34 KiB
JavaScript
1 line
34 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-Semi-finished-Semi-finished-inventory-index"],{"197f":function(e,t,n){"use strict";var r=n("1c08"),a=n.n(r);a.a},"1c08":function(e,t,n){var r=n("be37");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("cf586050",r,!0,{sourceMap:!1,shadowMode:!1})},"1ced":function(e,t,n){"use strict";n.r(t);var r=n("2e3c"),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},"1dc5":function(e,t,n){"use strict";var r=n("d935"),a=n.n(r);a.a},2868:function(e,t,n){"use strict";n.r(t);var r=n("c505"),a=n("cd02");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("1dc5");var i,s=n("f0c5"),c=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"4f8917a8",null,!1,r["a"],i);t["default"]=c.exports},"288d":function(e,t,n){"use strict";var r=n("4ea4");n("4160"),n("c975"),n("acd8"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var a=r(n("1da1")),o=r(n("d4ec")),i=r(n("bee2")),s=r(n("262e")),c=r(n("2caf")),u=n("9ab4"),l=n("60a3"),d=n("22da"),p=r(n("2c9c")),f=r(n("34b3")),h=function(e){(0,s.default)(n,e);var t=(0,c.default)(n);function n(){var e;return(0,o.default)(this,n),e=t.apply(this,arguments),e.model=p.default,e.barcode="",e.pddNo="",e.spQty="",e.productItem={},e.allNum=0,e.originWlSelect=!1,e.wl={},e}return(0,i.default)(n,[{key:"index",value:function(){this.toPage(this.page.raw.index)}},{key:"onReady",value:function(){this.empty()}},{key:"empty",value:function(){this.model.orderInInfo.carNo="",this.model.orderInInfo.bookingTime="",this.model.orderInInfo.supplyCode="",this.model.orderInInfo.poType="",this.model.orderInInfo.location="",this.spQty="",this.productItem={},this.allNum=0}},{key:"rawMaterialInventoryCheckRaw",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.pddNo){e.next=3;break}return uni.showToast({icon:"none",title:this.$t("message.Commission_tips1")}),e.abrupt("return");case 3:return e.next=5,this.model.rawMaterialInventoryCheckRaw(this.pddNo);case 5:0!=this.model.InventoryList.length&&(this.allNum=0,this.model.InventoryList.forEach((function(e){t.allNum+=parseFloat(e.spQty)})),this.productItem=this.model.InventoryList[0],this.wl=this.model.InventoryItemList[0]);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onchange",value:function(e){var t=this;this.model.InventoryList.forEach((function(n){n.productCode==e.pickerName.label&&(t.productItem=n)}))}},{key:"checkRawCreateInfo",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.spQty){e.next=3;break}return uni.showToast({icon:"none",title:this.$t("message.Summary_PleaseInputNumber")}),e.abrupt("return");case 3:if(this.pddNo){e.next=6;break}return uni.showToast({icon:"none",title:this.$t("message.Commission_tips1")}),e.abrupt("return");case 6:return t={factoryCode:this.session.factoryCode,loginName:this.session.loginName,pddNo:this.pddNo,productCode:this.productItem.productCode,productDescZh:this.productItem.productDescZh,spQty:this.spQty},e.next=9,p.default.checkRawProductComplete(t);case 9:if("1"!=this.model.code){e.next=13;break}return this.empty(),e.next=13,this.rawMaterialInventoryCheckRaw();case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"checkRawOrderComplete",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.checkRawOrderComplete(this.pddNo);case 2:"1"==this.model.code&&(uni.showToast({title:this.$t("message.Warehouse_Tip9")}),this.empty(),this.pddNo="");case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(
|