山东雷驰
You can not 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
90 KiB

3 months ago
!function(){function t(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw o}}}}function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return r(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=new Array(e);a<e;a++)r[a]=t[a];return r}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,a){return e&&i(t.prototype,e),a&&i(t,a),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{nEup:function(a,r,i){"use strict";i.r(r),i.d(r,"TaskModule",function(){return Ia});var c=i("PCNd"),s=i("tyNb"),l=i("mrSG"),u=i("pHS2"),m=i("3Pt+"),f=i("0IaG"),b=i("weu1"),d=i("zmn3"),p=i("fXoL"),h=i("bUwk"),g=i("Olgc"),v=i("kmnG"),_=i("qFsG"),k=i("d3UM"),C=i("ofXK"),T=i("7OFo"),w=i("1jcm"),y=i("bTqV"),U=i("FKr1"),O=i("sYmb");function S(t,e){if(1&t&&(p.Ub(0,"span"),p.Hc(1),p.Tb()),2&t){var a=p.fc().$implicit;p.Cb(1),p.Ic(a.warehouse.name)}}function x(t,e){if(1&t&&(p.Ub(0,"mat-option",15),p.Hc(1),p.Tb()),2&t){var a=e.$implicit;p.lc("value",a),p.Cb(1),p.Ic(a.name)}}function F(t,e){if(1&t&&(p.Ub(0,"mat-optgroup",12),p.Fc(1,S,2,1,"span",13),p.Ub(2,"span"),p.Hc(3),p.Tb(),p.Fc(4,x,2,2,"mat-option",14),p.Tb()),2&t){var a=e.$implicit;p.Cb(1),p.lc("ngIf",!a.index),p.Cb(2),p.Ic(a.name),p.Cb(1),p.lc("ngForOf",a.cell)}}var I,H=function(){return[2,2,2]},$=function(t){return{delimiter:"-",blocks:t}},R=((I=function(){function t(e,a,r,i,o){var c=this;if(n(this,t),this._data=e,this._formBuilder=a,this._httpService=r,this._toastService=i,this._dialogRef=o,this.save=function(){return Object(l.a)(c,void 0,void 0,regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=void 0,t.next=3,this._httpService.post("tasks",{operation:"infeed",task:{warehouse:this._form.controls.original.value.warehouse,barcode:this._form.controls.barcode.value,original:this._form.controls.original.value.id,destination:this._form.controls.destination.value?"name:"+this._form.controls.destination.value:null,priority:0,manual:this._form.controls.manual.value}}).catch(function(t){var a;e._toastService.show((null===(a=t.error)||void 0===a?void 0:a.errorMessage)||"\u672a\u77e5\u9519\u8bef")});case 3:if(t.t1=t.sent,t.t2=t.t0!==t.t1,!t.t2){t.next=7;break}this._toastService.show("\u64cd\u4f5c\u6210\u529f"),this._dialogRef.close(!0);case 7:case"end":return t.stop()}},t,this)}))},this._form=this._formBuilder.group({barcode:["",[m.u.required]],original:["",[m.u.required]],destination:[""],manual:[!1]}),this._data.length){var s=[];this._data.forEach(function(t){return t.area.forEach(function(e,a){return s.push({id:e.id,name:e.name,warehouse:{id:t.id,name:t.name},index:a})})}),this._httpService.get("cells?".concat(Object(b.a)(Object(d.a)(s,function(t){return"area=".concat