"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[809],{15301:function(rt,M,e){e.d(M,{Hb:function(){return O},b1:function(){return P},R2:function(){return D},Ie:function(){return L},f3:function(){return $},nU:function(){return A},Yf:function(){return g},Y2:function(){return m},zj:function(){return z},ft:function(){return p},jQ:function(){return C}});var O={};e.r(O),e.d(O,{Params:function(){return r},request:function(){return k}});var P={};e.r(P),e.d(P,{Params:function(){return q},request:function(){return w}});var D={};e.r(D),e.d(D,{Params:function(){return t},request:function(){return _}});var m={};e.r(m),e.d(m,{Params:function(){return tt},request:function(){return et}});var z={};e.r(z),e.d(z,{Params:function(){return nt},request:function(){return it}});var L={};e.r(L),e.d(L,{Params:function(){return at},request:function(){return I}});var $={};e.r($),e.d($,{Params:function(){return x},request:function(){return o}});var A={};e.r(A),e.d(A,{Params:function(){return y},request:function(){return i}});var p={};e.r(p),e.d(p,{Params:function(){return b},request:function(){return F}});var g={};e.r(g),e.d(g,{Params:function(){return T},request:function(){return B}});var C={};e.r(C),e.d(C,{Params:function(){return V},request:function(){return Z}});var R=e(97857),u=e.n(R),J=e(72004),h=e.n(J),H=e(12444),f=e.n(H),X=e(9783),s=e.n(X),j=e(88593),K=null;function Y(n,a){return Request("/mission/claim-influencers",_objectSpread({method:"GET",params:_objectSpread({},n),data:{}},a||{}))}var r=h()(function n(){f()(this,n),s()(this,"mission_id",void 0),s()(this,"page",void 0),s()(this,"page_size",void 0),s()(this,"status",void 0),s()(this,"uuid",void 0)});function k(n,a){return(0,j.request)("/mission/claim-list",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var q=h()(function n(){f()(this,n),s()(this,"order_id",void 0)});function w(n,a){return(0,j.request)("/mission/claim-order",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var t=h()(function n(){f()(this,n),s()(this,"address_name",void 0),s()(this,"address_phone",void 0),s()(this,"order_id",void 0),s()(this,"order_time_end",void 0),s()(this,"order_time_start",void 0),s()(this,"page",void 0),s()(this,"page_size",void 0),s()(this,"spu_no",void 0),s()(this,"status",void 0)});function _(n,a){return(0,j.request)("/mission/claim-order-list",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var tt=h()(function n(){f()(this,n)});function et(n,a,l){return(0,j.request)("/mission/claim-order-send",u()({method:"POST",params:u()({},n),data:u()({},a)},l||{}))}var nt=h()(function n(){f()(this,n)});function it(n,a,l){return(0,j.request)("/mission/claim-video-audit",u()({method:"POST",params:u()({},n),data:u()({},a)},l||{}))}var at=h()(function n(){f()(this,n),s()(this,"id",void 0)});function I(n,a){return(0,j.request)("/mission/claim-video-detail",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var x=h()(function n(){f()(this,n),s()(this,"mission_id",void 0),s()(this,"mission_title",void 0),s()(this,"page",void 0),s()(this,"page_size",void 0),s()(this,"status",void 0),s()(this,"uuid",void 0)});function o(n,a){return(0,j.request)("/mission/claim-video-list",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var y=h()(function n(){f()(this,n),s()(this,"id",void 0)});function i(n,a){return(0,j.request)("/mission/mission",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var U=null;function W(n,a,l){return Request("/mission/mission",_objectSpread({method:"PUT",params:_objectSpread({},n),data:_objectSpread({},a)},l||{}))}var b=h()(function n(){f()(this,n)});function F(n,a,l){return(0,j.request)("/mission/mission",u()({method:"POST",params:u()({},n),data:u()({},a)},l||{}))}var N=null;function Q(n,a,l){return Request("/mission/mission",_objectSpread({method:"DELETE",params:_objectSpread({},n),data:_objectSpread({},a)},l||{}))}var T=h()(function n(){f()(this,n),s()(this,"mission_time",void 0),s()(this,"page",void 0),s()(this,"page_size",void 0),s()(this,"status",void 0),s()(this,"title",void 0)});function B(n,a){return(0,j.request)("/mission/mission-list",u()({method:"GET",params:u()({},n),data:{}},a||{}))}var V=h()(function n(){f()(this,n)});function Z(n,a,l){return(0,j.request)("/mission/stop",u()({method:"PUT",params:u()({},n),data:u()({},a)},l||{}))}},95749:function(rt,M,e){e.d(M,{Z:function(){return D}});var O=e(84908),P=e(85893);function D(m){return(0,P.jsx)(O.Z,{title:(m==null?void 0:m.title)||m.children,placement:"topLeft",children:(0,P.jsx)("div",{className:"fm-ellipsis-2",children:m.children})})}},55469:function(rt,M,e){e.r(M),e.d(M,{default:function(){return at}});var O=e(97857),P=e.n(O),D=e(15009),m=e.n(D),z=e(99289),L=e.n(z),$=e(5574),A=e.n($),p=e(67294),g=e(84485),C=e(26713),R=e(29924),u=e(85402),J=e(63922),h=e(8702),H=e(15301),f=e(95749),X=e(71230),s=e(15746),j=e(24093),K=e(71577),Y=e(59652),r=e(2587),k=e(79216),q=e(81579),w=e(69677),t=e(85893),_=function(x){var o=x.data;return(0,t.jsxs)(X.Z,{children:[(0,t.jsx)(s.Z,{span:8,children:(0,t.jsxs)(C.Z,{align:"center",children:[(0,t.jsx)(j.C,{size:"large"}),(0,t.jsx)(g.Z.Title,{style:{marginBottom:0},children:o==null?void 0:o.nick_name})]})}),(0,t.jsx)(s.Z,{span:8,children:(0,t.jsxs)(C.Z,{direction:"vertical",children:[(0,t.jsx)(g.Z.Text,{children:"\u8054\u7CFB\u65B9\u5F0F"}),(0,t.jsxs)(g.Z.Text,{children:["\u7535\u8BDD: ",o==null?void 0:o.phone]})]})}),(0,t.jsx)(s.Z,{span:8,children:o==null?void 0:o.tags})]})};function tt(I){var x=I.visible,o=I.onOk,y=I.onCancel,i=I.data,U=I.handleAudit,W=(0,p.useState)({}),b=A()(W,2),F=b[0],N=b[1],Q=(0,p.useState)(""),T=A()(Q,2),B=T[0],V=T[1];return(0,p.useEffect)(function(){if(!!(i!=null&&i.id))return H.Ie.request({id:i==null?void 0:i.id}).then(function(Z){(Z==null?void 0:Z.code)===0&&N(Z.data)}),function(){V("")}},[i==null?void 0:i.id]),(0,t.jsxs)(u.Z,{title:"\u4EFB\u52A1\u5BA1\u6838",destroyOnClose:!0,width:document.body.clientWidth<1e3?document.body.clientWidth-100:1e3,open:x,onOk:o,onCancel:y,footer:(0,t.jsxs)(C.Z,{children:[(0,t.jsx)(K.Z,{onClick:y,children:"\u53D6\u6D88"}),(0,t.jsx)(K.Z,{onClick:function(){return U(3)},children:"\u5BA1\u6838\u4E0D\u901A\u8FC7"}),(0,t.jsx)(K.Z,{onClick:function(){return U(2)},type:"primary",children:"\u5BA1\u6838\u901A\u8FC7"})]}),children:[(0,t.jsx)(Y.Z,{children:(0,t.jsx)(_,{data:F.influencer_user})}),(0,t.jsx)(Y.Z,{style:{marginTop:20},children:(0,t.jsxs)(r.Z,{title:"\u7F51\u7EA2\u4E3B\u9875",column:2,children:[(0,t.jsx)(r.Z.Item,{label:"",children:(0,t.jsxs)(r.Z,{title:"",column:1,children:[(0,t.jsx)(r.Z.Item,{label:"ins",children:"-"}),(0,t.jsx)(r.Z.Item,{label:"\u7ED1\u5B9A\u65F6\u95F4",children:"-"})]})}),(0,t.jsx)(r.Z.Item,{label:"",children:(0,t.jsxs)(r.Z,{title:"",column:1,children:[(0,t.jsx)(r.Z.Item,{label:"ins",children:"-"}),(0,t.jsx)(r.Z.Item,{label:"\u7ED1\u5B9A\u65F6\u95F4",children:"-"})]})}),(0,t.jsx)(r.Z.Item,{label:"",children:(0,t.jsxs)(r.Z,{title:"",column:1,children:[(0,t.jsx)(r.Z.Item,{label:"ins",children:"-"}),(0,t.jsx)(r.Z.Item,{label:"\u7ED1\u5B9A\u65F6\u95F4",children:"-"})]})}),(0,t.jsx)(r.Z.Item,{label:"",children:(0,t.jsxs)(r.Z,{title:"",column:1,children:[(0,t.jsx)(r.Z.Item,{label:"ins",children:"-"}),(0,t.jsx)(r.Z.Item,{label:"\u7ED1\u5B9A\u65F6\u95F4",children:"-"})]})}),(0,t.jsx)(r.Z.Item,{label:"",children:(0,t.jsxs)(r.Z,{title:"",column:1,children:[(0,t.jsx)(r.Z.Item,{label:"ins",children:"-"}),(0,t.jsx)(r.Z.Item,{label:"\u7ED1\u5B9A\u65F6\u95F4",children:"-"})]})})]})}),(0,t.jsx)(h.QVr,{columns:[{title:"\u5546\u54C1\u4FE1\u606F",dataIndex:"goods_id",render:function(n,a){var l;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(C.Z,{direction:"horizontal",children:[(0,t.jsx)(k.Z,{style:{width:80,height:80,objectFit:"contain"},src:a==null||(l=a.images)===null||l===void 0?void 0:l.split(",")[0]}),(0,t.jsxs)(C.Z,{direction:"vertical",children:[(0,t.jsxs)(g.Z.Text,{children:["ID:",(a==null?void 0:a.goods_id)||"-"]}),(0,t.jsx)(g.Z.Text,{children:(a==null?void 0:a.title)||"-"})]})]})})}},{title:"\u9500\u552E\u4EF7",dataIndex:"price"},{title:"\u5E93\u5B58",dataIndex:"stock"},{title:"\u7D2F\u79EF\u9500\u91CF",dataIndex:"sales"},{title:"30\u65E5\u9500\u91CF",dataIndex:"sales_30"},{title:"\u521B\u5EFA\u65F6\u95F4",valueType:"dateTime",dataIndex:"\u7F3A\u5C11\u5B57\u6BB5"},{title:"\u6807\u7B7E",dataIndex:"tags"}],style:{marginTop:20},bordered:!0,toolBarRender:!1,tooltip:null,search:!1,dataSource:[(F==null?void 0:F.claim_goods)||{}]}),(0,t.jsxs)(Y.Z,{style:{marginTop:20},children:[(0,t.jsxs)(r.Z,{title:"\u4EFB\u52A1\u4FE1\u606F",children:[(0,t.jsx)(r.Z.Item,{label:"\u4EFB\u52A1\u540D\u79F0",children:(i==null?void 0:i.mission_title)||"-"}),(0,t.jsx)(r.Z.Item,{label:"\u5546\u54C1\u540D\u79F0",children:(i==null?void 0:i.goods_title)||"-"}),(0,t.jsx)(r.Z.Item,{label:"\u4EFB\u52A1\u8D39\u7528",children:(i==null?void 0:i.hire_money_expect)||"-"}),(0,t.jsx)(r.Z.Item,{label:"\u4EFB\u52A1\u65F6\u95F4",children:"empty"}),(0,t.jsx)(r.Z.Item,{label:"\u5B8C\u6210\u4EFB\u52A1\u65F6\u95F4",children:(i==null?void 0:i.claim_days)||"-"}),(0,t.jsx)(r.Z.Item,{label:"\u53D1\u5E03\u56FD\u5BB6",children:i==null?void 0:i.release_country}),(0,t.jsx)(r.Z.Item,{label:"\u53D1\u5E03\u6E20\u9053",children:i==null?void 0:i.release_channels}),(0,t.jsx)(r.Z.Item,{label:"\u89C6\u9891\u94FE\u63A5",children:(0,t.jsx)(g.Z.Link,{children:i==null?void 0:i.video_url})})]}),(0,t.jsx)("video",{src:i==null?void 0:i.video_url,controls:!0,style:{width:"100%",marginTop:20,marginBottom:20}}),(0,t.jsx)(q.Z.Item,{label:"\u5BA1\u6838\u610F\u89C1",children:(0,t.jsx)(w.Z.TextArea,{value:B,onChange:function(n){V(n.target.value)}})})]})]})}var et=g.Z.Title,nt=g.Z.Link,it=function(x){var o=x.onChange;return(0,t.jsxs)(C.Z,{align:"center",children:[(0,t.jsx)(et,{level:5,style:{marginBottom:0,fontWeight:900},children:"\u5FEB\u901F\u7B5B\u9009\u4EFB\u52A1"}),(0,t.jsx)(R.ZP.Group,{value:x==null?void 0:x.value.status,onChange:function(i){o({status:i.target.value})},children:(0,t.jsxs)(C.Z,{wrap:!0,children:[(0,t.jsx)(R.ZP.Button,{value:1,children:"\u5F85\u5BA1\u6838"}),(0,t.jsx)(R.ZP.Button,{value:2,children:"\u5BA1\u6838\u901A\u8FC7"}),(0,t.jsx)(R.ZP.Button,{value:3,children:"\u5BA1\u6838\u4E0D\u901A\u8FC7"})]})})]})};function at(){var I=(0,p.useState)({}),x=A()(I,2),o=x[0],y=x[1],i=(0,p.useRef)(),U=(0,p.useState)(!1),W=A()(U,2),b=W[0],F=W[1],N=(0,p.useState)({}),Q=A()(N,2),T=Q[0],B=Q[1],V=function(){var l=L()(m()().mark(function v(d){return m()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:u.Z.confirm({title:"\u53D1\u653E\u56FA\u5B9A\u8D39",content:"\u7528\u60A8\u5C06\u53D1\u653E\u56FA\u5B9A\u8D39\u7528\u7ED9\u7F51\u7EA2\uFF0C\u82E5\u4E0D\u9700\u8981\u8BF7\u53D6\u6D88\u3002",onOk:function(){var G=L()(m()().mark(function ut(){return m()().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:case"end":return st.stop()}},ut)}));function S(){return G.apply(this,arguments)}return S}()});case 1:case"end":return E.stop()}},v)}));return function(d){return l.apply(this,arguments)}}(),Z=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"title",hideInTable:!0},{title:"\u7F51\u7EA2\u8D26\u53F7",dataIndex:"uuid",hideInTable:!0},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"title",key:"title",hideInSearch:!0,width:200},{title:"\u5546\u54C1\u540D\u79F0",hideInSearch:!0,dataIndex:"goods",width:300,render:function(v,d){var c;return(0,t.jsx)(f.Z,{children:d==null||(c=d.goods)===null||c===void 0?void 0:c.title})}},{title:"\u4EFB\u52A1\u8D39\u7528",hideInSearch:!0,dataIndex:"hire_money_expect"},{title:"\u5B8C\u6210\u4EFB\u52A1\u65F6\u95F4",hideInSearch:!0,dataIndex:"claim_days"},{title:"\u63A5\u4EFB\u52A1\u65F6\u95F4",hideInSearch:!0,dataIndex:"start_time",valueType:"dateTime"},{title:"\u7F51\u7EA2\u8D26\u53F7",hideInSearch:!0,dataIndex:"influencer_user",key:"influencer_user",render:function(v,d){return(0,t.jsx)(t.Fragment,{children:(d==null?void 0:d.uuid)||"-"})}},{title:"\u4EFB\u52A1\u72B6\u6001",hideInSearch:!0,dataIndex:"status",key:"status",valueType:"select",fieldProps:{options:[{label:"\u672A\u5F00\u59CB",value:1},{label:"\u8FDB\u884C\u4E2D",value:2},{label:"\u5DF2\u7ED3\u675F",value:3}]},render:function(v,d){var c=["gray","black","blue","red"];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(J.Z,{color:c[d==null?void 0:d.status]||"black",text:v})})}},{title:"\u64CD\u4F5C",fixed:"right",hideInSearch:!0,render:function(v,d){return(0,t.jsxs)(C.Z,{children:[(0,t.jsx)("a",{onClick:function(){return V(d)},children:"\u53D1\u653E"}),(0,t.jsx)(nt,{onClick:function(){B(d),F(!0)},children:"\u5BA1\u6838"})]})}}],n=function(v){return H.f3.request(P()(P()({},v),{},{page:v.current,page_size:v.pageSize})).then(function(d){var c,E,G;return{success:!0,data:(d==null||(c=d.data)===null||c===void 0||(E=c.list)===null||E===void 0?void 0:E.map(function(S){return P()(P()({},S),{},{time:[S.start_time,S.end_time]})}))||[{id:1,title:"\u4EFB\u52A1\u540D\u79F0",goods:{title:"\u5546\u54C1\u540D\u79F0"},hire_money_expect:"\u4EFB\u52A1\u8D39\u7528",claim_days:"\u5B8C\u6210\u4EFB\u52A1\u65F6\u95F4",start_time:"\u63A5\u4EFB\u52A1\u65F6\u95F4",influencer_user:"\u7F51\u7EA2\u8D26\u53F7",status:1}],total:d==null||(G=d.data)===null||G===void 0?void 0:G.total}})},a=function(){var l=L()(m()().mark(function v(d){var c,E;return m()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,H.zj.request({},{id:T==null?void 0:T.id,status:d});case 2:c=S.sent,(c==null?void 0:c.code)===0&&(F(!1),B({}),i==null||(E=i.current)===null||E===void 0||E.reload(),u.Z.confirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u89C6\u9891\u5BA1\u6838\u901A\u8FC7\uFF0C\u8FD8\u672A\u7ED9\u7F51\u7EA2\u53D1\u653E\u56FA\u5B9A\u8D39\u7528\uFF0C\u8BF7\u5230\u5BA1\u6838\u901A\u8FC7\u5217\u8868\u4E2D\u518D\u6B21\u786E\u8BA4\u53D1\u653E\u3002"}));case 4:case"end":return S.stop()}},v)}));return function(d){return l.apply(this,arguments)}}();return(0,t.jsxs)("div",{children:[(0,t.jsx)(h.QVr,{actionRef:i,scroll:{x:"max-content"},options:{reload:!1},onReset:function(){y({})},params:o,request:n,columns:Z,headerTitle:(0,t.jsx)(it,{value:o,onChange:function(v){return y(v)}})}),(0,t.jsx)(tt,{handleAudit:a,data:T,visible:b,onOk:function(){B({}),F(!1)},onCancel:function(){B({}),F(!1)}})]})}}}]);