1"use strict";(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["12995"],{56850:function(t,e,a){a.d(e,{A:function(){return r}}),a(5092),a(937),a(62394),a(99583),a(13951),a(93893),a(77949);var r=(0,a(28644).A)({name:"SearchMoreShow",props:{searchMoreList:Array,isShowName:{type:Boolean,default:!0}},data:function(){return{searchMore:this.$dcopy(this.searchMoreList),popperOptions:{boundariesElement:window.__POWERED_BY_WUJIE__?window.parent.document.body:document.body}}},watch:{searchMoreList:{handler:function(t,e){var a=this;t!==e&&t&&(this.searchMore=this.$dcopy(t),this.searchMore.forEach(function(t){var e=t.label.replace(/\uff0c/g,",").split(",");a.$set(t,"labelList",e)}))},immediate:!0}},methods:{handleClose:function(t){void 0!==t&&(this.searchMore.splice(t,1),this.$emit("on-change",this.searchMore))},handleClear:function(){this.$emit("on-change",[])},handleContent:function(t){var e,a,r=((null==(e=(a=t.label).replace)?void 0:e.call(a,/\uff0c/g,","))||"").split(",");return r.length>=3?"".concat(r[0],",").concat(r[1],"+").concat(r.length-2):t.label}}},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex_search_more"},[t._l(t.searchMore,function(e,r){return a("div",{key:r,staticClass:"tag_item"},[t.isShowName?a("div",{staticClass:"name"},[t._v(t._s(e.name)+"\uFF1A")]):t._e(),t._v(" "),a("el-popover",{attrs:{"popper-class":"search_more_show_popover",placement:"top","popper-options":t.popperOptions,trigger:"hover"}},[a("ul",t._l(e.labelList,function(e,r){return a("li",{key:e+"-"+r},[t._v(t._s(e))])}),0),t._v(" "),a("div",{staticClass:"info",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t.handleContent(e)))])]),t._v(" "),a("div",{staticClass:"icon",staticStyle:{transform:"scale(1)"},on:{click:function(e){return t.handleClose(r)}}},[a("i",{staticClass:"icon_sf_close f_14"})])],1)}),t._v(" "),a("el-button",{staticClass:"tag_clear",attrs:{type:"text"},on:{click:t.handleClear}},[t._v(t._s(t.$t("ui.clear")))])],2)},[],!1,null,"76f4d960",null).exports},19241:function(t,e,a){a.d(e,{A:function(){return p}}),a(20767),a(46491),a(62394),a(18577),a(47424),a(59622),a(93893),a(86201),a(915),a(5092),a(77949);
1var r=a(9527),n=a(82675),s=a(63707),i=a(64324);function o(t,e,a,r,n,s,i){try{var o=t[s](i),l=o.value}catch(t){a(t);return}o.done?e(l):Promise.resolve(l).then(r,n)}function l(t){return function(){var e=this,a=arguments;return new Promise(function(r,n){var s=t.apply(e,a);function i(t){o(s,r,n,i,l,"next",t)}function l(t){o(s,r,n,i,l,"throw",t)}i(void 0)})}}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter(function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),r.forEach(function(e){var r;r=a[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}function u(t,e){var a,r,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:l(0)}),o(i,"throw",{value:l(1)}),o(i,"return",{value:l(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function l(o){return function(l){var c=[o,l];if(a)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){s.label=c[1];break}if(6===c[0]&&s.label<n[1]){s.label=n[1],n=c;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(c);break}n[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(t){c=[6,t],r=0}finally{a=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var m={name:"AutoMatchDlg",components:{PopoverContainer:r.A,SfInput:n.A},props:{visible:{type:Boolean},platformType:{type:Number,require:!0},matchOtherParams:{type:Object,default:function(){return{}}},getRecordsOtherParams:{type:Object,default:function(){return{}}}},data:function(){return{model:{type:1},innerVisible:!1,matchAll:!1,matchPart:!1,matchIntercept:!1,leftChar:"",leftCharArr:[],rightChar:"",rightCharArr:[],startNum:"",subNum:"",partValue:"",interceptValue:"",integerIptTableList:[{msku:"S85596OP",type:this.$t("main.multi.platform.sale.components.auto.match.intercept.example"),res:"85596"}],leftTableList:[{msku:"AK-S85596OP",type:this.$t("main.multi.platform.sale.components.auto.match.left.example"),res:"S85596OP"}],rightTableList:[{msku:"S85596OP-AK",type:this.$t("main.multi.platform.sale.components.auto.match.right.example"),res:"S85596OP"}],testResult:"",arrResult:"",matchLoading:!1}},watch:{visible:function(t){this.innerVisible=t,t&&this.setConfig()},innerVisible:function(t){this.$emit("update:visible",t)}},computed:{partDisabled:function(t){var e=t.matchPart,a=t.leftCharArr,r=t.rightCharArr;return!e||!a.length&&!r.length},interceptDisabled:function(t){var e=t.startNum,a=t.subNum,r=t.matchIntercept,n=String(e).trim(),s=String(a).trim();return!r||!n&&!s},matchDisabled:function(t){var e=t.model,a=t.matchAll,r=t.matchPart,n=t.matchIntercept;return 1===e.type&&!a&&!r&&!n}},methods:{setConfig:function(){return l(function(){var t,e,a;return u(this,function(r){switch(r.label){case 0:this.$loading(),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,(0,s.zj)(this.getRecordsParams())];case 2:return t=r.sent(),[3,5];case 3:return e=r.sent(),this.$message.handle(e),[3,5];case 4:return this.$loading().close(),[7];case 5:return(a=null==t?void 0:t[0])&&this.handleMatchData(a),[2]}})}).call(this)},handleMatchData:function(t){var e=JSON.parse(t.matchJson)||{};this.matchAll=e.skuMatch,this.matchPart=!!e.leftChar||!!e.rightChar,this.matchIntercept=!!e.startNum||!!e.subNum,this.leftChar="",this.rightChar="",this.matchPart&&(this.leftCharArr=e.leftChars?e.leftChars:[],this.rightCharArr=e.rightChars?e.rightChars:[]),this.matchIntercept&&(this.startNum=e.startNum||"",this.subNum=e.subNum||"")},leftCharAdd:function(t){var e;if(null==(e=this.leftCharArr)?void 0:e.includes(this.leftChar))return this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.exists"));this.leftCharArr.length<50?this.leftChar.length>50?this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.char.max")):this.leftChar&&this.leftCharArr.push(this.leftChar):"blur"!==t&&this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.count.max")),this.leftChar=""},rightCharAdd:function(t){var e;if(null==(e=this.rightCharArr)?void 0:e.includes(this.rightChar))return this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.exists"));this.rightCharArr.length<50?this.rightChar.length>50?this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.char.max")):this.rightChar&&this.rightCharArr.push(this.rightChar):"blur"!==t&&this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.count.max")),this.rightChar=""},charTagDel:function(t,e){this[t].splice(e,1)},testShow:function(){this.testResult=""},partTest:function(){return l(function(){var t,e,a;return u(this,function(r){switch(r.label){case 0:if(!(t=this.partValue.trim()))return[2];e={msku:t,leftChar:this.leftCharArr.join("\u224C"),rightChar:this.rightCharArr.join("\u224C")},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.$http.getPossibleSkus(e)];case 2:return a=r.sent()||[],this.arrResult=a.map(function(t,e){return e===a.length-1?t:"".concat(t,"\u3001")}),[3,4];case 3:return r.sent(),[3,4];case 4:return[2]}})}).call(this)},interceptTest:function(){var t=this.interceptValue.trim(),e=parseInt(this.startNum,10),a=parseInt(this.subNum,10),r=t.length;t?e&&a?r-e+1>=a&&e<=r?this.testResult=t.substr(e-1,a):this.testResult=this.$t("main.multi.platform.sale.components.auto.match.no.matched.rule"):this.handleOneSide(e,a,r,t):this.testResult=""},handleOneSide:function(t,e,a,r){t&&(t<=a?this.testResult=r.substr(t-1):this.testResult=this.$t("main.multi.platform.sale.components.auto.match.no.matched.rule")),e&&(e<=a?this.testResult=r.substr(0,e):this.testResult=this.$t("main.multi.platform.sale.components.auto.match.no.matched.rule"))},integerIpt:function(t){this[t]=this.$utils.integerVerification(this[t]),this[t]&&0==+this[t]&&(this[t]=1)},isValid:function(){var t=!0;return this.matchPart&&0===this.leftCharArr.length&&0===this.rightCharArr.length&&(t=!1,this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.required"))),this.matchIntercept&&""===this.startNum&&""===this.subNum&&(t=!1,this.$message.error(this.$t("main.multi.platform.sale.components.auto.match.rule.required"))),t},checkProcessingTask:function(){return l(function(){var t,e,a,r;return u(this,function(n){switch(n.label){case 0:t=!1,e=!1,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,s.zj)(this.getRecordsParams())];case 2:return(null==(a=n.sent())?void 0:a.length)&&a.some(function(t){return 0===t.taskStatus})&&(t=!0,this.$message.warning(this.$t("main.multi.platform.sale.components.auto.match.running.task.tip"))),[3,4];case 3:return r=n.sent(),this.$message.handle(r),e=!0,[3,4];case 4:return[2,!(e||t)]}})}).call(this)},getRecordsParams:function(){return c({platformType:this.platformType},this.getRecordsOtherParams)},getMatchParams:function(){return c({skuMatch:this.matchAll,leftChar:this.matchPart?this.leftCharArr.join("\u224C"):null,rightChar:this.matchPart?this.rightCharArr.join("\u224C"):null,startNum:this.matchIntercept?this.startNum:null,subNum:this.matchIntercept?this.subNum:null,platformType:this.platformType},this.matchOtherParams)},handleBatchParing:function(){return l(function(){var t,e,a,r;return u(this,function(n){switch(n.label){case 0:if(t=this.model.type,e=!0,1===t&&(e=this.isValid()),!e)return[2];return this.matchLoading=!0,[4,this.checkProcessingTask()];case 1:if(!n.sent())return this.matchLoading=!1,[2];n.label=2;case 2:return n.trys.push([2,4,5,6]),[4,(0,i.Cy)(this.getMatchParams())];case 3:return(a=n.sent())?this.$message.warning(a):(this.innerVisible=!1,this.$emit("confirm")),[3,6];case 4:return r=n.sent(),this.$message.handle(r),[3,6];case 5:return this.matchLoading=!1,[7];case 6:return[2]}})}).call(this)}}},p=(0,a(28644).A)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.$t("main.multi.platform.sale.components.auto.match.title"),"append-to-body":!1,modal:!1,width:"800px",visible:t.innerVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.innerVisible=e}}},[a("div",{staticClass:"content-wrapper"},[a("div",{staticClass:"tip"},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.tip")))]),t._v(" "),a("el-form",{directives:[{name:"i18n-label-adapt",rawName:"v-i18n-label-adapt",value:{maxWidth:180},expression:"{ maxWidth: 180 }"}],staticClass:"form-wrapper mt_20",model:{value:t.model,callback:function(e){t.model=e},expression:"model"}}
1,[a("el-form-item",{attrs:{required:"","label-width":"100px"},scopedSlots:t._u([{key:"label",fn:function(){return[a("div",{staticClass:"inline_flex center_align"},[a("p",{staticClass:"mr_5"},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.match.type")))]),t._v(" "),a("PopoverContainer",{attrs:{trigger:"hover",placement:"top"},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("i",{staticClass:"icon_sf_help"})]},proxy:!0}])},[a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.unpaired.msku.only")))])])],1)]},proxy:!0}])},[t._v(" "),a("el-radio-group",{model:{value:t.model.type,callback:function(e){t.$set(t.model,"type",e)},expression:"model.type"}},[a("el-radio",{attrs:{label:1}},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.auto.match.by.rule"))+"\n "),a("PopoverContainer",{attrs:{trigger:"hover",placement:"top"},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("i",{staticClass:"icon_sf_help"})]},proxy:!0}])},[a("div",[a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.rule.tip1")))]),t._v(" "),a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.rule.tip2")))])])])],1)],1)],1),t._v(" "),a("el-form-item",{attrs:{required:"","label-width":"100px"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.match.rule")))]},proxy:!0}])},[t._v(" "),1===t.model.type?a("div",{staticClass:"setting_box"},[a("el-checkbox",{model:{value:t.matchAll,callback:function(e){t.matchAll=e},expression:"matchAll"}},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.exact.match.rule")))]),t._v(" "),a("el-checkbox",{staticClass:"match_part_checkbox",model:{value:t.matchPart,callback:function(e){t.matchPart=e},expression:"matchPart"}},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.remove.symbol.rule"))+"\n "),a("PopoverContainer",{attrs:{placement:"top",width:"260",trigger:"click",disabled:t.partDisabled},on:{show:t.testShow},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("el-button",{staticClass:"ml_8",attrs:{type:"text",disabled:t.partDisabled}},[t._v(" "+t._s(t.$t("main.multi.platform.sale.components.auto.match.test"))+" ")])]},proxy:!0}],null,!1,0x51c7450c)},[a("div",{staticClass:"flex"},[a("SfInput",{staticClass:"w_200",attrs:{placeholder:t.$t("main.multi.platform.sale.components.auto.match.enter.msku")},model:{value:t.partValue,callback:function(e){t.partValue=e},expression:"partValue"}}),t._v(" "),a("el-button",{staticClass:"ml_10",attrs:{type:"text"},on:{click:t.partTest}},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.view")))])],1),t._v(" "),a("div",{staticClass:"arr_result_box mt_12"},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.result"))+"\n "),t._l(t.arrResult,function(e){return a("span",{key:e},[t._v(t._s(e))])})],2)])],1),t._v(" "),t.matchPart?a("div",[a("div",{staticClass:"pl_20 mb_12"},[a("div",{staticClass:"flex center_align f_gray_light"},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.left.recognition"))+"\n "),a("PopoverContainer",{attrs:{placement:"bottom",width:"400",trigger:"hover"},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("div",{staticClass:"flex center_align"},[a("i",{staticClass:"d_ib icon_sf_help ml_4 pointer"})])]},proxy:!0}],null,!1,0x547c63b5)},[a("div",{staticClass:"setting_tis"},[a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.left.recognition.tip")))]),t._v(" "),a("p",{staticClass:"mt_8 mb_8 f_gray"},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.example")))])]),t._v(" "),a("vxe-table",{attrs:{border:"",round:"",align:"center","header-cell-class-name":"headerCellClassName",data:t.leftTableList}},[a("vxe-table-column",{attrs:{field:"msku",title:t.$t("main.multi.platform.sale.components.auto.match.online.product.msku"),width:"115"}}),t._v(" "),a("vxe-table-column",{attrs:{field:"type",title:t.$t("main.multi.platform.sale.components.auto.match.recognition.method"),width:"170"}}
1),t._v(" "),a("vxe-table-column",{attrs:{field:"res",title:t.$t("main.multi.platform.sale.components.auto.match.output.result"),width:"80"}})],1)],1)],1),t._v(" "),a("div",{staticClass:"tags_box",class:{is_disabled:!t.matchPart}},[t.leftCharArr.length?a("div",{staticClass:"tags"},t._l(t.leftCharArr,function(e,r){return a("div",{key:e,staticClass:"tag_item"},[a("div",[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"icon_sf_close lh_18 ml_4 pointer",on:{click:function(e){return t.charTagDel("leftCharArr",r)}}})])}),0):t._e(),t._v(" "),a("SfInput",{attrs:{placeholder:t.$t("main.multi.platform.sale.components.auto.match.multiple.symbols.placeholder"),maxlength:"50"},on:{blur:function(e){return t.leftCharAdd("blur")}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.leftCharAdd.apply(null,arguments)}},model:{value:t.leftChar,callback:function(e){t.leftChar=e},expression:"leftChar"}})],1)]),t._v(" "),a("div",{staticClass:"pl_20 mb_12"},[a("div",{staticClass:"flex center_align f_gray_light"},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.right.recognition"))+"\n "),a("PopoverContainer",{attrs:{placement:"bottom",width:"400",trigger:"hover"},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("div",{staticClass:"flex center_align"},[a("i",{staticClass:"d_ib icon_sf_help ml_4 pointer"})])]},proxy:!0}],null,!1,0x547c63b5)},[a("div",{staticClass:"setting_tis"},[a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.right.recognition.tip")))]),t._v(" "),a("p",{staticClass:"mt_8 mb_8 f_gray"},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.example")))])]),t._v(" "),a("vxe-table",{attrs:{border:"",round:"",align:"center","header-cell-class-name":"headerCellClassName",data:t.rightTableList}},[a("vxe-table-column",{attrs:{field:"msku",title:t.$t("main.multi.platform.sale.components.auto.match.online.product.msku"),width:"115"}}),t._v(" "),a("vxe-table-column",{attrs:{field:"type",title:t.$t("main.multi.platform.sale.components.auto.match.recognition.method"),width:"170"}}),t._v(" "),a("vxe-table-column",{attrs:{field:"res",title:t.$t("main.multi.platform.sale.components.auto.match.output.result"),width:"80"}})],1)],1)],1),t._v(" "),a("div",{staticClass:"tags_box",class:{is_disabled:!t.matchPart}},[t.rightCharArr.length?a("div",{staticClass:"tags"},t._l(t.rightCharArr,function(e,r){return a("div",{key:e,staticClass:"tag_item"},[a("div",[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"icon_sf_close lh_18 ml_4 pointer",on:{click:function(e){return t.charTagDel("rightCharArr",r)}}})])}),0):t._e(),t._v(" "),a("SfInput",{attrs:{placeholder:t.$t("main.multi.platform.sale.components.auto.match.multiple.symbols.placeholder"),maxlength:"50"},on:{blur:function(e){return t.rightCharAdd("blur")}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.rightCharAdd.apply(null,arguments)}},model:{value:t.rightChar,callback:function(e){t.rightChar=e},expression:"rightChar"}})],1)])]):t._e(),t._v(" "),a("el-checkbox",{model:{value:t.matchIntercept,callback:function(e){t.matchIntercept=e},expression:"matchIntercept"}},[t._v("\n "+t._s(t.$t("main.multi.platform.sale.components.auto.match.intercept.rule"))+"\n "),a("PopoverContainer",{attrs:{placement:"bottom",width:"260",trigger:"click",disabled:t.interceptDisabled},on:{show:t.testShow},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("el-button",{staticClass:"ml_8",attrs:{type:"text",disabled:t.interceptDisabled}},[t._v(" "+t._s(t.$t("main.multi.platform.sale.components.auto.match.test"))+" ")])]},proxy:!0}],null,!1,0x12e5ecfd)},[a("div",{staticClass:"flex"},[a("SfInput",{staticClass:"w_200",attrs:{placeholder:t.$t("main.multi.platform.sale.components.auto.match.enter.msku")},model:{value:t.interceptValue,callback:function(e){t.interceptValue=e},expression:"interceptValue"}}),t._v(" "),a("el-button",{staticClass:"ml_10",attrs:{type:"text"},on:{click:t.interceptTest}},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.view")))])],1
1),t._v(" "),a("div",{staticClass:"lh_30"},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.output.result.label"))+t._s(t.testResult))])])],1),t._v(" "),t.matchIntercept?a("div",{staticClass:"mt_8"},[a("div",{staticClass:"pl_40 f_gray_light"},[a("span",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.from.number")))]),t._v(" "),a("SfInput",{staticClass:"w_60 ml_8 mr_8",on:{input:function(e){return t.integerIpt("startNum")}},model:{value:t.startNum,callback:function(e){t.startNum=e},expression:"startNum"}}),t._v(" "),a("span",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.start.at")))]),t._v(" "),a("SfInput",{staticClass:"w_60 ml_8 mr_8",on:{input:function(e){return t.integerIpt("subNum")}},model:{value:t.subNum,callback:function(e){t.subNum=e},expression:"subNum"}}),t._v(" "),a("span",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.characters")))]),t._v(" "),a("PopoverContainer",{attrs:{placement:"bottom",width:"400",trigger:"hover"},scopedSlots:t._u([{key:"trigger",fn:function(){return[a("i",{staticClass:"d_ib icon_sf_help ml_4 pointer"})]},proxy:!0}],null,!1,0xdb0df191)},[a("div",{staticClass:"setting_tis"},[a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.intercept.start.tip")))]),t._v(" "),a("p",[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.intercept.length.tip")))]),t._v(" "),a("p",{staticClass:"mt_8 mb_8 f_gray"},[t._v(t._s(t.$t("main.multi.platform.sale.components.auto.match.example")))])]),t._v(" "),a("vxe-table",{attrs:{border:"",round:"",align:"center","header-cell-class-name":"headerCellClassName",data:t.integerIptTableList}},[a("vxe-table-column",{attrs:{field:"msku",title:t.$t("main.multi.platform.sale.components.auto.match.online.product.msku"),width:"100"}}),t._v(" "),a("vxe-table-column",{attrs:{field:"type",title:t.$t("main.multi.platform.sale.components.auto.match.recognition.method"),width:"170"}}),t._v(" "),a("vxe-table-column",{attrs:{field:"res",title:t.$t("main.multi.platform.sale.components.auto.match.output.result"),width:"80"}})],1)],1)],1)]):t._e()],1):t._e()])],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.innerVisible=!1}}},[t._v(t._s(t.$t("main.multiPlatform.sale.common.cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:t.matchDisabled,loading:t.matchLoading},on:{click:t.handleBatchParing}},[t._v(t._s(t.$t("main.multi.platform.sale.cdiscount.product.const.match")))])],1)])},[],!1,null,"36683411",null).exports},82778:function(t,e,a){a.d(e,{A:function(){return p}}),a(47424),a(59622),a(77949);var r=a(12125),n=a(58641),s=a(5221),i=a(63707),o=a(77069);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a<e;a++)r[a]=t[a];return r}function c(t,e,a,r,n,s,i){try{var o=t[s](i),l=o.value}catch(t){a(t);return}o.done?e(l):Promise.resolve(l).then(r,n)}function u(t){return function(t){if(Array.isArray(t))return l(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 l(t,void 0);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 l(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 m={name:"ImportSalesmanDialog",components:{ExcelUploader:r.A,LazyModalWrapper:n.A},props:{visible:Boolean,fileType:{type:String,required:!0},keyType:{type:String,default:"site"}},data:function(){return{loading:!1,innerVisible:this.visible,importParams:{updateType:0},updateTypeOptions:[{name:this.$t("main.salesProduct.overwrite"),value:0},{name:this.$t("main.multi.platform.sale.import.salesman.append"),value:1}],progress:{innerVisible:!1,percentage:0,num:0,checkProcessStatusObj:null,msg:"",data:""}}},computed:{salesmanLimit:function(){return(0,s.Rt)(this.$hasButtonPermission(s.ie))},introduceList:function(){var t="walmart"===this.fileType?this.$t("main.multi.platform.sale.import.salesman.key.shop.msku"):["temu","productId"].includes(this.keyType)?(0,o._)("main.multi.platform.sale.import.salesman.key.shop.product.id"):(0,o._)("main.multi.platform.sale.import.salesman.key.shop"),e=[this.$t("main.multi.platform.sale.import.salesman.instruction.duplicate.keep.last",{keyName:t}),this.$t("main.multi.platform.sale.import.salesman.instruction.max.salesman",{keyName:t,count:this.salesmanLimit}),this.$t("main.multi.platform.sale.import.salesman.instruction.salesman.account.name"),this.$t("main.multi.platform.sale.import.salesman.instruction.xlsx.only"),this.$t("main.multi.platform.sale.import.salesman.instruction.header.immutable"),this.$t("main.common.import.instruction.max.ten.thousand")];return 1===this.importParams.updateType?[this.$t("main.multi.platform.sale.import.salesman.instruction.append.existing",{keyName:t,count:this.salesmanLimit}),this.$t("main.multi.platform.sale.import.salesman.instruction.append.performance.owner",{keyName:t})].concat(u(e)):[this.$t("main.multi.platform.sale.import.salesman.instruction.empty.salesman.clear"),this.$t("main.multi.platform.sale.import.salesman.instruction.reupload.performance.owner"),this.$t("main.multi.platform.sale.import.salesman.instruction.overwrite.existing",{keyName:t})].concat(u(e))}},watch:{visible:{immediate:!0,handler:function(){this.visible!==this.innerVisible&&(this.innerVisible=this.visible)}},innerVisible:function(){this.$emit("update:visible",this.innerVisible)}},methods:{onClickDownloadTemplate:function(){var t;return(t=function(){var t,e;return function(t,e){var a,r,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:l(0)}),o(i,"throw",{value:l(1)}),o(i,"return",{value:l(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function l(o){return function(l){var c=[o,l];if(a)throw TypeError("Generator is already executing.");for(;
1i&&(i=0,c[0]&&(s=0)),s;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){s.label=c[1];break}if(6===c[0]&&s.label<n[1]){s.label=n[1],n=c;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(c);break}n[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(t){c=[6,t],r=0}finally{a=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.CR)({type:this.fileType})];case 1:return t=a.sent(),[3,3];case 2:return e=a.sent(),this.$message.handle(e),[3,3];case 3:return t?window.open(t):this.$message.error(this.$t("main.product.sales_product.message.template.url.empty")),[2]}})},function(){var e=this,a=arguments;return new Promise(function(r,n){var s=t.apply(e,a);function i(t){c(s,r,n,i,o,"next",t)}function o(t){c(s,r,n,i,o,"throw",t)}i(void 0)})}).call(this)},importSubmit:function(){this.loading=!0,this.$refs.excelUploader.onSubmit()},onExcelUploadFail:function(){this.loading=!1},onExcelUploadSuccess:function(t){var e,a=this;this.loading=!1,this.innerVisible=!1,null==(e=this.progress.checkProcessStatusObj)||e.stopProcess(),this.resetProgress(),this.progress.innerVisible=!0,this.progress.checkProcessStatusObj=new this.$utils.CheckProcessStatus(t,function(t){var e=t.num,r=t.code,n=t.totalNum,s=t.data,i=t.msg;0==+r?a.progress.percentage=e/(n||100)*100:(1==+r||-1==+r)&&(a.progress.percentage=100,a.progress.data=s),a.progress.msg=i,a.progress.num=e},3e3,"checkProductProcess"),this.progress.checkProcessStatusObj.startProcess()},closeProgressDialog:function(){this.progressCloseFn()},progressCloseFn:function(){var t;+this.progress.percentage>=100&&this.$emit("refresh"),null==(t=this.progress.checkProcessStatusObj)||t.stopProcess(),this.resetProgress()},resetProgress:function(){this.loading=!1,this.progress.num=0,this.progress.percentage=0,this.progress.msg="",this.progress.data="",this.progress.innerVisible=!1}}},p=(0,a(28644).A)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("LazyModalWrapper",{attrs:{visible:t.innerVisible},on:{"update:visible":function(e){t.innerVisible=e}},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.context;return[a("el-dialog",{attrs:{"append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,modal:!1,visible:r.visible,"custom-class":"import_dialog",title:t.$t("main.sales.product.import.assign.salesman"),width:"40%"},on:{"update:visible":function(e){return t.$set(r,"visible",e)}}},[a("excel-uploader",{ref:"excelUploader",attrs:{"file-type":t.fileType,fileSize:"20480",extendedParameters:t.importParams,"import-type":"multiplePlatform"},on:{success:t.onExcelUploadSuccess,fail:t.onExcelUploadFail}},[t._t("default",function(){return[a("el-button",{attrs:{type:"primary"}},[t._v(t._s(t.$t("common.add.file")))])]}),t._v(" "),a("template",{slot:"tip"},[a("div",{staticClass:"upload_title"},[t._v(t._s(t.$t("main.common.prepare.data")))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:t.onClickDownloadTemplate}},[a("i",{staticClass:"icon_sf_download f_16"}),t._v(t._s(t.$t("main.salesProduct.downloadSalesmanTemplate"))+"\n ")]),t._v(" "),a("div",{staticClass:"upload_title mt_12"},[t._v(t._s(t.$t("main.salesProduct.updateMethod")))]),t._v(" "),a("el-radio-group",{model:{value:t.importParams.updateType,callback:function(e){t.$set(t.importParams,"updateType",e)},expression:"importParams.updateType"}},t._l(t.updateTypeOptions,function(e){return a("el-radio",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.name))])}),1),t._v(" "),a("div",{staticClass:"upload_title_bottom"},[t._v(t._s(t.$t("main.common.upload.data")))])],1)],2),t._v(" "),a("div",{staticClass:"mt_24"},[a("div",{staticClass:"f_gray"},[t._v(t._s(t.$t("main.components.import.custom.instructions")))]),t._v(" "),a("ul",{staticClass:"f_gray mt_5"},t._l(t.introduceList,function(e){return a("li",{key:e,staticClass:"flex start"},[a("span",{staticClass:"mr_5 fw_600"}
1,[t._v("\xb7")]),t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.innerVisible=!1}}},[t._v(t._s(t.$t("common.cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.importSubmit}},[t._v(t._s(t.$t("main.components.import.custom.action.import")))])],1)],1)]}}],null,!0)}),t._v(" "),a("LazyModalWrapper",{attrs:{visible:t.progress.innerVisible},on:{"update:visible":function(e){return t.$set(t.progress,"innerVisible",e)}},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.context;return[a("el-dialog",{attrs:{"append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,if:t.progress.innerVisible,modal:!1,visible:r.visible,"custom-class":"progress_dialog",title:t.$t("main.multi.platform.sale.import.salesman.title"),width:"30%"},on:{"update:visible":function(e){return t.$set(r,"visible",e)},close:t.progressCloseFn}},[a("el-progress",{staticClass:"mb_12",attrs:{percentage:t.progress.percentage,"stroke-width":24,"text-inside":!0,status:"success"}}),t._v(" "),a("div",{staticClass:"mb_5"},[a("span",{staticClass:"mr_5"},[t._v(t._s(t.$t("main.components.import.custom.status")))]),t._v(" "),a("span",{class:t.progress.percentage<100?"f_red":"f_green"},[t._v(t._s(t.progress.percentage<100?t.$t("main.components.import.custom.importing"):t.$t("main.components.import.custom.import.complete")))])]),t._v(" "),a("div",[a("div",[a("span",{staticClass:"mr_5"},[t._v(t._s(t.$t("main.components.import.custom.detail")))]),t._v(t._s(t.$t("main.multi.platform.sale.import.salesman.imported.count",{count:t.progress.num})))]),t._v(" "),a("div",{domProps:{innerHTML:t._s(t.progress.msg)}})]),t._v(" "),t.progress.data?a("div",{staticClass:"pl_30 mt_5"},[a("a",{attrs:{href:t.progress.data}},[t._v(t._s(t.$t("main.multi.platform.sale.import.salesman.download.failure.details")))])]):t._e(),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeProgressDialog}},[t._v(t._s(t.$t("common.close")))])],1)],1)]}}])})],1)},[],!1,null,null,null).exports},64324:function(t,e,a){a.d(e,{BF:function(){return B},CV:function(){return P},Cy:function(){return E},FY:function(){return k},GR:function(){return M},Ij:function(){return O},K$:function(){return _},LP:function(){return y},MB:function(){return w},MC:function(){return v},MX:function(){return c},MY:function(){return x},NQ:function(){return R},Nm:function(){return d},Ru:function(){return p},St:function(){return D},T2:function(){return m},Tl:function(){return T},Tx:function(){return V},Ub:function(){return N},VS:function(){return g},X1:function(){return u},Xh:function(){return f},Yi:function(){return b},Yq:function(){return $},bK:function(){return z},cv:function(){return L},ke:function(){return C},qP:function(){return U},qS:function(){return q},vC:function(){return A},wV:function(){return S},yE:function(){return j},yy:function(){return h},zu:function(){return I}}),a(77949);var r=a(80020),n=a(50594),s=a(29550),i=r.Ay.post,o=r.Ay.get,l=function(t){return(0,s.t)(n.jx)?"".concat("/api/gw/sellfox/sellfox-product/sellfox").concat(t):"".concat("/api/multiplatform").concat(t,".json")},c=function(t){return i(l("/temu/product/getPageList"),t)},u=function(t){return i(l("/temu/product/getAllProductItem"),t)},m=function(t){return i("/api/multiplatform/temu/productItem/batchMatchCommodity.json",t)},p=function(t){return i("/api/multiplatform/temu/productItem/batchCancelMatchCommodity.json",t)},h=function(t){return o("/api/multiplatform/temu/productItem/importMskuMatchTemplate.json",t)},f=function(t){return i(l("/temu/product/syncProductByPuidShopIdList"),t)},d=function(t){return i(l("/temu/product/getSyncTask"),t)},_=function(t){return i(l("/temu/productItem/getWarehouse"),t)},v=function(t){return i(l("/temu/productItem/getItemStockByItemId"),t)},g=function(t){return i(l("/temu/local/productItem/getItemStockByProductIdList"),t)},b=function(t){return i(l("/temu/productItem/batchUpdateItemStock"),t)},y=function(t){return i(l("/temu/local/productItem/batchUpdateItemStock"),t)},C=function(t){return i(l("/temu/productItem/getItemStockByProductIdList"),t)},$=function(t){return i(l("/temu/productItem/batchRerunUpdateItemStock"),t)},k=function(t){return i(l("/temu/local/product/getPageList"),t)},x=function(t){return i(l("/temu/local/product/getAllProductItem"),t)},P=function(t){return i("/api/multiplatform/temu/local/productItem/batchMatchCommodity.json",t)},w=function(t){return i("/api/multiplatform/temu/local/productItem/batchCancelMatchCommodity.json",t)},S=function(t){return i(l("/temu/local/product/syncProductByPuidShopIdList"),t)},I=function(t){return o("/api/multiplatform/temu/local/productItem/importMskuMatchTemplate.json",t)},A=function(t){return i(l("/temu/productItem/updateSalesmanId"),t)},T=function(t){return i(l("/temu/productItem/batchUpdateSalesmanId"),t)},O=function(t){return i(l("/temu/local/productItem/updateSalesmanId"),t)},L=function(t){return i(l("/temu/local/productItem/batchUpdateSalesmanId"),t)},N=function(t,e){return o("/api/multiplatform/temu/productItem/downloadMskuUpdatePriceTemplate.json",e)},j=function(t){return i(l("/temu/productItem/updateSupplyPrice"),t)},V=function(t){return i(l("/temu/productLabel/getLabelList"),t)},M=function(t){return i(l("/temu/productLabel/addLabelToProduct"),t)},R=function(t){return i(l("/temu/productLabel/removeLabelRelation"),t)},D=function(t){return i(l("/temu/productLabel/getUserLabelList"),t)},E=function(t){return i("/api/multiplatform/product/match/withUser.json",t)},U=function(t){return i(l("/temu/productItem/getActivityById"),t)},B=function(t){return i("/api/multiplatform/temu/product/createShopCustomTask.json",t)},q=function(t){return i(l("/temu/productItem/getSiteSupplyPrice"),t)},z=function(t){return i(l("/temu/productItem/batchUpdateSiteSupplyPrice"),t)}},75254:function(t,e,a){a.d(e,{y:function(){return r}}),a(5092),a(81902),a(62394),a(13951),a(31731);var r=function(t,e){if(!t||!e||"[object String]"!==Object.prototype.toString.call(t))return[];
1var a=t.split("%\xb1%").filter(Boolean);return"blur"===e&&(a=[t]),a}}}]);
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.