1"use strict";(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["14890"],{20401:function(t,e,r){r.d(e,{A:function(){return p}}),r(31731),r(5092),r(88208),r(937),r(47424),r(59622),r(62394),r(13951),r(915);var n=r(59335),o=r(75899),i=r(9527),a=r(50606),s=r(10937),l=r(49973);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){r(t);return}s.done?e(l):Promise.resolve(l).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)})}}function f(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(a,"next",{value:l(0)}),s(a,"throw",{value:l(1)}),s(a,"return",{value:l(2)}),"function"==typeof Symbol&&s(a,Symbol.iterator,{value:function(){return this}}),a;function l(s){return function(l){var c=[s,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=e.call(t,i)}catch(t){c=[6,t],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var m={name:"ImportCartonsDialog",components:{SearchBar:s.A,TextTips:o.A,PopoverContainer:i.A,WarehouseSelectorNew:a.A,ToolsLine:l.A},props:{visible:Boolean,tableData:Object,pageType:String,isNoRemember:Boolean},data:function(){return{innerVisible:!1,shipNum:0,searchOptions:{width:310,searchFiledOptions:[{label:this.$t("comm.import.cartons.box.mark.no"),value:"boxMarkNo",multiType:!0},{label:this.$t("comm.import.cartons.custom.box.no"),value:"customBoxNo",multiType:!0},{label:this.$t("comm.import.cartons.source.order.no"),value:"sourceOrderSn",multiType:!0},{label:this.$t("comm.import.cartons.related.order.no"),value:"orderSn",multiType:!0}],placeholder:this.$t("common.search.content"),searchFiledWidth:110,valueArray:!0},backupsTable:[],selectTable:[],filter:this.filterDefault()}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},(0,n.mapState)("Socket",{noWarehouse:function(t){return t.noWarehouse}})),watch:{visible:function(t){this.innerVisible=t,t&&this.init()},innerVisible:function(t){this.$emit("update:visible",t)}},methods:{init:function(){return h(function(){return f(this,function(t){switch(t.label){case 0:return[4,this.packingList()];case 1:return t.sent(),[2]}})}).call(this)},filterDefault:function(){return{searchField:"",searchValue:"",warehouseIds:[]}},handleClose:function(){var t;this.isNoRemember&&this.clearData(),this.innerVisible=!1,this.shipNum=0,this.filter=this.filterDefault(),null==(t=this.$refs.searchBar)||t.onClear()},clearData:function(){Object.assign(this.$data,this.$options.data.call(this))},packingList:function(){return h(function(){var t;return f(this,function(e){return t=this,this.selectTable.length&&!this.isNoRemember&&this.selectTable.forEach(function(e){t.syncBackupsTable(!0,e)}),this.backupsTable=this.tableData,[2]})}).call(this)},selectAllEvent:function(t){var e=this,r=t.checked;
1this.backupsTable.forEach(function(t){t.checked=r,e.syncBackupsTable(r,t)})},selectChangeEvent:function(t){var e=t.checked,r=t.row;this.$set(r,"checked",e),this.syncBackupsTable(e,r),this.$refs.tableRef.refreshColumn()},shipNumFn:function(){var t;this.shipNum=(null==(t=this.tableData.filter(function(t){return t.checked}))?void 0:t.length)||0},syncBackupsTable:function(t,e){this.tableData.forEach(function(r){e?e.id===r.id&&(r.checked=e.checked):r.checked=t}),this.shipNumFn()},submitEvent:function(){var t=this.tableData.filter(function(t){return t.checked});t.length?(this.$emit("submit",t),this.selectTable=t,this.handleClose()):this.$message.error(this.$t("comm.import.cartons.err.select.box"))},onFilterUpdate:function(t,e){if("searchBar"===e){var r=t.searchField,n=t.searchValue,o=t.changeType;if(this.filter.searchField=r,this.filter.searchValue=n,"noChange"===o)return}else"warehouse"===e&&(this.filter.warehouseIds=t);this.searchChange()},searchChange:function(){var t=this.searchBarChange(this.tableData),e=this.warehouseIdsChange(t);this.backupsTable=e},searchBarChange:function(t){var e=this.filter,r=e.searchField,n=e.searchValue,o=[];if(!(null==n?void 0:n.length)||!(function(t){if(Array.isArray(t))return t}(n)||function(t){var e,r,n=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(o.push(e.value),1!==o.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(n)||function(t){if(t){if("string"==typeof t)return c(t,1);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,1)}}(n)||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])return t;if((null==n?void 0:n.length)>1)o=t.filter(function(t){return t[r]&&n.some(function(e){return t[r].includes(e)})});else if((null==n?void 0:n.length)===1){var i=n[0];o=t.filter(function(t){var e;return null==(e=t[r])?void 0:e.includes(i)})}return o},warehouseIdsChange:function(t){var e=this;if(!this.filter.warehouseIds.length)return t;var r=[];return this.filter.warehouseIds.length&&(r=t.filter(function(t){return e.filter.warehouseIds.includes(t.warehouseId)})),r},getToolLineOptions:function(t){return t?t.split(",").map(function(t){return{label:t}}):[]}}},p=(0,r(28644).A)(m,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-dialog",{attrs:{title:t.$t("comm.import.cartons.title"),visible:t.innerVisible,"custom-class":"operation_box dialog_big",modal:!1,"append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":t.handleClose},on:{"update:visible":function(e){t.innerVisible=e}}},[r("div",{staticClass:"body flex column h_p_100"},[r("div",{staticClass:"flex between center_align mb_16"},[r("div",{staticClass:"flex column_gap_4"},[r("SearchBar",{ref:"searchBar",attrs:{options:t.searchOptions},on:{"on-change":function(e){return t.onFilterUpdate(e,"searchBar")}}}),t._v(" "),r("WarehouseSelectorNew",{attrs:{shift:"",isMulti:"",placeholder:t.$t("common.warehouse"),filterable:"",warehouseType:t.noWarehouse?3:""},on:{change:function(e){return t.onFilterUpdate(e,"warehouse")}},model:{value:t.filter.warehouseIds,callback:function(e){t.$set(t.filter,"warehouseIds",e)},expression:"filter.warehouseIds"}})],1),t._v(" "),r("span",[t._v(t._s(t.$t("comm.import.cartons.selected.count",{count:t.shipNum})))])]),t._v(" "),r("div",{staticClass:"mb_16 flex_1"},[r("vxe-table",{ref:"tableRef",staticClass:"product_info vxe_table_row_height_48",attrs:{"show-header-overflow":"","highlight-current-row":"","highlight-hover-row":"","auto-resize":"",height:"100%",round:"",resizable:"","checkbox-config":{checkField:"checked"},data:t.backupsTable},on:{"checkbox-all":t.selectAllEvent,"checkbox-change":t.selectChangeEvent}},[r("vxe-table-column",{attrs:{type:"checkbox",width:"60"}}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"120",title:t.$t("comm.import.cartons.box.mark.no")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{directives:[{name:"copy",rawName:"v-copy",value:{text:n.boxMarkNo},expression:"{ text: row.boxMarkNo }"}],attrs:{text:t._f("empty")(n.boxMarkNo)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"100",title:t.$t("comm.import.cartons.custom.box.no")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{directives:[{name:"copy",rawName:"v-copy",value:{text:n.customBoxNo},expression:"{ text: row.customBoxNo }"}],attrs:{text:t._f("empty")(n.customBoxNo)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"100",title:t.$t("common.warehouse")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{directives:[{name:"copy",rawName:"v-copy",value:{text:n.warehouseName},expression:"{ text: row.warehouseName }"}],attrs:{text:t._f("empty")(n.warehouseName)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"120",title:t.$t("comm.import.cartons.related.order.no")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("ToolsLine",{attrs:{isCopy:"",orderNoList:t.getToolLineOptions(n.orderSn)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"120",title:t.$t("comm.import.cartons.source.order.no")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("div",{directives:[{name:"copy",rawName:"v-copy",value:{text:n.sourceOrderSn},expression:"{ text: row.sourceOrderSn }"}],staticClass:"line_clamp"},[t._v(t._s(t._f("empty")(n.sourceOrderSn)))])]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"100",title:t.$t("comm.import.cartons.size")},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[r("div",{staticClass:"line_clamp"},[r("TextTips",{attrs:{text:e.length+" * "+e.width+" * "+e.height+" "+e.lengthUnit}})],1)]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"80",title:t.$t("comm.import.cartons.weight")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{attrs:{text:t._f("empty")(n.weight+" "+n.weightUnit)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"400",title:t.$t("comm.import.cartons.products")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("PopoverContainer",{attrs:{placement:"top",trigger:"hover"},scopedSlots:t._u([{key:"trigger",fn:function(){return[n.itemList?r("div",{staticClass:"flex center_align max_width_100"},[r("div",{staticClass:"max_width_100"},[n.itemList[0]?r("TextTips",{attrs:{text:"SKU\u3010"+n.itemList[0].commoditySku+"\u3011"+(n.itemList[0].fnSku?",FNSKU\u3010"+n.itemList[0].fnSku+"\u3011":"")+"* "+n.itemList[0].quantityShipped}}):r("div",[t._v("-")]),t._v(" "),n.itemList[1]?r("TextTips",{attrs:{text:"SKU\u3010"+n.itemList[1].commoditySku+"\u3011"+(n.itemList[1].fnSku?",FNSKU\u3010"+n.itemList[1].fnSku+"\u3011":"")+"* "+n.itemList[1].quantityShipped}}):t._e()],1),t._v(" "),n.itemList.length>2?r("i",{staticClass:"icon_down ml_4"}):t._e()]):t._e()]},proxy:!0}],null,!0)},[r("ul",t._l(n.itemList,function(e,n){return r("li",{key:n},[t._v("\n SKU\u3010"+t._s(e.commoditySku)+"\u3011"+t._s(e.fnSku?",FNSKU\u3010"+e.fnSku+"\u3011":"")+"* "+t._s(e.quantityShipped)+"\n ")])}),0)])]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"80",title:t.$t("comm.import.cartons.total.quantity")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{attrs:{text:t._f("empty")(n.totalNum)}})]}}])}),t._v(" "),r("vxe-table-column",{attrs:{"min-width":"100",title:t.$t("comm.import.cartons.complete.time")},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("TextTips",{attrs:{text:t._f("empty")(n.completeTime)}})]}}])})],1)],1)]),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.handleClose}},[t._v(t._s(t.$t("common.close")))]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submitEvent}}
1,[t._v(t._s(t.$t("common.confirm")))])],1)])],1)},[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.