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
42 KiB
JavaScript
1 line
42 KiB
JavaScript
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-dnReceipt-ImportDN"],{"06c5":function(e,t,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=a(n("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e){if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(e,t):void 0}}},"0ae5":function(e,t,n){"use strict";var i=n("4ea4");n("a623"),n("4de4"),n("7db0"),n("4160"),n("13d5"),n("a434"),n("acd8"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("5530")),r=i(n("2909"));n("96cf");var o=i(n("1da1")),s=i(n("d4ec")),u=i(n("bee2")),c=i(n("262e")),l=i(n("2caf")),d=n("9ab4"),p=n("60a3"),f=n("22da"),h=i(n("34b3")),m=n("54a3"),v=i(n("e007")),y=n("8b71"),g=n("110c"),b=function(e){(0,c.default)(n,e);var t=(0,l.default)(n);function n(){var e;return(0,s.default)(this,n),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=y.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)(n,[{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,n,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Location=[],t=JSON.parse(uni.getStorageSync("sendSpot")),n={loginName:m.session.loginName,sendSpot:t,factoryCode:m.session.factoryCode,workArea:m.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(n);case 5:i=e.sent,i.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,a.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 n,i,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("condition>>>>>>>>>>>>>>>>>>.",t),n=[],i=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),a=JSON.parse(uni.getStorageSync("sendSpot")),r={loginName:i.session.user.loginName,sendSpot:a,factoryCode:i.session.user.factoryCode,workArea:m.session.workareaCode},e.next=7,this.model.queryByFactoryCodeAndWorkAreaCode(r);case 7:return o=e.sent,console.log(">>>>>>>>>>>>>>",o),o.forEach((function(e){if(e.sendSpot===t.sendSpot){var i={};i.label=e.locationCode,i.value=e.locationCode+"("+e.sendSpot+")",i.sendSpot=e.sendSpot,n.push(i)}})),e.abrupt("return",n);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,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.empty(),this.form.documentNo){e.next=4;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 4:return e.next=6,this.model.ImportQueryOrderInfo(this.form.documentNo);case 6:if("1"!=v.default.code){e.next=21;break}if(0!=this.model.orderInInfoList.length){e.next=10;break}return this.empty(),e.abrupt("return");case 10:uni.showToast({title:this.$t("message.successful"),duration:2e3,image:"/static/icons/icon-51.png"}),t=uni.getStorageSync("list"),uni.removeStorageSync("lis
|