You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
18 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[103],{57905:function(X,Z,e){e.d(Z,{Hb:function(){return U},b1:function(){return E},R2:function(){return B},Ie:function(){return J},f3:function(){return L},nU:function(){return p},Yf:function(){return G},Y2:function(){return h},zj:function(){return K},ft:function(){return q},OQ:function(){return k},jQ:function(){return O}});var U={};e.r(U),e.d(U,{Params:function(){return w},request:function(){return ie}});var E={};e.r(E),e.d(E,{Params:function(){return se},request:function(){return oe}});var B={};e.r(B),e.d(B,{Params:function(){return le},request:function(){return de}});var h={};e.r(h),e.d(h,{Params:function(){return ue},request:function(){return r}});var K={};e.r(K),e.d(K,{Params:function(){return ve},request:function(){return ce}});var J={};e.r(J),e.d(J,{Params:function(){return fe},request:function(){return _}});var L={};e.r(L),e.d(L,{Params:function(){return $},request:function(){return S}});var p={};e.r(p),e.d(p,{Params:function(){return F},request:function(){return x}});var q={};e.r(q),e.d(q,{Params:function(){return c},request:function(){return f}});var G={};e.r(G),e.d(G,{Params:function(){return g},request:function(){return u}});var k={};e.r(k),e.d(k,{Params:function(){return R},request:function(){return m}});var O={};e.r(O),e.d(O,{Params:function(){return C},request:function(){return P}});var V=e(97857),s=e.n(V),te=e(72004),I=e.n(te),ne=e(12444),j=e.n(ne),ae=e(9783),o=e.n(ae),A=e(88593),re=null;function he(t,a){return Request("/mission/claim-influencers",_objectSpread({method:"GET",params:_objectSpread({},t),data:{}},a||{}))}var w=I()(function t(){j()(this,t),o()(this,"mission_id",void 0),o()(this,"page",void 0),o()(this,"page_size",void 0),o()(this,"status",void 0),o()(this,"uuid",void 0)});function ie(t,a){return(0,A.request)("/mission/claim-list",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var se=I()(function t(){j()(this,t),o()(this,"order_id",void 0)});function oe(t,a){return(0,A.request)("/mission/claim-order",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var le=I()(function t(){j()(this,t),o()(this,"address_name",void 0),o()(this,"address_phone",void 0),o()(this,"order_id",void 0),o()(this,"order_time_end",void 0),o()(this,"order_time_start",void 0),o()(this,"page",void 0),o()(this,"page_size",void 0),o()(this,"spu_no",void 0),o()(this,"status",void 0)});function de(t,a){return(0,A.request)("/mission/claim-order-list",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var ue=I()(function t(){j()(this,t)});function r(t,a,v){return(0,A.request)("/mission/claim-order-send",s()({method:"POST",params:s()({},t),data:s()({},a)},v||{}))}var ve=I()(function t(){j()(this,t)});function ce(t,a,v){return(0,A.request)("/mission/claim-video-audit",s()({method:"POST",params:s()({},t),data:s()({},a)},v||{}))}var fe=I()(function t(){j()(this,t),o()(this,"id",void 0)});function _(t,a){return(0,A.request)("/mission/claim-video-detail",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var $=I()(function t(){j()(this,t),o()(this,"mission_id",void 0),o()(this,"mission_title",void 0),o()(this,"page",void 0),o()(this,"page_size",void 0),o()(this,"reward_status",void 0),o()(this,"status",void 0),o()(this,"uuid",void 0)});function S(t,a){return(0,A.request)("/mission/claim-video-list",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var F=I()(function t(){j()(this,t),o()(this,"id",void 0)});function x(t,a){return(0,A.request)("/mission/mission",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var N=null;function b(t,a,v){return Request("/mission/mission",_objectSpread({method:"PUT",params:_objectSpread({},t),data:_objectSpread({},a)},v||{}))}var c=I()(function t(){j()(this,t)});function f(t,a,v){return(0,A.request)("/mission/mission",s()({method:"POST",params:s()({},t),data:s()({},a)},v||{}))}var T=null;function H(t,a,v){return Request("/mission/mission",_objectSpread({method:"DELETE",params:_objectSpread({},t),data:_objectSpread({},a)},v||{}))}var g=I()(function t(){j()(this,t),o()(this,"mission_time",void 0),o()(this,"page",void 0),o()(this,"page_size",void 0),o()(this,"status",void 0),o()(this,"title",void 0)});function u(t,a){return(0,A.request)("/mission/mission-list",s()({method:"GET",params:s()({},t),data:{}},a||{}))}var R=I()(function t(){j()(this,t)});function m(t,a,v){return(0,A.request)("/mission/send-video-reward",s()({method:"POST",params:s()({},t),data:s()({},a)},v||{}))}var C=I()(function t(){j()(this,t)});function P(t,a,v){return(0,A.request)("/mission/stop",s()({method:"PUT",params:s()({},t),data:s()({},a)},v||{}))}},95749:function(X,Z,e){e.d(Z,{Z:function(){return B}});var U=e(84908),E=e(85893);function B(h){return(0,E.jsx)(U.Z,{title:(h==null?void 0:h.title)||h.children,placement:"topLeft",children:(0,E.jsx)("div",{className:"fm-ellipsis-2",children:h.children})})}},71158:function(X,Z,e){e.d(Z,{Z:function(){return _}});var U=e(97857),E=e.n(U),B=e(15009),h=e.n(B),K=e(99289),J=e.n(K),L=e(5574),p=e.n(L),q=e(13769),G=e.n(q),k=e(34041),O=e(67294),V=e(72004),s=e.n(V),te=e(12444),I=e.n(te),ne=e(9783),j=e.n(ne),ae=e(88593),o=s()(function $(){I()(this,$),j()(this,"page",void 0),j()(this,"page_size",void 0)});function A($,S){return(0,ae.request)("/common/couriers",E()({method:"GET",params:E()({},$),data:{}},S||{}))}var re=e(23279),he=e.n(re),w=e(3930),ie=e(45210),se=e(92770),oe=e(31663),le=function($,S){var F=typeof Symbol=="function"&&$[Symbol.iterator];if(!F)return $;var x=F.call($),N,b=[],c;try{for(;(S===void 0||S-- >0)&&!(N=x.next()).done;)b.push(N.value)}catch(f){c={error:f}}finally{try{N&&!N.done&&(F=x.return)&&F.call(x)}finally{if(c)throw c.error}}return b},de=function($,S,F){if(F||arguments.length===2)for(var x=0,N=S.length,b;x<N;x++)(b||!(x in S))&&(b||(b=Array.prototype.slice.call(S,0,x)),b[x]=S[x]);return $.concat(b||Array.prototype.slice.call(S))};function ue($,S){var F;oe.Z&&((0,se.mf)($)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof $)));var x=(0,w.Z)($),N=(F=S==null?void 0:S.wait)!==null&&F!==void 0?F:1e3,b=(0,O.useMemo)(function(){return he()(function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return x.current.apply(x,de([],le(c),!1))},N,S)},[]);return(0,ie.Z)(function(){b.cancel()}),{run:b,cancel:b.cancel,flush:b.flush}}var r=ue,ve=e(85893),ce=["value","onChange"],fe=function(S){var F=S.value,x=S.onChange,N=G()(S,ce),b=(0,O.useState)([]),c=p()(b,2),f=c[0],T=c[1],H=r(function(){var u=J()(h()().mark(function R(m){var C,P;return h()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,A({name:m,page:1,page_size:50});case 2:P=a.sent,T((P==null||(C=P.data.list)===null||C===void 0?void 0:C.map(function(v){return{label:v.name,value:v.name}}))||[]);case 4:case"end":return a.stop()}},R)}));return function(R){return u.apply(this,arguments)}}(),{wait:500}),g=H.run;return(0,O.useEffect)(function(){g("")},[]),(0,ve.jsx)(k.Z,E()({value:F,style:{width:"100%"},showSearch:!0,labelInValue:!0,onSearch:g,options:f,filterOption:!1,onChange:x},N))},_=fe},97311:function(X,Z,e){e.r(Z),e.d(Z,{default:function(){return b}});var U=e(19632),E=e.n(U),B=e(15009),h=e.n(B),K=e(13769),J=e.n(K),L=e(99289),p=e.n(L),q=e(5574),G=e.n(q),k=e(97857),O=e.n(k),V=e(67294),s=e(84485),te=e(84739),I=e(26713),ne=e(79216),j=e(81579),ae=e(85402),o=e(69677),A=e(12461),re=e(71577),he=e(8702),w=e(57905),ie=e(88593),se={},oe=e(44685),le=e(73935),de=e(95749),ue=e(71158),r=e(85893),ve=["courier"],ce=s.Z.Title,fe=s.Z.Link,_=s.Z.Text,$=function(f){var T=document.querySelector("#table .ant-spin-container");return T?le.createPortal((0,r.jsx)(te.Z,O()(O()({style:{textAlign:"right",mariginTop:20},size:"small",pageSize:10,showTotal:function(g,u){return console.log({total:g,range:u}),"\u7B2C ".concat(u[0],"-").concat(u[1]," \u6761/\u603B\u5171 ").concat(g," \u6761")}},f),{},{current:f.current,onChange:function(g,u){f.onChange(g,u)}})),T):null},S=function(f){var T,H,g,u,R,m=f.record;return(0,r.jsxs)(I.Z,{style:{width:250,overflowX:"hidden"},align:"start",children:[(0,r.jsx)(ne.Z,{style:{width:120,height:120,objectFit:"cover"},src:m==null||(T=m.goods)===null||T===void 0||(H=T.image)===null||H===void 0?void 0:H.split(",")[0]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(_,{children:["ID:",(m==null||(g=m.goods)===null||g===void 0?void 0:g.sku_no)||"-"]}),(0,r.jsx)(de.Z,{title:(m==null||(u=m.goods)===null||u===void 0?void 0:u.title)||"-",children:(0,r.jsx)(ce,{level:5,children:(m==null||(R=m.goods)===null||R===void 0?void 0:R.title)||"-"})})]})]})},F=function(f){var T=f.visible,H=f.onOk,g=f.onCancel,u=f.record,R=j.Z.useForm(),m=G()(R,1),C=m[0];return(0,V.useEffect)(function(){return C.setFieldValue("order_id",u==null?void 0:u.order_id),function(){C.resetFields()}},[u==null?void 0:u.order_id]),(0,r.jsx)(ae.Z,{visible:T,title:"\u53D1\u8D27",destroyOnClose:!0,onOk:p()(h()().mark(function P(){var t,a,v;return h()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,C.validateFields();case 2:t=z.sent,a=t.courier,v=J()(t,ve),H(O()(O()({},v),{},{courier:a==null?void 0:a.value}));case 5:case"end":return z.stop()}},P)})),onCancel:g,children:(0,r.jsxs)(j.Z,{form:C,children:[(0,r.jsx)(j.Z.Item,{label:"\u8BA2\u5355\u7F16\u53F7",name:"order_id",rules:[{required:!0}],children:(0,r.jsx)(o.Z,{bordered:!1,readOnly:!0})}),(0,r.jsx)(j.Z.Item,{label:"\u5FEB\u9012\u516C\u53F8",name:"courier",rules:[{required:!0}],children:(0,r.jsx)(ue.Z,{})}),(0,r.jsx)(j.Z.Item,{label:"\u5FEB\u9012\u5355\u53F7",name:"courier_number",rules:[{required:!0}],children:(0,r.jsx)(o.Z,{})})]})})},x=function(){var f=(0,V.useState)([]),T=G()(f,2),H=T[0],g=T[1],u=(0,V.useState)(0),R=G()(u,2),m=R[0],C=R[1],P=(0,V.useState)(1),t=G()(P,2),a=t[0],v=t[1],Q=(0,V.useState)(20),z=G()(Q,2),Ce=z[0],Pe=z[1],je=(0,V.useState)({}),ge=G()(je,2),pe=ge[0],Se=ge[1],me=(0,V.useRef)();return{list:H,listHandler:g,total:m,totalHandler:C,page:a,pageHandler:v,pageSize:Ce,pageSizeHandler:Pe,actionRef:me,record:pe,recordHandler:Se}},N=function(){var f=(0,V.useState)(!1),T=G()(f,2),H=T[0],g=T[1],u=function(C){var P;g(!1),C==null||(P=C.current)===null||P===void 0||P.reload()},R=function(){var m=p()(h()().mark(function C(P,t){var a,v;return h()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,w.Y2.request({},P);case 2:a=z.sent,a.code===0&&(A.ZP.success("\u53D1\u8D27\u6210\u529F"),t==null||(v=t.current)===null||v===void 0||v.reload(),g(!1));case 4:case"end":return z.stop()}},C)}));return function(P,t){return m.apply(this,arguments)}}();return{visible:H,visibleHandler:g,onOk:R,onCancel:u}};function b(){var c=x(),f=c.list,T=c.listHandler,H=c.totalHandler,g=c.actionRef,u=c.record,R=c.recordHandler,m=c.page,C=c.pageSize,P=c.pageHandler,t=c.pageSizeHandler,a=c.total,v=(0,V.useRef)(1),Q=N(),z=Q.visible,Ce=Q.visibleHandler,Pe=Q.onCancel,je=Q.onOk,ge=(0,V.useState)(!1),pe=G()(ge,2),Se=pe[0],me=pe[1],Oe=function(l){if(!(l!=null&&l.length))return[];var n=E()(l),d=[];return n.forEach(function(D){d.push(D),d.push(D)}),d},ee=function(l,n){return n%2===0?{colSpan:0}:{}},Fe=[{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"order_id",hideInTable:!0},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:[{label:"\u5F85\u53D1\u8D27",value:2},{label:"\u5DF2\u53D1\u8D27",value:3}]}},{title:"\u5546\u54C1ID",dataIndex:"spu_no",hideInTable:!0},{title:"\u6536\u4EF6\u4EBA\u59D3\u540D",dataIndex:"address_name",hideInTable:!0},{title:"\u6536\u4EF6\u4EBA\u7535\u8BDD",dataIndex:"address_phone",hideInTable:!0},{title:"\u4E0B\u5355\u65F6\u95F4",dataIndex:"time",hideInTable:!0,valueType:"dateTimeRange",search:{transform:function(l){return{order_time_start:l[0],order_time_end:l[1]}}}},{title:"\u5546\u54C1\u4FE1\u606F",dataIndex:"name",hideInSearch:!0,width:350,onCell:function(l,n){return{colSpan:n%2!==0?1:9}},render:function(l,n,d){return d%2===0?(0,r.jsx)(I.Z,{children:(0,r.jsxs)(_,{children:["\u8BA2\u5355\u7F16\u53F7:",(n==null?void 0:n.order_id)||"-"]})}):(0,r.jsx)(S,{record:n})}},{title:"\u8BA2\u5355\u72B6\u6001",width:160,dataIndex:"status",hideInSearch:!0,valueType:"select",fieldProps:{options:[{label:"\u5F85\u4ED8\u6B3E",value:1},{label:"\u5F85\u53D1\u8D27",value:2},{label:"\u5DF2\u53D1\u8D27",value:3},{label:"\u5DF2\u5B8C\u6210",value:4},{label:"\u5DF2\u53D6\u6D88",value:5}]},onCell:ee},{title:"\u6570\u91CF",width:80,dataIndex:"number",key:"number",hideInSearch:!0,onCell:ee},{title:"\u5546\u54C1\u603B\u4EF7",width:120,dataIndex:"price",hideInSearch:!0,onCell:ee,render:function(l,n){var d;return(0,r.jsx)(r.Fragment,{children:(n==null||(d=n.goods)===null||d===void 0?void 0:d.price)||"-"})}},{title:"\u6536\u8D27\u4FE1\u606F",width:200,dataIndex:"customerPhone",hideInSearch:!0,onCell:ee,render:function(l,n){var d,D,W,Y,y,i;return(0,r.jsx)(r.Fragment,{children:"".concat(n==null||(d=n.address)===null||d===void 0?void 0:d.firstName," ").concat(n==null||(D=n.address)===null||D===void 0?void 0:D.lastName," ").concat(n==null||(W=n.address)===null||W===void 0?void 0:W.phone," ").concat(n==null||(Y=n.address)===null||Y===void 0?void 0:Y.state).concat(n==null||(y=n.address)===null||y===void 0?void 0:y.city).concat(n==null||(i=n.address)===null||i===void 0?void 0:i.street)})}},{title:"\u7F51\u7EA2\u8D26\u53F7",width:200,dataIndex:"customerPhone",hideInSearch:!0,onCell:ee,render:function(l,n){var d,D;return(0,r.jsx)(r.Fragment,{children:n==null||(d=n.mission_claim)===null||d===void 0||(D=d.influencer)===null||D===void 0?void 0:D.nick_name})}},{title:"\u64CD\u4F5C",width:180,hideInSearch:!0,fixed:"right",onCell:ee,render:function(l,n){return(0,r.jsxs)(I.Z,{direction:"vertical",children:[(0,r.jsx)(fe,{onClick:function(){ie.history.push("/order_manage/task_order_detail?id=".concat(n==null?void 0:n.order_id))},children:"\u67E5\u770B\u8BE6\u60C5"}),(n==null?void 0:n.status)===2?(0,r.jsx)(re.Z,{type:"primary",onClick:function(){R(n),Ce(!0)},children:"\u53D1\u8D27"}):null]})}}],He=function(l){return P(l.current),t(l.pageSize),w.R2.request(O()(O()({},l),{},{page:(l==null?void 0:l.page)||1})).then(function(n){var d,D,W,Y,y;return T((n==null||(d=n.data)===null||d===void 0?void 0:d.list)||[]),H(n==null||(D=n.data)===null||D===void 0?void 0:D.total),console.log(Oe(n==null||(W=n.data)===null||W===void 0?void 0:W.list)),{success:!0,data:Oe(n==null||(Y=n.data)===null||Y===void 0?void 0:Y.list)||[],total:(n==null||(y=n.data)===null||y===void 0?void 0:y.total)*2}})},ze=function(){var M=p()(h()().mark(function l(){var n,d,D,W;return h()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!Se){y.next=2;break}return y.abrupt("return");case 2:return me(!0),n=[{label:"\u5546\u54C1\u6807\u9898",value:"title"},{label:"\u8BA2\u5355\u53F7",value:"order_id"},{label:"\u8BA2\u5355\u72B6\u6001",value:"status"},{label:"\u5546\u54C1\u6570\u91CF",value:"number"},{label:"\u53D1\u8D27\u65F6\u95F4",value:"sendTime"},{label:"\u5546\u54C1ID",value:"commodID"},{label:"\u5546\u54C1\u89C4\u683C",value:"specs"},{label:"\u5546\u5BB6\u7F16\u7801-\u89C4\u683C\u7EF4\u5EA6",value:"sku_no"},{label:"\u5546\u54C1\u603B\u4EF7",value:"price"},{label:"\u6536\u8D27\u4EBA",value:"recievePeople"},{label:"\u6536\u8D27\u7535\u8BDD",value:"phone"},{label:"\u5FEB\u9012\u5355\u53F7",value:"courier_number"},{label:"\u67E5\u8BE2\u5730\u5740",value:"courier_url"},{label:"\u7701",value:"state"},{label:"\u5E02",value:"city"},{label:"\u8857\u9053/\u9547",value:"street"},{label:"\u8BE6\u7EC6\u5730\u5740",value:"addressDetail"}],y.prev=4,y.next=7,w.R2.request({page:m||1,page_size:C||20});case 7:d=y.sent,(d==null?void 0:d.code)===0&&((0,oe.P9)({header:n,dataSet:d==null||(D=d.data)===null||D===void 0||(W=D.list)===null||W===void 0?void 0:W.map(function(i){var ye,xe,Te,Ee,Ie,$e,be,De,Le,Re,Me,Ze;return O()(O()(O()(O()(O()({},i.address),i.goods),i.deliver),i),{},{commodID:i==null||(ye=i.goods)===null||ye===void 0?void 0:ye.id,addressDetail:"".concat(i==null||(xe=i.address)===null||xe===void 0?void 0:xe.state," ").concat(i==null||(Te=i.address)===null||Te===void 0?void 0:Te.city," ").concat(i==null||(Ee=i.address)===null||Ee===void 0?void 0:Ee.street," ").concat(i==null||(Ie=i.address)===null||Ie===void 0?void 0:Ie.zipCode),recievePeople:"".concat(i==null||($e=i.address)===null||$e===void 0?void 0:$e.firstName," ").concat(i==null||(be=i.address)===null||be===void 0?void 0:be.lastName),status:(De=[{label:"\u5F85\u4ED8\u6B3E",value:1},{label:"\u5F85\u53D1\u8D27",value:2},{label:"\u5DF2\u53D1\u8D27",value:3},{label:"\u5DF2\u5B8C\u6210",value:4},{label:"\u5DF2\u53D6\u6D88",value:5}].find(function(Ae){return Ae.value===i.status}))===null||De===void 0?void 0:De.label,specs:i!=null&&(Le=i.goods)!==null&&Le!==void 0&&Le.specs?(Re=JSON.parse(i==null||(Ze=i.goods)===null||Ze===void 0?void 0:Ze.specs))===null||Re===void 0||(Me=Re.map(function(Ae){return Ae.value}))===null||Me===void 0?void 0:Me.join(","):""})}),fileName:"\u8BA2\u5355\u6570\u636E\u5BFC\u51FA"}),me(!1)),y.next=14;break;case 11:y.prev=11,y.t0=y.catch(4),me(!1);case 14:case"end":return y.stop()}},l,null,[[4,11]])}));return function(){return M.apply(this,arguments)}}();return(0,r.jsxs)("div",{className:se.orderList,id:"table",children:[(0,r.jsx)(he.QVr,{scroll:{x:"max-content"},options:{reload:!1},beforeSearchSubmit:function(l){return v.current=1,P(1),t(20),O()({},l)},defaultSize:"small",onReset:function(){P(1),t(20)},pagination:!1,params:{page:m,page_size:C||20},actionRef:g,request:He,dataSource:Oe(f),columns:Fe,toolBarRender:function(){return[(0,r.jsx)(re.Z,{type:"primary",loading:Se,onClick:ze,children:"\u5BFC\u51FA\u8BA2\u5355"},"add")]}}),(0,r.jsx)($,{current:v.current,pageSize:20,total:a,onChange:function(l,n){P(l),v.current=l,t(n)}}),(0,r.jsx)(F,{record:u,visible:z,onOk:function(l){return je(l,g)},onCancel:function(){Pe(g)}},u==null?void 0:u.order_id)]})}},3930:function(X,Z,e){var U=e(67294);function E(B){var h=(0,U.useRef)(B);return h.current=B,h}Z.Z=E},45210:function(X,Z,e){var U=e(67294),E=e(3930),B=e(92770),h=e(31663),K=function(L){h.Z&&((0,B.mf)(L)||console.error("useUnmount expected parameter is a function, got ".concat(typeof L)));var p=(0,E.Z)(L);(0,U.useEffect)(function(){return function(){p.current()}},[])};Z.Z=K},92770:function(X,Z,e){e.d(Z,{mf:function(){return E}});var U=function(p){return p!==null&&typeof p=="object"},E=function(p){return typeof p=="function"},B=function(p){return typeof p=="string"},h=function(p){return typeof p=="boolean"},K=function(p){return typeof p=="number"},J=function(p){return typeof p>"u"}},31663:function(X,Z){var e=!1;Z.Z=e}}]);