1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6117],{73529:(function(Ie,N,t){var F=t(98477),d=t(18211),R=t(32199),b=t(37953),k=t(38020),i=t(88849),T=t(15621),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],K=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],B=function(p,W){var J=p.fieldProps,e=p.children,s=p.params,Z=p.proFieldProps,c=p.mode,ye=p.valueEnum,ve=p.request,me=p.showSearch,$=p.options,Y=(0,d.A)(p,u),V=(0,b.useContext)(k.A);return(0,T.jsx)(i.A,(0,F.A)((0,F.A)({valueEnum:(0,R._)(ye),request:ve,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.A)({options:$,mode:c,showSearch:me,getPopupContainer:V.getPopupContainer},J),ref:W,proFieldProps:Z},Y),{},{children:e}))},L=b.forwardRef(function(G,p){var W=G.fieldProps,J=G.children,e=G.params,s=G.proFieldProps,Z=G.mode,c=G.valueEnum,ye=G.request,ve=G.options,me=(0,d.A)(G,K),$=(0,F.A)({options:ve,mode:Z||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},W),Y=(0,b.useContext)(k.A);return(0,T.jsx)(i.A,(0,F.A)((0,F.A)({valueEnum:(0,R._)(c),request:ye,params:e,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.A)({getPopupContainer:Y.getPopupContainer},$),ref:p,proFieldProps:s},me),{},{children:J}))}),m=b.forwardRef(B),ie=L,se=m;se.SearchSelect=ie,se.displayName="ProFormComponent",N.A=se}),92574:(function(Ie,N,t){var F=t(73159),d=t(98477),R=t(18211),b=t(82179),k=t(47215),i=t(51100),T=t(34346),u=t(37953),K=t(88849),B=t(15621),L=["fieldProps","proFieldProps"],m=["fieldProps","proFieldProps"],ie="text",se=function(e){var s=e.fieldProps,Z=e.proFieldProps,c=(0,R.A)(e,L);return(0,B.jsx)(K.A,(0,d.A)({valueType:ie,fieldProps:s,filedConfig:{valueType:ie},proFieldProps:Z},c))},G=function(e){var s=(0,b.A)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),Z=(0,F.A)(s,2),c=Z[0],ye=Z[1];return(0,B.jsx)(k.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(me){var $,Y=me.getFieldValue(e.name||[]);return(0,B.jsx)(i.A,(0,d.A)((0,d.A)({getPopupContainer:function(l){return l&&l.parentNode?l.parentNode:l},onOpenChange:function(l){return ye(l)},content:(0,B.jsxs)("div",{style:{padding:"4px 0"},children:[($=e.statusRender)===null||$===void 0?void 0:$.call(e,Y),e.strengthText?(0,B.jsx)("div",{style:{marginTop:10},children:(0,B.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:c,children:e.children}))}})},p=function(e){var s=e.fieldProps,Z=e.proFieldProps,c=(0,R.A)(e,m),ye=(0,u.useState)(!1),ve=(0,F.A)(ye,2),me=ve[0],$=ve[1];return s!=null&&s.statusRender&&c.name?(0,B.jsx)(G,{name:c.name,statusRender:s==null?void 0:s.statusRender,popoverProps:s==null?void 0:s.popoverProps,strengthText:s==null?void 0:s.strengthText,open:me,onOpenChange:$,children:(0,B.jsx)("div",{children:(0,B.jsx)(K.A,(0,d.A)({valueType:"password",fieldProps:(0,d.A)((0,d.A)({},(0,T.A)(s,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(V){var l;s==null||(l=s.onBlur)===null||l===void 0||l.call(s,V),$(!1)},onClick:function(V){var l;s==null||(l=s.onClick)===null||l===void 0||l.call(s,V),$(!0)}}),proFieldProps:Z,filedConfig:{valueType:ie}},c))})}):(0,B.jsx)(K.A,(0,d.A)({valueType:"password",fieldProps:s,proFieldProps:Z,filedConfig:{valueType:ie}},c))},W=se;W.Password=p,W.displayName="ProFormComponent",N.A=W}),1385:(function(Ie,N,t){var F=t(20873),d=t(73159),R=t(18211),b=t(60460),k=t(38481),i=t(98477),T=t(93774),u=t(14592),K=t(2112),B=t(44139),L=t(54787),m=t(40087),ie=t(32199),se=t(25997),G=t(86807),p=t(47215),W=t(82179),J=t(3702),e=t(96490),s=t(37953),Z=t(18466),c=t(15621),ye=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],ve=["record","position","creatorButtonText","newRecordType","parentKey","style"],me=s.createContext(void 0);function $(l){var te=l.children,be=l.record,he=l.position,Re=l.newRecordType,ge=l.parentKey,fe=(0,s.useContext)(me);return s.cloneElement(te,(0,i.A)((0,i.A)({},te.props),{},{onClick:(function(){var Te=(0,k.A)((0,b.A)().mark(function Je(ze){var ke,Ee,je,Qe;return(0,b.A)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,(ke=(Ee=te.props).onClick)===null||ke===void 0?void 0:ke.call(Ee,ze);case 2:if(Qe=A.sent,Qe!==!1){A.next=5;break}return A.abrupt("return");case 5:fe==null||(je=fe.current)===null||je===void 0||je.addEditRecord(be,{position:he,newRecordType:Re,parentKey:ge});
1case 6:case"end":return A.stop()}},Je)}));function pe(Je){return Te.apply(this,arguments)}return pe})()}))}function Y(l){var te,be,he=(0,B.tz)(),Re=l.onTableChange,ge=l.maxLength,fe=l.formItemProps,Te=l.recordCreatorProps,pe=l.rowKey,Je=l.controlled,ze=l.defaultValue,ke=l.onChange,Ee=l.editableFormRef,je=(0,R.A)(l,ye),Qe=(0,s.useRef)(void 0),Ke=(0,s.useRef)(),A=(0,s.useRef)();(0,s.useImperativeHandle)(je.actionRef,function(){return Ke.current},[Ke.current]);var at=(0,W.A)(function(){return l.value||ze||[]},{value:l.value,onChange:l.onChange}),Xe=(0,d.A)(at,2),M=Xe[0],We=Xe[1],xe=s.useMemo(function(){return typeof pe=="function"?pe:function(h,w){return h[pe]||w}},[pe]),Ye=(0,L.$)(function(h){if(typeof h=="number"&&!l.name){if(h>=M.length)return h;var w=M&&M[h];return xe==null?void 0:xe(w,h)}if((typeof h=="string"||h>=M.length)&&l.name){var g=M.findIndex(function(P,Q){var U;return(xe==null||(U=xe(P,Q))===null||U===void 0?void 0:U.toString())===(h==null?void 0:h.toString())});if(g!==-1)return g}return h});(0,s.useImperativeHandle)(Ee,function(){var h=function(P){var Q,U;if(P==null)throw new Error("rowIndex is required");var re=Ye(P),Se=[l.name,(Q=re==null?void 0:re.toString())!==null&&Q!==void 0?Q:""].flat(1).filter(Boolean);return(U=A.current)===null||U===void 0?void 0:U.getFieldValue(Se)},w=function(){var P,Q=[l.name].flat(1).filter(Boolean);if(Array.isArray(Q)&&Q.length===0){var U,re=(U=A.current)===null||U===void 0?void 0:U.getFieldsValue();return Array.isArray(re)?re:Object.keys(re).map(function(Se){return re[Se]})}return(P=A.current)===null||P===void 0?void 0:P.getFieldValue(Q)};return(0,i.A)((0,i.A)({},A.current),{},{getRowData:h,getRowsData:w,setRowData:function(P,Q){var U,re;if(P==null)throw new Error("rowIndex is required");var Se=Ye(P),I=[l.name,(U=Se==null?void 0:Se.toString())!==null&&U!==void 0?U:""].flat(1).filter(Boolean),f=Object.assign({},(0,i.A)((0,i.A)({},h(P)),Q||{})),_=(0,e.A)({},I,f);return(re=A.current)===null||re===void 0||re.setFieldsValue(_),!0}})},[Ye,l.name,A.current]),(0,s.useEffect)(function(){l.controlled&&(M||[]).forEach(function(h,w){var g;(g=A.current)===null||g===void 0||g.setFieldsValue((0,F.A)({},"".concat(xe(h,w)),h))},{})},[(0,se.A)(M),l.controlled]),(0,s.useEffect)(function(){if(l.name){var h;A.current=l==null||(h=l.editable)===null||h===void 0?void 0:h.form}},[(te=l.editable)===null||te===void 0?void 0:te.form,l.name]);var Fe=Te||{},lt=Fe.record,Me=Fe.position,Ve=Fe.creatorButtonText,$e=Fe.newRecordType,ot=Fe.parentKey,He=Fe.style,rt=(0,R.A)(Fe,ve),qe=Me==="top",De=(0,s.useMemo)(function(){return typeof ge=="number"&&ge<=(M==null?void 0:M.length)?!1:Te!==!1&&(0,c.jsx)($,{record:(0,ie._)(lt,M==null?void 0:M.length,M)||{},position:Me,parentKey:(0,ie._)(ot,M==null?void 0:M.length,M),newRecordType:$e,children:(0,c.jsx)(G.A,(0,i.A)((0,i.A)({type:"dashed",style:(0,i.A)({display:"block",margin:"10px 0",width:"100%"},He),icon:(0,c.jsx)(T.A,{})},rt),{},{children:Ve||he.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[Te,ge,M==null?void 0:M.length]),Ge=(0,s.useMemo)(function(){return De?qe?{components:{header:{wrapper:function(w){var g,P=w.className,Q=w.children;return(0,c.jsxs)("thead",{className:P,children:[Q,(0,c.jsxs)("tr",{style:{position:"relative"},children:[(0,c.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:De}),(0,c.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(g=je.columns)===null||g===void 0?void 0:g.length,children:De})]})]})}}}}:{tableViewRender:function(w,g){var P,Q;return(0,c.jsxs)(c.Fragment,{children:[(P=(Q=l.tableViewRender)===null||Q===void 0?void 0:Q.call(l,w,g))!==null&&P!==void 0?P:g,De]})}}:{}},[qe,De]),Ze=(0,i.A)({},l.editable),et=(0,L.$)(function(h,w){var g,P,Q;if((g=l.editable)===null||g===void 0||(P=g.onValuesChange)===null||P===void 0||P.call(g,h,w),(Q=l.onValuesChange)===null||Q===void 0||Q.call(l,w,h),l.controlled){var U;l==null||(U=l.onChange)===null||U===void 0||U.call(l,w)}});return(l!=null&&l.onValuesChange||(be=l.editable)!==null&&be!==void 0&&be.onValuesChange||l.controlled&&l!==null&&l!==void 0&&l.onChange)&&(Ze.onValuesChange=et),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(me.Provider,{value:Ke,children:(0,c.jsx)(Z.A,(0,i.A)((0,i.A)((0,i.A)({search:!1,options:!1,pagination:!1,rowKey:pe,revalidateOnFocus:!1},je),Ge),{},{tableLayout:"fixed",actionRef:Ke,onChange:Re,editable:(0,i.A)((0,i.A)({},Ze),{},{formProps:(0,i.A)({formRef:A},Ze.formProps)}),dataSource:M,onDataSourceChange:function(w){if(We(w),l.name&&Me==="top"){var g,P=(0,e.A)({}
1,[l.name].flat(1).filter(Boolean),w);(g=A.current)===null||g===void 0||g.setFieldsValue(P)}}}))}),l.name?(0,c.jsx)(K.A,{name:[l.name],children:function(w){var g,P;if(!Qe.current)return Qe.current=M,null;var Q=(0,J.A)(w,[l.name].flat(1)),U=Q==null?void 0:Q.find(function(re,Se){var I;return!(0,m.q)(re,(I=Qe.current)===null||I===void 0?void 0:I[Se])});return Qe.current=M,U&&(l==null||(g=l.editable)===null||g===void 0||(P=g.onValuesChange)===null||P===void 0||P.call(g,U,Q)),null}}):null]})}function V(l){var te=u.Ay.useFormInstance();return l.name?(0,c.jsx)(p.A.Item,(0,i.A)((0,i.A)({style:{maxWidth:"100%"}},l==null?void 0:l.formItemProps),{},{name:l.name,shouldUpdate:function(he,Re){var ge=[l.name].flat(1);try{return JSON.stringify((0,J.A)(he,ge))!==JSON.stringify((0,J.A)(Re,ge))}catch(fe){return!0}},children:(0,c.jsx)(Y,(0,i.A)((0,i.A)({tableLayout:"fixed",scroll:{x:"max-content"}},l),{},{editable:(0,i.A)((0,i.A)({},l.editable),{},{form:te})}))})):(0,c.jsx)(Y,(0,i.A)({tableLayout:"fixed",scroll:{x:"max-content"}},l))}V.RecordCreator=$,N.A=V}),68949:(function(Ie,N,t){t.d(N,{A:function(){return B}});var F=t(37810),d=t.n(F),R=t(26572),b=t.n(R),k=t(37953),i={warp:"warp___YwEJM",title:"title___DMVwk",content:"content___Q1eqL"},T=t(15621),u=["children","title","style","titleStyle","className","contentClassName","contentStyle"],K=function(m){var ie=m.children,se=m.title,G=m.style,p=m.titleStyle,W=m.className,J=m.contentClassName,e=m.contentStyle,s=b()(m,u);return(0,T.jsxs)("div",d()(d()({className:i.warp+" "+W,style:G},s),{},{children:[se&&(0,T.jsx)("div",{style:p,className:i.title,children:se}),(0,T.jsx)("div",{className:i.content+" "+J,style:e,children:ie})]}))},B=K}),15841:(function(Ie,N,t){var F=t(37810),d=t.n(F),R=t(26572),b=t.n(R),k=t(73141),i=t(37875),T=t(15621),u=["title","content"];N.A=(function(K){var B=K.title,L=K.content,m=b()(K,u);return(0,T.jsx)(i.A,d()(d()({},m),{},{title:B,children:(0,T.jsxs)("span",{style:{cursor:"pointer"},children:[L,B&&(0,T.jsx)(k.A,{style:{color:"#333",marginLeft:"5px"}})]})}))}),t.dn(N.A)}),19446:(function(Ie,N,t){var F=t(37810),d=t.n(F),R=t(37875),b=t(15621);N.A=(function(k){return(0,b.jsx)(R.A,d()(d()({placement:"right",arrowPointAtCenter:!0},k),{},{title:(0,b.jsx)("div",{onClick:function(T){return T.stopPropagation()},children:k.title}),style:{},children:(0,b.jsx)("span",{style:d()({display:"inline-block",maxWidth:"100%",fontSize:"12px"},k.style),className:"overflow-ellipsis",children:k.title})}))}),t.dn(N.A)}),69625:(function(Ie,N,t){var F=t(73851),d=t(15621),R=function(k){var i=k.itemList,T=i===void 0?[]:i,u=k.value,K=k.onChange,B=function(m,ie){var se=u||{};se[m]=ie,K==null||K(se)};return(0,d.jsx)(F.A.Group,{style:{display:"flex",width:"100%"},compact:!0,children:T.map(function(L,m){return typeof L=="function"?L(B.bind(null,m),u,m):L})})};N.A=R}),29769:(function(Ie,N,t){t.d(N,{A:function(){return u}}),t.dn(u);var F=t(37810),d=t.n(F),R=t(26572),b=t.n(R),k=t(37875),i=t(15621),T=["tipTitle"];function u(K){var B=K.tipTitle,L=b()(K,T);return(0,i.jsx)(k.A,{title:B||(0,i.jsx)("span",{children:"\u901A\u8FC7\u6210\u672C\u4EF7\u8BA1\u7B97\u83B7\u5F97"}),children:(0,i.jsx)("span",d()(d()({style:{display:"inline-block",fontSize:"10px",padding:"3px",lineHeight:"10px",marginLeft:"5px",borderRadius:"2px",background:"#fb7701",color:"#fff",cursor:"pointer"}},L),{},{children:"\u6210"}))})}}),63110:(function(Ie,N,t){var F=t(48211),d=t(37953),R=t(15621),b=function(i){var T=i.name,u=i.children,K=i.style,B=i.loading,L=B===void 0?!1:B;return(0,d.useEffect)(function(){document.title=T},[T]),K?(0,R.jsx)(F.A,{spinning:L,style:K,children:u}):(0,R.jsx)(F.A,{spinning:L,children:u})};N.A=b}),57658:(function(Ie,N,t){t.r(N),t.d(N,{default:function(){return Se}});var F=t(55472),d=t.n(F),R=t(68949),b=t(46237),k=t(38349),i=t(63110),T=t(37810),u=t.n(T),K=t(26572),B=t.n(K),L=t(15841),m=t(19446),ie=t(30006),se=t(1385),G=t(73445),p=t(37953),W=t(99778),J=t(86807),e=t(15621),s=["onChange","disableSync","value","onSync"],Z=(function(I){var f=I.onChange,_=I.disableSync,v=I.value,X=I.onSync,ne=B()(I,s);return(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,e.jsx)(W.A,u()(u()({},ne),{}
1,{value:v,onChange:f,addonAfter:"\u5143"})),!_&&(0,e.jsx)(J.A,{type:"link",size:"small",onClick:function(){X(v)},children:"\u540C\u6B65\u81F3\u5176\u4ED6"})]})});t.dn(Z);var c=t(31233),ye=["data","disableSync"],ve=(function(I){var f=I.data,_=I.disableSync,v=B()(I,ye),X=p.useState(!1),ne=d()(X,1),ae=ne[0];return(0,p.useEffect)(function(){var O;console.log(f),(O=v.onChange)===null||O===void 0||O.call(v,(f==null?void 0:f.map(function(E){return u()(u()({},E),{},{skuId:E.skuId,supplierPrice:E.supplierPrice,costPrice:E.costPrice===null?void 0:E.costPrice/100,fixedCost:E.fixedCost===null?void 0:E.fixedCost/100,warehouseCost:E.warehouseCost===null?void 0:E.warehouseCost/100,packageCost:E.packageCost===null?void 0:E.packageCost/100,productName:E.productName})}))||[])},[]),console.log(f),(0,e.jsx)(se.A,u()(u()({loading:ae},v),{},{controlled:!0,scroll:{y:"calc(100vh - 240px)"},rowKey:"id",editable:{type:"multiple",editableKeys:(f==null?void 0:f.map(function(O){return O.id}))||[]},columns:[{title:"\u5546\u54C1\u4FE1\u606F",dataIndex:"img",key:"img",width:270,fixed:"left",editable:!1,render:function(E,x){return(0,e.jsxs)("div",{style:{display:"flex",gap:"8px",fontSize:"12px"},children:[(0,e.jsx)("div",{style:{width:"50px"},children:(0,e.jsx)(G.A,{width:50,height:"auto",src:x.imageUrl||"error",fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEg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ChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})}),(0,e.jsxs)("div",{style:{width:0,flex:1,lineHeight:1.1},children:[(0,e.jsx)("div",{style:{fontSize:"0"},children:(0,e.jsx)(m.A,{style:{fontSize:"12px"},title:x.productName})}),(0,e.jsxs)("div",{style:{color:"#999",fontSize:"11px"},children:[(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SKC: "+x.skcId})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SPU: "+x.spuId})}),(x==null?void 0:x.skuId)&&(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SKU: "+x.skuId})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SKU\u89C4\u683C: "+x.skuSpec})})]}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"\u7C7B\u76EE: "+((x==null?void 0:x.category)||"-")})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"\u8D27\u53F7: "+x.extCode})})]})]})]})}},{title:"\u7533\u62A5\u4EF7(".concat((0,ie.l)(),")"),width:100,dataIndex:"supplierPrice",valueType:"text",readonly:!0,editable:!1,render:function(E,x){return(0,c._B)(x.supplierPrice)}},{title:(0,e.jsxs)("span",{children:["\u5546\u54C1\u6210\u672C",(0,e.jsx)(L.A,{zIndex:1072,title:"\u5546\u54C1\u6210\u672C\u4EF7\uFF08\u8FDB\u8D27\u4EF7\u3001\u51FA\u5382\u4EF7\uFF09"})]}),dataIndex:"costPrice",width:190,renderFormItem:function(E){return(0,e.jsx)(Z,{disableSync:_,onSync:function(q){var j,C;(j=v.onChange)===null||j===void 0||j.call(v,(C=v.value)===null||C===void 0?void 0:C.map(function(de){return u()(u()({},de),{},{costPrice:q})}))}})}},{title:(0,e.jsxs)("span",{children:["\u5FEB\u9012\u8D39\u7528",(0,e.jsx)(L.A,{zIndex:1072,title:"\u7269\u6D41\u8D39\u7528"})]}),dataIndex:"warehouseCost",width:170,renderFormItem:function(E){return(0,e.jsx)(Z,{disableSync:_,onSync:function(q){var j,C;(j=v.onChange)===null||j===void 0||j.call(v,(C=v.value)===null||C===void 0?void 0:C.map(function(de){return u()(u()({},de),{},{warehouseCost:q})}))}})}},{title:(0,e.jsxs)("span",{children:["\u6253\u5305\u8D39\u7528",(0,e.jsx)(L.A,{zIndex:1072,title:"\u5546\u54C1\u6253\u5305\u8D39\u7528"})]}),dataIndex:"packageCost",width:170,renderFormItem:function(E){return(0,e.jsx)(Z,{disableSync:_,onSync:function(q){var j,C;(j=v.onChange)===null||j===void 0||j.call(v,(C=v.value)===null||C===void 0?void 0:C.map(function(de){return u()(u()({},de),{},{packageCost:q})}))}})}},{title:(0,e.jsxs)("span",{children:["\u5176\u4ED6\u6210\u672C",(0,e.jsx)(L.A,{zIndex:1072,title:"\u683C\u5916\u7684\u6210\u672C"})]}),dataIndex:"fixedCost",width:170,renderFormItem:function(E){return(0,e.jsx)(Z,{disableSync:_,onSync:function(q){var j,C;(j=v.onChange)===null||j===void 0||j.call(v,(C=v.value)===null||C===void 0?void 0:C.map(function(de){return u()(u()({},de),{},{fixedCost:q})}))}})}}],recordCreatorProps:!1}))});t.dn(ve);var me=t(5143),$=t(6403),Y=t(55880),V=t(76648),l=["onFinish","trigger","buttonText","t
1itle","dataSource","disableSync"],te=(function(I){var f=I.onFinish,_=I.trigger,v=I.buttonText,X=I.title,ne=I.dataSource,ae=I.disableSync,O=B()(I,l),E=(0,Y.useModel)("base"),x=E.mallId;return(0,e.jsx)(me.K,{trigger:_||(0,e.jsx)(J.A,u()(u()({type:"primary"},O),{},{children:v||"\u6279\u91CF\u8BBE\u7F6E\u6210\u672C\u4EF7"})),title:X||(0,e.jsxs)("span",{children:["\u6279\u91CF\u8BBE\u7F6E\u6210\u672C\u4EF7",(0,e.jsx)("a",{style:{fontSize:"14px",marginLeft:"10px"},href:"https://kuajing-help.yuque.com/id8fqo/temuhelp/qe1ri8gg0sz4y0eg",target:"_blank",children:"\u4F7F\u7528\u8BF4\u660E"})]}),width:1500,modalProps:{zIndex:1071,centered:!0,destroyOnClose:!0},onFinish:function(j){return(0,Y.request)("/api/v1/platform/batchUpdateSkuCost",{method:"POST",data:u()(u()({mallId:x},j),{},{skuList:j.skuList.map(function(C){return{skuId:C.skuId,costPrice:C.costPrice*100,fixedCost:C.fixedCost*100,warehouseCost:C.warehouseCost*100,packageCost:C.packageCost*100}})})}).then(function(C){if(C.success)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"),f==null||f(),!0;throw V.Ay.error(C.msg||"\u8BBE\u7F6E\u6210\u672C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error(C.msg||"\u8BBE\u7F6E\u6210\u672C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")})},children:(0,e.jsx)($.A,{name:"skuList",children:(0,e.jsx)(ve,{data:ne,disableSync:ae})})})});t.dn(te);var be=t(57704),he=t.n(be),Re=t(65788),ge=t.n(Re),fe=t(47215),Te=t(37875),pe=t(63980),Je=function(f){var _=f.onFinish,v=f.search,X=f.mallId,ne=f.size,ae=(0,Y.useModel)("base"),O=ae.domain,E=(0,p.useState)(!1),x=d()(E,2),q=x[0],j=x[1],C=(0,p.useState)(null),de=d()(C,2),Ce=de[0],Be=de[1],_e=(0,p.useState)(!1),Oe=d()(_e,2),y=Oe[0],H=Oe[1],r=fe.A.useForm(),le=d()(r,1),a=le[0],o=(0,p.useState)(!1),n=d()(o,2),S=n[0],D=n[1],ce=(function(){var ue=ge()(he()().mark(function Pe(){var z;return he()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return H(!0),oe.prev=1,oe.next=4,(0,Y.request)("/api/v1/platform/sku/listSku",{method:"POST",data:JSON.stringify(u()({mallId:X,domain:O,page:1,pageSize:1,tab:"all",order:{columnKey:"last7dayFrontSaleVolume",order:"descend"}},v))});case 4:z=oe.sent,z!=null&&z.success?Be(z.total):V.Ay.error((z==null?void 0:z.message)||"\u83B7\u53D6\u6570\u636E\u91CF\u5931\u8D25"),oe.next=11;break;case 8:oe.prev=8,oe.t0=oe.catch(1),V.Ay.error("\u83B7\u53D6\u6570\u636E\u91CF\u5931\u8D25");case 11:return oe.prev=11,H(!1),oe.finish(11);case 14:case"end":return oe.stop()}},Pe,null,[[1,8,11,14]])}
1));return function(){return ue.apply(this,arguments)}})(),Ne=function(){j(!0),a.resetFields(),Be(null),ce()},Le=(function(){var ue=ge()(he()().mark(function Pe(){var z,Ae,oe,tt,nt,we,Ue;return he()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(z=a.getFieldsValue(),Ae=z.costPrice!=null?Math.round(z.costPrice*100):void 0,oe=z.fixedCost!=null?Math.round(z.fixedCost*100):void 0,tt=z.warehouseCost!=null?Math.round(z.warehouseCost*100):void 0,nt=z.packageCost!=null?Math.round(z.packageCost*100):void 0,!(Ae==null&&oe==null&&tt==null&&nt==null)){ee.next=8;break}return V.Ay.warning("\u8BF7\u81F3\u5C11\u586B\u5199\u4E00\u9879\u6210\u672C\u76F8\u5173\u5B57\u6BB5"),ee.abrupt("return");case 8:return D(!0),ee.prev=9,we=u()({mallId:X,domain:O,tab:"all",order:{columnKey:"last7dayFrontSaleVolume",order:"descend"}},v),Ae!==void 0&&(we.costPrice=Ae),oe!==void 0&&(we.fixedCost=oe),tt!==void 0&&(we.warehouseCost=tt),nt!==void 0&&(we.packageCost=nt),ee.next=17,(0,Y.request)("/api/v1/platform/sku/updateCostBySearch",{method:"POST",data:JSON.stringify(we)});case 17:if(Ue=ee.sent,Ue!=null&&Ue.success){ee.next=20;break}throw new Error(Ue==null?void 0:Ue.message);case 20:V.Ay.success("\u6279\u91CF\u8BBE\u7F6E\u6210\u529F"),j(!1),_(),ee.next=28;break;case 25:ee.prev=25,ee.t0=ee.catch(9),V.Ay.error((ee.t0===null||ee.t0===void 0?void 0:ee.t0.message)||"\u6279\u91CF\u8BBE\u7F6E\u5931\u8D25");case 28:return ee.prev=28,D(!1),ee.finish(28);case 31:case"end":return ee.stop()}},Pe,null,[[9,25,28,31]])}));return function(){return ue.apply(this,arguments)}})();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Te.A,{placement:"topLeft",title:"\u8BF7\u5728\u9875\u9762\u4FEE\u6539\u6761\u4EF6\u5E76\u89E6\u53D1\u67E5\u8BE2\u540E\uFF0C\u518D\u70B9\u51FB\u6309\u94AE\u8BBE\u7F6E\u5BF9\u5E94\u6761\u4EF6\u4E0B\u6240\u6709 SKU \u7684\u6210\u672C\u4EF7\u3002",children:(0,e.jsx)(J.A,{size:ne,onClick:Ne,children:"\u6309\u6761\u4EF6\u8BBE\u7F6E\u6210\u672C\u4EF7"})}),(0,e.jsx)(pe.A,{title:"\u6309\u6761\u4EF6\u8BBE\u7F6E\u6210\u672C\u4EF7",open:q,onCancel:function(){y||j(!1)},destroyOnClose:!0,footer:null,width:520,forceRender:!0,children:y&&Ce===null?(0,e.jsx)("div",{style:{textAlign:"center",padding:"20px 0"},children:"\u6B63\u5728\u83B7\u53D6\u6570\u636E\u91CF..."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{marginBottom:16,lineHeight:"22px"},children:["\u672C\u6B21\u6761\u4EF6\u5171\u5F71\u54CD"," ",(0,e.jsx)("strong",{style:{color:"#1677ff"},children:Ce!=null?Ce:0})," \u6761\u6570\u636E\uFF0C \u5C06\u6309\u6761\u4EF6\u8BBE\u7F6E\u6210\u672C\u4EF7\u3002"]}),(0,e.jsxs)(fe.A,{form:a,layout:"vertical",children:[(0,e.jsx)(fe.A.Item,{name:"costPrice",label:"\u5546\u54C1\u6210\u672C",children:(0,e.jsx)(W.A,{min:0,step:.01,precision:2,placeholder:"\u8BF7\u8F93\u5165",style:{width:"100%"}})}),(0,e.jsx)(fe.A.Item,{name:"warehouseCost",label:"\u5FEB\u9012\u8D39\u7528",children:(0,e.jsx)(W.A,{min:0,step:.01,precision:2,placeholder:"\u8BF7\u8F93\u5165",style:{width:"100%"}})}),(0,e.jsx)(fe.A.Item,{name:"packageCost",label:"\u6253\u5305\u8D39\u7528",children:(0,e.jsx)(W.A,{min:0,step:.01,precision:2,placeholder:"\u8BF7\u8F93\u5165",style:{width:"100%"}})}),(0,e.jsx)(fe.A.Item,{name:"fixedCost",label:"\u5176\u4ED6\u6210\u672C",children:(0,e.jsx)(W.A,{min:0,step:.01,precision:2,placeholder:"\u8BF7\u8F93\u5165",style:{width:"100%"}})}),(0,e.jsxs)("div",{style:{color:"#999",fontSize:"12px",lineHeight:"18px",marginBottom:16},children:["\u81F3\u5C11\u586B\u5199\u4E00\u9879\uFF0C\u4E0D\u586B\u9ED8\u8BA4\u4E0D\u66F4\u65B0\uFF1B\u586B\u5199\u7684\u503C\u81EA\u52A8\u8F6C\u4E3A\u5206\u540E\u8C03\u7528\u63A5\u53E3\u3002",(0,e.jsx)("br",{}),"\u5982\u9700\u66F4\u6362\u6761\u4EF6\uFF0C\u8BF7\u5728 SKU \u8D27\u76D8\u7BA1\u7406\u9875\u9762\u4FEE\u6539\u6761\u4EF6\u5E76\u89E6\u53D1\u67E5\u8BE2\u540E\uFF0C\u518D\u8FDB\u884C\u6309\u6761\u4EF6\u8BBE\u7F6E\u6210\u672C\u3002"]}),(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0,e.jsx)(J.A,{disabled:y,onClick:function(){return j(!1)},children:"\u53D6\u6D88"}),(0,e.jsx)(J.A,{type:"primary",loading:S,onClick:Le,children:"\u786E\u8BA4\u8BBE\u7F6E"})]})]})]})})]})},ze=Je,ke=t(76979),Ee=t.n(ke),je=t(55824),Qe=t(59338),Ke=t(57042),A=t(58820),at=t(6746),Xe=t(98811),M=t(9182),We=t.n(M),xe=t(33688),Ye=function(f){return(0,Y.request)("/api/v1/platform/sku/listSku",{method:"POST",data:f})},Fe=(function(I){var f=I.search,_=(0,p.useState)(!1),v=d()(_,2),X=v[0],ne=v[1],ae=(0,Y.useModel)("base"),O=ae.mallId,E=ae.mallList,x=ae.curMall,q=ae.domain,j=(0,p.useState)(0),C=d()(j,2),de=C[0],Ce=C[1],Be=(0,p.useRef)({timer:null}),_e=function(H,r,le){var a=le==="front"?"\u524D\u7AEF":"\u5BF9\u8D26\u5355",o=[{value:"SaleVolume",label:"\u9500\u91CF"},{value:"SaleAmount",label:"\u9500\u989D"},{value:"Profit",label:"\u6BDB\u5229"}];return o.map(function(n){var S=n.value,D=n.label,ce=le==="front"?"".concat(r,"Front").concat(S):"".concat(r).concat(S);return{header:"".concat(H).concat(a).concat(D),width:15,key:ce}})},Oe=(0,p.useCallback)(function(){Be.current.timer=setTimeout(function(){V.Ay.info("\u5982\u9047\u5BFC\u51FA\u957F\u65F6\u95F4\u672A\u5B8C\u6210\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E\u4E00\u6B21\u6027\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E\u91CF\u8FC7\u5927\u9700\u8981\u957F\u65F6\u95F4\u5904\u7406\u5BFC\u81F4\uFF0C\u53EF\u5C1D\u8BD5\u589E\u52A0\u7B5B\u9009\u6761\u4EF6\u7CBE\u7B80\u6570\u636E\u540E\u52A0\u5FEB\u5BFC\u51FA\u901F\u5EA6\uFF01"),Be.current.timer=null},1e3*60*2),Ce(0),ne(!0),(0,at.E)(Ye,u()(u()({},f),{},{domain:q,page:1,pageSize:50}),{onUpdate:function(H,r){Ce(H/r*30)}}).then((function(){var y=ge()(he()().mark(function H(r){var le,a;return he()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:a=0;case 1:if(!(a<r.length)){n.next=31;break}return n.next=4,(0,Ke.p7)(r[a].imageUrl+"?imageMogr2/thumbnail/90x90");case 4:r[a].image=n.sent,r[a].todaySaleAmount=(0,A.d)(r[a].todaySaleAmount),r[a].last7daySaleAmount=(0,A.d)(r[a].last7daySaleAmount),r[a].last30daySaleAmount=(0,A.d)(r[a].last30daySaleAmount),r[a].todayFrontSaleAmount=(0,A.d)(r[a].todayFrontSaleAmount),r[a].last7dayFrontSaleAmount=(0,A.d)(r[a].last7dayFrontSaleAmount),r[a].last30dayFrontSaleAmount=(0,A.d)(r[a].last30dayFrontSaleAmount),r[a].todayFrontProfit=(0,A.d)(r[a].todayFrontProfit),r[a].last7dayFrontProfit=(0,A.d)(r[a].last7dayFrontProfit),r[a].last30dayFrontProfit=(0,A.d)(r[a].last30dayFrontProfit),r[a].last30dayDeductAmount=(0,A.d)(r[a].last30dayDeductAmount),r[a].last30dayUserRefundAmount=(0,A.d)(r[a].last30dayUserRefundAmount),r[a].todayProfit=(0,A.d)(r[a].todayProfit),r[a].profit=(0,A.d)(r[a].profit),r[a].last7dayProfit=(0,A.d)(r[a].last7dayProfit),r[a].last30dayProfit=(0,A.d)(r[a].last30dayProfit),r[a].totalInventoryCost=(0,A.d)(r[a].totalInventoryCost),r[a].totalInventoryCostSp=(0,A.d)(r[a].totalInventoryCostSp),r[a].costPrice=(0,A.d)(r[a].costPrice),r[a].warehouseCost=(0,A.d)(r[a].warehouseCost),r[a].packageCost=(0,A.d)(r[a].packageCost),r[a].fixedCost=(0,A.d)(r[a].fixedCost),r[a].createAt=We()(r[a].createTime).format(xe.ms),Ce(a/r.length*30+30);case 28:a++,n.next=1;break;case 31:return n.next=33,(0,Qe.b)({data:r,fileName:"".concat((le=E.find(function(S){return S.mallId===O}))===null||le===void 0?void 0:le.mallName,"(").concat(O,")_\u5546\u54C1\u5217\u8868_")+We()().format(xe.ms),columns:[{header:"\u5546\u54C1\u56FE\u7247",key:"image",width:22},{header:"SKU",key:"skuId",width:22},{header:"SKC",key:"skcId",width:20},{header:"SPU",key:"spuId",width:20},{header:"\u8D27\u53F7",key:"extCode",width:20},{header:"\u89C4\u683C",key:"skuSpec",width:20}].concat(Ee()(_e("\u4ECA\u5929","today","front")),Ee()(_e("\u4ECA\u5929","today","bill")),Ee()(_e("7\u5929","last7day","front")),Ee()(_e("7\u5929","last7day","bill")),Ee()(_e("30\u5929","last30day","front")),Ee()(_e("30\u5929","last30day","bill")),[{header:"30\u65E5\u7F5A\u6B3E\u6570\u91CF",key:"last30dayDeductNum",width:15},{header:"30\u65E5\u7F5A\u6B3E\u91D1\u989D",key:"last30dayDeductAmount",width:15},{header:"30\u65E5\u9000\u6B3E\u7B14\u6570",key:"last30dayUserRefundNum",width:15},{header:"30\u65E5\u9000\u6B3E\u91D1\u989D",key:"last30dayUserRefundAmount",width:15},{header:"\u5546\u54C1\u6210\u672C",key:"costPrice",width:15},{header:"\u5FEB\u9012\u8D39\u7528",key:"warehouseCost",width:15},{header:"\u6253\u5305\u8D39\u7528",key:"packageCost",width:15},{header:"\u5176\u4ED6\u6210\u672C",key:"fixedCost",width:15},{header:"\u5355\u54C1\u6BDB\u5229",key:"profit",width:15},{header:"\u5E93\u5B58\u6570\u91CF",key:"totalInventoryNum",width:15},{header:"\u5E93\u5B58\u91D1\u989D(\u6210\u672C)",key:"totalInventoryCost",width:15},{header:"\u5E93\u5B58\u91D1\u989D(\u7533\u62A5)",key:"totalInventoryCostSp",width:15},{header:"\u5386\u53F2\u603B\u9500\u91CF",key:"totalFrontSaleVolume",width:15},{header:"\u5546\u54C1\u521B\u5EFA\u65F6\u95F4",key:"createAt",width:20}
1]),mergeKeys:["image"],dataFix:function(D,ce){return D},onPercent:function(D){return Ce(D*.4+60)},imageKeys:["image"]});case 33:Be.current.timer&&clearTimeout(Be.current.timer);case 34:case"end":return n.stop()}},H)}));return function(H){return y.apply(this,arguments)}})()).catch(function(y){pe.A.error({title:"\u9519\u8BEF",content:"\u62C9\u53D6\u5546\u54C1\u5217\u8868\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"}),Be.current.timer&&clearTimeout(Be.current.timer)}).finally(function(){return ne(!1)})},[f,O,E,q]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(J.A,{size:"small",style:{marginRight:"15px"},loading:X,onClick:function(){x&&x.level==="ANNUAL"?Oe():pe.A.confirm({title:"\u5347\u7EA7\u4E3A\u5E74\u4ED8\u8D39\u4F1A\u5458\uFF0C\u89E3\u9501\u5BFC\u51FA\u529F\u80FD\uFF01",closable:!0,width:"700px",content:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{children:"\u5F88\u62B1\u6B49\uFF0C\u76EE\u524D\u8D27\u76D8\u7684\u6570\u636E\u7684\u5BFC\u51FA\u4EC5\u652F\u6301\u5E74\u4F1A\u5458\u5E97\u94FA\uFF1B\u4F5C\u4E3A\u5E74\u4F1A\u5458\u5E97\u94FA\uFF0C\u8FD8\u80FD\u4EAB\u53D7\u4EE5\u4E0B\u8D85\u503C\u6743\u76CA"}),(0,e.jsxs)("ul",{style:{paddingLeft:"40px"},children:[(0,e.jsx)("li",{children:"\u5E97\u94FA\u7684\u5168\u90E8\u5DE5\u5177\u5305\u6743\u76CA"}),(0,e.jsx)("li",{children:"\u5E97\u94FA\u7684\u6570\u636E\u670D\u52A1\u670D\u52A1\u6743\u76CA(\u524D\u7AEF\u9500\u91CF\u6307\u6807\uFF0C\u5BF9\u8D26\u5355\u7684\u771F\u5B9E\u9500\u989D\u548C\u6BDB\u5229)"}),(0,e.jsx)("li",{children:"\u672C\u5730\u5E93\u5B58\u7BA1\u7406\u529F\u80FD"})]})]}),onOk:function(){Y.history.push(je.yT.BUY_MALL)},okText:"\u7ACB\u5373\u5F00\u901A\uFF0C\u89E3\u9501\u7279\u6743",cancelText:"\u6682\u4E0D\u5F00\u901A"})},children:"\u5BFC\u51FA"}),X?(0,e.jsx)(Xe.A,{percent:+de.toFixed(2),size:"small",style:{width:"150px",marginRight:"30px"}}):(0,e.jsx)(e.Fragment,{})]})});t.dn(Fe);var lt=t(48700),Me=t.n(lt),Ve=t(69625),$e=t(29769),ot=t(54922),He=t(92574),rt=t(73529),qe=t(18466),De=t(36519),Ge=t(73851),Ze={queryFilter:"queryFilter___sbuhK",addon:"addon___QnB4c"},et=t(23855),h="GoodsMgtSku_isSetCost",w=function(f,_){return u()(u()({},f),_.data)},g=function(f){var _,v,X=f.tab,ne=f.afterTitle,ae=ne===void 0?function(){return null}:ne,O=(0,Y.useModel)("base"),E=O.mallId,x=O.domain,q=(0,et.Qp)({columnKey:"last7dayFrontSaleVolume",order:"descend"}),j=q.order,C=q.sortInfo,de=q.setSortInfo,Ce=q.getSortOrder,Be=(function(){try{var a=localStorage.getItem(h);return a==="true"?!0:a==="false"?!1:""}catch(o){return""}})(),_e=(0,p.useReducer)(w,{page:1,total:0,loading:!1,dataSource:[],selects:new Map,search:{},isSetCost:Be}),Oe=d()(_e,2),y=Oe[0],H=Oe[1],r=(0,et.Oh)({sortInfo:C,setSortInfo:de}),le=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;H({data:{loading:!0}}),(0,Y.request)("/api/v1/platform/sku/listSku",{method:"POST",data:JSON.stringify(u()({mallId:E,domain:x,page:y.page,pageSize:y.pageSize,tab:X,order:j},o||y.search))}).then(function(n){if(!(n!=null&&n.success))throw new Error(n==null?void 0:n.message);H({data:{dataSource:n.data,total:n.total,loading:!1}})}).catch(function(n){V.Ay.error(n.message||"\u63A5\u53E3\u8C03\u7528\u5931\u8D25")}).finally(function(){H({data:{loading:!1}})})};return(0,p.useEffect)(function(){E&&le()},[E,x,y.page,j,y.search]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(ot.X,{className:Ze.queryFilter,defaultCollapsed:!1,labelWidth:108,submitter:{submitButtonProps:{loading:y.loading}},span:{xs:24,sm:12,md:8,lg:8,xl:8,xxl:8},initialValues:u()(u()({},y.search),{},{productId:{0:"skuId"},salesVolume:{0:"todayFrontSaleVolume"},inventoryNum:{0:"saleInventoryNum"},isSetCost:y.isSetCost||void 0}),onFinish:function(o){var n=u()(u()({},o),{},{searchCondition:{}});n.productId&&n.productId[1]&&(n.searchCondition.productId={name:n.productId[0],value:n.productId[1]}),delete n.productId,n.extCode&&(n.searchCondition.extCode={name:"extCode",value:n.extCode}),delete n.extCode,n.salesVolume&&(n.salesVolume[1]||n.salesVolume[3])&&(n.searchCondition.salesVolume={name:n.salesVolume[0],min:n.salesVolume[1],max:n.salesVolume[3]}),delete n.salesVolume,n.inventoryNum&&(n.inventoryNum[1]||n.inventoryNum[3])&&(n.searchCondition.inventoryNum={name:n.inventoryNum[0],min:n.inventoryNum[1],max:n.inventoryNum[3]}),delete n.inventoryNum,n.profitDeduction&&(n.profitDeduction[0]||n.profitDeduction[2])&&(n.searchCondition.profitDeduction={name:"last30dayPdDelta",min:n.profitDeduction[0]*100,max:n.profitDeduction[2]*100}),delete n.profitDeduction,n.skuSpec&&(n.searchCondition.skuSpec={name:"skuSpec",value:n.skuSpec}),delete n.skuSpec,n.onSalesDuration&&(n.onSalesDuration[0]||n.onSalesDuration[2])&&(n.searchCondition.onSalesDuration={name:"onSalesDuration",min:n.onSalesDuration[0],max:n.onSalesDuration[2]}),delete n.onSalesDuration,n.isSetCost!==void 0&&n.isSetCost!==""&&(n.searchCondition.isSetCost={name:"costPrice",value:n.isSetCost}),localStorage.setItem(h,n.isSetCost===void 0||n.isSetCost===""?"":JSON.stringify(n.isSetCost)),delete n.isSetCost,H({data:{search:n,page:1}})},children:[(0,e.jsx)(He.A,{colSize:2,name:"productId",label:"\u5546\u54C1ID",children:(0,e.jsx)(Ve.A,{itemList:[function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(De.A,{options:[{label:"SKU ID",value:"skuId"},{label:"SKC ID",value:"skcId"},{label:"SPU ID",value:"spuId"}],style:{width:"90px"},onChange:a,defaultValue:o[n]||"skcId"},o[n])},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(Ge.A,{placeholder:"\u591A\u4E2A\u67E5\u8BE2\u8BF7\u7A7A\u683C\u6216\u9017\u53F7\u4F9D\u6B21\u8F93\u5165",onChange:function(D){return a(D.target.value)},defaultValue:o[n]},o[n])}]})}),(0,e.jsx)(He.A,{name:"extCode",label:"\u8D27\u53F7"}),(0,e.jsx)(He.A,{name:"skuSpec",label:"\u89C4\u683C"}),(0,e.jsx)($.A,{name:"salesVolume",label:"\u9500\u91CF",children:(0,e.jsx)(Ve.A,{itemList:[function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(De.A,{options:[{label:"\u4ECA\u65E5",value:"todayFrontSaleVolume"},{label:"7\u65E5",value:"last7dayFrontSaleVolume"},{label:"30\u65E5",value:"last30dayFrontSaleVolume"}],style:{width:"90px"},onChange:a,defaultValue:o[n]||"todayFrontSaleVolume"},o[n])},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(W.A,{placeholder:"",style:{flex:1},onChange:function(D){return a(D)},defaultValue:o[n]},o[n])},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(Ge.A,{disabled:!0,style:{width:"30px",borderLeft:0,borderRight:0,pointerEvents:"none",paddingRight:0,paddingLeft:0,backgroundColor:"#fff"},placeholder:"~"})},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(W.A,{placeholder:"",style:{borderLeft:0,flex:1},onChange:function(D){return a(D)},defaultValue:o[n]},o[n])}]})}),(0,e.jsx)($.A,{name:"inventoryNum",label:"\u5E93\u5B58",children:(0,e.jsx)(Ve.A,{itemList:[function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(De.A,{options:[{label:"\u603B\u5E93\u5B58",value:"totalInventoryNum"},{label:"\u5728\u552E\u5E93\u5B58",value:"saleInventoryNum"},{label:"\u5165\u5E93\u4E2D\u7684\u5E93\u5B58",value:"waitShelfInventoryNum"},{label:"\u5DF2\u53D1\u8D27\u5E93\u5B58",value:"waitReceiveInventoryNum"}],style:{width:"110px"},onChange:a,defaultValue:o[n]||"todayFrontSaleVolume"},o[n])},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(W.A,{placeholder:"",style:{flex:1},onChange:function(D){return a(D)},defaultValue:o[n]},o[n])},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(Ge.A,{disabled:!0,style:{width:"30px",borderLeft:0,borderRight:0,pointerEvents:"none",paddingRight:0,paddingLeft:0,backgroundColor:"#fff"},placeholder:"~"})},function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,e.jsx)(W.A,{placeholder:"",style:{borderLeft:0,flex:1},onChange:function(D){return a(D)},defaultValue:o[n]},o[n])}]})}),(0,e.jsx)(rt.A,{name:"isSetCost",label:"\u662F\u5426\u8BBE\u7F6E\u6210\u672C\u4EF7",placeholder:"\u8BF7\u9009\u62E9",options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]})]}),(0,e.jsx)(qe.A,{search:!1,columnsState:{persistenceKey:"proTable_skuList",persistenceType:"localStorage"},options:{reload:function(){le()}},rowKey:function(o){return"".concat(o.skuId)},tableAlertRender:!1,rowSelection:{selectedRowKeys:Array.from(y.selects.entries()).map(function(a){var o=d()(a,1),n=o[0];return"".concat(n)}),onSelect:function(o,n){var S=y.selects;n?S.set(o.skuId,u()({},o)):S.delete(o.skuId),H({data:{selects:S}})},onSelectMultiple:function(o,n,S){var D=y.selects;if(o){var ce=Me()(S),Ne;try{for(ce.s();!(Ne=ce.n()).done;){var Le=Ne.value;D.set(Le.skuId,u()({},Le))}}catch(Ae){ce.e(Ae)}finally{ce.f()}}else{var ue=Me()(S),Pe;try{for(ue.s();!(Pe=ue.n()).done;){var z=Pe.value;D.delete(z.skuId)}}catch(Ae){ue.e(Ae)}finally{ue.f()}}H({data:{selects:D}})},onSelectAll:function(o,n,S){var D=y.selects;if(o){var ce=Me()(S),Ne;try{for(ce.s();!(Ne=ce.n()).done;){var Le=Ne.value;D.set(Le.skuId,u()({},Le))}}catch(Ae){ce.e(Ae)}finally{ce.f()}}else{var ue=Me()(S),Pe;try{for(ue.s();!(Pe=ue.n()).done;){var z=Pe.value;D.delete(z.skuId)}}catch(Ae){ue.e(Ae)}finally{ue.f()}}H({data:{selects:D}})}},toolbar:{title:(0,e.jsxs)("div",{style:{fontSize:"12px",fontWeight:"500",color:"#666"},children:[ae(y,H,le,u()({mallId:E,domain:x,page:y.page,pageSize:y.pageSize,tab:X,order:j},y.search)),(0,e.jsxs)("span",{children:["\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A",(_=y.dataSource)!==null&&_!==void 0&&(_=_[0])!==null&&_!==void 0&&_.updateTime?We()((v=y.dataSource)===null||v===void 0||(v=v[0])===null||v===void 0?void 0:v.updateTime).format(xe.ms):""]})]})}
1,sortDirections:["descend","ascend"],onChange:function(o,n,S,D){de(S)},defaultSize:"small",scroll:{x:"max-content",y:"calc(100vh - 360px)"},loading:y.loading,dataSource:y.dataSource,pagination:{current:y.page,pageSize:50,pageSizeOptions:[],showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(o){H({data:{page:o}})},total:y.total},bordered:!0,columns:[{title:"\u5546\u54C1\u4FE1\u606F",dataIndex:"img",key:"productName",width:270,fixed:"left",render:function(o,n){return(0,e.jsxs)("div",{style:{display:"flex",gap:"8px",fontSize:"12px"},children:[(0,e.jsx)("div",{style:{width:"50px"},children:(0,e.jsx)(G.A,{width:50,height:"auto",src:n.imageUrl||"error",fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAAD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M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})}),(0,e.jsx)("div",{style:{width:0,flex:1,lineHeight:1.1},children:(0,e.jsxs)("div",{style:{color:"#999",fontSize:"11px"},children:[(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SKU: "+n.skuId})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SKC: "+n.skcId})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"SPU: "+n.spuId})}),(0,e.jsx)("div",{style:{fontSize:"0"},className:"click-hover",onClick:function(){window.open("/platform/extcode?extcode="+n.extCode)},children:(0,e.jsx)(m.A,{title:"\u8D27\u53F7: "+n.extCode})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"\u89C4\u683C: "+n.skuSpec})}),(0,e.jsx)("div",{children:(0,e.jsx)(m.A,{title:"\u5E97\u94FAID: "+n.mallId})})]})})]})}}].concat(Ee()(r),[{title:"\u5355\u54C1\u6BDB\u5229",width:90,dataIndex:"profit",render:function(o,n){return(0,c._B)(n.profit)}},{title:"\u603B\u5E93\u5B58/\u8D44\u91D1",width:150,sorter:!0,dataIndex:"totalInventoryNum",key:"totalInventoryNum",sortOrder:Ce("totalInventoryNum"),render:function(o,n){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{children:(0,c.kT)(n.totalInventoryNum)}
1),(0,e.jsx)("div",{children:(0,c.Ie)(n.totalInventoryCost)?(0,e.jsxs)("div",{children:[(0,c._B)(n.totalInventoryCostSp),(0,e.jsx)(te,{disableSync:!0,trigger:(0,e.jsx)($e.A,{tipTitle:(0,e.jsxs)("span",{children:["\u901A\u8FC7\u6210\u672C\u4EF7\u8BA1\u7B97\u83B7\u5F97",(0,e.jsx)(te,{disableSync:!0,trigger:(0,e.jsx)(J.A,{type:"link",style:{padding:0},children:"\u8BBE\u7F6E\u6210\u672C"}),title:"\u8BBE\u7F6E\u6210\u672C",dataSource:[n],onFinish:function(){le()},size:"small"})]})}),title:"\u8BBE\u7F6E\u6210\u672C",dataSource:[n],onFinish:function(){le()},size:"small"})]}):(0,e.jsxs)("span",{children:[(0,c._B)(n.totalInventoryCost),(0,e.jsx)(te,{disableSync:!0,trigger:(0,e.jsx)($e.A,{tipTitle:(0,e.jsxs)("span",{children:["\u901A\u8FC7\u6210\u672C\u4EF7\u8BA1\u7B97\u83B7\u5F97",(0,e.jsx)(te,{disableSync:!0,trigger:(0,e.jsx)(J.A,{type:"link",style:{padding:0},children:"\u8BBE\u7F6E\u6210\u672C"}),title:"\u8BBE\u7F6E\u6210\u672C",dataSource:[n],onFinish:function(){le()},size:"small"})]})}),title:"\u8BBE\u7F6E\u6210\u672C",dataSource:[n],onFinish:function(){le()},size:"small"})]})})]})}},{title:"\u7533\u62A5\u4EF7",width:90,dataIndex:"supplierPrice",render:function(o,n){return(0,c._B)(n.supplierPrice)}},{title:"\u6210\u672C",width:170,dataIndex:"costPrice",render:function(o,n){return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{children:["\u5546\u54C1\u6210\u672C\uFF1A",(0,c._B)(n.costPrice)]}),(0,e.jsxs)("div",{children:["\u5FEB\u9012\u8D39\u7528\uFF1A",(0,c._B)(n.warehouseCost)]}),(0,e.jsxs)("div",{children:["\u6253\u5305\u8D39\u7528\uFF1A",(0,c._B)(n.packageCost)]}),(0,e.jsxs)("div",{children:["\u5176\u4ED6\u6210\u672C\uFF1A",(0,c._B)(n.fixedCost)]})]})}},{title:"\u64CD\u4F5C",dataIndex:"skc",width:80,fixed:"right",align:"center",render:function(o,n,S){return(0,e.jsx)("div",{className:"actions",children:(0,e.jsx)(te,{disableSync:!0,trigger:(0,e.jsx)(J.A,{type:"link",children:"\u8BBE\u7F6E\u6210\u672C"}),title:"\u8BBE\u7F6E\u6210\u672C",dataSource:[n],onFinish:function(){le()},size:"small"})})}}]).map(function(a){var o={};return a.sortOrder&&(o.sortOrder=Ce(a.dataIndex)),u()(u()({},a),o)})})]})},P=g,Q=t(41313),U=t(63750),re=function(){return(0,e.jsx)(i.A,{name:"\u9500\u552E\u7BA1\u7406",children:(0,e.jsx)(R.A,{children:(0,e.jsx)(P,{tab:"all",afterTitle:function(_,v,X,ne){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(Q.A.Compact,{size:"small",children:[(0,e.jsx)(U.A,{count:_.selects.size,className:"cost-badge-no-clip",children:(0,e.jsx)(te,{disabled:!_.selects.size,dataSource:Array.from(_.selects.entries().map(function(ae){var O=d()(ae,2),E=O[1];return E})),onFinish:function(){v({data:{selects:new Map}}),X()},size:"small"})}),(0,e.jsx)(k.A,{onFinish:X}),(0,e.jsx)(ze,{size:"small",search:ne,mallId:ne.mallId,onFinish:X})]}),(0,e.jsx)("span",{style:{marginRight:"16px",marginLeft:"20px"},children:(0,e.jsx)(Fe,{search:ne})}),(0,e.jsx)(b.A,{state:_,onFinish:function(){v({data:{selects:new Map}})},options:[{label:"SKU",key:"skuId"},{label:"SPU",key:"spuId"},{label:"SKC",key:"skcId"},{label:"\u89C4\u683C",key:"skuSpec"},{label:"\u8D27\u53F7",key:"extCode"}]})]})}})})})},Se=re}),33688:(function(Ie,N,t){t.d(N,{Fj:function(){return b},NT:function(){return R},TK:function(){return F},ms:function(){return d}});var F="YYYY-MM-DD",d="YYYY-MM-DD HH:mm:ss",R="YYYYMMDD",b="YYYYMM"})}]);
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.