PageSourceSearch

https://kuajing-help.com/9529.8a3d223b.async.js

js kuajing-help.com collected 2026-09-24 14:47:48 UTC 10,812 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9529],{80275:(function(se,K,e){var R=e(55472),P=e.n(R),W=e(37810),p=e.n(W),O=e(7625),L=e(58084),d=e(52089),z=e(47848),i=e(74094),k=e(77919),f=e(2122),N=e.n(f),y=e(37953),l=e(15621);K.A=(function(o){var A=o.state,$=o.style,V=o.onFinish,U=o.options;return(0,l.jsx)("span",{style:p()({marginRight:"8px"},$),children:(0,l.jsx)(L.A,{count:A.selects.size,children:(0,l.jsx)(z.A,{menu:{onClick:function(ee){var v=ee.key;try{var S=N().copy(Array.from(A.selects.entries()).map(function(n){var te=P()(n,2),ne=te[1];return ne[v]}).join(","));S?(i.Ay.success("\u5DF2\u590D\u5236\u5230\u526A\u5207\u677F"),V==null||V()):i.Ay.error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u5148\u9009\u62E9\u5546\u54C1")}catch(n){console.log(n),i.Ay.error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},items:U||[{label:"SPU",key:"spuId"},{label:"SKC",key:"skcId"},{label:"SKC\u8D27\u53F7",key:"extCode"}]},children:(0,l.jsx)(d.A,{size:"small",children:(0,l.jsxs)(k.A,{children:["\u6279\u91CF\u590D\u5236\u6240\u9009ID",(0,l.jsx)(O.A,{})]})})})})})}),e.dn(K.A)}),38098:(function(se,K,e){e.d(K,{A:function(){return ue}});var R=e(37810),P=e.n(R),W=e(55472),p=e.n(W),O=e(60343),L=e(57704),d=e.n(L),z=e(65788),i=e.n(z),k=e(88212),f=e.n(k);function N(){return y.apply(this,arguments)}function y(){return y=i()(d()().mark(function C(){var s,c,h,_,r;return d()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return s=new(f()).Workbook,c=s.addWorksheet("SKU"),c.columns=[{header:"SKC ID",key:"skcId",width:30},{header:"\u5546\u54C1\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)",key:"costPrice",width:30},{header:"\u5FEB\u9012\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)",key:"warehouseCost",width:30},{header:"\u6253\u5305\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)",key:"packageCost",width:30},{header:"\u5176\u4ED6\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)",key:"fixedCost",width:30}],c.getRow(1).font={bold:!0},u.next=6,s.xlsx.writeBuffer();case 6:h=u.sent,_=new Blob([h],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r=document.createElement("a"),r.href=URL.createObjectURL(_),r.download="\u6279\u91CF\u8BBE\u7F6ESKC\u6210\u672C\u6A21\u7248.xlsx",document.body.appendChild(r),r.click(),document.body.removeChild(r);case 14:case"end":return u.stop()}},C)})),y.apply(this,arguments)}function l(){return o.apply(this,arguments)}function o(){return o=i()(d()().mark(function C(){var s,c,h,_,r;return d()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return s=new(f()).Workbook,c=s.addWorksheet("SKU"),c.columns=[{header:"SKU ID",key:"skuId",width:30},{header:"\u5546\u54C1\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)",key:"costPrice",width:30},{header:"\u5FEB\u9012\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)",key:"warehouseCost",width:30},{header:"\u6253\u5305\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)",key:"packageCost",width:30},{header:"\u5176\u4ED6\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)",key:"fixedCost",width:30}],c.getRow(1).font={bold:!0},u.next=6,s.xlsx.writeBuffer();case 6:h=u.sent,_=new Blob([h],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r=document.createElement("a"),r.href=URL.createObjectURL(_),r.download="\u6279\u91CF\u8BBE\u7F6ESKU\u6210\u672C\u6A21\u7248.xlsx",document.body.appendChild(r),r.click(),document.body.removeChild(r);case 14:case"end":return u.stop()}},C)})),o.apply(this,arguments)}var A=e(16627),$=e(80564),V=e(61793),U=e(27209),q=e(52089),ee=e(4016),v=e(74094),S=e(37953),n=e(15621),te=(function(C){var s=C.onChange,c=(0,S.useState)(!1),h=p()(c,2),_=h[0],r=h[1],G=(0,S.useState)([]),u=p()(G,2),J=u[0],T=u[1],re=(0,S.useState)(),D=p()(re,2),w=D[0],b=D[1];return J&&J.length>0?(0,n.jsx)($.A,{size:"small",scroll:{y:"calc(100vh - 300px)"},dataSource:J,columns:[{dataIndex:w=="SKC_COST"?"skcId":"skuId",title:w=="SKC_COST"?"SKC ID":"SKU ID"},{dataIndex:"costPrice",title:"\u5546\u54C1\u6210\u672C",width:120,render:function(a){return a?(a/100).toFixed(2):"0.00"}},{dataIndex:"warehouseCost",title:"\u5FEB\u9012\u8D39\u7528",width:120,render:function(a){return a?(a/100).toFixed(2):"0.00"}},{dataIndex:"packageCost",title:"\u6253\u5305\u8D39\u7528",width:120,render:function(a){return a?(a/100).toFixed(2):"0.00"}},{dataIndex:"fixedCost",title:"\u5176\u4ED6\u6210\u672C",width:120,render:function(a){return a?(a/100).toFixed(2):"0.00"}}]}):(0,n.jsx)(V.A,{spinning:_,tip:"\u6587\u4EF6\u89E3\u6790\u4E2D",children:(0,n.jsxs)(U.A,{defaultActiveKey:"1",children:[(0,n.jsxs)(U.A.TabPane,{tab:"SKC\u5BFC\u5165",children:[(0,n.jsx)(q.A,{type:"primary",onClick:N,style:{marginBottom:"10px"},children:"\u4E0B\u8F7DSKC\u7EF4\u5EA6\u6210\u672C\u6A21\u7248"}),(0,n.jsxs)(ee.A.Dragger,{accept:".xlsx,.xls",itemRender:function(){return null},beforeUpload:function(a){var M=new FileReader;return r(!0),M.onloadend=(function(){var ae=i()(d()().mark(function Q(oe){var X,g,I,x,F,j;return d()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return X=oe.target.result,g=new(f()).Workbook,E.next=4,g.xlsx.load(X);case 4:if(I=g.getWorksheet(1),x=[],I){F=null,j="";try{I.eachRow(function(B,Y){var t=B.values;if(Y===1){var Z=t[1];if(!(Z==="SKC ID"&&t[2]==="\u5546\u54C1\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)"&&t[3]==="\u5FEB\u9012\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)"&&t[4]==="\u6253\u5305\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)"&&t[5]==="\u5176\u4ED6\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)"))throw r(!1),v.Ay.error({content:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5185\u5BB9\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u6216\u8005\u4E0B\u8F7D\u6A21\u7248\u7F16\u8F91\u540E\u91CD\u65B0\u4E0A\u4F20",duration:5}),new Error("\u8868\u5934\u683C\u5F0F\u9519\u8BEF");F=Z==="SKC ID"?"SKC_COST":null}if(Y>1){if(t[1]&&(j=t[1]),!t[2]&&t[2]!==0)throw r(!1),v.Ay.error({content:"\u5B58\u5728\u5546\u54C1\u672A\u586B\u5199\u201C\u5546\u54C1\u6210\u672C\u201D\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u63D0\u4EA4",duration:5}),new Error("");var H={costPrice:(t[2]||0)*100,warehouseCost:(t[3]||0)*100,packageCost:(t[4]||0)*100,fixedCost:(t[5]||0)*100};H.skcId=j,x.push(H)}}),T(x),b(F),s==null||s(x)}catch(B){}}r(!1);case 8:case"end":return E.stop()}},Q)}));return function(Q){return ae.apply(this,arguments)}})(),M.readAsArrayBuffer(a),!1},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(A.A,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u5355\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u5F53\u524D\u533A\u57DF"}),(0,n.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u6587\u4EF6\u4E0A\u4F20\uFF0C\u4EC5\u652F\u6301.xlsx\u548C.xls\u6587\u4EF6"})]})]},"1"),(0,n.jsxs)(U.A.TabPane,{tab:"SKU\u5BFC\u5165",children:[(0,n.jsx)(q.A,{type:"primary",onClick:l,style:{marginBottom:"10px"},children:"\u4E0B\u8F7DSKU\u7EF4\u5EA6\u6210\u672C\u6A21\u7248"}),(0,n.jsxs)(ee.A.Dragger,{accept:".xlsx,.xls",itemRender:function(){return null},beforeUpload:function(a){var M=new FileReader;return r(!0),M.onloadend=(function(){var ae=i()(d()().mark(function Q(oe){var X,g,I,x,F,j;return d()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return X=oe.target.result,g=new(f()).Workbook,E.next=4,g.xlsx.load(X);case 4:if(I=g.getWorksheet(1),x=[],I){F=null,j="";try{I.eachRow(function(B,Y){var t=B.values;if(Y===1){var Z=t[1];if(!(Z==="SKU ID"&&t[2]==="\u5546\u54C1\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)"&&t[3]==="\u5FEB\u9012\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)"&&t[4]==="\u6253\u5305\u8D39\u7528(\u5355\u4F4D\uFF1A\u5143)"&&t[5]==="\u5176\u4ED6\u6210\u672C(\u5355\u4F4D\uFF1A\u5143)"))throw r(!1),v.Ay.error({content:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5185\u5BB9\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u6216\u8005\u4E0B\u8F7D\u6A21\u7248\u7F16\u8F91\u540E\u91CD\u65B0\u4E0A\u4F20",duration:5}),new Error("\u8868\u5934\u683C\u5F0F\u9519\u8BEF");F=Z==="SKU ID"?"SKU_COST":null}if(Y>1){if(t[1]&&(j=t[1]),!t[2]&&t[2]!==0)throw r(!1),v.Ay.error({content:"\u5B58\u5728\u5546\u54C1\u672A\u586B\u5199\u201C\u5546\u54C1\u6210\u672C\u201D\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u63D0\u4EA4",duration:5}),new Error("");var H={costPrice:(t[2]||0)*100,warehouseCost:(t[3]||0)*100,packageCost:(t[4]||0)*100,fixedCost:(t[5]||0)*100};H.skuId=j,x.push(H)}}),T(x),b(F),s==null||s(x)}catch(B){console.log("SKU Cost import failed, ex:",B)}}r(!1);case 8:case"end":return E.stop()}},Q)}));return function(Q){return ae.apply(this,arguments)}})(),M.readAsArrayBuffer(a),!1},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(A.A,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u5355\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u5F53\u524D\u533A\u57DF"}),(0,n.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u6587\u4EF6\u4E0A\u4F20\uFF0C\u4EC5\u652F\u6301.xlsx\u548C.xls\u6587\u4EF6"})]})]},"2")]})})});e.dn(te);var ne=e(36100),le=e(50724),de=e(1920),ue=(function(C){var s=(0,O.useModel)("base"),c=s.mallId,h=(0,S.useState)(),_=p()(h,2),r=_[0],G=_[1],u=de.A.useForm(),J=p()(u,1),T=J[0],re=(0,S.useCallback)(function(D){if(D.length){var w=Object.keys(D[0]).find(function(b){return b==="skcId"||b==="skuId"});if(!w){v.Ay.error("\u5BFC\u5165\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u672A\u627E\u5230skcId/skuId");return}G(w),T.setFieldsValue({costData:D})}},[T]);return(0,n.jsx)(ne.K,{title:"\u5BFC\u5165\u6210\u672C\u4EF7/\u5176\u4ED6\u6210\u672C",modalProps:{destroyOnClose:!0}
1,form:T,trigger:(0,n.jsx)(q.A,P()(P()({size:"small"},C),{},{children:"Excel\u5BFC\u5165\u6210\u672C\u4EF7"})),onFinish:function(w){var b=r==="skcId"?{mallId:c,skcList:w.costData}:{mallId:c,skuList:w.costData};return(0,O.request)(r==="skcId"?"/api/v1/platform/batchUpdateSkcCost":"/api/v1/platform/batchUpdateSkuCost",{method:"POST",data:b}).then(function(m){if(m.success){var a;return v.Ay.success("\u6210\u672C\u8BBE\u7F6E\u6210\u529F\uFF0C\u5229\u6DA6\u4E0E\u9500\u989D\u6B63\u5728\u91CD\u65B0\u8BA1\u7B97\uFF0C\u7A0D\u540E\u5237\u65B0\u9875\u9762\u5373\u53EF\u67E5\u770B").then(function(M){}),(a=C.onFinish)===null||a===void 0||a.call(C),!0}throw v.Ay.error(m.msg||"\u8BBE\u7F6E\u6210\u672C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error(m.msg||"\u8BBE\u7F6E\u6210\u672C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")})},children:(0,n.jsx)(le.A,{label:"",name:"costData",rules:[{required:!0,message:"\u8BF7\u5BFC\u5165\u6210\u672C\u6570\u636E"}],children:(0,n.jsx)(te,{onChange:re})})})});e.dn(ue)}),18032:(function(se,K,e){e.d(K,{E:function(){return W}});var R=e(37810),P=e.n(R);function W(p,O){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=L.onUpdate;return new Promise(function(z,i){var k=[],f=0,N=function y(l){p(l).then(function(o){if(o&&o.data&&o.data.length>=0)if(o.data.forEach(function($){k.push($)}),d&&d(k.length,o.total),l.pageSize>o.data.length)z(k);else{var A=P()({},l);A.page+=1,y(A)}else f<5?(f+=1,y(l)):i(!1)}).catch(function(o){f<5?(f+=1,y(l)):i(o)})};N(O)})}})}]);

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.