PageSourceSearch

https://s1.sellfox.com/sellfox-web/2026-09/bundle.13106.d606beea.js

js sellfox.com collected 2026-09-24 08:46:59 UTC 116,055 bytes, 1 lines download raw bytes

1(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["13106"],{46367:function(e,t,i){let r;"u">typeof self&&self,r=i(74061),e.exports=(()=>{"use strict";var e={203:e=>{e.exports=r}},t={};function i(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="";var a={};return(()=>{if(i.r(a),i.d(a,{default:()=>n}),"u">typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(i.p=t[1])}var r=i(203);let o=function(e,t,i,r,a){var o,n="function"==typeof e?e.options:e;if(t&&(n.render=t,n.staticRenderFns=i,n._compiled=!0),r&&(n.functional=!0),a&&(n._scopeId="data-v-"+a),o)if(n.functional){n._injectStyles=o;var s=n.render;n.render=function(e,t){return o.call(t),s(e,t)}}else{var l=n.beforeCreate;n.beforeCreate=l?[].concat(l,o):[o]}return{exports:e,options:n}}(i.n(r)().extend({name:"UiTag",props:{text:{type:String,required:!0},closable:Boolean,disableTransitions:Boolean,size:{type:String,default:"middle"},type:{type:String,default:"success"}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}}}),function(){var e=this._self._c;return this._self._setupProxy,this.disableTransitions?e("span",{class:["myj-tag","myj-tag-color-".concat(this.type),"myj-tag-".concat(this.size)],on:{click:this.handleClick}},[e("span",[this._v(this._s(this.text))]),this.closable?e("i",{staticClass:"icon_close_kong myj-tag-icon",on:{click:this.handleClose}}):this._e()]):e("transition",{attrs:{name:"myj-tag"}},[e("span",{class:["myj-tag","myj-tag-color-".concat(this.type),"myj-tag-".concat(this.size)],on:{click:this.handleClick}},[e("span",[this._v(this._s(this.text))]),this.closable?e("i",{staticClass:"icon_close_kong myj-tag-icon",on:{click:this.handleClose}}):this._e()])])},[],!1,"743294c8").exports;o.install=function(e){e.component(o.name,o)};let n=o})(),a})()},25615:function(e,t,i){"use strict";i.d(t,{A:function(){return a}});var r={name:"CascadeDecorator",components:{Cascade:i(43480).A},props:{value:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}}},methods:{handleChange:function(e){this.$emit("input",e),this.$emit("change",e)},initData:function(){this.$refs.selector.setData(this.value||[])}},mounted:function(){this.initData()},watch:{value:{handler:function(){this.initData()}},options:{deep:!0,handler:function(){this.initData()}}}},a=(0,i(28644).A)(r,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("cascade",e._b({ref:"selector",attrs:{options:e.options,filter:!0},on:{"on-change":function(t){return e.handleChange(t)}},scopedSlots:e._u([{key:"single_other",fn:function(t){var r=t.item;return i("div",{staticClass:"d_ib single_other"},[r.codeLower?i("div",{staticClass:"flag_box mr_4"},[i("i",{class:"icon_flag mr_5 icon_flag_"+r.codeLower})]):e._e()])}}])},"cascade",e.$attrs,!1))},[],!1,null,"1feb5fd2",null).exports},3814:function(e,t,i){"use strict";i.d(t,{A:function(){return a}}),i(62394),i(13951);var r={name:"ShopSelector",components:{MultiShopSelectorNew:i(67901).A},props:{value:{type:Array,default:function(){return[]}},shift:{type:Boolean,default:!1}},methods:{handleChange:function(e){this.$emit("input",e.shopIds),this.$emit("change",e)},clearFilterData:function(){var e;null==(e=this.$refs.selector)||e.clearFilterData()},initData:function(){Array.isArray(this.value)?this.$refs.selector.setData(this.value):this.$refs.selector.setData(this.value?this.value.split(","):[])}},mounted:function(){this.initData()},watch:{value:{handler:function(){this.initData()}}}},a=(0,i(28644).A)(r,function(){var e=this,t=e.$createElement;return(e._self._c||t)("MultiShopSelectorNew",e._g(e._b({ref:"selector",attrs:{value:e.value,shift:e.shift},on:{"on-change":function(t){return e.handleChange(t)}
1}},"MultiShopSelectorNew",e.$attrs,!1),e.$listeners))},[],!1,null,null,null).exports},16758:function(e,t,i){"use strict";i.d(t,{A:function(){return s}}),i(77949),i(62394),i(99583),i(13951),i(5092),i(47424),i(59622),i(19592),i(15456),i(71934),i(21927),i(48741),i(72860);var r,a,o="DOMMouseScroll";"onwheel"in document.createElement("div")?o="wheel":void 0!==document.onmousewheel&&(o="mousewheel");var n=0,s=(0,i(28644).A)({name:"ListMouseWheelMixins",data:function(){return{vxeTableDom:null,scrollDom:null,scrollDoms:[]}},methods:{addMousewheelEvent:function(e){var t=this,i=e.pageSize,r=e.forceOn,a=e.customClass,s=e.vxeTableDom,l=e.options;if(s&&(i>20||r)){var c,u=(l||{}).isScrollTop;n=0,this.vxeTableDom=s,(void 0===u||u)&&setTimeout(function(){var e,i,r=((null==(e=t.vxeTableDom)?void 0:e.getScroll())||{}).scrollLeft;null==(i=t.vxeTableDom)||i.scrollTo(void 0===r?0:r,0)},50),this.removeWheelEvent(),this.scrollDom=document.querySelector(a?".".concat(a):".PageListMouseWheelClass"),null==(c=this.scrollDom)||c.addEventListener(o,this.mousewheelEvent)}},isTableBodyTriggerEvent:function(e){for(var t=e;t;){var i=function(){var e,i=(null!=(e=t.className)?e:"").replace(/\s+/g,",").split(",");return["vxe-table--header-wrapper","vxe-table--footer-wrapper"].some(function(e){return i.includes(e)})?{v:!1}:i.includes("vxe-table")?{v:!0}:void(t=t.parentNode||null)}();if("object"==(i&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i))return i.v}return!1},mousewheelEvent:function(e){if(this.isTableBodyTriggerEvent(e.target)&&!e.shiftKey&&(0===e.deltaX||0!==e.deltaY)){var t=-e.wheelDelta||e.detail,i=0,r=this.scrollDom.querySelector(".vxe-table--main-wrapper .vxe-table--body-wrapper.body--wrapper");if(t>0){if(r.scrollHeight-r.scrollTop<=r.clientHeight)return;i=100}if(t<0){if(r.scrollTop<=0)return;i=-100}if(n+=1,null==(a=this.vxeTableDom)?void 0:a.scrollTo){var a,s,l,c=Math.abs(t)/("DOMMouseScroll"===o?30:120),u=null==(s=this.vxeTableDom)?void 0:s.getScroll(),h=u.scrollTop,d=u.scrollLeft;null==(l=this.vxeTableDom)||l.scrollTo(void 0===d?0:d,(void 0===h?0:h)+i*c*((9+n)/10)).then(function(){n=0}),e.preventDefault()}}},addMousewheelEventListener:function(e,t,i){if((e>20||t)&&(i?this.scrollDoms=document.querySelectorAll(".".concat(i," .vxe-table--body-wrapper")):this.scrollDoms=document.querySelectorAll(".PageListMouseWheelClass .vxe-table--body-wrapper"),this.scrollDoms)){this.removeWheelEvent();var r=!0,a=!1,n=void 0;try{for(var s,l=this.scrollDoms[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value;if(c.className.includes("vxe-table--body-wrapper")&&c.className.includes("body--wrapper")){this.scrollDom=c;var u=this.scrollDom.scrollTop;this.scrollDom.scrollTop=u+1}c.addEventListener(o,this.mousewheelHandle)}}catch(e){a=!0,n=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw n}}}},mousewheelHandle:function(e){var t=this;if(!e.shiftKey&&(0===e.deltaX||0!==e.deltaY)){var i=-e.wheelDelta||e.detail,r=null==(s=this.scrollDom)?void 0:s.scrollTop,a=0;if(i>0){if(r>=this.scrollDom.scrollHeight-this.scrollDom.clientHeight)return void e.preventDefault();a=100}if(i<0){if(r<=0)return void e.preventDefault();a=-100}var n=Math.abs(i)/("DOMMouseScroll"===o?30:120);if(this.scrollDom.scrollTop=r+a,n>1)for(var s,l,c,u=1;u<=n-1;u++)window.setTimeout(function(){l=t.scrollDom.scrollHeight-t.scrollDom.clientHeight,(c=t.scrollDom.scrollTop+a)>=l?c=l:c<=0&&(c=0),t.scrollDom.scrollTop=c},10);e.preventDefault()}},removeWheelEvent:function(){if(this.vxeTableDom){var e;null==(e=this.scrollDom)||e.removeEventListener(o,this.mousewheelEvent)}else if(this.scrollDoms&&this.scrollDoms.length){var t=!0,i=!1,r=void 0;try{for(var a,n=this.scrollDoms[Symbol.iterator]();!(t=(a=n.next()).done);t=!0)a.value.removeEventListener(o,this.mousewheelHandle)}catch(e){i=!0,r=e}finally{try{t||null==n.return||n.return()}finally{if(i)throw r}}}}},beforeDestroy:function(){this.removeWheelEvent()}},r,a,!1,null,null,null).exports},63780:function(e,t,i){"use strict";i.d(t,{A:function(){return l}}),i(5092),i(937),i(77949),i(62394),i(13951);var r=i(59335),a=i(28644);function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){var r;r=i[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}
1)(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}var s={name:"TabBarLeft",components:{TabBarLeftItem:(0,a.A)({name:"TabBarLeftItem",props:{cItem:{type:Object,default:function(){return{}}},pItem:{type:Object,default:function(){return{}}},customClass:{type:String,default:""},currentActive:{type:String}},computed:{containerClass:function(){var e=this.cItem.preActiveValue===this.currentActive||this.cItem.value===this.currentActive;return"title_".concat(this.cItem.class," ").concat(this.customClass," ").concat(e?"active":""," ").concat(this.cItem.childList?"readonly":"")}},methods:{onItemClick:function(){if(!this.cItem.childList||this.cItem.isActiveFirstChild)if(this.cItem.isActiveFirstChild){var e,t;this.$emit("onItemClick",null==(t=this.cItem.childList)||null==(e=t[0])?void 0:e.preActiveValue,this.cItem,this.pItem)}else this.$emit("onItemClick",this.cItem.preActiveValue,this.cItem,this.pItem)},onLinkClick:function(e){0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey?e.stopPropagation():e.preventDefault()}}},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"menu_title flex between",class:e.containerClass,on:{click:function(t){return e.onItemClick()}}},[e.cItem.link?i("a",{staticClass:"tab_bar_left_link",attrs:{href:e.cItem.link},on:{click:e.onLinkClick}},[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip:light.isShow",value:e.cItem.name,expression:"cItem.name",arg:"light",modifiers:{isShow:!0}
1}],staticClass:"line_clamp d_ib title_txt",class:{max_width_100px:!e.cItem.icon,max_width_80:e.cItem.icon}},[e._v("\n            "+e._s(e.cItem.name)+"\n            "),e.cItem.tips?i("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.cItem.tips,expression:"cItem.tips"}],staticClass:"help-icon icon_sf_help"}):e._e(),e._v(" "),e.$slots.customIcon?e._t("customIcon"):e._e()],2),e._v(" "),i("div",{staticClass:"flex center_align"},[!0!==e.cItem.hideNum&&e.$utils.isNotEmpty(e.cItem.num)?[i("span",{staticClass:"num",class:e.cItem.fontColor},[e._v(e._s(e.cItem.num))])]:e.cItem.icon?i("i",{class:e.cItem.icon}):e._e()],2)]):[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip:light.isShow",value:e.cItem.name,expression:"cItem.name",arg:"light",modifiers:{isShow:!0}}],staticClass:"line_clamp d_ib title_txt",class:{max_width_100px:!e.cItem.icon,max_width_80:e.cItem.icon}},[e._v("\n            "+e._s(e.cItem.name)+"\n            "),e.cItem.tips?i("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.cItem.tips,expression:"cItem.tips"}],staticClass:"help-icon icon_sf_help"}):e._e(),e._v(" "),e.$slots.customIcon?e._t("customIcon"):e._e()],2),e._v(" "),i("div",{staticClass:"flex center_align"},[!0!==e.cItem.hideNum&&e.$utils.isNotEmpty(e.cItem.num)?[i("span",{staticClass:"num",class:e.cItem.fontColor},[e._v(e._s(e.cItem.num))])]:e.cItem.icon?i("i",{class:e.cItem.icon}):e._e()],2)]],2)},[],!1,null,"1035d5fc",null).exports},data:function(){return{treeData:[],defaultActive:""}},props:{options:{type:Array,default:function(){return[]}},currentActive:{type:String}},computed:o({},(0,r.mapState)("Socket",{permissionList:function(e){return e.permissionList}})),watch:{options:{immediate:!0,handler:function(){this.treeData=this.getHasPurviewData(this.options)}},currentActive:{immediate:!0,handler:function(){this.currentActiveFn(this.currentActive)}}},methods:{permissionFilter:function(e){var t=this;return this.$isArray(e)?!e.length||e.some(function(e){return -1!==t.permissionList.indexOf(e)}):this.$isUndefined(e)||this.permissionList.indexOf(e)>-1},getHasPurviewData:function(e){var t=this,i=[];return this.$isArray(e)?e.forEach(function(e){if(t.$isArray(null==e?void 0:e.childList)){var r,a,s=[];null==e||null==(a=e.childList)||null==(r=a.forEach)||r.call(a,function(i){t.permissionFilter(i.permission)&&s.push(n(o({},i),{preActiveValue:"".concat(e.value,",").concat(i.value)}))}),e.childList=s}t.permissionFilter(e.permission)&&i.push(n(o({},e),{preActiveValue:e.value}))}):i=this.$dcopy(e),i},select:function(e){e!==this.defaultActive&&(this.defaultActive=e,this.$emit("click",e.split(",")))},currentActiveFn:function(e){return this.defaultActive=e,""},setData:function(e){void 0!==e&&this.currentActiveFn(e)}}},l=(0,a.A)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab_comp"},e._l(e.treeData,function(t,r){return i("div",{key:""+t.value+t.name+r,staticClass:"menu-item",class:t.class},[i("TabBarLeftItem",{attrs:{cItem:t,currentActive:e.defaultActive},on:{onItemClick:e.select}},[e._t("customIcon",null,{slot:"customIcon",item:t})],2),e._v(" "),t.childList?i("div",{staticClass:"sub_menu_item"},[e._l(t.childList,function(r,a){return[i("TabBarLeftItem",{key:""+r.value+r.name+a,attrs:{customClass:"sub_menu_title",cItem:r,pItem:t,currentActive:e.defaultActive},on:{onItemClick:e.select}})]})],2):e._e(),e._v(" "),t.showSplitLine?i("div",{staticClass:"split-line"}):e._e()],1)}),0)},[],!1,null,"28fcaab6",null).exports},38067:function(e,t,i){"use strict";i.d(t,{A:function(){return o}}),i(5092),i(937),i(56293);var r=i(94626),a={components:{Pagination:i(2576).A},props:{visible:{type:Boolean,default:!1},dialogClassName:{type:String,default:null},dataList:{type:Array,default:function(){return[]}},paginator:{type:Object,default:function(){return{pageNo:1,pageSize:20}}}},emits:["relateCost","pageChange","close"],watch:{visible:{handler:function(e){this.modalVisible=e},immediate:!0}},computed:{},data:function(){return{modalVisible:!1,columnsConfig:r.Hf,selectedRows:[]}},methods:{handleSubmit:function(){var e=0,t=0,i=0,r=0;this.selectedRows.forEach(function(e){var a=e.quantity,o=e.unitPurchaseCost,n=e.unitTransportCost;t+=a,i+=o*a,r+=n*a}),e=((i+r)/t).toFixed(4),this.$emit("relateCost",e),this.$emit("close")},handleSelectChange:function(e){var t=e.records;this.selectedRows=t},doClose:function(){this.selectedRows=[],this.$emit("update:visible",!1),this.$emit("close")},handlePageChange:function(e){var t=e.pageNo,i=e.pageSize;this.$emit("pageChange",{pageNo:t,pageSize:i})}},created:function(){}},o=(0,i(28644).A)(a,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{"destroy-on-close":"",width:"900px",modal:!1,"append-to-body":!1,visible:e.modalVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,"custom-class":e.dialogClassName},on:{"update:visible":function(t){e.modalVisible=t},closed:e.doClose}},[i("template",{slot:"title"},[i("div",{staticClass:"dialog_header"},[e._v(" "+e._s(e.$t("main.product.order.remove.entry.associated.batch.cost.title"))+" ")])]),e._v(" "),i("p",{staticClass:"mb_10 f_black_major"},[e._v(" "+e._s(e.$t("main.product.order.remove.entry.associated.batch.cost.tip"))+" ")]),e._v(" "),i("vxe-grid",{attrs:{columns:e.columnsConfig,data:e.dataList},on:{"checkbox-all":e.handleSelectChange,"checkbox-change":e.handleSelectChange}}),e._v(" "),i("section",{staticClass:"page_paging layout_box_footer"},[i("Pagination",{attrs:{paginator:e.paginator},on:{"page-change":e.handlePageChange}})],1),e._v(" "),i("section",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.doClose}},[e._v(e._s(e.$t("common.cancel")))]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:!e.selectedRows.length},on:{click:e.handleSubmit}},[e._v(e._s(e.$t("main.product.order.remove.entry.associated.batch.cost.confirm")))])],1
1)],2)},[],!1,null,null,null).exports},51960:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return tt}}),i(62394),i(99843),i(31731),i(5092),i(10327),i(21927),i(48741),i(72860),i(937),i(67411),i(20767);var r,a,o,n=i(80534),s=i(63780),l=i(74943),c=i(52559),u=i(30799),h=i(94768),d=i(42271);function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var p=function(e){var t=e.cellValue;return(0,l.iYP)(t)},f=window.moment().subtract(6,"days").format("YYYY-MM-DD"),v=window.moment().subtract(0,"days").format("YYYY-MM-DD"),y=d.GQ,b=[{label:(0,u.Tl)("main.warehouse.remove.receipt.exclusive.stock.use.fnsku"),value:y.fnsku},{label:(0,u.Tl)("main.warehouse.remove.receipt.exclusive.stock.use.shop.fnsku"),value:y.shopFnsku},{label:(0,u.Tl)("main.warehouse.remove.receipt.exclusive.stock.use.shop"),value:y.shop},{label:(0,u.Tl)("main.warehouse.remove.receipt.exclusive.stock.not.use"),value:y.share}],g=[{label:(0,u.Tl)("main.components.exclusive.type.select.fnsku.exclusive"),value:y.fnsku},{label:(0,u.Tl)("main.components.exclusive.type.select.shop.fnsku.exclusive"),value:y.shopFnsku},{label:(0,u.Tl)("main.components.exclusive.type.select.shop.exclusive"),value:y.shop}],_="Remove_In_Warehouse_Order_Filter_Cache",w="draft",O="waitDelivery",S="complete",k="invalid",T=(m(r={},"all","-1"),m(r,w,"0"),m(r,O,"1"),m(r,S,"2"),m(r,k,"3"),r),C=[{name:(0,u.Tl)("common.all"),value:T.all,num:0},{name:(0,u.Tl)("main.warehouse.remove.receipt.status.draft"),value:T[w],num:0},{name:(0,u.Tl)("main.warehouse.remove.receipt.status.pending.receipt"),value:T[O],num:0},{name:(0,u.Tl)("main.warehouse.remove.receipt.status.completed"),value:T[S],num:0},{name:(0,u.Tl)("main.warehouse.remove.receipt.status.invalid"),value:T[k],num:0}];(0,u.Tl)("main.warehouse.remove.receipt.action.set.rule");var D={options:h.Ay.getSiteCascadeList(),props:{multiple:!0,expandTrigger:"hover"},showAllLevels:!1,filterable:!0,collapseTags:!0,placeholder:(0,u.Tl)("common.site.all"),visibleClass:"CountryOptions"},R="removeOrderNo",P="orderNo",$={width:315,searchFiledOptions:[{label:(0,u.Tl)("common.order.no"),multiSearchType:"exact",value:R,multiType:!0},{label:(0,u.Tl)("common.product.name"),multiSearchType:"exact",value:"commodityName",multiType:!0},{label:"SKU",multiSearchType:"exact",value:"commoditySku",multiType:!0},{label:"MSKU",multiSearchType:"exact",value:"sellerSku",multiType:!0},{label:"FNSKU",multiSearchType:"exact",value:"fnsku",multiType:!0},{label:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),multiSearchType:"exact",value:P,multiType:!0},{label:(0,u.Tl)("main.warehouse.remove.receipt.column.custom.order.no"),multiSearchType:"exact",value:"customerOrderNo",multiType:!0},{label:(0,u.Tl)("main.warehouse.remove.receipt.column.tracking.no"),multiSearchType:"exact",value:"trackingNumber",multiType:!0}],placeholder:(0,u.Tl)("common.search.content"),searchFiledWidth:115,searchTypeShow:!0},N="convShipmentDate",x=[{label:(0,u.Tl)("main.warehouse.remove.receipt.date.type.shipment.time"),value:N},{label:(0,u.Tl)("main.warehouse.remove.receipt.date.type.update.time"),value:"updateTime"},{label:(0,u.Tl)("main.warehouse.remove.receipt.date.type.completed.time"),value:"completedDate"}],E={dateType:"daterange",valueFormat:"yyyy-MM-dd",startPlaceholder:(0,u.Tl)("main.warehouse.remove.receipt.placeholder.start.date"),endPlaceholder:(0,u.Tl)("main.warehouse.remove.receipt.placeholder.end.date"),dateVal:[f,v]},I={warehouse:"warehouse",country:"country",shop:"shop",dateType:"dateType",dateRange:"dateRange",search:"search"},M=[{title:(0,u.Tl)("common.image"),field:"mainImg",width:(0,c.n)("60"),slots:{default:"commodityMainImg_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.product.name.sku"),field:"commodityNameSku",width:120,slots:{default:"commodityInfoNameSku_default"}},{title:"MSKU/FNSKU",field:"commodityMskuFnsku",width:120,slots:{default:"commodityInfoMskuFnsku_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.inventory.attribute"),field:"disposition",width:80},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.shipped.quantity"),field:"shipmentsQty",width:60},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.received.good.quantity"),field:"receivedGoodQty",width:80},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.received.defective.quantity"),field:"receivedBadQty",width:80}],B={edit:"edit",detail:"detail",additionRecord:"additionRecord",modifyPurchasePrice:"modifyPurchasePrice",saveAndSubmit:"saveAndSubmit",submit:"submit",print:"print",printSku:"printSku",printFnsku:"printFnsku",printOrderTemplate:"printOrderTemplate",receipt:"receipt",cancel:"cancel",endResidueArrival:"endResidueArrival",batchEdit:"batchEdit",batchDetail:"batchDetail",batchSaveAndSubmit:"batchSaveAndSubmit",batchSubmit:"batchSubmit",batchPr
1int:"batchPrint",batchReceipt:"batchReceipt",batchModifyWarehouse:"batchModifyWarehouse",batchModifyPurchasePrice:"batchModifyPurchasePrice",batchCancel:"batchCancel"},A=(m(a={},B.edit,(0,u.Tl)("main.warehouse.remove.receipt.action.edit")),m(a,B.detail,(0,u.Tl)("main.warehouse.remove.receipt.action.detail")),m(a,B.additionRecord,(0,u.Tl)("main.warehouse.remove.receipt.action.cost.supplement")),m(a,B.modifyPurchasePrice,(0,u.Tl)("main.warehouse.remove.receipt.action.modify.purchase.price")),m(a,B.submit,(0,u.Tl)("common.submit")),m(a,B.print,(0,u.Tl)("main.warehouse.remove.receipt.action.print")),m(a,B.printSku,(0,u.Tl)("main.warehouse.remove.receipt.action.print.sku.by.template")),m(a,B.printFnsku,(0,u.Tl)("main.warehouse.remove.receipt.action.print.fnsku.by.template")),m(a,B.printOrderTemplate,(0,u.Tl)("main.warehouse.remove.receipt.action.print.order.by.template")),m(a,B.receipt,(0,u.Tl)("main.warehouse.remove.receipt.action.receipt")),m(a,B.cancel,(0,u.Tl)("main.warehouse.remove.receipt.action.invalidate")),m(a,B.endResidueArrival,(0,u.Tl)("main.warehouse.remove.receipt.action.end.remaining.arrival")),a),j=[{type:B.batchEdit,title:(0,u.Tl)("main.warehouse.remove.receipt.action.edit"),permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{type:B.batchDetail,title:(0,u.Tl)("main.warehouse.remove.receipt.action.detail"),permission:""},{type:B.batchSaveAndSubmit,title:(0,u.Tl)("main.warehouse.remove.receipt.action.save.or.submit"),permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{type:B.batchSubmit,title:(0,u.Tl)("common.submit"),permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{type:B.batchModifyWarehouse,title:(0,u.Tl)("main.warehouse.remove.receipt.action.modify.warehouse"),permission:"MOD_REMOVE_INBOUND_ORDER_UPDATE_WAREHOUSE"},{type:B.batchReceipt,title:(0,u.Tl)("main.warehouse.remove.receipt.action.receipt"),permission:"MOD_REMOVE_INBOUND_ORDER_ARRIVAL"},{type:B.additionRecord,title:(0,u.Tl)("main.warehouse.remove.receipt.action.cost.supplement"),permission:"MOD_REMOVE_INBOUND_ORDER_END_ADJUSTMENT"},{type:B.batchModifyPurchasePrice,title:(0,u.Tl)("main.warehouse.remove.receipt.action.modify.purchase.price"),permission:"MOD_REMOVE_INBOUND_ORDER_PURCHASE_UPDATE"},{type:B.batchCancel,title:(0,u.Tl)("main.warehouse.remove.receipt.action.invalidate"),permission:"MOD_REMOVE_INBOUND_ORDER_CANCEL"}],F=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"removeInboundOrderNo",minWidth:"120",formatter:p},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.custom.order.no"),field:"customerOrderNo",minWidth:"120",formatter:p},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.receiving.warehouse"),field:"warehouseName",minWidth:"120",formatter:p},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.product.name.sku"),field:"commodityNameSku",minWidth:"180",slots:{default:"commodityNameSku_default"}},{title:"MSKU/FNSKU",field:"commodityMSkuFnSku",minWidth:"180",slots:{default:"commodityMSkuFnSku_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.inventory.attribute"),field:"disposition",minWidth:"120",formatter:p},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.pending.receipt"),field:"waitReceivedQty",minWidth:"120",formatter:p},{title:(0,u.Tl)("main.components.exclusive.type.select.exclusive.type"),field:"exclusiveStock",minWidth:"180",slots:{header:"exclusiveStock_header",default:"exclusiveStock_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.received.good.quantity"),field:"receiptGoodCommodityQuantity",minWidth:"180",slots:{header:"receiptGoodCommodityQuantity_header",default:"receiptGoodCommodityQuantity_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.received.defective.quantity"),field:"receiptDefectiveCommodityQuantity",minWidth:"180",slots:{header:"receiptDefectiveCommodityQuantity_header",default:"receiptDefectiveCommodityQuantity_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.good.shelf"),field:"receiptGoodCommodityShelf",minWidth:"180",slots:{header:"receiptGoodCommodityShelf_header",default:"receiptGoodCommodityShelf_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.defective.shelf"),field:"receiptDefectiveCommodityShelf",minWidth:"180",slots:{header:"receiptDefectiveCommodityShelf_header",default:"receiptDefectiveCommodityShelf_default"}},{field:"operation",width:(0,c.n)("80"),title:(0,u.Tl)("common.operation"),align:"left",fixed:"right",params:{},slots:{default:"operation_default"}}],L=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.order.no"),field:"itemNo",minWidth:"120"},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.error.reason"),field:"message",minWidth:"240"}],W=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"itemNo",minWidth:"120"},{title:(0,u.Tl)("common.failure.reason"),field:"message",minWidth:"240"}],V=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"itemNo",minWidth:"120"},{title:(0,u.Tl)("common.failure.reason"),field:"message",minWidth:"240"}],U=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"itemNo",minWidth:"120"},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.product.name.sku"),field:"commodityNameSku",minWidth:"180",slots:{default:"commodityNameSku_default"}},{title:"MSKU/FNSKU",field:"commodityMskuFnsku",minWidth:"180",slots:{default:"commodityMskuFnsku_default"}},{title:(0,u.Tl)("common.failure.reason"),field:"message",minWidth:"360",slots:{default:"message_default"}}],z=(m(o={},T.all,[{value:B.detail,label:A[B.detail]},{value:B.submit,label:A[B.submit],permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{value:B.receipt,label:A[B.receipt],permission:"MOD_REMOVE_INBOUND_ORDER_ARRIVAL"},{value:B.cancel,label:A[B.cancel],permission:"MOD_REMOVE_INBOUND_ORDER_CANCEL"},{value:B.printSku,label:A[B.printSku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:A[B.printFnsku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:A[B.printOrderTemplate],permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"}]),m(o,T[w],[{value:B.detail,label:A[B.detail]},{value:B.edit,label:A[B.edit],permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{value:B.submit,label:A[B.submit],permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{value:B.printSku,label:A[B.printSku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:A[B.printFnsku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:A[B.printOrderTemplate],permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"},{value:B.cancel,label:A[B.cancel],permission:"MOD_REMOVE_INBOUND_ORDER_CANCEL"},{value:B.modifyPurchasePrice,label:A[B.modifyPurchasePrice],permission:"MOD_REMOVE_INBOUND_ORDER_PURCHASE_UPDATE"}]),m(o,T[O],[{value:B.detail,label:A[B.detail]},{value:B.edit,label:A[B.edit],permission:"MOD_REMOVE_INBOUND_ORDER_SAVE"},{value:B.receipt,label:A[B.receipt],permission:"MOD_REMOVE_INBOUND_ORDER_ARRIVAL"},{value:B.endResidueArrival,label:A[B.endResidueArrival],permission:"MOD_REMOVE_INBOUND_ORDER_END_ARRIVAL"},{value:B.printSku,label:A[B.printSku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:A[B.printFnsku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:A[B.printOrderTemplate],permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"},{value:B.cancel,label:A[B.cancel],permission:"MOD_REMOVE_INBOUND_ORDER_CANCEL"},{value:B.modifyPurchasePrice,label:A[B.modifyPurchasePrice],permission:"MOD_REMOVE_INBOUND_ORDER_PURCHASE_UPDATE"}]),m(o,T[S],[{value:B.detail,label:A[B.detail]},{value:B.printSku,label:A[B.printSku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:A[B.printFnsku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:A[B.printOrderTemplate],permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"},{value:B.additionRecord,label:A[B.additionRecord],permission:"MOD_REMOVE_INBOUND_ORDER_END_ADJUSTMENT"}]),m(o,T[k],[{value:B.detail,label:A[B.detail]},{value:B.printSku,label:A[B.printSku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:A[B.printFnsku],permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:A[B.printOrderTemplate],permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"}]),o),Q={title:(0,u.Tl)("main.warehouse.remove.receipt.action.print"),options:[{value:B.printSku,label:(0,u.Tl)("main.warehouse.remove.receipt.action.print.sku.by.template"),permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printFnsku,label:(0,u.Tl)("main.warehouse.remove.receipt.action.print.fnsku.by.template"),permission:"MOD_REMOVE_INBOUND_ORDER_PRINT"},{value:B.printOrderTemplate,label:(0,u.Tl)("main.warehouse.remove.receipt.action.print.order.by.template"),permission:"MOD_REMOVE_INBOUND_ORDER_INFO_PRINT"}]},G=[{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"itemNo",minWidth:"120"},{title:(0,u.Tl)("common.failure.reason"),field:"message",minWidth:"240"}],q=function(e){var t=e.cellValue;return(0,l.iYP)(t)},K=[{type:"checkbox",width:40,fixed:"left",params:{columnName:"checkbox",dynamicConfig:{exclude:!0}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"RemoveReceiptWarehouseOrderNo",minWidth:120,resizable:!0,params:{columnName:"RemoveReceiptWarehouseOrderNo",dynamicConfig:{}},slots:{default:"RemoveReceiptWarehouseOrderNo_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.custom.order.no"),field:"customerOrderNo",minWidth:110,resizable:!0,formatter:q,params:{columnName:"customerOrderNo",dynamicConfig:{}}},{title:(0,u.Tl)("common.order.no"),field:"removeOrderNo",minWidth:110,resizable:!0,formatter:q,params:{columnName:"removeOrderNo",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.site.shop"),field:"siteShopName",minWidth:110,resizable:!0,params:{columnName:"siteShopName",dynamicConfig:{}},slots:{default:"siteShopName_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.receiving.warehouse"),field:"warehouseName",minWidth:110,resizable:!0,formatter:q,params:{columnName:"warehouseName",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.product.info"),field:"commodityCode",minWidth:60,resizable:!0,params:{columnName:"commodityInfo",dynamicConfig:{}},slots:{default:"commodityInfo_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.total.shipped.quantity"),field:"totalShipmentsQty",minWidth:60,resizable:!0,formatter:q,params:{columnName:"totalShipmentsQty",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.total.received.quantity"),field:"totalReceivedQty",minWidth:60,resizable:!0,formatter:q,params:{columnName:"totalReceivedQty",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.carrier"),field:"carrier",minWidth:60,resizable:!0,formatter:q,params:{columnName:"carrier",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.tracking.no"),field:"trackingNumber",minWidth:120,resizable:!0,formatter:q,params:{columnName:"trackingNumber",dynamicConfig:{}},slots:{default:"trackingNumber_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.shipment.date"),field:"convShipmentDate",minWidth:120,resizable:!0,formatter:q,params:{columnName:"convShipmentDate",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.create.time"),field:"createTime",minWidth:120,resizable:!0,formatter:q,params:{columnName:"createTime",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.completed.time"),field:"completedDate",minWidth:120,resizable:!0,formatter:q,params:{columnName:"completedDate",dynamicConfig:{}}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.operation.time"),field:"updateTime",minWidth:120,resizable:!0,formatter:q,params:{columnName:"updateTime",dynamicConfig:{}}},{title:(0,u.Tl)("common.operation"),field:"operation",width:(0,c.n)("80"),fixed:"right",params:{columnName:"operation",dynamicConfig:{exclude:!0}},slots:{default:"operation_default"}}],H=i(76915);i(86201);var Y=i(25615),X=i(3814),J=i(50606),Z=i(38855),ee=i(52854),et=i(10937),ei=i(75254);function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}var ea={components:{CascadeDecorator:Y.A,VModelShopSelector:X.A,SearchBar:et.A,WarehouseSelectorNew:J.A,BaseDatePickerGroup:Z.A,SfSelect:ee.A},emits:["change","reset"],props:{data:Object},watch:{data:{handler:function(){this.filter=this.$dcopy(this.data),this.initField()},immediate:!0}},data:function(){return this.CountryOptions=D,{filter:{},datePickerConfig:E,searchOptions:$,baseDatePickerOptions:x,filterFieldType:I,warehouseType:3}},methods:{onFilterReset:function(){this.$emit("reset")},handleWarehouseChange:function(e){e.length?this.filter.warehouseIdList=e:delete this.filter.warehouseIdList,this.$emit("change",this.$dcopy(this.filter))},handleMarketplaceChange:function(e){e.length?this.filter.marketplaceIdList=e:delete this.filter.marketplaceIdList,this.$emit("change",this.$dcopy(this.filter))},handleShopChange:function(e){var t=e.shopIds,i=void 0===t?[]:t;i.length?this.filter.shopIdList=i:delete this.filter.shopIdList,this.$emit("change",this.$dcopy(this.filter))},handleDateChange:function(e,t){if(t===this.filterFieldType.dateType)this.filter.dateType=e;else{var i=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,i,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],o=!0,n=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){n=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(n)throw i}}return a}}(e)||function(e){if(e){if("string"==typeof e)return er(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return er(e,2)}}
1(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=i[0],a=i[1];this.filter.startDate=r,this.filter.endDate=a}this.$emit("change",this.$dcopy(this.filter))},handleSearchContentChange:function(e){var t=e.changeType,i=e.searchType,r=e.searchField,a=e.searchValue;this.filter.searchType=i,this.filter.searchField=r,this.filter.searchContents=(0,ei.y)(a,i),"noChange"!==t&&this.$emit("change",this.$dcopy(this.filter))},initField:function(){var e=this,t=this.filter,i=t.warehouseIdList,r=t.startDate,a=t.endDate,o=t.shopIdList,n=t.searchField,s=t.searchContents,l=t.searchType;this.$nextTick(function(){var t,c,u,h;null==(t=e.$refs.warehouseSelector)||t.setData(i||[]),null==(c=e.$refs.shopSelectRef)||c.initData(o),null==(u=e.$refs.baseDatePicker)||u.setData([r,a]),null==(h=e.$refs.searchBar)||h.setData({searchField:n,searchValue:s.join("%\xb1%"),searchType:l})})}}},eo=i(28644),en=(0,eo.A)(ea,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"filter_container"},[i("WarehouseSelectorNew",{ref:"warehouseSelector",attrs:{clearable:"",filterable:"",isMulti:"",isPermission:"",placeholder:e.$t("main.warehouse.remove.receipt.placeholder.receiving.warehouse"),"include-third-warehouse":!0,warehouseType:e.warehouseType},on:{"on-change":e.handleWarehouseChange}}),e._v(" "),i("CascadeDecorator",{attrs:{options:e.CountryOptions},on:{change:e.handleMarketplaceChange},model:{value:e.filter.marketplaceIdList,callback:function(t){e.$set(e.filter,"marketplaceIdList",t)},expression:"filter.marketplaceIdList"}}),e._v(" "),i("VModelShopSelector",{ref:"shopSelectRef",attrs:{shift:"",countryList:e.filter.marketplaceIdList},on:{change:e.handleShopChange},model:{value:e.filter.shopIdList,callback:function(t){e.$set(e.filter,"shopIdList",t)},expression:"filter.shopIdList"}}),e._v(" "),i("BaseDatePickerGroup",{ref:"baseDatePicker",attrs:{pickerConfig:e.datePickerConfig,pickWidth:"200px"},on:{"on-change":function(t){return e.handleDateChange(t,e.filterFieldType.dateRange)}}},[i("SfSelect",{attrs:{options:e.baseDatePickerOptions},on:{"on-change":function(t){return e.handleDateChange(t,e.filterFieldType.dateType)}},model:{value:e.filter.dateType,callback:function(t){e.$set(e.filter,"dateType",t)},expression:"filter.dateType"}})],1),e._v(" "),i("SearchBar",{ref:"searchBar",attrs:{options:e.searchOptions},on:{"on-change":e.handleSearchContentChange}}),e._v(" "),i("el-button",{staticClass:"search-more-reset",attrs:{type:"text"},on:{click:e.onFilterReset}},[e._v(e._s(e.$t("common.reset")))]),e._v(" "),i("div",{staticClass:"active_btns"},[e._t("btn")],2)],1)},[],!1,null,null,null).exports;i(47424),i(59622),i(37040),i(18577),i(25259),i(915),i(13951),i(46491);var es=i(59335),el=i(11991),ec=i(67915),eu=i(75899),eh=i(45427),ed=i(58641),em=i(37870),ep=i(16758),ef=i(58604),ev=i(60019),ey=i(56184),eb=i(8757),eg=i(335),e_=i(30969),ew=i(2576),eO=i(80009),eS=i(57741);i(93893),i(75038);var ek=i(9527),eT=i(47190),eC=i(53169);function eD(e,t,i,r,a,o,n){try{var s=e[o](n),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function eR(e){return function(){var t=this,i=arguments;return new Promise(function(r,a){var o=e.apply(t,i);function n(e){eD(o,r,a,n,s,"next",e)}function s(e){eD(o,r,a,n,s,"throw",e)}n(void 0)})}}function eP(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function e$(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){eP(e,t,i[t])})}return e}function eN(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}
vendor: 1,106 bytes, line 1
1)(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}function ex(e,t){var i,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(n,"next",{value:l(0)}),s(n,"throw",{value:l(1)}),s(n,"return",{value:l(2)}),"function"==typeof Symbol&&s(n,Symbol.iterator,{value:function(){return this}}),n;function l(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var eE={components:{ShelfRemoteSelect:eT.A,ErrorDialog:eh.A,PopoverContainer:ek.A,SfSelect:ee.A},emits:["close","refresh"],props:{visible:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},title:{type:String,default:function(){return this.$t("main.warehouse.remove.receipt.batch.receipt")}}},watch:{visible:{handler:function(e){this.dialogVisible=e},immediate:!0},data:{handler:function(e){this.initTableList(this.$dcopy(e))},immediate:!0}},computed:{},data:function(){return{columns:F,tableList:[],dialogVisible:!1,taskId:null,errorDialog:{visible:!1,data:null,successCount:0,failCount:0},batchReceiveErrorListDialogColumns:U,exclusiveStockRowOptions:g,exclusiveStockBatchOptions:b,EXCLUSIVE_STOCK_TYPE:y,exclusiveStockBatchValue:""}},methods:{handleConfirm:function(){return eR(function(){var e,t,i,r,a,o;return ex(this,function(n){switch(n.label){case 0:if(t=(e=this.validatorTableList()).res,i=e.msg,!t)return this.$message.error(i),[2];this.$loading(),r={arrivalInfoList:this.tableList.map(function(e){var t=e.id,i=e.receivedGoodQty,r=e.receivedBadQty,a=e.receivedGoodShelf,o=e.receivedBadShelf,n=e.waitReceivedQty,s=e.exclusiveType;return 0===n?null:{removeInboundOrderItemId:t,receivedGoodQty:i,receivedBadQty:r,receivedGoodShelf:a,receivedBadShelf:o,exclusiveType:s}}).filter(Boolean)},n.label=1;case 1:return n.trys.push([1,3,,4]),a=this,[4,this.$http.removeReceiptWarehouseOrderBatchReceive(r)];case 2:return a.taskId=n.sent(),this.pollingTask(),[3,4];case 3:return o=n.sent(),this.$message.handle(o),this.$loading().close(),[3,4];case 4:return[2]}})}).call(this)},pollingTask:function(){return eR(function(){var e,t,i,r;return ex(this,function(a){switch(a.label){case 0:if(e=this,!this.taskId)return this.$loading().close(),[2];t=0,i=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.$http.checkProgress({uuid:this.taskId})];case 2:return t=(i=a.sent()).code,[3,4];case 3:return r=a.sent(),this.$message({message:this.$t("main.warehouse.remove.receipt.sync.failed.with.reason",{reason:r.message}),type:"error"}),this.$loading().close(),[2];case 4:switch(t){case 0:setTimeout(this.pollingTask,1e3);break;case 1:i.data.length?this.handleShowErrorList(i):(this.$message.success(this.$t("main.warehouse.remove.receipt.receipt.success")),this.$emit("refresh"),this.handleDialogClose()),this.$loading().close();break;default:setTimeout(function(){i&&(e.handleShowErrorList(i),e.$loading().close())},599)}return[2]}})}).call(this)},handleRemoveOrder:function(e){this.tableList.splice(e,1)},getRecommendShelfForStockIn:function(e){return eR(function(){var t;return ex(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.$http.getRecommendShelfForStockIn(e)];case 1:return[2,i.sent()];case 2:return t=i.sent(),this.$message.handle(t),[2,void 0];case 3:return[2]}})}).call(this)},getComputedExclusiveType:function(e){return null==e||""===e?y.share:Number(e)},getRecommendShelfPlatform:function(e){return e.shopId?eC.RE:eC.Er},buildRecommendShelfItemParam:function(e,t){var i,r=this.getComputedExclusiveType(e.exclusiveType),a=e.fnSku||e.fnsku||"",o=(eP(i={},y.share,{shopId:"",fnsku:""}),eP(i,y.shop,{shopId:e.shopId,fnsku:""}),eP(i,y.shopFnsku,{shopId:e.shopId,fnsku:a}),eP(i,y.fnsku,{shopId:0,fnsku:a}),i)[r]||{shopId:e.shopId,fnsku:a},n={commodityId:e.commodityId,warehouseId:e.warehouseId,shopId:o.shopId,platform:this.getRecommendShelfPlatform(o),fnsku:o.fnsku,exclusiveType:r};return void 0!==t&&(n.shelfType=t),n},buildShelfSearchParams:function(e,t){var i=this;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e$({},i.buildRecommendShelfItemParam(e,t),r)]}},getRecommendShelfMapKey:function(e){var t=this.buildRecommendShelfItemParam(e);return(0,eC.LN)({commodityId:t.commodityId,platform:t.platform||eC.Er,shopId:t.shopId||0,fnSku:t.fnsku,warehouseId:t.warehouseId,exclusiveType:t.exclusiveType},{isExclusiveType:!0,covertShopId:!0})},getRecommendShelfForStockInV2:function(e){return eR(function(){var t;return ex(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.$http.recommendShelfForStockInV2(e)];case 1:return[2,i.sent()];case 2:throw t=i.sent(),this.$message.handle(t),t;case 3:return[2]}})}).call(this)},getRecommendShelfRows:function(){var e=this;return this.tableList.filter(function(t){return!t.isParent&&!e.noNeedReceive(t)})},getRecommendShelfParams:function(e){var t=this;return this.getRecommendShelfRows().map(function(i){return t.buildRecommendShelfItemParam(i,e)})},getRecommendShelfOptionValue:function(e,t){if(!(null==t?void 0:t.shelfId))return null;var i,r=null==e||null==(i=e.options)?void 0:i.find(function(e){return String(e.shelfId)===String(t.shelfId)});return(null==r?void 0:r.value)||null},applyRecommendShelfOptionsToRow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(null==t?void 0:t.available)||{},r=(null==t?void 0:t.defective)||{},a={placeholder:this.$t("common.select.placeholder"),clearable:!0,filterable:!0,includeAll:!0};this.$set(e,"availableShelfOptions",eN(e$({},a),{options:this.$utils.setShelfSelectNew(i.related,{otherKey:"shelfId"})})),this.$set(e,"defectiveShelfOptions",eN(e$({},a),{options:this.$utils.setShelfSelectNew(r.related,{otherKey:"shelfId"})}))},refreshShelfOptionsByRows:function(e){return eR(function(){var t,i,r,a;return ex(this,function(o){switch(o.label){case 0:if(t=this,!e.length)return[2];return i=e.map(function(e){return t.buildRecommendShelfItemParam(e)}),[4,this.getRecommendShelfForStockIn(i)];case 1:return r=o.sent()||[],a=new Map,r.forEach(function(e){a.set(t.getRecommendShelfMapKey(e),e)}),e.forEach(function(e){t.applyRecommendShelfOptionsToRow(e,a.get(t.getRecommendShelfMapKey(e)))}),[2]}})}).call(this)},initTableList:function(e){return eR(function(){var t,i,r,a,o;return ex(this,function(n){switch(n.label){case 0:if(t=this,!e.length)return this.tableList=[],[2];this.$loading(),e.forEach(function(e){e.isParent||(e.receivedGoodQty=null,e.receivedBadQty=null,e.receivedGoodShelf=null,e.receivedBadShelf=null,void 0===e.exclusiveType&&t.$set(e,"exclusiveType",null))}),this.tableList=e,i=[],e.forEach(function(e){e.isParent||i.push(t.buildRecommendShelfItemParam(e))}),r=[],n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.getRecommendShelfForStockIn(i)];case 2:return r=n.sent()||[],[3,5];case 3:return a=n.sent(),this.$message.handle(a),[3,5];case 4:return this.$loading().close(),[7];case 5:return o=new Map,r.forEach(function(e){o.set(t.getRecommendShelfMapKey(e),e)}),e.forEach(function(e){t.applyRecommendShelfOptionsToRow(e,o.get(t.getRecommendShelfMapKey(e)))}),[2]}})}).call(this)},handleAllGoodReceive:function(){var e=this;this.tableList.forEach(function(t){var i=t.waitReceivedQty;0!==i&&e.$set(t,"receivedGoodQty",i)})},handleAllBadReceive:function(){var e=this;this.tableList.forEach(function(t){var i=t.waitReceivedQty;0!==i&&e.$set(t,"receivedBadQty",i)})},handleRecommendGoodShelf:function(){return eR(function(){var e,t,i;return ex(this,function(r){switch(r.label){case 0:if(e=this,!(t=this.getRecommendShelfParams(0)).length)return[2];i=[],r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.getRecommendShelfForStockInV2(t)];case 2:return i=r.sent(),[3,4];case 3:return r.sent(),[2];
1case 4:return this.getRecommendShelfRows().forEach(function(t,r){var a=i[r],o=e.getRecommendShelfOptionValue(t.availableShelfOptions,a);o&&e.$set(t,"receivedGoodShelf",o)}),[2]}})}).call(this)},handleRecommendBadShelf:function(){return eR(function(){var e,t,i;return ex(this,function(r){switch(r.label){case 0:if(e=this,!(t=this.getRecommendShelfParams(1)).length)return[2];i=[],r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.getRecommendShelfForStockInV2(t)];case 2:return i=r.sent(),[3,4];case 3:return r.sent(),[2];case 4:return this.getRecommendShelfRows().forEach(function(t,r){var a=i[r],o=e.getRecommendShelfOptionValue(t.defectiveShelfOptions,a);o&&e.$set(t,"receivedBadShelf",o)}),[2]}})}).call(this)},handleExclusiveTypeChange:function(e,t){return eR(function(){return ex(this,function(i){switch(i.label){case 0:if(this.noNeedReceive(e))return[2];return this.$set(e,"exclusiveType",t),[4,this.refreshShelfOptionsByRows([e])];case 1:return i.sent(),[2]}})}).call(this)},handleConfirmExclusiveStock:function(){return eR(function(){var e,t,i;return ex(this,function(r){switch(r.label){case 0:if(e=this,""===this.exclusiveStockBatchValue||null===this.exclusiveStockBatchValue||void 0===this.exclusiveStockBatchValue)return this.$message.error(this.$t("main.warehouse.remove.receipt.validation.select.exclusive.stock.type")),[2];return t=[],i=this.getComputedExclusiveType(this.exclusiveStockBatchValue),this.tableList.forEach(function(r){e.noNeedReceive(r)||e.getComputedExclusiveType(r.exclusiveType)===i||(e.$set(r,"exclusiveType",e.exclusiveStockBatchValue),t.push(r))}),[4,this.refreshShelfOptionsByRows(t)];case 1:return r.sent(),[2]}})}).call(this)},handleExclusiveStockPopoverHide:function(){},handleDialogClose:function(){this.exclusiveStockBatchValue="",this.$emit("update:visible",!1)},openErrorDialog:function(e){this.errorDialog=eN(e$({},e),{visible:!0})},handleCloseErrorDialog:function(){this.errorDialog.visible=!1,this.$emit("refreshInnerList")},handleShowErrorList:function(e){var t=[],i=e.succNum,r=e.failNum;e.data.forEach(function(e){t.push({itemNo:e.removeInboundOrderNo,commodityName:e.commodityName,commoditySku:e.commoditySku,msku:e.sellerSku,fnsku:e.fnsku,message:e.msg})}),this.openErrorDialog({data:t,successCount:i,failCount:r})},validatorTableList:function(){var e=[],t={res:!0,msg:""};return this.tableList.forEach(function(t){var i=t.receivedBadQty,r=t.receivedGoodQty,a=t.removeInboundOrderNo;0!==t.waitReceivedQty&&i+r===0&&e.push(a)}),e.length&&(t.res=!1,t.msg=this.$t("main.warehouse.remove.receipt.validation.receipt.quantity.not.zero")),t},noNeedReceive:function(e){return 0===e.waitReceivedQty}},created:function(){}},eI=(0,eo.A)(eE,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("section",[i("el-dialog",{attrs:{title:e.title,width:"1400px",visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":!1,modal:!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.dialogVisible=t},closed:e.handleDialogClose}},[i("vxe-grid",{attrs:{columns:e.columns,data:e.tableList},scopedSlots:e._u([{key:"commodityNameSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.commodityName))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.commoditySku))])]}},{key:"commodityMSkuFnSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.sellerSku||"-"))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.fnsku||"-"))])]}},{key:"exclusiveStock_header",fn:function(){return[i("span",[e._v(e._s(e.$t("main.components.exclusive.type.select.exclusive.type")))]),e._v(" "),i("PopoverContainer",{attrs:{"show-footer":"",placement:"bottom-start",trigger:"click",width:"240"},on:{close:e.handleExclusiveStockPopoverHide,"on-change":e.handleConfirmExclusiveStock},scopedSlots:e._u([{key:"trigger",fn:function(){return[i("el-button",{attrs:{type:"text"}},[e._v(e._s(e.$t("common.batch")))])]},proxy:!0}])},[e._v(" "),i("el-radio-group",{model:{value:e.exclusiveStockBatchValue,callback:function(t){e.exclusiveStockBatchValue=t},expression:"exclusiveStockBatchValue"}},e._l(e.exclusiveStockBatchOptions,function(t){return i("div",{key:t.value,staticStyle:{"margin-bottom":"8px"}},[i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])],1)}),0)],1)]},proxy:!0},{key:"exclusiveStock_default",fn:function(t){var r=t.row;return[r.exclusiveType===e.EXCLUSIVE_STOCK_TYPE.share?i("span",[e._v("-")]):i("sf-select",{attrs:{placeholder:e.$t("common.select.placeholder"),clearable:"",options:e.exclusiveStockRowOptions,disabled:e.n
1oNeedReceive(r)},on:{"on-change":function(t){return e.handleExclusiveTypeChange(r,t)}},model:{value:r.exclusiveType,callback:function(t){e.$set(r,"exclusiveType",t)},expression:"row.exclusiveType"}})]}},{key:"receiptGoodCommodityQuantity_header",fn:function(){return[i("span",[e._v(e._s(e.$t("main.warehouse.remove.receipt.column.received.good.quantity")))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleAllGoodReceive}},[e._v(e._s(e.$t("main.warehouse.remove.receipt.action.receive.all")))])]},proxy:!0},{key:"receiptGoodCommodityQuantity_default",fn:function(t){var r=t.row;return[i("el-input",{attrs:{placeholder:e.$t("common.input.placeholder"),disabled:e.noNeedReceive(r)},model:{value:r.receivedGoodQty,callback:function(t){e.$set(r,"receivedGoodQty",t)},expression:"row.receivedGoodQty"}})]}},{key:"receiptDefectiveCommodityQuantity_header",fn:function(){return[i("span",[e._v(e._s(e.$t("main.warehouse.remove.receipt.column.received.defective.quantity")))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleAllBadReceive}},[e._v(e._s(e.$t("main.warehouse.remove.receipt.action.receive.all")))])]},proxy:!0},{key:"receiptDefectiveCommodityQuantity_default",fn:function(t){var r=t.row;return[i("el-input",{attrs:{placeholder:e.$t("common.input.placeholder"),disabled:e.noNeedReceive(r)},model:{value:r.receivedBadQty,callback:function(t){e.$set(r,"receivedBadQty",t)},expression:"row.receivedBadQty"}})]}},{key:"receiptGoodCommodityShelf_header",fn:function(){return[i("span",[e._v(e._s(e.$t("main.warehouse.remove.receipt.column.good.shelf")))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleRecommendGoodShelf}},[e._v(e._s(e.$t("main.warehouse.remove.receipt.action.recommend")))])]},proxy:!0},{key:"receiptGoodCommodityShelf_default",fn:function(t){var r=t.row;return[i("ShelfRemoteSelect",{attrs:{options:r.availableShelfOptions,"build-params":e.buildShelfSearchParams(r,0),"shelf-type":0,"format-options-config":{otherKey:"shelfId"},"use-new-shelf-select":"",disabled:e.noNeedReceive(r)},model:{value:r.receivedGoodShelf,callback:function(t){e.$set(r,"receivedGoodShelf",t)},expression:"row.receivedGoodShelf"}})]}},{key:"receiptDefectiveCommodityShelf_header",fn:function(){return[i("span",[e._v(e._s(e.$t("main.warehouse.remove.receipt.column.defective.shelf")))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleRecommendBadShelf}},[e._v(e._s(e.$t("main.warehouse.remove.receipt.action.recommend")))])]},proxy:!0},{key:"receiptDefectiveCommodityShelf_default",fn:function(t){var r=t.row;return[i("ShelfRemoteSelect",{attrs:{options:r.defectiveShelfOptions,"build-params":e.buildShelfSearchParams(r,1),"shelf-type":1,"format-options-config":{otherKey:"shelfId"},"use-new-shelf-select":"",disabled:e.noNeedReceive(r)},model:{value:r.receivedBadShelf,callback:function(t){e.$set(r,"receivedBadShelf",t)},expression:"row.receivedBadShelf"}})]}},{key:"operation_default",fn:function(t){var r=t.rowIndex;return[i("el-button",{attrs:{type:"text",disabled:1===e.tableList.length},on:{click:function(t){return e.handleRemoveOrder(r)}}},[e._v(e._s(e.$t("common.remove")))])]}}])}),e._v(" "),i("section",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.handleDialogClose}},[e._v(e._s(e.$t("common.cancel")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v(e._s(e.$t("main.warehouse.remove.receipt.confirm.receipt")))])],1)],1),e._v(" "),i("ErrorDialog",{attrs:{title:e.title,visible:e.errorDialog.visible,data:e.errorDialog.data,columns:e.batchReceiveErrorListDialogColumns},on:{close:e.handleCloseErrorDialog},scopedSlots:e._u([{key:"header",fn:function(){return[i("div",[e._v(e._s(e.$t("main.warehouse.remove.receipt.receipt.complete.summary",{success:e.errorDialog.successCount,fail:e.errorDialog.failCount})))])]},proxy:!0}])},[e._v(" "),i("vxe-grid",{attrs:{slot:"content",round:"",resizable:"","max-height":"340","highlight-hover-row":"","show-overflow":"tooltip","element-loading-spinner":"icon_load_mid",data:e.errorDialog.data,columns:e.batchReceiveErrorListDialogColumns},slot:"content",scopedSlots:e._u([{key:"commodityNameSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.commodityName))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.commoditySku))])]}},{key:"message_default",fn:function(t){var r=t.row;return[i("div",{directives:[{name:"tooltip",rawName:"v-tooltip:l
1ight.isShow",value:r.message,expression:"row.message",arg:"light",modifiers:{isShow:!0}}],staticClass:"line_clamp_max_w"},[e._v(e._s(r.message))])]}}])})],1)],1)},[],!1,null,null,null).exports;function eM(e,t,i,r,a,o,n){try{var s=e[o](n),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function eB(e){return function(){var t=this,i=arguments;return new Promise(function(r,a){var o=e.apply(t,i);function n(e){eM(o,r,a,n,s,"next",e)}function s(e){eM(o,r,a,n,s,"throw",e)}n(void 0)})}}function eA(e,t){var i,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(n,"next",{value:l(0)}),s(n,"throw",{value:l(1)}),s(n,"return",{value:l(2)}),"function"==typeof Symbol&&s(n,Symbol.iterator,{value:function(){return this}}),n;function l(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var ej={components:{WarehouseSelectorNew:J.A},emits:["refresh","modifyFail"],props:{visible:{type:Boolean,default:!1},selectRows:{type:Array,default:function(){return[]}}},watch:{visible:{handler:function(e){this.dialogVisible=e},immediate:!0}},computed:{warehouseDisabled:function(){return!this.formData.warehouseId}},data:function(){return{dialogVisible:!1,warehouseType:3,selectWarehouse:null,formData:{warehouseId:null}}},methods:{handleWarehouseChange:function(e){this.formData.warehouseId=e},handleDialogClose:function(){this.resetFormData(),this.$emit("update:visible",!1),this.$emit("refresh")},handleConfirm:function(){return eB(function(){var e,t,i;return eA(this,function(r){switch(r.label){case 0:this.$loading(),r.label=1;case 1:return r.trys.push([1,3,,4]),e={warehouseId:this.formData.warehouseId,orderNos:this.selectRows.map(function(e){return e.orderNo})},[4,this.$http.batchModifyWarehouse(e)];case 2:return t=r.sent(),this.pollingTask(t),[3,4];case 3:return i=r.sent(),this.$message.handle(i),this.$loading().close(),[3,4];case 4:return[2]}})}).call(this)},pollingTask:function(e){return eB(function(){var t,i,r,a;return eA(this,function(o){switch(o.label){case 0:if(t=this,!e)return this.$loading().close(),[2];i=0,r=null,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.$http.checkProgress({uuid:e})];case 2:return i=(r=o.sent()).code,[3,4];case 3:return a=o.sent(),this.$message({message:a.message,type:"error"}),this.$loading().close(),[2];case 4:switch(i){case 0:setTimeout(this.pollingTask(e),1e3);break;case 1:r.data.length?this.handleShowErrorList(r):this.$message.success(this.$t("main.warehouse.remove.receipt.modify.warehouse.success")),this.handleDialogClose(),this.$loading().close();break;default:setTimeout(function(){r&&(t.handleShowErrorList(r),t.$loading().close())},599)}return[2]}})}).call(this)},handleShowErrorList:function(e){var t=[],i=e.succNum,r=e.failNum;e.data.forEach(function(e){t.push({itemNo:e.removeInboundOrderNo,message:e.msg})}),this.$emit("modifyFail",{data:t,successCount:i,failCount:r,columns:G})},resetFormData:function(){this.formData={warehouseId:null}}}},eF=(0,eo.A)(ej,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:e.$t("main.warehouse.remove.receipt.batch.modify.warehouse"),width:"360px",visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":!1,modal:!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{attrs:{model:e.formData,"label-width":"80px"}},[i("el-form-item",{attrs:{label:e.$t("main.warehouse.remove.receipt.column.receiving.warehouse")}},[i("WarehouseSelectorNew",{ref:"warehouseSelector",staticClass:"form_item",attrs:{clearable:"",filterable:"",width:"100%",isPermission:"",placeholder:e.$t("common.select.placeholder"),"include-third-warehouse":!0,warehouseType:e.warehouseType},on:{"on-change":e.handleWarehouseChange}})],1)],1),e._v(" "),i("section",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.handleDialogClose}},[e._v(e._s(e.$t("common.close")))]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.warehouseDisabled},on:{click:e.handleConfirm}},[e._v(e._s(e.$t("common.confirm")))])],1)],1)],1)},[],!1,null,"8d890b98",null).exports,eL=i(38067);function eW(e,t,i,r,a,o,n){try{var s=e[o](n),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function eV(e){return function(){var t=this,i=arguments;return new Promise(function(r,a){var o=e.apply(t,i);function n(e){eW(o,r,a,n,s,"next",e)}function s(e){eW(o,r,a,n,s,"throw",e)}n(void 0)})}}function eU(e,t){var i,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(n,"next",{value:l(0)}),s(n,"throw",{value:l(1)}),s(n,"return",{value:l(2)}),"function"==typeof Symbol&&s(n,Symbol.iterator,{value:function(){return this}}),n;function l(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}
1if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var ez={Unsellable:0,Sellable:1},eQ=[{title:(0,u.Tl)("common.image"),field:"img",minWidth:"80",slots:{default:"img_default"}},{title:"MSKU/FNSKU",field:"commodityMSkuFnSku",minWidth:"180",slots:{default:"commodityMSkuFnSku_default"}},{title:(0,u.Tl)("main.product.order.remove.columns.product.name.sku"),field:"commodityNameSku",minWidth:"180",slots:{default:"commodityNameSku_default"}},{title:(0,u.Tl)("main.warehouse.remove.receipt.column.remove.receipt.no"),field:"removeInboundOrderNo",minWidth:"160",slots:{default:"removeInboundOrderNo_default"}},{title:(0,u.Tl)("main.product.order.remove.columns.inventory.attribute"),field:"disposition",minWidth:"120"},{title:(0,u.Tl)("main.product.order.remove.entry.shipped.quantity"),field:"shipmentsQty",minWidth:"100"},{title:(0,u.Tl)("main.product.order.remove.entry.wait.received.quantity"),field:"waitReceivedQty",minWidth:"100"},{title:(0,u.Tl)("main.product.order.remove.entry.received.good.quantity"),field:"receivedGoodQty",minWidth:"100"},{title:(0,u.Tl)("main.product.order.remove.entry.received.bad.quantity"),field:"receivedBadQty",minWidth:"100"},{title:(0,u.Tl)("main.product.order.remove.entry.purchase.price.cny"),field:"purchasePrice",minWidth:"240",slots:{default:"purchasePrice_default"}},{title:(0,u.Tl)("main.product.order.remove.entry.unit.fee.cny"),field:"unitFee",minWidth:"120",slots:{default:"unitFee_default"}}],eG={name:"BatchModifyPurchasePriceDialog",components:{ImgBox:ec.A,AssociatedBatchCostDialog:eL.A},props:{visible:{type:Boolean,default:!1},dataList:{type:Array,default:function(){return[]}},title:{type:String,default:function(){return(0,u.Tl)("main.warehouse.remove.receipt.batch.modify.purchase.price")}}},emits:["update:visible","submit","close"],watch:{visible:{handler:function(e){this.modalVisible=e},immediate:!0},dataList:{handler:function(e){this.tableData=this.$dcopy(e||[])},immediate:!0}},data:function(){return{modalVisible:!1,columnsConfig:eQ,tableData:[],associatedBatchCostVisible:!1,batchCostList:[],associatedBatchCostDialogPaginator:{currentPage:1,pageSize:20},associatedBatchCostSelectedRow:null}},computed:{hasPurchaseCostPermission:function(){return this.$utils.hadFieldPermission("purchaseCost")}},methods:{handleDefaultProcurementCostChange:function(){this.hasPurchaseCostPermission&&this.tableData.forEach(function(e){var t=e.commodityPurchaseCost;null!=t&&""!==t&&(e.purchaseUnitFee=t)})},handleSubmit:function(){this.$emit("submit",this.$dcopy(this.tableData))},handleClose:function(){this.associatedBatchCostSelectedRow=null,this.batchCostList=[],this.associatedBatchCostVisible=!1,this.$emit("update:visible",!1),this.$emit("close")},number4Limit:function(e,t){e.purchaseUnitFee=this.$utils.number4Limit(t)},handleAssociatedBatchCost:function(e){return eV(function(){return eU(this,function(t){return this.associatedBatchCostSelectedRow=e,this.queryAssociatedBatchCostList(
1),[2]})}).call(this)},queryAssociatedBatchCostList:function(){return eV(function(){var e,t,i,r,a,o,n;return eU(this,function(s){switch(s.label){case 0:e=this.getQueryAssociatedBatchCostParams(),this.$loading(),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.$http.queryBatchCost(e)];case 2:return i=(t=s.sent()).rows,r=t.pageNo,a=t.totalPage,o=t.pageSize,this.batchCostList=i,0===i.length?this.$message.error(this.$t("main.product.order.remove.entry.no.associated.batch.cost")):(this.associatedBatchCostDialogPaginator={currentPage:r,totalResult:a,pageSize:o},this.associatedBatchCostVisible=!0),[3,5];case 3:return n=s.sent(),this.$message.handle(n),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},getQueryAssociatedBatchCostParams:function(){var e=this.associatedBatchCostSelectedRow,t=e.commoditySku,i=e.fnsku,r=e.disposition,a=e.shopId,o=this.$moment().subtract(30,"days").format("YYYY-MM-DD"),n=this.$moment().format("YYYY-MM-DD");return{sku:t,fnsku:i,sellable:ez[r],shopId:a,outType:103,startTime:o,endTime:n,pageNo:this.associatedBatchCostDialogPaginator.currentPage,pageSize:this.associatedBatchCostDialogPaginator.pageSize}},handleRelateCost:function(e){this.associatedBatchCostSelectedRow&&(this.associatedBatchCostSelectedRow.purchaseUnitFee=e)},handleBatchCostPageChange:function(e){var t,i,r=e.pageNo,a=e.pageSize;this.associatedBatchCostDialogPaginator=(t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){var r;r=i[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},this.associatedBatchCostDialogPaginator),i=i={currentPage:r,pageSize:a},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}
1),t),this.queryAssociatedBatchCostList()},handleBatchCostDialogClose:function(){this.associatedBatchCostVisible=!1,this.associatedBatchCostSelectedRow=null,this.batchCostList=[],this.associatedBatchCostDialogPaginator={currentPage:1,pageSize:20}}}},eq=(0,eo.A)(eG,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"1280px",modal:!1,"append-to-body":!1,visible:e.modalVisible,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.modalVisible=t},closed:e.handleClose}},[i("template",{slot:"title"},[i("div",{staticClass:"dialog_header"},[e._v(e._s(e.title))])]),e._v(" "),i("section",{staticClass:"top_action_field mb_12"},[i("el-button",{attrs:{size:"mini"},on:{click:e.handleDefaultProcurementCostChange}},[e._v("\n            "+e._s(e.$t("main.product.order.remove.entry.default.purchase.cost"))+"\n        ")])],1),e._v(" "),i("vxe-grid",{staticClass:"vxe_table_v_a_middle",attrs:{data:e.tableData,columns:e.columnsConfig,resizable:"","auto-resize":"","highlight-current-row":"","highlight-hover-row":"","show-overflow":"tooltip"},scopedSlots:e._u([{key:"img_default",fn:function(e){return[i("ImgBox",{attrs:{src:e.row.imgUrl}})]}},{key:"commodityMSkuFnSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.sellerSku||"-"))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.fnsku||"-"))])]}},{key:"commodityNameSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.commodityName||"-"))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.commoditySku||"-"))])]}},{key:"removeInboundOrderNo_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.removeInboundOrderNo||r.orderNo||"-"))])]}},{key:"purchasePrice_default",fn:function(t){var r=t.row;return[i("div",{directives:[{name:"field-right",rawName:"v-field-right",value:{permission:"purchaseCost",type:"input"},expression:"{ permission: 'purchaseCost', type: 'input' }"}],staticClass:"flex center_align"},[i("el-input",{staticClass:"mr_6 purchase_price_input",attrs:{placeholder:e.$t("common.input.placeholder")},on:{input:function(t){return e.number4Limit(r,t)}},model:{value:r.purchaseUnitFee,callback:function(t){e.$set(r,"purchaseUnitFee",t)},expression:"row.purchaseUnitFee"}}),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleAssociatedBatchCost(r)}}},[e._v(e._s(e.$t("main.product.order.remove.entry.associated.batch.cost.title")))])],1)]}},{key:"unitFee_default",fn:function(t){var r=t.row;return[i("div",{directives:[{name:"field-right",rawName:"v-field-right",value:{permission:"purchaseCost"},expression:"{ permission: 'purchaseCost' }"}],staticClass:"line_clamp_max_w"},[e._v(e._s(r.unitFee||"-"))])]}}])}),e._v(" "),i("AssociatedBatchCostDialog",{ref:"associatedBatchCostDialogRef",attrs:{visible:e.associatedBatchCostVisible,dataList:e.batchCostList,paginator:e.associatedBatchCostDialogPaginator},on:{"update:visible":function(t){e.associatedBatchCostVisible=t},relateCost:e.handleRelateCost,pageChange:e.handleBatchCostPageChange,close:e.handleBatchCostDialogClose}}),e._v(" "),i("section",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.handleClose}},[e._v(e._s(e.$t("common.close")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(e._s(e.$t("common.confirm")))])],1)],2)},[],!1,null,"774ce600",null).exports;function eK(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function eH(e,t,i,r,a,o,n){try{var s=e[o](n),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function eY(e){return function(){var t=this,i=arguments;return new Promise(function(r,a){var o=e.apply(t,i);function n(e){eH(o,r,a,n,s,"next",e)}function s(e){eH(o,r,a,n,s,"throw",e)}n(void 0)})}}function eX(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function eJ(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){eX(e,t,i[t])})}return e}function eZ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}
vendor: 1,106 bytes, line 1
1)(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}function e0(e,t){var i,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(n,"next",{value:l(0)}),s(n,"throw",{value:l(1)}),s(n,"return",{value:l(2)}),"function"==typeof Symbol&&s(n,Symbol.iterator,{value:function(){return this}}),n;function l(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var e1={name:"TableContent",components:{DynamicColumnExport:el.A,ImgBox:ec.A,Pagination:ew.A,BatchReceiptDialog:eI,TextTips:eu.A,ErrorDialog:eh.A,LazyModalWrapper:ed.A,PrintTemplateDialog:eO.A,PrintTemplateReceipt:eS.A,TrackQuery:e_.default,BatchModifyWarehouseDialog:eF,BatchModifyPurchasePriceDialog:eq,DropdownBtn:em.A},mixins:[ep.A],emits:["pageChange","refresh"],props:{columns:Array,data:Array,paginator:Object,orderBy:String,order:String,getExportParams:Function,currentTab:String,pageName:String,summary:Object},computed:eZ(eJ({},(0,es.mapState)("System",{isFifoConfig:function(e){return e.isFifoConfig}})),{checkedRowsCount:function(){return this.checkedRows.length}}),watch:{data:function(){var e=this;this.resetCheck(),this.$nextTick(function(){e.addMousewheelEvent({forceOn:!0,vxeTableDom:e.$refs.tableRef})})},currentTab:{handler:function(e){var t=[],i="";switch(e){case T.all:t=[this.btnOptionType.batchSubmit,this.btnOptionType.batchReceipt,this.btnOptionType.batchModifyWarehouse,this.btnOptionType.batchModifyPurchasePrice,this.btnOptionType.batchCancel];break;case T[w]:t=[this.btnOptionType.batchSubmit,this.btnOptionType.batchModifyWarehouse,this.btnOptionType.batchModifyPurchasePrice,this.btnOptionType.batchCancel],i=this.btnOptionType.batchSubmit;break;case T[O]:t=[this.btnOptionType.batchReceipt,this.btnOptionType.batchModifyPurchasePrice,this.btnOptionType.batchCancel],i=this.btnOptionType.batchReceipt;break;case T[S]:case T[k]:t=[]}this.batchBtnOptions=j.filter(function(e){return t.includes(e.type)}),this.batchBtnOptions.forEach(function(e){e.btnType=e.type===i?"primary":void 0})},immediate:!0}},data:function(){return{exportId:(0,ey.R)("\u4ED3\u5E93>\u79FB\u9664\u5165\u5E93\u5355"),checkedRows:[],batchPrintOptions:Q,popoverColumns:M,btnOptionType:B,batchBtnOptions:[],batchReceiptDataList:[],batchReceiptDialogTitle:this.$t("main.warehouse.remove.receipt.batch.receipt"),BatchReceiptDialogVisible:!1,errorDialogConfig:{visible:!1,columns:null,data:null},printTemplateFnSkuDialog:{visible:!1,value:null},printTemplateSkuDialog:{visible:!1,value:null},printTemplateOrderDialog:{visible:!1,value:[]},batchModifyWarehouseDialogVisible:!1,batchModifyPurchasePriceDialogVisible:!1,batchModifyPurchasePriceDataList:[],batchModifyPurchasePriceDialogTitle:this.$t("main.warehouse.remove.receipt.batch.modify.purchase.price")}},methods:{footerMethod:function(e){var t,i=e.columns,r=this.summary,a=this.$utils,o=new Map;return null==(t=Object.keys(r))||t.forEach(function(e){o.set(e)}),a.createFooterMethodData({columns:i,remoteData:r,fieldRelevanceApiKey:o})},handlePageChange:function(e){var t=e.currentPage,i=e.pageSize;this.$emit("pageChange",{currentPage:t,pageSize:i})},handleSortChange:function(e){var t=e.$event,i=e.property,r=e.order;r=this.$utils.setTableSort.call(this,{tableRefName:"tableRef",targetNodeName:t.target.nodeName,beforeSortField:this.orderBy,beforeSortValue:this.order,currentSortField:i,currentSortValue:r}),this.$emit("update:orderBy",i),this.$emit("update:order",r),this.$emit("pageChange",{currentPage:1})},handleCheckboxChange:function(){this.checkedRows=this.$refs.tableRef.getCheckboxRecords(!0)},handleCheckboxAll:function(){this.checkedRows=this.$refs.tableRef.getCheckboxRecords(!0)},resetCheck:function(){this.checkedRows=[]},downloadFn:function(e){return eY(function(e){var t,i;return e0(this,function(r){switch(r.label){case 0:return t=(function(e){if(Array.isArray(e))return e}(e)||function(e){var t,i,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],o=!0,n=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){n=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(n)throw i}}return a}}(e)||function(e){if(e){if("string"==typeof e)return eK(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eK(e,1)}}
1(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=eZ(eJ({},this.getExportParams()),{includeList:t}),this.currentTab!==T.all&&(i.orderStatus=this.currentTab),[4,this.$http.queryRemoveReceiptWarehouseOrderExport(i)];case 1:return[2,r.sent()]}})}).apply(this,arguments)},getRowOperations:function(e){var t=this,i=e.orderStatus,r=this.$dcopy(z[i]);return this.isFifoConfig&&(r=r.filter(function(e){return e.value!==t.btnOptionType.additionRecord})),this.isPartReceived(e)&&(r=r.filter(function(e){return e.value!==t.btnOptionType.cancel})),{btnType:"text",options:r}},handleBatchDelete:function(){return eY(function(){return e0(this,function(e){this.checkedRowsCount||this.$message.error(this.$t("main.warehouse.remove.receipt.validation.select.record"));try{this.$loading(),this.refreshList()}catch(e){this.$message.error(e.msg)}finally{this.$loading().close()}return[2]})}).call(this)},clickRowOperations:function(e,t){var i=this;switch(e){case this.btnOptionType.detail:this.handleViewDetail(t);break;case this.btnOptionType.edit:this.handleEditDetail(t);break;case this.btnOptionType.additionRecord:this.handleCostSupplement(t);break;case this.btnOptionType.modifyPurchasePrice:this.handleModifyPurchasePrice(t);break;case this.btnOptionType.submit:this.handleSubmitOrder(t);break;case this.btnOptionType.printSku:this.handlePrintSku(t);break;case this.btnOptionType.printFnsku:this.handlePrintFnsku(t);break;case this.btnOptionType.printOrderTemplate:this.handlePrintOrderTemplate(t);break;case this.btnOptionType.receipt:this.handleArrivedGoods(t);break;case this.btnOptionType.cancel:this.$sfMessage.confirm(this.$t("main.warehouse.remove.receipt.confirm.invalidate.order"),{type:"warning",confirmHandle:function(){return eY(function(){return e0(this,function(e){return this.handleNullify(t),[2]})}).call(i)}});break;case this.btnOptionType.endResidueArrival:this.$sfMessage.confirm(this.$t("main.warehouse.remove.receipt.confirm.end.remaining.arrival"),this.$t("main.warehouse.remove.receipt.action.delete"),{type:"warning",confirmHandle:function(){return eY(function(){return e0(this,function(e){return this.handleEndResidueReceive(t),[2]})}).call(i)}})}},handleViewDetail:function(e){return eY(function(){var t;return e0(this,function(i){return t=e.id,this.$router.push({name:"RemoveReceiptWarehouseDetail",query:{id:t,pageFrom:this.$route.name,pageFromQuery:JSON.stringify(this.$route.query||{})}}),[2]})}).call(this)},handleEditDetail:function(e){return eY(function(){var t,i;return e0(this,function(r){return t=e.id,i=e.orderStatus,this.$router.push({name:"RemoveReceiptWarehouseEdit",query:{id:t,pageFrom:this.$route.name,pageFromQuery:JSON.stringify(this.$route.query||{})},params:{status:i}}),[2]})}).call(this)},handleModifyPurchasePrice:function(e){this.batchModifyPurchasePrice(this.$t("main.warehouse.remove.receipt.action.modify.purchase.price"),[e])},handleBatchOperation:function(e){if(!this.checkedRows.length)return void this.$message.error(this.$t("main.warehouse.remove.receipt.validation.select.order"));var t,i=(eX(t={},this.btnOptionType.batchSubmit,"batchSubmitOrder"),eX(t,this.btnOptionType.batchSaveAndSubmit,"batchSaveAndSubmit"),eX(t,this.btnOptionType.printSku,"batchPrintSkuTemplate"),eX(t,this.btnOptionType.printFnsku,"batchPrintFnskuTemplate"),eX(t,this.btnOptionType.printOrderTemplate,"batchPrintOrderTemplate"),eX(t,this.btnOptionType.batchReceipt,"batchReceipt"),eX(t,this.btnOptionType.batchModifyWarehouse,"batchModifyWarehouse"),eX(t,this.btnOptionType.batchModifyPurchasePrice,"batchModifyPurchasePrice"),eX(t,this.btnOptionType.batchCancel,"batchNullifyConfirm"),t);this.$isFunction(this[i[e]])&&this[i[e]]()},batchSubmitOrder:function(){return eY(function(){var e,t,i,r,a,o,n;return e0(this,function(s){switch(s.label){case 0:e={key:this.checkedRows.map(function(e){return e.id})},s.label=1;case 1:return s.trys.push([1,3,4,5]),this.$loading(),[4,this.$http.submitRemoveReceiptWarehouseOrder(e)];
1case 2:return i=(t=s.sent()).success,r=t.fail,a=t.results,r?(o={columns:L,data:a,successCount:i,failCount:r},this.openErrorDialog(o)):this.$message.success(this.$t("main.warehouse.remove.receipt.submit.order.success")),this.refreshList(),[3,5];case 3:return n=s.sent(),this.$message.handle(n),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},batchPrintSkuTemplate:function(e){return eY(function(){var t;return e0(this,function(i){switch(i.label){case 0:return[4,this.getPrintData(e)];case 1:return t=i.sent(),this.printTemplateSkuDialog={visible:!0,value:t},[2]}})}).call(this)},batchPrintFnskuTemplate:function(e){return eY(function(){var t;return e0(this,function(i){switch(i.label){case 0:return[4,this.getPrintData(e)];case 1:if(0===(t=i.sent().filter(function(e){return e.fnsku})).length)return this.$message.error(this.$t("main.warehouse.remove.receipt.validation.no.fnsku.print")),[2];return this.printTemplateFnSkuDialog={visible:!0,value:t},[2]}})}).call(this)},batchPrintOrderTemplate:function(){return eY(function(){var e;return e0(this,function(t){return e=this.checkedRows.map(function(e){return{id:e.id,receipt:e.orderNo}}),this.printTemplateOrderDialog={visible:!0,value:e},[2]})}).call(this)},getPrintData:function(e){return eY(function(){var t,i,r;return e0(this,function(a){switch(a.label){case 0:t={},t=e?{key:[e.id]}:{key:this.checkedRows.map(function(e){return e.id})},i=[],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.$http.queryRemoveReceiptWarehouseOrderDetail(t)];case 2:return i=a.sent(),[3,4];case 3:return r=a.sent(),this.$message.handle(r),[3,4];case 4:return[2,i.map(function(e){return eZ(eJ({},e),{sn:e.orderNo})})]}})}).call(this)},batchReceipt:function(){return eY(function(){var e,t,i,r,a=arguments;return e0(this,function(o){switch(o.label){case 0:e=a.length>0&&void 0!==a[0]?a[0]:this.$t("main.warehouse.remove.receipt.batch.receipt"),t={key:(a.length>1&&void 0!==a[1]?a[1]:this.checkedRows).map(function(e){return e.id})},this.$loading(),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,this.$http.queryRemoveReceiptWarehouseOrderDetail(t)];case 2:return i=o.sent(),this.batchReceiptDialogTitle=e,this.batchReceiptDataList=this.$dcopy(i),this.handleBatchReceiptDialogOpen(),[3,5];case 3:return r=o.sent(),this.$message.handle(r),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).apply(this,arguments)},batchModifyWarehouse:function(){this.checkedRows.some(function(e){return 0!==e.orderStatus})?this.$message.error(this.$t("main.warehouse.remove.receipt.validation.only.draft.modify.warehouse")):this.batchModifyWarehouseDialogVisible=!0},batchNullifyConfirm:function(){var e=this;this.$sfMessage.confirm(this.$t("main.warehouse.remove.receipt.confirm.invalidate.order"),{type:"warning",confirmHandle:function(){return eY(function(){return e0(this,function(e){return this.batchNullify(),[2]})}).call(e)}})},batchNullify:function(){return eY(function(){var e,t,i,r,a,o,n;return e0(this,function(s){switch(s.label){case 0:e=this.checkedRows.map(function(e){return e.id}),this.$loading(),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.$http.batchNullifyRemoveReceiptWarehouseOrder(e)];case 2:return i=(t=s.sent()).success,r=t.fail,a=t.results,r?(o={columns:V,data:a,successCount:i,failCount:r},this.openErrorDialog(o)):this.$message.success(this.$t("main.warehouse.remove.receipt.invalidate.success")),this.refreshList(),[3,5];case 3:return n=s.sent(),this.$message.handle(n),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},isPartReceived:function(e){var t=e.orderStatus,i=e.totalReceivedQty,r=e.totalShipmentsQty;return t===eg.NO.waitReceipt&&i>0&&r!==i},batchModifyPurchasePrice:function(){return eY(function(){var e,t,i,r,a,o,n=arguments;return e0(this,function(s){switch(s.label){case 0:if(e=this,t=n.length>0&&void 0!==n[0]?n[0]:this.$t("main.warehouse.remove.receipt.batch.modify.purchase.price"),(i=n.length>1&&void 0!==n[1]?n[1]:this.checkedRows).some(function(t){return t.orderStatus===eg.NO.complete||t.orderStatus===eg.NO.Invalid||e.isPartReceived(t)}))return this.$message.error(this.$t("main.warehouse.remove.receipt.validation.only.draft.or.pending.unreceived.modify.purchase.price")),[2];r={key:i.map(function(e){return e.id})},this.$loading(),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.$http.queryRemoveReceiptWarehouseOrderDetail(r)];case 2:return a=s.sent(),this.batchModifyPurchasePriceDialogTitle=t,this.batchModifyPurchasePriceDataList=this.$dcopy(a),this.batchModifyPurchasePriceDialogVisible=!0,[3,5];case 3:return o=s.sent(),this.$message.handle(o),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).apply(this,arguments)},submitBatchModifyPurchasePrice:function(e){return eY(function(){var t,i,r,a,o,n,s;return e0(this,function(l){switch(l.label){case 0:t=e.map(function(e){return{id:e.id,purchaseUnitFee:e.purchaseUnitFee}}),this.$loading(),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,this.$http.batchModifyPurchasePrice(t)];case 2:return r=(i=l.sent()).success,a=i.fail,o=i.results,a?(n={columns:W,data:o,successCount:r,failCount:a},this.openErrorDialog(n)):(this.$message.success(this.$t("main.warehouse.remove.receipt.modify.purchase.price.success")),this.batchModifyPurchasePriceDialogVisible=!1),this.refreshList(),[3,5];case 3:return s=l.sent(),this.$message.handle(s),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},handleBatchReceiptDialogOpen:function(){this.BatchReceiptDialogVisible=!0},openErrorDialog:function(e){this.errorDialogConfig=eZ(eJ({},e),{visible:!0})},handleCloseErrorDialog:function(){this.errorDialogConfig.visible=!1,this.doRefreshList()},refreshList:function(){this.$emit("refresh")},handleEndResidueReceive:function(e){return eY(function(){var t,i;return e0(this,function(r){switch(r.label){case 0:t={id:e.id},this.$loading(),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,this.$http.removeReceiptWarehouseOrderEndArrival(t)];case 2:return r.sent(),this.$message.success(this.$t("main.warehouse.remove.receipt.end.remaining.arrival.success")),this.refreshList(),[3,5];case 3:return i=r.sent(),this.$message.handle(i),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},handleNullify:function(e){return eY(function(){var t,i;return e0(this,function(r){switch(r.label){case 0:t={id:e.id},this.$loading(),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,this.$http.removeReceiptWarehouseOrderNullify(t)];case 2:return r.sent(),this.$message.success(this.$t("main.warehouse.remove.receipt.invali
1date.success")),this.refreshList(),[3,5];case 3:return i=r.sent(),this.$message.handle(i),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},handleCostSupplement:function(e){var t={};t.query={user:"removeReceiptWarehouseOrder",timeStr:new Date().getTime(),pageName:this.pageName,id:e.id},t.name="CreateCostSupplement",this.$router.push(t)},handleSubmitOrder:function(e){return eY(function(){var t,i,r,a,o;return e0(this,function(n){switch(n.label){case 0:t={key:[e.id]},n.label=1;case 1:return n.trys.push([1,3,4,5]),this.$loading(),[4,this.$http.submitRemoveReceiptWarehouseOrder(t)];case 2:return r=(i=n.sent()).fail,a=i.results,r?this.$message.error(a[0].message):(this.$message.success(this.$t("main.warehouse.remove.receipt.submit.order.success")),this.refreshList()),[3,5];case 3:return o=n.sent(),this.$message.handle(o),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})}).call(this)},handleArrivedGoods:function(e){e.orderStatus!==eg.NO.waitReceipt?this.$message.error(this.$t("main.warehouse.remove.receipt.validation.status.cannot.receipt")):this.batchReceipt(this.$t("main.warehouse.remove.receipt.action.receipt"),[e])},handlePrintSku:function(e){this.batchPrintSkuTemplate(e)},handlePrintFnsku:function(e){this.batchPrintFnskuTemplate(e)},handlePrintOrderTemplate:function(e){this.printTemplateOrderDialog={visible:!0,value:[{id:e.id,receipt:e.orderNo}]}},handleRefreshBatchReceiptList:function(){this.batchReceipt(this.batchReceiptDialogTitle)},getRowProp:function(e){var t=e.trackingNumber;return{logisticsBillNos:("string"==typeof t?t.split(/[,;]/):[]).map(function(e){return e.trim()}).filter(Boolean).map(function(e){return{trackingNo:e}}),id:e.id}}},created:function(){var e=(0,eb.B)("\u4ED3\u5E93>\u79FB\u9664\u5165\u5E93\u5355");this.dynamicController=new ef.A(e,[new ev.A({id:"table",name:this.$t("main.fbm.user.address.manage.table.sales.management.table"),resizable:!1,resizeKey:e,columns:this.columns,host:this})])},mounted:function(){}},e2=(0,eo.A)(e1,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex column flex_1 overflow_h"},[i("div",{staticClass:"main_header_container"},[i("section",{staticClass:"screen_l"},[e._l(e.batchBtnOptions,function(t){return i("myj-button",{key:t.id,attrs:{disabled:!e.checkedRowsCount,showDisabledTooltip:"",options:{title:t.title,permission:t.permission,btnType:t.btnType}},on:{click:function(i){return e.handleBatchOperation(t.type)}}})}),e._v(" "),i("DropdownBtn",{attrs:{options:e.batchPrintOptions,disabled:!e.checkedRowsCount},on:{command:e.handleBatchOperation}})],2),e._v(" "),i("section",{staticClass:"screen_r"},[i("div",{staticClass:"btn_square_icon",attrs:{title:e.$t("main.warehouse.remove.receipt.refresh.data")},on:{click:function(t){return e.$emit("refresh")}}},[i("i",{staticClass:"icon_sf_rotate"})]),e._v(" "),e.$hasPermission("MOD_REMOVE_INBOUND_ORDER_END_EXPORT")?i("DynamicColumnExport",{attrs:{"export-id":e.exportId,"download-fn":e.downloadFn}}):e._e(),e._v(" "),i("div",{staticClass:"btn_square_icon",attrs:{title:e.$t("main.warehouse.remove.receipt.help")},on:{click:function(t){return e.$utils.helpOpenBtn(424)}}},[i("i",{staticClass:"icon_sf_help"})])],1)]),e._v(" "),i("section",{staticClass:"main_table_container"},[i("vxe-grid",{ref:"tableRef",staticClass:"PageListMouseWheelClass vxe_grid_table vxe_table_row_height_48 layout_main_table",attrs:{height:"100%",resizable:"","auto-resize":"","row-key":"","column-key":"","highlight-current-row":"","highlight-hover-row":"","show-header-overflow":"tooltip","show-overflow":"tooltip","show-footer":"","show-footer-overflow":"","footer-method":e.footerMethod,data:e.data,columns:e.dynamicController.table.state.columns,"tooltip-config":{showAll:!0,theme:"light"},"checkbox-config":{showHeader:!0,checkMethod:function(e){return!e.row.forbidCheck}},"sort-config":Object.assign({},e.$utils.sortIcon(),{remote:!0,trigger:"cell",orders:e.$utils.getSortList()})},on:{"sort-change":e.handleSortChange,"checkbox-change":e.handleCheckboxChange,"checkbox-all":e.handleCheckboxAll,"resizable-change":function(t){return e.dynamicController.table.resizeColumnWidth(t)}},scopedSlots:e._u([{key:"RemoveReceiptWarehouseOrderNo_default",fn:function(t){var r=t.row;return[i("span",[e._v("\n                    "+e._s(r.orderNo)+"\n                ")])]}},{key:"siteShopName_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"flex column"},[i("div",{staticClass:"flex center_align"},[i("div",{directives:[{name:"copy",rawName:"v-copy",value:{text:r.marketplaceName},expression:"{ text: row.marketplaceName }"}],staticClass:"has_efn"},[i("TextTips",{attrs:{text:r.marketplaceName}})],1)]),e._v(" "),i("div",{directives:[{name:"copy",rawName:"v-copy",value:{text:r.shopName},expression:"{ text: row.shopName }"}],staticClass:"f_gray"},[i("TextTips",{attrs:{text:r.shopName}})],1)])]}},{key:"commodityInfo_default",fn:function(t){var r=t.row;return[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("div",{attrs:{slot:"reference"},slot:"reference"},[i("ImgBox",{attrs:{src:r.itemVOS[0].imgUrl}}),e._v(" "),1===r.adjustmentFlag?i("div",{staticClass:"cost_recorded_icon"},[e._v(" "+e._s(e.$t("main.warehouse.remove.receipt.cost.recorded.short"))+" ")]):e._e(
1)],1),e._v(" "),i("vxe-grid",{staticClass:"vxe_table_v_a_middle",attrs:{"highlight-hover-row":"","highlight-current-row":"","show-overflow":"tooltip",data:r.itemVOS,columns:e.popoverColumns,"max-height":400,"tooltip-config":{showAll:!0,theme:"light"}},scopedSlots:e._u([{key:"commodityMainImg_default",fn:function(e){return[i("ImgBox",{attrs:{src:e.row.imgUrl}})]}},{key:"commodityInfoNameSku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.commodityName))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.commoditySku))])]}},{key:"commodityInfoMskuFnsku_default",fn:function(t){var r=t.row;return[i("div",{staticClass:"line_clamp_max_w"},[e._v(e._s(r.sellerSku))]),e._v(" "),i("div",{staticClass:"line_clamp_max_w f_gray"},[e._v(e._s(r.fnsku))])]}}],null,!0)})],1)]}},{key:"trackingNumber_default",fn:function(t){var r=t.row;return[r.trackingNumber?i("TrackQuery",{attrs:{isShowMulti:"",rowProp:e.getRowProp(r)}}):i("div",[e._v("-")])]}},{key:"operation_default",fn:function(t){var r=t.row;return[i("myj-button",{attrs:{tagName:"UiDropDownSplitBtn",options:e.getRowOperations(r)},on:{command:function(t){return e.clickRowOperations(t,r)}}})]}}])})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:null===e.data,expression:"data === null"}],staticClass:"page_list_initialize"},[e._v(e._s(e.$t("main.warehouse.remove.receipt.data.loading")))]),e._v(" "),i("div",{staticClass:"main_footer_container"},[i("div",[i("span",[e._v(e._s(e.$t("main.warehouse.remove.receipt.selected.count",{count:e.checkedRowsCount})))])]),e._v(" "),i("Pagination",{attrs:{paginator:e.paginator},on:{"page-change":e.handlePageChange}})],1),e._v(" "),i("BatchReceiptDialog",{attrs:{visible:e.BatchReceiptDialogVisible,data:e.batchReceiptDataList,title:e.batchReceiptDialogTitle},on:{"update:visible":function(t){e.BatchReceiptDialogVisible=t},refresh:e.refreshList,refreshInnerList:e.handleRefreshBatchReceiptList}}),e._v(" "),i("BatchModifyWarehouseDialog",{attrs:{visible:e.batchModifyWarehouseDialogVisible,selectRows:e.checkedRows},on:{"update:visible":function(t){e.batchModifyWarehouseDialogVisible=t},refresh:e.refreshList,modifyFail:e.openErrorDialog}}),e._v(" "),i("BatchModifyPurchasePriceDialog",{attrs:{visible:e.batchModifyPurchasePriceDialogVisible,dataList:e.batchModifyPurchasePriceDataList,title:e.batchModifyPurchasePriceDialogTitle},on:{"update:visible":function(t){e.batchModifyPurchasePriceDialogVisible=t},submit:e.submitBatchModifyPurchasePrice}}),e._v(" "),i("ErrorDialog",{attrs:{title:e.$t("common.tip"),visible:e.errorDialogConfig.visible,columns:e.errorDialogConfig.columns,data:e.errorDialogConfig.data},on:{close:e.handleCloseErrorDialog},scopedSlots:e._u([{key:"header",fn:function(){return[i("div",{staticClass:"flex"},[i("div",[e._v(e._s(e.$t("main.warehouse.remove.receipt.success.count",{count:e.errorDialogConfig.successCount})))]),e._v(" "),i("div",{staticClass:"ml_16"},[e._v(e._s(e.$t("main.warehouse.remove.receipt.failed.count",{count:e.errorDialogConfig.failCount})))])])]},proxy:!0}])}),e._v(" "),i("LazyModalWrapper",{attrs:{visible:e.printTemplateSkuDialog.visible},on:{"update:visible":function(t){return e.$set(e.printTemplateSkuDialog,"visible",t)}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.context;return[i("PrintTemplateDialog",{attrs:{value:e.printTemplateSkuDialog.value,visible:r.visible,"template-type":"sku"},on:{"update:visible":function(t){return e.$set(r,"visible",t)}}})]}}])}),e._v(" "),i("LazyModalWrapper",{attrs:{visible:e.printTemplateFnSkuDialog.visible},on:{"update:visible":function(t){return e.$set(e.printTemplateFnSkuDialog,"visible",t)}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.context;return[i("PrintTemplateDialog",{attrs:{value:e.printTemplateFnSkuDialog.value,visible:r.visible,"template-type":"fnsku"},on:{"update:visible":function(t){return e.$set(r,"visible",t)}}})]}}])}),e._v(" "),i("LazyModalWrapper",{attrs:{visible:e.printTemplateOrderDialog.visible},on:{"update:visible":function(t){return e.$set(e.printTemplateOrderDialog,"visible",t)}},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.context;return[i("PrintTemplateReceipt",{attrs:{value:e.printTemplateOrderDialog.value,visible:r.visible,templateType:"removeInbound"},on:{"update:visible":function(t){return e.$set(r,"visible",t)}}})]}}])})],1)},[],!1,null,"f167dafc",null).exports;function e3(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function e4(e,t,i,r,a,o,n){try{var s=e[o](n),l=s.value}catch(e){i(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function e5(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){var r;r=i[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function e6(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}
1)(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}function e9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],n=!0,s=!1;try{for(a=a.call(e);!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){s=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return e3(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e3(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e8="RemoveReceiptWarehouse",e7={dateType:N,startDate:f,endDate:v,searchField:R,searchType:"blur",searchContents:[]},te={name:e8,components:{NewLayout:n.A,TabBarLeft:s.A,FilterBar:en,TableContent:e2},data:function(){return{currentTab:T.all,filter:e5({},e7),paginator:{currentPage:1,pageSize:20,totalResult:0},tableData:[],summary:{},stockOrderStatusOptions:C,skipNextFilterCacheSync:!1,isActivatedFlag:!1}},computed:{tableColumns:function(){return K}},watch:{filter:function(){if(this.skipNextFilterCacheSync){this.skipNextFilterCacheSync=!1;return}this.setCache()},$route:{handler:function(){this.initRouteParams()},immediate:!0}},methods:{handleTabBarChange:function(e){var t;t=e9(e,1),this.currentTab=t[0],this.resetCurrentPage(),this.search()},handleFilterChange:function(e){this.filter=e,this.resetCurrentPage(),this.search()},handleFilterReset:function(){this.filter=this.$dcopy(e7),this.resetCurrentPage(),this.search()},handlePageChange:function(e){this.setPaginator(e),this.search()},getParams:function(){var e=this.paginator,t=this.filter,i=e.currentPage,r=e.pageSize,a=e6(e5({},t),{orderStatus:this.currentTab,pageNo:i,pageSize:r});return this.currentTab===T.all&&delete a.orderStatus,a},getExportParams:function(){var e=this.currentTab,t=this.filter,i=this.orderBy,r=this.order;return e6(e5({currentTab:e},t),{orderBy:i,order:r})},search:function(){var e;return(e=function(){var e,t,i,r,a,o,n,s,l,c,u,h,d;return function(e,t){var i,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(n,"next",{value:l(0)}),s(n,"throw",{value:l(1)}),s(n,"return",{value:l(2)}),"function"==typeof Symbol&&s(n,Symbol.iterator,{value:function(){return this}}),n;function l(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(m){switch(m.label){case 0:e=this,m.label=1;case 1:return m.trys.push([1,3,4,5]),this.$loading(),this.$stepRecord(e8,"cgi-start"),t=this.getParams(),[4,Promise.all([this.$http.queryRemoveReceiptWarehouseList(t),this.$http.queryRemoveReceiptWarehouseOrderSummary(),this.$http.queryRemoveReceiptWarehouseOrderFooterSummary(t)])];case 2:return r=(i=e9(m.sent(),3))[0],a=i[1],o=i[2],n=r.rows,s=r.pageNo,l=r.pageSize,c=r.totalSize,this.$stepRecord(e8,"cgi-end"),this.summary=o,this.tableData=n||[],this.setPaginator({currentPage:s,pageSize:l,totalResult:c}),u=0,h=this.$dcopy(this.stockOrderStatusOptions),a.forEach(function(t){var i=t.orderStatus,r=t.count;u+=r;var a=e.stockOrderStatusOptions.findIndex(function(e){return Number(e.value)===i});-1!==a&&(h[a].num=r)}),h[0].num=u,this.stockOrderStatusOptions=h,[3,5];case 3:return d=m.sent(),this.$message.error(d.msg),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})},function(){var t=this,i=arguments;return new Promise(function(r,a){var o=e.apply(t,i);function n(e){e4(o,r,a,n,s,"next",e)}function s(e){e4(o,r,a,n,s,"throw",e)}n(void 0)})}).call(this)},startPolling:function(){var e,t,i;this.$message.success(this.$t("main.warehouse.remove.receipt.added.to.task.list")),null==(i=this.$refs.tableContentRef)||null==(t=i.$refs)||null==(e=t.singleProgressPopoverRef)||e.startPolling()},setPaginator:function(e){this.paginator=e5({},this.paginator,e)},resetCurrentPage:function(){this.setPaginator({currentPage:1})},setCache:function(){this.$utils.storageAction.objSet(_,this.filter)},getCache:function(){return this.$utils.storageAction.objGet(_)},initRouteParams:function(){var e,t,i,r,a=this,o=this.$route,n=o.params,s=void 0===n?{}:n,c=o.query,u=void 0===c?{}:c,h=null!=(e=null==s?void 0:s.orderNo)?e:null==u?void 0:u.orderNo,d=(null==s?void 0:s.jumpReset)==="1"||(null==s?void 0:s.jumpReset)===1||(null==u?void 0:u.jumpReset)==="1"||(null==u?void 0:u.jumpReset)===1,m=[null!=(t=null!=(i=null!=(r=null==s?void 0:s.searchContent)?r:null==u?void 0:u.searchContent)?i:null==s?void 0:s.orderNo)?t:null==u?void 0:u.orderNo].filter(Boolean),p=null,f=this.getCache();(0,l.hj7)(f)&&!d&&(this.filter=f),d?(this.skipNextFilterCacheSync=!0,p=e6(e5({},e7),{searchField:P,searchContents:m,searchType:(null==s?void 0:s.searchTypeEnum)||(null==u?void 0:u.searchTypeEnum)||"exact"})):h&&(p=e6(e5({},this.filter),{searchField:P,searchContents:[h],searchType:"exact"})),p&&(this.filter=p,this.setCache()),d&&this.$nextTick(function(){(0,H.F)(a,{clearParams:!0,clearQuery:!0,extraParamKeys:["orderNo"],extraQueryKeys:["orderNo","searchType","searchContent","searchTypeEnum"]})})}},created:function(){this.search(),this.isActivatedFlag=!0},activated:function(){this.isActivatedFlag&&this.search()}},tt=(0,eo.A)(te,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"layout_main_body"},[i("NewLayout",{scopedSlots:e._u([{key:"aside",fn:function(){return[i("TabBarLeft",{attrs:{options:e.stockOrderStatusOptions,currentActive:e.currentTab},on:{click:e.handleTabBarChange}})]},proxy:!0},{key:"header",fn:function(){return[i("FilterBar",{ref:"filterBarRef",attrs:{data:e.filter},on:{change:e.handleFilterChange,reset:e.handleFilterReset}})]},proxy:!0},{key:"main",fn:function(){return[i("TableContent",{ref:"tableContentRef",attrs:{pageName:"RemoveReceiptWarehouse",data:e.tableData,summary:e.summary,columns:e.tableColumns,paginator:e.paginator,orderBy:e.orderBy,order:e.order,currentTab:e.currentTab,getExportParams:e.getExportParams},on:{"update:orderBy":function(t){e.orderBy=t},"update:order-by":function(t){e.orderBy=t},"update:order":function(t){e.order=t},refresh:e.search,pageChange:e.handlePageChange}})]},proxy:!0}])})],1)},[],!1,null,null,null).exports},37259:function(e,t,i){"use strict";i.d(t,{r:function(){return a}});var r={US:"amzup.ui.shop.selector.marketplace.us",CA:"amzup.ui.shop.selector.marketplace.ca",MX:"amzup.ui.shop.selector.marketplace.mx",UK:"amzup.ui.shop.selector.marketplace.uk",GB:"amzup.ui.shop.selector.marketplace.uk",DE:"amzup.ui.shop.selector.marketplace.de",FR:"amzup.ui.shop.selector.marketplace.fr",IT:"amzup.ui.shop.selector.marketplace.it",ES:"amzup.ui.shop.selector.marketplace.es",JP:"amzup.ui.shop.selector.marketplace.jp",AU:"amzup.ui.shop.selector.marketplace.au",IN:"amzup.ui.shop.selector.marketplace.in",SG:"amzup.ui.shop.selector.marketplace.sg",AE:"amzup.ui.shop.selector.marketplace.ae",SA:"amzup.ui.shop.selector.marketplace.sa",NL:"amzup.ui.shop.selector.marketplace.nl",SE:"amzup.ui.shop.selector.marketplace.se",PL:"amzup.ui.shop.selector.marketplace.pl",TR:"amzup.ui.shop.selector.marketplace.tr",BE:"amzup.ui.shop.selector.marketplace.be",BR:"amzup.ui.shop.selector.marketplace.br",EG:"amzup.ui.shop.selector.marketplace.eg",ZA
1:"amzup.ui.shop.selector.marketplace.za"};function a(e,t){var i=r[e.marketplace];return i?t(i):e.marketplaceCN}},76915:function(e,t,i){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){var r;r=i[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i.d(t,{F:function(){return s}}),i(77949),i(5092),i(937),i(25259),i(62394),i(99583);var n=["jumpReset","searchType","searchContent","searchTypeEnum"];function s(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.clearParams,s=void 0===r||r,l=i.clearQuery,c=void 0===l||l,u=i.extraParamKeys,h=i.extraQueryKeys;if((null==e?void 0:e.$route)&&(null==e?void 0:e.$router)){var d=e.$route,m=a({},d.params||{}),p=a({},d.query||{}),f=o(n).concat(o(void 0===u?[]:u)),v=o(n).concat(o(void 0===h?[]:h)),y=!1;if(s&&f.forEach(function(e){Object.prototype.hasOwnProperty.call(m,e)&&(delete m[e],y=!0)}),c&&v.forEach(function(e){Object.prototype.hasOwnProperty.call(p,e)&&(delete p[e],y=!0)}),y){var b={params:m,query:p};d.name?b.name=d.name:b.path=d.path;var g=e.$router.resolve(b);if(((null==g||null==(t=g.route)?void 0:t.fullPath)||(null==g?void 0:g.fullPath))===d.fullPath){s&&d.params&&f.forEach(function(e){Object.prototype.hasOwnProperty.call(d.params,e)&&delete d.params[e]}),c&&d.query&&v.forEach(function(e){Object.prototype.hasOwnProperty.call(d.query,e)&&delete d.query[e]});return}e.$router.replace(b)}}}t.A=s},75254:function(e,t,i){"use strict";i.d(t,{y:function(){return r}}),i(5092),i(81902),i(62394),i(13951),i(31731);var r=function(e,t){if(!e||!t||"[object String]"!==Object.prototype.toString.call(e))return[];var i=e.split("%\xb1%").filter(Boolean);return"blur"===t&&(i=[e]),i}},94626:function(e,t,i){"use strict";i.d(t,{B6:function(){return f},E9:function(){return p},GK:function(){return u},Hf:function(){return d},PD:function(){return m},X2:function(){return h},gR:function(){return c},jL:function(){return v}});var r,a,o=i(52559),n=i(30799),s=i(335);function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var c={create:"create",detail:"detail",edit:"edit",receive:"receive"},u=[{label:(0,n.Tl)("main.product.order.remove.entry.cost.allocation.none"),value:0},{label:(0,n.Tl)("main.product.order.remove.entry.cost.allocation.amount"),value:1},{label:(0,n.Tl)("main.product.order.remove.entry.cost.allocation.quantity"),value:2}],h=[{title:(0,n.Tl)("common.image"),field:"img",minWidth:(0,o.n)("60"),slots:{default:"img_default"}},{title:"MSKU/FNSKU",field:"commodityMSkuFnSku",minWidth:"180",slots:{default:"commodityMSkuFnSku_default"}},{title:(0,n.Tl)("main.product.order.remove.columns.product.name.sku"),field:"commodityNameSku",minWidth:"180",slots:{default:"commodityNameSku_default"}},{title:(0,n.Tl)("main.product.order.remove.columns.inventory.attribute"),field:"disposition",minWidth:"120"},{title:(0,n.Tl)("main.components.exclusive.type.select.exclusive.type"),field:"exclusiveType",minWidth:"180",slots:{header:"exclusiveType_header",default:"exclusiveType_default"}},{title:(0,n.Tl)("main.product.order.remove.carrier"),field:"carrier",minWidth:"120",slots:{default:"carrier_default"}},{title:(0,n.Tl)("main.product.order.remove.tracking.no"),field:"trackingNumber",minWidth:"180",slots:{default:"trackingNumber_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.shipped.quantity"),field:"shippedQuantity",minWidth:"120",slots:{default:"shippedQuantity_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.received.quantity"),field:"receivedGoodsQuantity",minWidth:"120",slots:{default:"receivedGoodsQuantity_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.wait.received.quantity"),field:"waitReceivedQty",minWidth:"120"},{title:(0,n.Tl)("main.product.order.remove.entry.received.good.quantity"),field:"receivedGoodQty",minWidth:"180"},{title:(0,n.Tl)("main.product.order.remove.entry.received.bad.quantity"),field:"receivedBadQty",minWidth:"180"},{title:(0,n.Tl)("main.product.order.remove.entry.current.received.good.quantity"),field:"receiptGoodCommodityQuantity",minWidth:"180",slots:{header:"receiptGoodCommodityQuantity_header",default:"receiptGoodCommodityQuantity_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.current.received.bad.quantity"),field:"receiptDefectiveCommodityQuantity",minWidth:"180",slots:{header:"receiptDefectiveCommodityQuantity_header",default:"receiptDefectiveCommodityQuantity_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.received.good.shelf"),field:"receiptGoodCommodityShelf",minWidth:"180",slots:{header:"receiptGoodCommodityShelf_header",default:"receiptGoodCommodityShelf_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.received.bad.shelf"),field:"receiptDefectiveCommodityShelf",minWidth:"180",slots:{header:"receiptDefectiveCommodityShelf_header",default:"receiptDefectiveCommodityShelf_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.purchase.price.cny"),field:"purchasePrice",minWidth:"180",slots:{header:"purchasePrice_header",default:"purchasePrice_default"}},{title:(0,n.Tl)("main.product.order.remove.entry.unit.fee.cny"),minWidth:"120",field:"unitFee",slots:{default:"unitFee_default"}}],d=[{type:"checkbox",field:"checkbox",fixed:"left",width:45},{title:(0,n.Tl)("main.product.order.remove.entry.outbound.order.no"),field:"outRecordNo",minWidth:"120"},{title:(0,n.Tl)("main.product.order.remove.columns.inventory.attribute"),field:"sellableName",minWidth:"60"},{title:(0,n.Tl)("main.product.order.remove.entry.outbound.quantity"),field:"quantity",minWidth:"60"},{title:(0,n.Tl)("main.product.order.remove.entry.unit.purchase.cost"),field:"unitPurchaseCost",minWidth:"60"},{title:(0,n.Tl)("main.product.order.remove.entry.unit.transport.cost"),field:"unitTransportCost",minWidth:"60"}],m={cancel:"cancel",save:"save",submit:"submit",edit:"edit",receive:"receive",repeal:"repeal",toReceive:"toReceive"},p=(l(r={},m.save,0),l(r,m.submit,1),r),f={good:"good",defective:"defective"},v=(l(a={},s.NO.draft,{label:(0,n.Tl)("main.product.order.remove.entry.status.draft"),type:""}),l(a,s.NO.waitReceipt,{label:(0,n.Tl)("main.product.order.remove.entry.status.wait.receipt"),type:"warning"}),l(a,s.NO.complete,{label:(0,n.Tl)("main.product.order.remove.entry.status.complete"),type:"success"}),l(a,s.NO.Invalid,{label:(0,n.Tl)("main.product.order.remove.entry.status.invalid"),type:"danger"}),a)},36938:function(e,t,i){"use strict";var r=i(90887),a=i(99708),o=i(7618).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var i=o(a(e),t);return(!i||!!i.configurable)&&delete e[t]}})}}]);

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.