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
29 KiB
JavaScript
1 line
29 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 n=a("89e4"),r=a("1f2f");for(var i in r)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(i);a("e055");var o,s=a("f0c5"),u=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"a830589a",null,!1,n["a"],o);t["default"]=u.exports},"06c5":function(e,t,a){"use strict";a("a630"),a("fb6a"),a("d3b7"),a("25f0"),a("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(a("6b75"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(e){if("string"===typeof e)return(0,n.default)(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?(0,n.default)(e,t):void 0}}},"1f2f":function(e,t,a){"use strict";a.r(t);var n=a("1f5d"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},"1f5d":function(e,t,a){"use strict";var n=a("4ea4");a("a623"),a("4de4"),a("4160"),a("13d5"),a("45fc"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("5530")),i=n(a("2909"));a("96cf");var o=n(a("1da1")),s=n(a("d4ec")),u=n(a("bee2")),l=n(a("262e")),c=n(a("2caf")),d=a("9ab4"),p=a("60a3"),f=a("22da"),h=n(a("34b3")),v=a("54a3"),m=n(a("e007")),g=function(e){(0,l.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,s.default)(this,a),e=t.apply(this,arguments),e.model=m.default,e.form={documentNo:""},e.material=[],e.poList=[],e.materialList=[],e.every={},e.value="",e.type="text",e.border=!0,e.receiptAmount="",e.Location=[],e.LocationList=[],e.wl={value:null},e.poNo=null,e.requestAmount=null,e}return(0,u.default)(a,[{key:"onReady",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"initLocation",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,a,n,r,i=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")),n={loginName:t.session.user.loginName,sendSpot:a,factoryCode:t.session.user.factoryCode,workArea:v.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(n);case 5:r=e.sent,r.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,i.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,o.default)(regeneratorRuntime.mark((function e(){var t,a;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 this.initLocation(),e.next=6,this.model.queryOrderInInfo(this.form.documentNo);case 6:t=localStorage.getItem("list"),localStorage.removeItem("list"),this.material=JSON.parse(t),this.poList=(0,i.default)(this.material),a=this.removeDuplicates(this.poList,"poNo"),a.forEach((function(e){e.label=e.poNo,e.value=e.poNo})),this.poList=a;case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removeDuplicates",value:function(e,t){var a={},n=[];return n=e.reduce((function(e,n){return!a[n[t]]&&(a[n[t]]=e.push(n)),e}),[]),n}},{key:"totalLocation",value:function(e){var t=e.reduce((function(e,t){return e+ +t.receiptAmount}),0);return t}},{key:"poListChoice",value:function(e){this.poNo=e.pickerName.value,this.materialList=JSON.parse(JSON.stringify(this.removeDuplicates(this.material,"materialCode"))),this
|