1"use strict";(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["16884"],{65599:function(t,n,e){e.d(n,{A:function(){return h}}),e(915),e(5092),e(31731),e(10327),e(21927),e(25962),e(48741),e(72860),e(20767),e(937),e(25259),e(75038),e(93893);var r=e(52559),a=e(95991),i=e(74943),o=e(74509);function u(t,n,e,r,a,i,o){try{var u=t[i](o),s=u.value}catch(t){e(t);return}u.done?n(s):Promise.resolve(s).then(r,a)}function s(t){return function(){var n=this,e=arguments;return new Promise(function(r,a){var i=t.apply(n,e);function o(t){u(i,r,a,o,s,"next",t)}function s(t){u(i,r,a,o,s,"throw",t)}o(void 0)})}}function c(t,n){var e,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(o,"next",{value:s(0)}),u(o,"throw",{value:s(1)}),u(o,"return",{value:s(2)}),"function"==typeof Symbol&&u(o,Symbol.iterator,{value:function(){return this}}),o;function s(u){return function(s){var c=[u,s];if(e)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(i=0)),i;)try{if(e=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 i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(6===c[0]&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(t){c=[6,t],r=0}finally{e=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var l={name:"AddCartonsRule",components:{InputSize:a.A},props:{visible:Boolean,tableList:{type:Array,default:function(){return[{length:0,width:0,height:0,weight:0,name:""}]}}},mixins:[o.A],data:function(){return{innerVisible:!1,submitLoading:!1,innerTableList:[],removeList:[],tableMaxHeight:999}},watch:{visible:function(t,n){t!==n&&(this.innerVisible=t,t&&(this.innerTableList=this.$dcopy(this.tableList.map(function(t){var n,e;return n=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}({},t),e=e={nameError:!1,sizeError:!1,weightError:!1,nameReuse:!1,isAddRow:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):(function(t){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n.push.apply(n,e)}return n}
1)(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n})),this.tableList.length||this.addRule()))},innerVisible:function(t,n){t!==n&&this.$emit("update:visible",t)}},computed:{isMaxRowLength:function(){return this.innerTableList.filter(function(t){return t.isAddRow}).length>=5}},mounted:function(){this.calculateTableMaxHeight(),window.addEventListener("resize",this.calculateTableMaxHeight)},unmounted:function(){window.removeEventListener("resize",this.calculateTableMaxHeight)},methods:{getI18nColumnWidth:r.n,calculateTableMaxHeight:function(){this.tableMaxHeight=window.innerHeight-450},addRule:function(){var t=this;this.isMaxRowLength||(this.innerTableList.push(this.listModel()),setTimeout(function(){var n=t.innerTableList[t.innerTableList.length-1];t.$refs.tableListRef.scrollToRow(n,"bottom")},0))},listModel:function(){return{length:"",width:"",height:"",weight:"",name:"",nameError:!1,sizeError:!1,weightError:!1,nameReuse:!1,isAddRow:!0}},validator:function(){var t=this;return new Promise(function(n,e){var r="",a=new Set,i=function(t){return!Number(t)},o=function(t){return""!==t&&0===Number(t)};t.innerTableList.forEach(function(n){i(n.weight)&&(n.weightError=!0,r=o(n.weight)?t.$t("main.components.add.cartons.rule.err.empty.box.weight.invali
1d"):t.$t("main.components.add.cartons.rule.err.empty.box.weight.required"));var e=n.width,u=n.height,s=n.length;[e,u,s].some(i)&&(n.sizeError=!0,r=[e,u,s].some(o)?t.$t("main.components.add.cartons.rule.err.size.invalid"):t.$t("main.components.add.cartons.rule.err.size.required")),a.has(n.name)&&(n.nameReuse=!0,r=t.$t("main.components.add.cartons.rule.err.name.duplicate")),n.name||(n.nameError=!0,r=t.$t("main.wares.manage.packing.info.box.specification.name.required")),a.add(n.name)}),r&&e(r),n()})},saveHandle:function(){return s(function(){var t,n,e;return c(this,function(r){switch(r.label){case 0:t=this,this.submitLoading=!0,r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,this.validator()];case 2:return r.sent(),n=[],this.innerTableList.forEach(function(e){var r=(0,i.UpN)(e,["id","name","width","height","length","weight"]),a=t.removeList.find(function(t){return t.name===e.name});!a||(null==r?void 0:r.id)||(r.id=a.id),n.push(r)}),[4,this.$http.batchDimensionsgUpdate(n)];case 3:return r.sent(),this.updataList(),this.innerVisible=!1,this.$message.success(this.$t("common.save.success")),[3,6];case 4:return e=r.sent(),this.$message.error(e.message||e),[3,6];case 5:return this.submitLoading=!1,[7];case 6:return[2]}})}).call(this)},remove:function(t,n){return s(function(){return c(this,function(e){return(null==n?void 0:n.id)&&this.removeList.push(this.tableList.find(function(t){return t.id===n.id})),this.innerTableList.splice(t,1),[2]})}).call(this)},updataList:function(){this.setCartonRuleList(this.$dcopy(this.innerTableList)),this.$emit("on-change",this.innerTableList)},closedFn:function(){this.innerTableList=this.innerTableList.filter(function(t){return t.name}),this.updataList()},inputVerifyFloat:function(t,n){t[n]=this.$utils.fbaShipmentPackingInputValid(t[n])},inputBlur:function(t,n){t[n]&&(t[n]=parseFloat(t[n]))}}},h=(0,e(28644).A)(l,function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("el-dialog",{attrs:{title:t.$t("main.fba.scan.packing.common.carton.rule.management"),visible:t.innerVisible,"custom-class":"operation_box carton_size_dialog",modal:!1,"append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"800px"},on:{"update:visible":function(n){t.innerVisible=n}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("el-button",{on:{click:function(n){t.innerVisible=!1}}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),e("el-button",{attrs:{loading:t.submitLoading,type:"primary"},on:{click:t.saveHandle}},[t._v(t._s(t.$t("common.save")))])]},proxy:!0}])},[e("div",{staticClass:"h_p_100"},[e("vxe-table",{ref:"tableListRef",staticClass:"vxe_table_row_height_48 table_info2 carton_size_table",attrs:{"max-height":t.tableMaxHeight+"px","highlight-hover-row":"","highlight-current-row":"","auto-resize":"",round:"","show-footer":"","footer-method":function(){return[[""]]},data:t.innerTableList},scopedSlots:t._u([{key:"empty",fn:function(){return[e("div",{staticClass:"f_12 f_gray"},[t._v(t._s(t.$t("common.no.data")))])]},proxy:!0}])},[e("vxe-table-column",{attrs:{title:t.$t("main.fba.shipments.factory.packaging.field.box.rule.name"),"min-width":"230"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(t._s(t.$t("main.fba.shipments.factory.packaging.field.box.rule.name"))),e("span",{staticClass:"f_red"},[t._v("*")])]},proxy:!0},{key:"default",fn:function(n){var r=n.row;return[e("el-input",{class:{input_error:r.nameError&&!r.name||r.nameReuse},attrs:{placeholder:t.$t("common.name"),maxlength:"10"},on:{input:function(){return r.nameReuse=!1}},model:{value:r.name,callback:function(n){t.$set(r,"name",n)},expression:"row.name"}})]}},{key:"footer",fn:function(){return[e("div",{staticClass:"footer_add_carton",class:{add_disabled:t.isMaxRowLength},on:{click:t.addRule}},[e("i",{staticClass:"icon icon_sf_add pr_4"}),t._v(" "+t._s(t.$t("main.components.add.cartons.rule.add")))])]},proxy:!0}])}),t._v(" "),e("vxe-table-column",{attrs:{title:t.$t("main.components.add.cartons.rule.size"),"min-width":"230"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(t._s(t.$t("main.components.add.cartons.rule.size"))),e("span",{staticClass:"f_red"},[t._v("*")])]},proxy:!0},{key:"default",fn:function(n){var r=n.row;return[e("InputSize",{attrs:{length:r.length,width:r.width,height:r.height,sizeErr:r.sizeError&&(!r.length||!r.width||!r.height)}
1,on:{"update:length":function(n){return t.$set(r,"length",n)},"update:width":function(n){return t.$set(r,"width",n)},"update:height":function(n){return t.$set(r,"height",n)}}})]}}])}),t._v(" "),e("vxe-table-column",{attrs:{title:t.$t("main.components.add.cartons.rule.empty.box.weight"),"min-width":"230"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(t._s(t.$t("main.components.add.cartons.rule.empty.box.weight"))),e("span",{staticClass:"f_red"},[t._v("*")])]},proxy:!0},{key:"default",fn:function(n){var r=n.row;return[e("el-input",{staticClass:"weight_input",class:{input_error:r.weightError&&!r.weight},attrs:{placeholder:"0"},on:{input:function(n){return t.inputVerifyFloat(r,"weight")},blur:function(n){return t.inputBlur(r,"weight")}},model:{value:r.weight,callback:function(n){t.$set(r,"weight",n)},expression:"row.weight"}},[e("span",{attrs:{slot:"suffix"},slot:"suffix"},[t._v("kg")])])]}}])}),t._v(" "),e("vxe-table-column",{attrs:{title:t.$t("common.operation"),"min-width":t.getI18nColumnWidth("60")},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.row,a=n.rowIndex;return[e("el-button",{staticClass:"mt_8",attrs:{type:"text",disabled:1===t.innerTableList.length},on:{click:function(n){return t.remove(a,r)}}},[t._v(t._s(t.$t("common.remove")))])]}}])})],1)],1)])},[],!1,null,"9e150170",null).exports},95991:function(t,n,e){e.d(n,{A:function(){return r}}),e(20767),e(77949);var r=(0,e(28644).A)({name:"InputSize",props:{length:[Number,String],width:[Number,String],height:[Number,String],sizeErr:Boolean,unit:{type:String,default:"cm"},lengthInputClass:{type:[String,Array,Object],default:"w_70"},widthInputClass:{type:[String,Array,Object],default:"w_70"},heightInputClass:{type:[String,Array,Object],default:"w_110"}},methods:{inputValid:function(t,n){t&&(this[n]=this.$utils.fbaShipmentPackingInputValid(t)),this.$emit("update:".concat(n),this[n]),this.$emit("sizeChange",{key:n,value:this[n]})}}},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"flex center_align ipt_group"},[e("div",{staticClass:"el-input-group--append"},[e("el-input",{class:[{input_error:t.sizeErr&&!Number(t.length)},t.lengthInputClass],attrs:{placeholder:t.$t("main.fba.scan.packing.common.length")},on:{input:function(n){return t.inputValid(n,"length")}},model:{value:t.length,callback:function(n){t.length=n},expression:"length"}})],1),t._v(" "),e("div",{staticClass:"el-input-group--prepend el-input-group--append"},[e("el-input",{class:[{input_error:t.sizeErr&&!Number(t.width)},t.widthInputClass],attrs:{placeholder:t.$t("main.fba.scan.packing.common.width")},on:{input:function(n){return t.inputValid(n,"width")}},model:{value:t.width,callback:function(n){t.width=n},expression:"width"}})],1),t._v(" "),e("div",{staticClass:"el-input-group--prepend el-input-group--append ipt_height"},[e("el-input",{class:[{input_error:t.sizeErr&&!Number(t.height)},t.heightInputClass],attrs:{placeholder:t.$t("main.fba.scan.packing.common.height")},on:{input:function(n){return t.inputValid(n,"height")}},model:{value:t.height,callback:function(n){t.height=n},expression:"height"}},[e("template",{slot:"append"},[t._v(t._s(t.unit))])],2)],1)])},[],!1,null,"723c76ee",null).exports},74509:function(t,n,e){e(20767),e(5092),e(77949),e(915),e(31731),e(47424),e(59622),e(67411),e(937),e(75038),e(51313),e(8650),e(84503),e(93893);var r=e(59335);function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function i(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}function o(t,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(t){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n.push.apply(n,e)}return n}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t}function u(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return a(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=0;n.A={name:"ScanPackingMixin",data:function(){return{isTabActive:0,ukMaxNumObj:{}}},created:function(){this.$utils.addVUEXModule("ScanPacking")},computed:o(i({},(0,r.mapState)("ScanPacking",{scanLeftData:function(t){return t.scanLeftData},scanDetailData:function(t){return t.scanDetailData},operationBtn:function(t){return t.operationBtn},oldScanDetailData:function(t){return t.oldScanDetailData},isVisableRow:function(t){return t.isVisableRow},scanSkuIndex:function(t){return t.scanSkuIndex},scanCartonIndex:function(t){return t.scanCartonIndex},currentInputInfo:function(t){return t.currentInputInfo},perCartonNo:function(t){return t.perCartonNo},cartonNo:function(t){return t.cartonNo},cartonType:function(t){return t.cartonType},scanInputNum:function(t){return t.scanInputNum},scanInputUK:function(t){return t.scanInputUK},scanNum:function(t){return t.scanNum},ukItemInfo:function(t){return t.ukItemInfo},cartonRuleList:function(t){return t.cartonRuleList},customBoxNoCopy:function(t){return t.customBoxNoCopy}})),{isCartonsComplete:function(){var t,n;return(null==(n=this.scanDetailData)||null==(t=n.cartons[this.lastCartonNo-1])?void 0:t.status)===1},lastCartonNo:function(){var t=Number(this.cartonNo-1)+Number(this.perCartonNo);return Math.max(this.perCartonNo,t)},curtCartonsInfo:function(){var t,n=(null==(t=this.scanDetailData)?void 0:t.cartons)||[],e=this.getActiveCartonIndex(n);return n[e]||{}},isAllCartonsComplete:function(){return this.scanDetailData.cartons.every(function(t){return 1===t.status})}}),methods:o(i({},(0,r.mapActions)("ScanPacking",["setScanLeftData","setScanDetailData","clearAllData","setOperationBtnData","setOldScanDetailData","setHandleScrollEvent","setScanCartonIndex","setCurrentInputInfo","setPerCartonNo","setCartonNo","setCartonType","setScanInputNum","setScanNum","setScanInputUK","setUkItemInfo","setCartonRuleList","setCustomBoxNoCopy"])),{getCartonStage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"localSaved"===t.cartonStage?"localSaved":"serverSaved"===t.cartonStage?"serverSaved":"draft"},buildCartonKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.cartonKey)return t.cartonKey;if(t.id)return"server_".concat(t.id);var n="local_".concat(Date.now(),"_").concat(s);return s+=1,n},normalizeCarton:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.getCartonStage(n),a=this.buildCartonKey(o(i({},n),{cartonStage:r}));return o(i({},n),{cartonNo:n.cartonNo||e+1,cartonStage:r,cartonKey:a,status:null!=(t=n.status)?t:+!!n.id})},normalizeCartons:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(function(n,e){return t.normalizeCarton(n,e)})},getSavedCartons:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.filter(function(n){return["serverSaved","localSaved"].includes(t.getCartonStage(n))})},getActiveCartonIndex:function(){var t,n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(null==(t=this.scanDetailData)?void 0:t.cartons)||[],r=null==(n=this.scanDetailData)?void 0:n.activeCartonKey;if(r){var a=e.findIndex(function(t){return t.cartonKey===r});if(a>-1)return a}return Math.max((this.cartonNo||1)-1,0)},setActiveCartonByIndex:function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null==(n=this.scanDetailData)?void 0:n.cartons)||[];e[t]&&(this.scanDetailData.activeCartonKey=e[t].cartonKey)},getCartonIndexByKey:function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null==(n=this.scanDetailData)?void 0:n.cartons)||[];return t?e.findIndex(function(n){return n.cartonKey===t}):-1},getCartonByKey:function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null==(n=this.scanDetailData)?void 0:n.cartons)||[],r=this.getCartonIndexByKey(t,e);return r>-1?e[r]:null},otherCartonsData:function(t,n){return t.cartons.filter(function(t,e){return e!==Number(n)})},isNullCartons:function(t){var n=!0,e=!0;return!!t.some(function(t){if(0===t.itemList.length)return!0;var r=0;e&&(t.itemList.forEach(function(t){r+=+t.quantityShipped}),0===r?(e=!1,n=!0):(e=!0,n=!1))})||!!n},isChangeCartonData:function(){return!this.isObjEqual(this.scanDetailData.cartons,this.oldScanDetailData.cartons)},isChangeCurrentCartonData:function(t){var n,e=this.normalizeCartons(this.scanDetailData.cartons||[]),r=this.normalizeCartons(this.oldScanDetailData.cartons||[]),a=e[t];if(!a)return!1;var i=this.getCartonStage(a),o=a.id?r.find(function(t){return t.id===a.id}):r.find(function(t){return t.cartonKey===a.cartonKey});return o?!this.isObjEqual([a],[o]):"draft"!==i||!!(null==(n=a.cartonItems)?void 0:n.length)},isObjEqual:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=!0,r=!0,a=t.map(function(t){return{length:+t.length,width:+t.width,height:+t.height,weight:+t.weight,customBoxNo:t.customBoxNo}}),i=n.map(function(t){return{length:+t.length,width:+t.width,height:+t.height,weight:+t.weight,customBoxNo:t.customBoxNo}});if(a.length!==i.length)return!1;e=JSON.stringify(a)===JSON.stringify(i);var o=t.flatMap(function(t){return t.cartonItems}),u=n.flatMap(function(t){return t.cartonItems}),s=o.map(function(t){return{id:t.id,quantity:+t.quantity,fnSku:t.fnSku}});return r=JSON.stringify(u.map(function(t){return{id:t.id,quantity:+t.quantity,fnSku:t.fnSku}}))===JSON.stringify(s),e&&r},computedLeftData:function(t){var n=this,e=t.items||[],r=this.normalizeCartons(t.cartons||[]),a=5===t.billType?this.get
1SavedCartons(r):r;this.setUkItemInfo({});var u=e.length||0,s=0,c=0,l=0;e.forEach(function(t){s+=t.quantity,n.ukMaxNumObj[t.uk]=t.quantity,t.maxTotalNumQuantity=n.ukMaxNumObj[t.uk],n.ukItemInfo["".concat(t.uk)]=o(i({},t),{quantity:0})}),a.forEach(function(t,r){t.totalNum=0,t.cartonNo=r+1,t.status=null!=(a=t.status)?a:+!!t.id;var a,o=t.cartonItems||[];o.forEach(function(r,a){c+=r.quantity;var u=e.find(function(t){return t.uk===r.uk});o[a]=i({},u,r),t.totalNum+=r.quantity,n.ukItemInfo["".concat(null==u?void 0:u.uk)]&&(n.ukItemInfo["".concat(null==u?void 0:u.uk)].quantity+=r.quantity)})});var h=Object.values(this.ukItemInfo);l=c;var f=this.getSavedCartons(r),d=f.length||0;return{skuNum:u,taskNumAll:s,cartonNum:d,totalCartonCount:d,skuPackingNum:c,packedSkuCount:l,SKUTypeList:h,cartons:r,savedCartons:f}},updataLeftData:function(t){var n=this.computedLeftData(t);t.cartons=n.cartons,this.setScanLeftData({isDetailShow:!0,type:{1:"FBA",2:"DB",4:"OV",5:"CW"}[t.billType],billNo:t.billNo,skuNum:n.skuNum,taskNumAll:n.taskNumAll,skuPackingNum:n.skuPackingNum,packedSkuCount:n.packedSkuCount,cartonNum:n.cartonNum,totalCartonCount:n.totalCartonCount,noSkuPackingNum:n.taskNumAll-n.skuPackingNum,SKUTypeList:n.SKUTypeList,cartonInfoList:this.$dcopy(n.cartons),amazonShipmentId:t.amazonShipmentId||"-",createName:t.createName,createTime:t.createTime,shopName:t.shopName,marketplaceName:t.marketplaceName,fulfillmentCenterId:t.fulfillmentCenterId})},upDataNoSkuPackingNum:function(t){var n=this,e=[];t.forEach(function(t){e=t.cartonItems.map(function(t){return t.uk})}),this.ukItemInfo&&e.length&&e.forEach(function(t){if(n.scanInputNum&&t===n.scanInputUK){var e=n.ukItemInfo[n.scanInputUK];n.currentInputInfo.noSkuPackingNum=e.maxTotalNumQuantity-(e.quantity||0)}})},syncCartons:function(t,n){if("batch"===this.cartonType){var e,r=this.perCartonNo-1,a=this.lastCartonNo-this.perCartonNo+1;(e=t.cartons).splice.apply(e,[r,a].concat(u(n)))}else{var i,o=this.isContinuePacking||t.activeCartonKey?this.getActiveCartonIndex(t.cartons):this.lastCartonNo-1;(i=t.cartons).splice.apply(i,[o,1].concat(u(n)))}},setCurrentInputInfoFn:function(t){if(this.ukItemInfo&&t&&this.ukItemInfo[t.uk]){var n=this.ukItemInfo[t.uk];t.noSkuPackingNum=n.maxTotalNumQuantity-(n.quantity||0)}this.setCurrentInputInfo(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.