1"use strict";(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["16105"],{51760:function(t,e,r){r.r(e),r.d(e,{default:function(){return f}}),r(25259),r(77949),r(5092),r(937),r(915);var n=r(24535),i=r(44311),a=r(49680),o=r(74943),u=r(54357);function s(t,e,r,n,i,a,o){try{var u=t[a](o),s=u.value}catch(t){r(t);return}u.done?e(s):Promise.resolve(s).then(n,i)}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function l(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e}
1)(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var d={name:"DetailWarehouseIn",components:{AddStockOrderDialog:i.A},data:function(){return{id:null,order:null,addStockOrderEditData:{modalType:"view"},closeGuardPath:""}},created:function(){this.closeGuardPath=this.$route.path,o.bNd.registerCloseGuard(this.closeGuardPath,this.closeGuard)},beforeDestroy:function(){o.bNd.delCloseGuard(this.closeGuardPath)},activated:function(){var t=this.$route.query,e=t.id,r=t.order;if(!(this.$utils.isEmpty(e)&&this.$utils.isEmpty(r))){var n=e&&e===this.id||r&&r===this.order,i=(0,a.pick)(this.$route.query,["id","order","pageFrom","pageFromQuery"]);if(this.addStockOrderEditData=l(c({},this.addStockOrderEditData),{routeParams:i}),n){this.$refs.contentRef&&(this.$refs.contentRef.addStockData.routeParams=i);return}this.id=e,this.order=r,this.init()}},methods:{getCloseTarget:function(){var t,e,r=(null==(t=this.addStockOrderEditData)?void 0:t.routeParams)||(0,a.pick)(this.$route.query,["pageFrom","pageFromQuery"]);return(0,u.sd)({pageFrom:r.pageFrom,pageFromQuery:r.pageFromQuery,routeName:null==(e=this.$route)?void 0:e.name,fallbackName:"WarehouseIn"})},closeGuard:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(null==(e=this.$refs.contentRef)||null==(t=e.getCloseTarget)?void 0:t.call(e))||this.getCloseTarget();return!n||(o.bNd.triggerAction("closeTab",{url:(null==r?void 0:r.url)||this.$route.path,to:n}),{valid:!0,type:"assign"})},refresh:function(t){var e=t.id;this.$utils.isEmpty(e)||"".concat(e)===this.id||this.init()},init:function(){var t;return(t=function(){var t,e,r,i,a;return function(t,e){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(o,"next",{value:s(0)}),u(o,"throw",{value:s(1)}),u(o,"return",{value:s(2)}),"function"==typeof Symbol&&u(o,Symbol.iterator,{value:function(){return this}}),o;function s(u){return function(s){var c=[u,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:if(t=this,e=this.id||this.order,this.$utils.isEmpty(e))return this.$message.error(this.$t("main.other.in.invalid.document")),[2];o.label=1;case 1:return o.trys.push([1,3,4,5]),r={},this.id?r.inWarehouseId=e:r.inWarehouseNo=e,this.$loading(),[4,(0,n.T9)(r)];case 2:if(!(i=o.sent()))return[2];return i.modalType="view",i.routeParams=this.addStockOrderEditData.routeParams,i.items.forEach(function(t){1===t.isGroup&&(t.childItems=t.childSkus.map(function(e){return l(c({},e),{mainImage:e.imgUrl,commodityId:e.id,commodityName:e.name,commoditySku:e.sku,shopList:[],fnskuMap:{},fnSkuList:[],goods:t.goods*e.num||0,defective:t.defective*e.num||0})}),delete t.childSkus)}),this.addStockOrderEditData=i,this.$nextTick(function(){var e;null==(e=t.$refs.contentRef)||e.editDataHandle("view")}),[3,5];case 3:return a=o.sent(),this.$message.handle(a),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function o(t){s(a,n,i,o,u,"next",t)}function u(t){s(a,n,i,o,u,"throw",t)}o(void 0)})}).call(this)}}},f=(0,r(28644).A)(d,function(){var t=this,e=t.$createElement;return(t._self._c||e)("AddStockOrderDialog",{ref:"contentRef",attrs:{editData:t.addStockOrderEditData},on:{"update:editData":function(e){t.addStockOrderEditData=e}
1,"update:edit-data":function(e){t.addStockOrderEditData=e}}})},[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.