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
43 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-dnReceipt-dnReceiving"],{"01a3":function(e,t,i){"use strict";i.r(t);var n=i("2c92"),r=i("1f2f");for(var a in r)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(a);i("56c5");var o,s=i("f0c5"),u=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"9f0f623c",null,!1,n["a"],o);t["default"]=u.exports},"06c5":function(e,t,i){"use strict";i("a630"),i("fb6a"),i("d3b7"),i("25f0"),i("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(i("6b75"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(e){if("string"===typeof e)return(0,n.default)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,n.default)(e,t):void 0}}},"1f2f":function(e,t,i){"use strict";i.r(t);var n=i("1f5d"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=r.a},"1f5d":function(e,t,i){"use strict";var n=i("4ea4");i("a623"),i("4de4"),i("7db0"),i("4160"),i("13d5"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i("5530")),a=n(i("2909"));i("96cf");var o=n(i("1da1")),s=n(i("d4ec")),u=n(i("bee2")),c=n(i("262e")),l=n(i("2caf")),d=i("9ab4"),f=i("60a3"),p=i("22da"),h=n(i("34b3")),m=i("54a3"),v=n(i("e007")),g=i("8b71"),y=i("110c"),b=function(e){(0,c.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.model=v.default,e.form={documentNo:""},e.material=[],e.poList=[],e.materialList=[],e.every={},e.everyIndex="",e.value="",e.headers=g.headers,e.type="text",e.DNReceivingList=[],e.border=!0,e.receiptAmount="",e.Location=[],e.LocationList=[],e.wl={value:null},e.poNo=null,e.requestAmount=null,e}return(0,u.default)(i,[{key:"onShow",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:return e.next=2,this.queryLoction();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryLoction",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i,n,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Location=[],t=JSON.parse(uni.getStorageSync("sendSpot")),i={loginName:m.session.loginName,sendSpot:t,factoryCode:m.session.factoryCode,workArea:m.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)})),this.wl=this.Location[0];case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"initLocation",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var i,n,r,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("condition>>>>>>>>>>>>>>>>>>.",t),i=[],n=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),r=JSON.parse(uni.getStorageSync("sendSpot")),a={loginName:n.session.user.loginName,sendSpot:r,factoryCode:n.session.user.factoryCode,workArea:m.session.workareaCode},e.next=7,this.model.queryByFactoryCodeAndWorkAreaCode(a);case 7:return o=e.sent,console.log(">>>>>>>>>>>>>>",o),o.forEach((function(e){if(e.sendSpot===t.sendSpot){var n={};n.label=e.locationCode,n.value=e.locationCode+"("+e.sendSpot+")",n.sendSpot=e.sendSpot,i.push(n)}})),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.empty(),this.form.documentNo){e