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
25 KiB
JavaScript
1 line
25 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-dnReceipt-dnReceiving"],{"01a3":function(e,t,a){"use strict";a.r(t);var i=a("b3598"),n=a("1f2f");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("0836");var o,s=a("f0c5"),u=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"6ea4a3ce",null,!1,i["a"],o);t["default"]=u.exports},"0836":function(e,t,a){"use strict";var i=a("eb49"),n=a.n(i);n.a},"1f2f":function(e,t,a){"use strict";a.r(t);var i=a("1f5d"),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},"1f5d":function(e,t,a){"use strict";var i=a("4ea4");a("a623"),a("4160"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=i(a("1da1")),r=i(a("d4ec")),o=i(a("bee2")),s=i(a("262e")),u=i(a("2caf")),l=a("9ab4"),c=a("60a3"),d=a("22da"),p=i(a("34b3")),f=a("54a3"),h=i(a("e007")),v=function(e){(0,s.default)(a,e);var t=(0,u.default)(a);function a(){var e;return(0,r.default)(this,a),e=t.apply(this,arguments),e.model=h.default,e.form={documentNo:""},e.material={},e.poList=[],e.materialList=[],e.every="",e.value="",e.type="text",e.border=!0,e.Cumulative=0,e.sendSpotList=[],e.receiptAmount="",e.Location=[],e.LocationList=[],e.wlCode="",e.upload=[],e}return(0,o.default)(a,[{key:"onReady",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a,i,n,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),a=JSON.parse(localStorage.getItem("sendSpot")),i={loginName:t.session.user.loginName,sendSpot:a,factoryCode:t.session.user.factoryCode,workArea:f.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(i);case 5:n=e.sent,n.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,r.Location.push(t)}));case 7: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,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){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.queryOrderInInfo(this.form.documentNo);case 5:t=localStorage.getItem("list"),localStorage.removeItem("list"),this.material=JSON.parse(t),this.material.forEach((function(e){var t={};t.label=e.poNo,t.value=e.poNo,a.poList.push(t)}));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"poListChoice",value:function(e){var t=this;this.material.forEach((function(a){if(a.poNo==e.pickerName.value){var i={};i.label=a.materialCode,i.value=a.materialCode,t.materialList.push(i)}}))}},{key:"materialChoice",value:function(e){var t=this;this.material.forEach((function(a){a.materialCode!=e.pickerName.value||(t.every=a)}))}},{key:"LocationChoice",value:function(e){console.log("e>>>>>>>>>>>>>>>>>>>>>>>>",e),this.wlCode=e.pickerName}},{key:"Add",value:function(){var e=this;if(""!=this.receiptAmount&&""!=this.wlCode)if(parseFloat(this.receiptAmount)<=0)uni.showToast({icon:"none",title:this.$t("message.Commission_tips3")});else if(parseFloat(this.receiptAmount)>this.every.requestAmount)uni.showToast({icon:"none",title:this.$t("message.Commission_tips4")});else{var t=!0;if(0!=this.sendSpotList.length&&this.sendSpotList.forEach((function(a){e.wlCode.sendSpot!=a&&(t=!1)})),1==t){var a=JSON.stringify(this.every),i=JSON.parse(a);i.wllist=null,i.receiptAmount=this.receiptAmount,i.wlCode=this.wlCode.label,this.sendSpotList.push(this.wlCode.sendSpot),console.log("this.sendSpotList",this.sendSpotList),console.log("TEM",i),this.LocationList.push(i),this.every.wllist=this.LocationList,console.log("表格数据",this.LocationList),console.log("要上传的数据",thi
|