PageSourceSearch

https://s1.sellfox.com/sellfox-web/2026-09/bundle.16809.68bdc97f.js

js sellfox.com collected 2026-09-24 08:47:35 UTC 18,682 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkamzup_web_main=self.webpackChunkamzup_web_main||[]).push([["16809"],{90438:function(t,e,i){i.d(e,{A:function(){return m}}),i(20767),i(5092),i(937),i(81902),i(31731);var r=i(82675),n=i(76332),a=i(75899),o=i(74943),c=i(90129),s=i(71266),l=i(51135);function u(t,e,i,r,n,a,o){try{var c=t[a](o),s=c.value}catch(t){i(t);return}c.done?e(s):Promise.resolve(s).then(r,n)}var p={name:"SingleEditDlg",components:{BatchSetPricePopover:c.A,SfInput:r.A,Alert:n.A,TextTips:a.A},props:{visible:{type:Boolean,default:!1},changeLogRouterName:{type:String,default:""},tipText:{type:String,default:""},rows:{type:Array,default:function(){return[]}},hasPromotionPrice:{type:Boolean,default:!0},adjustPriceFn:Function,priceTitle:{type:String,default:""},priceTip:String,discountPriceTitle:{type:String,default:""},discountPriceTip:String,priceOptions:{type:Object,default:function(){return{}}},inputValidate:{type:Function,required:!1},spanMethod:{type:Function,default:function(){}},needPromotionPriceValidate:{type:Boolean,default:!1}},computed:{displayTipText:function(){return this.tipText||this.$t("main.multi.platform.sale.common.detail.change.result")},displayPriceTitle:function(){return this.priceTitle||this.$t("main.multi.platform.sale.components.batch.adjust.price.price")},displayDiscountPriceTitle:function(){return this.discountPriceTitle||this.$t("main.multi.platform.sale.components.batch.adjust.price.promotion.price")},priceInputOption:function(){return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){var r;r=i[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},s.v,this.priceOptions)}},data:function(){return{dialogVisible:!1,submitLoading:!1}},watch:{visible:function(t){this.dialogVisible=t,t&&(this.tableList=this.$dcopy(this.rows))}},methods:{getPromotionPriceValidate:function(t){if((0,o.Ime)(t.promotionPrice))return!1;var e=t.adjustPrice||t.productPrice;return Number(t.promotionPrice)>Number(e)&&this.needPromotionPriceValidate},priceChange:function(t,e,i){this.inputValidate&&(e[i]=this.inputValidate(t))},jumpToChangeLogPage:function(){this.$router.push({name:this.changeLogRouterName})},batchSetPriceChange:function(t,e,i){var r=this,n=t.val,a=t.type;this.tableList.forEach(function(t){if("promotionPrice"!==e||!1!==t.discountPriceAdjustable){var o=new l.A(Number(t[i]||0)).add(new l.A(Number(n))).toString();switch(a){case"fixed":t[e]=n;break;case"add":o<=r.priceInputOption.max&&(t[e]=o);break;case"minus":t[e]=new l.A(Number(t[i]||0)).minus(new l.A(Number(n))).toString()}if(r.inputValidate){var c=r.inputValidate(t[e]);"adjustPrice"===e?t.priceError=c:"promotionPrice"===e&&(t.promotionPriceError=c)}}})},confirm:function(){var t;return(t=function(){var t,e,i,r;return function(t,e){var i,r,n,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(o,"next",{value:s(0)}),c(o,"throw",{value:s(1)}),c(o,"return",{value:s(2)}),"function"==typeof Symbol&&c(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(s){var l=[c,s];if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(i=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t],r=0}finally{i=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(t=this,!(null==(i=this.tableList.filter(function(e){return t.hasPromotionPrice?e.adjustPrice||e.promotionPrice:e.adjustPrice}))?void 0:i.length))return this.$message.error(this.$t("main.multi.platform.sale.components.batch.adju
1st.price.no.change")),[2];if(i.forEach(function(i){i.promotionPrice&&0>=Number(i.promotionPrice)&&(e=t.$t("main.multi.platform.sale.components.batch.adjust.price.promotion.price.greater.than.zero")),i.adjustPrice&&0>=Number(i.adjustPrice)&&(e=t.$t("main.multi.platform.sale.components.batch.adjust.price.price.greater.than.zero"))}),e)return this.$message.error(e),[2];this.submitLoading=!0,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.adjustPriceFn(i)];case 2:return n.sent(),this.$message.success(this.$t("main.multiPlatform.sale.common.viewChangeLogTip")),this.$emit("refresh"),this.dialogVisible=!1,[3,5];case 3:return r=n.sent(),this.$message.handle(r),[3,5];case 4:return this.submitLoading=!1,[7];case 5:return[2]}})},function(){var e=this,i=arguments;return new Promise(function(r,n){var a=t.apply(e,i);function o(t){u(a,r,n,o,c,"next",t)}function c(t){u(a,r,n,o,c,"throw",t)}o(void 0)})}).call(this)},doClose:function(){this.$emit("update:visible",!1)}}},m=(0,i(28644).A)(p,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{attrs:{"custom-class":"dialog_middle_1000","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",modal:!1,title:t.$t("main.multi.platform.sale.components.batch.adjust.price.title"),visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e},close:t.doClose}},[t._t("customHead",function(){return[t.changeLogRouterName?i("Alert",{attrs:{type:"info"}},[i("div",[t._v("\n                    "+t._s(t.displayTipText)+"\uFF0C"+t._s(t.$t("main.multi.platform.sale.common.view.change.log.inline.prefix"))+" "),i("el-button",{attrs:{type:"text"},on:{click:t.jumpToChangeLogPage}},[t._v(t._s(t.$t("main.multi.platform.sale.common.product.change.log")))]),t._v(" "+t._s(t.$t("main.multi.platform.sale.common.view.change.log.inline.suffix"))+"\n                ")],1)]):t._e()]}),t._v(" "),i("div",{staticClass:"f_black mb_12"},[t._v("\n            "+t._s(t.$t("main.multi.platform.sale.components.batch.adjust.price.add.products",{count:t.tableList&&t.tableList.length}))+"\n        ")]),t._v(" "),i("div",{staticClass:"table_box"},[i("vxe-table",{ref:"vxeTableRef",attrs:{"highlight-current-row":"","highlight-hover-row":"",data:t.tableList,"span-method":t.spanMethod,"scroll-y":{gt:-1},"max-height":"100%"}},[t._t("tableColumn"),t._v(" "),i("vxe-table-column",{attrs:{"min-width":"50",align:"right"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{staticClass:"batch_adjust_price_header"},[i("TextTips",{staticClass:"batch_adjust_price_header_text",attrs:{text:t.displayPriceTitle,effect:"dark"}}),t._v(" "),t.priceTip?i("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.priceTip,expression:"priceTip"}],staticClass:"icon_sf_help"}):t._e()],1)]},proxy:!0},{key:"default",fn:function(e){var r=e.row;return[i("div",[t._v(t._s(t._f("empty")(r.price)))])]}}])}),t._v(" "),i("vxe-table-column",{attrs:{"min-width":"80",align:"left"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{staticClass:"batch_adjust_price_header batch_adjust_price_header_with_action"},[i("TextTips",{staticClass:"batch_adjust_price_header_text",attrs:{text:t.$t("main.multi.platform.sale.components.batch.adjust.price.adjust.title",{title:t.displayPriceTitle}),effect:"dark"}}),t._v(" "),i("BatchSetPricePopover",{staticClass:"batch_adjust_price_header_action",attrs:{priceOptions:t.priceOptions},on:{change:function(e){return t.batchSetPriceChange(e,"adjustPrice","productPrice")}}})],1)]},proxy:!0},{key:"default",fn:function(e){var r=e.row;return[i("SfInput",{class:["price_input",{red_border:r.adjustPrice&&0>=Number(r.adjustPrice)||r.priceError}],attrs:{options:t.priceInputOption,placeholder:t.$t("main.multiPlatform.sale.common.pleaseEnter")},on:{input:function(e){return t.priceChange(e,r,"priceError")}},model:{value:r.adjustPrice,callback:function(e){t.$set(r,"adjustPrice",e)},expression:"row.adjustPrice"}},[i("div",{staticClass:"lh_32 pl_8 f_black",attrs:{slot:"prefix"},slot:"prefix"},[t._v(t._s(r.currencySymbol))])])]}}])}),t._v(" "),i("vxe-table-column",{attrs:{visible:t.hasPromotionPrice,"min-width":"50",align:"right"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{staticClass:"batch_adjust_price_header"},[i("TextTips",{staticClass:"batch_adjust_price_header_text",attrs:{text:t.displayDiscountPriceTitle,effect:"dark"}}),t._v(" "),t.discountPriceTip?i("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.discountPriceTip,expression:"discountPriceTip"}],staticClass:"icon_sf_help"}):t._e()],1)]},proxy:!0},{key:"default",fn:function(e){var r=e.row;return[i("div",[t._v(t._s(t._f("empty")(r.discountPrice)))])]}}])}),t._v(" "),i("vxe-table-column",{attrs:{visible:t.hasPromotionPrice,"min-width":"80",align:"left"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{staticClass:"batch_adjust_price_header batch_adjust_price_header_with_action"},[i("TextTips",{staticClass:"batch_adjust_price_header_text",attrs:{text:t.$t("main.multi.platform.sale.components.batch.adju
1st.price.adjust.title",{title:t.displayDiscountPriceTitle}),effect:"dark"}}),t._v(" "),i("BatchSetPricePopover",{staticClass:"batch_adjust_price_header_action",on:{change:function(e){return t.batchSetPriceChange(e,"promotionPrice","mskuDiscountPrice")}}})],1)]},proxy:!0},{key:"default",fn:function(e){var r=e.row;return[i("SfInput",{class:["price_input",{red_border:r.promotionPrice&&0>=Number(r.promotionPrice)||r.promotionPriceError||t.getPromotionPriceValidate(r)}],attrs:{options:t.priceInputOption,disabled:!1===r.discountPriceAdjustable,placeholder:t.$t("main.multiPlatform.sale.common.pleaseEnter")},on:{input:function(e){return t.priceChange(e,r,"promotionPriceError")}},model:{value:r.promotionPrice,callback:function(e){t.$set(r,"promotionPrice",e)},expression:"row.promotionPrice"}},[i("div",{staticClass:"lh_32 pl_8 f_black",attrs:{slot:"prefix"},slot:"prefix"},[t._v(t._s(r.currencySymbol))])])]}}])})],2)],1),t._v(" "),i("template",{slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("main.multiPlatform.sale.common.cancel")))]),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.submitLoading},on:{click:t.confirm}},[t._v(t._s(t.$t("main.multiPlatform.sale.common.confirm")))])],1)],2)],1)},[],!1,null,"a14c4be2",null).exports},90129:function(t,e,i){i.d(e,{A:function(){return s}}),i(20767);var r=i(52559),n=i(35125),a=i(82675),o=i(71266),c={name:"BatchSetPricePopover",components:{SingleSelect:n.A,SfInput:a.A},props:{priceOptions:{type:Object,default:function(){return{}}},adjustTypeOptions:{type:Array,default:function(){return[]}},emptyMessage:{type:String,default:""},zeroMessage:{type:String,default:""}},computed:{priceInputOption:function(){return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){var r;r=i[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},o.v,this.priceOptions)},cpAdjustTypeOptions:function(){var t;return(null==(t=this.adjustTypeOptions)?void 0:t.length)?this.adjustTypeOptions:[{label:this.$t("main.multi.platform.sale.common.fixed.price"),value:"fixed"},{label:this.$t("main.multi.platform.sale.common.increase.price"),value:"add"},{label:this.$t("main.multi.platform.sale.common.decrease.price"),value:"minus"}]},cpEmptyMessage:function(){return this.emptyMessage||this.$t("main.multi.platform.sale.common.price.required")},cpZeroMessage:function(){return this.zeroMessage||this.$t("main.multi.platform.sale.common.price.greater.than.zero")}},data:function(){return{matchType:"fixed",adjustPrice:"",batchAdjustPriceTypeSelectWidth:(0,r.n)(92)}},methods:{batchAdjustPriceClose:function(){var t;null==(t=this.$refs.adjustPricePopover)||t.doClose()},batchAdjustPriceChangeFn:function(){this.adjustPrice?0>=Number(this.adjustPrice)?this.$message.error(this.cpZeroMessage):(this.$emit("change",{val:this.adjustPrice,type:this.matchType}),this.batchAdjustPriceClose()):this.$message.error(this.cpEmptyMessage)}}},s=(0,i(28644).A)(c,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-popover",{ref:"adjustPricePopover",attrs:{placement:"top"}},[i("div",{staticClass:"flex"},[i("SingleSelect",{staticClass:"batch_adjust_price_type_select",attrs:{singleSelOptions:t.cpAdjustTypeOptions,width:t.batchAdjustPriceTypeSelectWidth,placeholder:t.$t("main.multi.platform.sale.common.please.select")},model:{value:t.matchType,callback:function(e){t.matchType=e},expression:"matchType"}}),t._v(" "),[i("SfInput",{staticClass:"batch_adjust_price_input",attrs:{options:t.priceInputOption,placeholder:t.$t("main.multiPlatform.sale.common.pleaseEnter")},model:{value:t.adjustPrice,callback:function(e){t.adjustPrice=e},expression:"adjustPrice"}})]],2),t._v(" "),i("div",{staticClass:"t_r mt_16"},[i("el-button",{staticClass:"f_gray",attrs:{type:"text"},on:{click:t.batchAdjustPriceClose}},[t._v(t._s(t.$t("main.multiPlatform.sale.common.cancel"))+" ")]),t._v(" "),i("el-button",{staticClass:"ml_12",attrs:{type:"text"},on:{click:t.batchAdjustPriceChangeFn}},[t._v(t._s(t.$t("main.multiPlatform.sale.common.confirm"))+" ")])],1),t._v(" "),i("el-button",{staticClass:"ml_5",attrs:{slot:"reference",type:"text"},slot:"reference"}
1,[t._v(t._s(t.$t("main.multiPlatform.sale.common.batch")))])],1)},[],!1,null,"7c18e636",null).exports},62443:function(t,e,i){i.d(e,{A:function(){return l}}),i(20767);var r=i(9527),n=i(82675),a=i(71266),o=i(9636);function c(t,e,i,r,n,a,o){try{var c=t[a](o),s=c.value}catch(t){i(t);return}c.done?e(s):Promise.resolve(s).then(r,n)}var s={name:"SingleAdjustPrice",components:{PopoverContainer:r.A,SfInput:n.A},props:{currencySymbol:String,productPrice:Number,adjustPriceFn:Function,disabledDescript:String,buriedPoint:String,inputValidate:{type:Function,required:!1},isError:{type:Boolean,default:!1},priceOptions:{type:Object,default:function(){return{}}}},computed:{priceInputOption:function(){return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){var r;r=i[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},a.v,this.priceOptions)}},data:function(){return{eidtSupplyPrice:""}},methods:{inputChange:function(t){var e;null==(e=this.inputValidate)||e.call(this,t)},priceChange:function(){var t;return(t=function(){var t;return function(t,e){var i,r,n,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(o,"next",{value:s(0)}),c(o,"throw",{value:s(1)}),c(o,"return",{value:s(2)}),"function"==typeof Symbol&&c(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(s){var l=[c,s];if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(i=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t],r=0}finally{i=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if(!this.eidtSupplyPrice)return this.$message.error(this.$t("main.multi.platform.sale.common.price.required")),[2];if(0===Number(this.eidtSupplyPrice))return this.$message.error(this.$t("main.multi.platform.sale.common.price.greater.than.zero")),[2];this.$loading(),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.adjustPriceFn({price:this.eidtSupplyPrice,currencySymbol:this.currencySymbol})];case 2:return e.sent(),this.$message.success(this.$t("main.multiPlatform.sale.common.viewChangeLogTip")),this.$emit("refresh"),[3,5];case 3:return t=e.sent(),this.$message.handle(t),[3,5];case 4:return this.$loading().close(),[7];case 5:return[2]}})},function(){var e=this,i=arguments;return new Promise(function(r,n){var a=t.apply(e,i);function o(t){c(a,r,n,o,s,"next",t)}function s(t){c(a,r,n,o,s,"throw",t)}o(void 0)})}).call(this)},editPricePopoShow:function(){this.$emit("show"),this.eidtSupplyPrice=this.productPrice},clickTrigger:function(){this.buriedPoint&&(0,o.vr)(this.buriedPoint)}}},l=(0,i(28644).A)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.disabledDescript?i("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.disabledDescript,expression:"disabledDescript"}],staticClass:"price_edit_icon f_gray not_allowed icon_edit"}):i("PopoverContainer",{attrs:{showFooter:!0,className:"product_edit_price_popover"},on:{"on-change":t.priceChange,show:t.editPricePopoShow}},[i("SfInput",{staticClass:"w_200 price_input",class:{error_cls:t.isError},attrs:{options:t.priceInputOption,maxlength:"12"},on:{input:t.inputChange},model:{value:t.eidtSupplyPrice,callback:function(e){t.eidtSupplyPrice=e},expression:"eidtSupplyPrice"}},[i("div",{staticClass:"f_black w_32 lh_32",attrs:{slot:"prefix"},slot:"prefix"},[t._v(t._s(t.currencySymbol))])]),t._v(" "),i("i",{staticClass:"f_16 ml_4 price_edit_icon pointer icon_sf_edit",attrs:{slot:"trigger"},on:{click:t.clickTrigger},slot:"trigger"})],1)],1)},[],!1,null,"fa0ba080",null).exports}
1,71266:function(t,e,i){i.d(e,{v:function(){return r}});var r={type:"decimals",allowPlus:!1,allowMinus:!1,decimalsCount:2,max:999999999.99,min:0}}}]);

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.