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
15 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[103],{15301:function(He,G,e){e.d(G,{Hb:function(){return D},b1:function(){return z},R2:function(){return F},Ie:function(){return A},f3:function(){return U},nU:function(){return L},Yf:function(){return T},Y2:function(){return x},zj:function(){return N},ft:function(){return J},jQ:function(){return b}});var D={};e.r(D),e.d(D,{Params:function(){return ee},request:function(){return te}});var z={};e.r(z),e.d(z,{Params:function(){return ae},request:function(){return ne}});var F={};e.r(F),e.d(F,{Params:function(){return ie},request:function(){return r}});var x={};e.r(x),e.d(x,{Params:function(){return re},request:function(){return se}});var N={};e.r(N),e.d(N,{Params:function(){return q},request:function(){return oe}});var A={};e.r(A),e.d(A,{Params:function(){return le},request:function(){return de}});var U={};e.r(U),e.d(U,{Params:function(){return ue},request:function(){return ve}});var L={};e.r(L),e.d(L,{Params:function(){return ce},request:function(){return h}});var J={};e.r(J),e.d(J,{Params:function(){return $},request:function(){return c}});var T={};e.r(T),e.d(T,{Params:function(){return v},request:function(){return S}});var b={};e.r(b),e.d(b,{Params:function(){return P},request:function(){return j}});var Y=e(97857),d=e.n(Y),K=e(72004),y=e.n(K),B=e(12444),E=e.n(B),Q=e(9783),l=e.n(Q),I=e(88593),Le=null;function X(a,n){return Request("/mission/claim-influencers",_objectSpread({method:"GET",params:_objectSpread({},a),data:{}},n||{}))}var ee=y()(function a(){E()(this,a),l()(this,"mission_id",void 0),l()(this,"page",void 0),l()(this,"page_size",void 0),l()(this,"status",void 0),l()(this,"uuid",void 0)});function te(a,n){return(0,I.request)("/mission/claim-list",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var ae=y()(function a(){E()(this,a),l()(this,"order_id",void 0)});function ne(a,n){return(0,I.request)("/mission/claim-order",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var ie=y()(function a(){E()(this,a),l()(this,"address_name",void 0),l()(this,"address_phone",void 0),l()(this,"order_id",void 0),l()(this,"order_time_end",void 0),l()(this,"order_time_start",void 0),l()(this,"page",void 0),l()(this,"page_size",void 0),l()(this,"spu_no",void 0),l()(this,"status",void 0)});function r(a,n){return(0,I.request)("/mission/claim-order-list",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var re=y()(function a(){E()(this,a)});function se(a,n,f){return(0,I.request)("/mission/claim-order-send",d()({method:"POST",params:d()({},a),data:d()({},n)},f||{}))}var q=y()(function a(){E()(this,a)});function oe(a,n,f){return(0,I.request)("/mission/claim-video-audit",d()({method:"POST",params:d()({},a),data:d()({},n)},f||{}))}var le=y()(function a(){E()(this,a),l()(this,"id",void 0)});function de(a,n){return(0,I.request)("/mission/claim-video-detail",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var ue=y()(function a(){E()(this,a),l()(this,"mission_id",void 0),l()(this,"mission_title",void 0),l()(this,"page",void 0),l()(this,"page_size",void 0),l()(this,"status",void 0),l()(this,"uuid",void 0)});function ve(a,n){return(0,I.request)("/mission/claim-video-list",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var ce=y()(function a(){E()(this,a),l()(this,"id",void 0)});function h(a,n){return(0,I.request)("/mission/mission",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var p=null;function C(a,n,f){return Request("/mission/mission",_objectSpread({method:"PUT",params:_objectSpread({},a),data:_objectSpread({},n)},f||{}))}var $=y()(function a(){E()(this,a)});function c(a,n,f){return(0,I.request)("/mission/mission",d()({method:"POST",params:d()({},a),data:d()({},n)},f||{}))}var u=null;function H(a,n,f){return Request("/mission/mission",_objectSpread({method:"DELETE",params:_objectSpread({},a),data:_objectSpread({},n)},f||{}))}var v=y()(function a(){E()(this,a),l()(this,"mission_time",void 0),l()(this,"page",void 0),l()(this,"page_size",void 0),l()(this,"status",void 0),l()(this,"title",void 0)});function S(a,n){return(0,I.request)("/mission/mission-list",d()({method:"GET",params:d()({},a),data:{}},n||{}))}var P=y()(function a(){E()(this,a)});function j(a,n,f){return(0,I.request)("/mission/stop",d()({method:"PUT",params:d()({},a),data:d()({},n)},f||{}))}},95749:function(He,G,e){e.d(G,{Z:function(){return F}});var D=e(84908),z=e(85893);function F(x){return(0,z.jsx)(D.Z,{title:(x==null?void 0:x.title)||x.children,placement:"topLeft",children:(0,z.jsx)("div",{className:"fm-ellipsis-2",children:x.children})})}},97311:function(He,G,e){e.r(G),e.d(G,{default:function(){return ce}});var D=e(19632),z=e.n(D),F=e(15009),x=e.n(F),N=e(99289),A=e.n(N),U=e(5574),L=e.n(U),J=e(97857),T=e.n(J),b=e(67294),Y=e(84485),d=e(84739),K=e(26713),y=e(79216),B=e(81579),E=e(85402),Q=e(69677),l=e(12461),I=e(71577),Le=e(8702),X=e(15301),ee=e(88593),te={},ae=e(44685),ne=e(73935),ie=e(95749),r=e(85893),re=Y.Z.Title,se=Y.Z.Link,q=Y.Z.Text,oe=function(p){var C=document.querySelector("#table .ant-spin-container");return C?ne.createPortal((0,r.jsx)(d.Z,T()(T()({style:{textAlign:"right",mariginTop:20},size:"small",pageSize:10,showTotal:function(c,u){return console.log({total:c,range:u}),"\u7B2C ".concat(u[0],"-").concat(u[1]," \u6761/\u603B\u5171 ").concat(c," \u6761")}},p),{},{current:p.current,onChange:function(c,u){p.onChange(c,u)}})),C):null},le=function(p){var C,$,c,u,H,v=p.record;return(0,r.jsxs)(K.Z,{style:{width:250,overflowX:"hidden"},align:"start",children:[(0,r.jsx)(y.Z,{style:{width:120,height:120,objectFit:"cover"},src:v==null||(C=v.goods)===null||C===void 0||($=C.image)===null||$===void 0?void 0:$.split(",")[0]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(q,{children:["ID:",(v==null||(c=v.goods)===null||c===void 0?void 0:c.sku_no)||"-"]}),(0,r.jsx)(ie.Z,{title:(v==null||(u=v.goods)===null||u===void 0?void 0:u.title)||"-",children:(0,r.jsx)(re,{level:5,children:(v==null||(H=v.goods)===null||H===void 0?void 0:H.title)||"-"})})]})]})},de=function(p){var C=p.visible,$=p.onOk,c=p.onCancel,u=p.record,H=B.Z.useForm(),v=L()(H,1),S=v[0];return(0,b.useEffect)(function(){S.setFieldValue("order_id",u==null?void 0:u.order_id)},[u==null?void 0:u.order_id]),(0,r.jsx)(E.Z,{visible:C,title:"\u53D1\u8D27",destroyOnClose:!0,onOk:A()(x()().mark(function P(){var j;return x()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,S.validateFields();case 2:j=n.sent,$(j);case 4:case"end":return n.stop()}},P)})),onCancel:c,children:(0,r.jsxs)(B.Z,{form:S,children:[(0,r.jsx)(B.Z.Item,{label:"\u8BA2\u5355\u7F16\u53F7",name:"order_id",rules:[{required:!0}],children:(0,r.jsx)(Q.Z,{bordered:!1,readOnly:!0})}),(0,r.jsx)(B.Z.Item,{label:"\u67E5\u8BE2\u5730\u5740",name:"courier_url",rules:[{required:!0}],children:(0,r.jsx)(Q.Z,{})}),(0,r.jsx)(B.Z.Item,{label:"\u5FEB\u9012\u5355\u53F7",name:"courier_number",rules:[{required:!0}],children:(0,r.jsx)(Q.Z,{})})]})})},ue=function(){var p=(0,b.useState)([]),C=L()(p,2),$=C[0],c=C[1],u=(0,b.useState)(0),H=L()(u,2),v=H[0],S=H[1],P=(0,b.useState)(1),j=L()(P,2),a=j[0],n=j[1],f=(0,b.useState)(20),M=L()(f,2),me=M[0],fe=M[1],he=(0,b.useState)({}),k=L()(he,2),w=k[0],_=k[1],W=(0,b.useRef)();return{list:$,listHandler:c,total:v,totalHandler:S,page:a,pageHandler:n,pageSize:me,pageSizeHandler:fe,actionRef:W,record:w,recordHandler:_}},ve=function(){var p=(0,b.useState)(!1),C=L()(p,2),$=C[0],c=C[1],u=function(S){var P;c(!1),S==null||(P=S.current)===null||P===void 0||P.reload()},H=function(){var v=A()(x()().mark(function S(P,j){var a,n;return x()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,X.Y2.request({},P);case 2:a=M.sent,a.code===0&&(l.ZP.success("\u53D1\u8D27\u6210\u529F"),j==null||(n=j.current)===null||n===void 0||n.reload(),c(!1));case 4:case"end":return M.stop()}},S)}));return function(P,j){return v.apply(this,arguments)}}();return{visible:$,visibleHandler:c,onOk:H,onCancel:u}};function ce(){var h=ue(),p=h.list,C=h.listHandler,$=h.totalHandler,c=h.actionRef,u=h.record,H=h.recordHandler,v=h.page,S=h.pageSize,P=h.pageHandler,j=h.pageSizeHandler,a=h.total,n=(0,b.useRef)(1),f=ve(),M=f.visible,me=f.visibleHandler,fe=f.onCancel,he=f.onOk,k=(0,b.useState)(!1),w=L()(k,2),_=w[0],W=w[1],ge=function(s){if(!(s!=null&&s.length))return[];var t=z()(s),o=[];return t.forEach(function(g){o.push(g),o.push(g)}),o},V=function(s,t){return t%2===0?{colSpan:0}:{}},Ze=[{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(s){return{order_time_start:s[0],order_time_end:s[1]}}}},{title:"\u5546\u54C1\u4FE1\u606F",dataIndex:"name",hideInSearch:!0,width:350,onCell:function(s,t){return{colSpan:t%2!==0?1:9}},render:function(s,t,o){return o%2===0?(0,r.jsx)(K.Z,{children:(0,r.jsxs)(q,{children:["\u8BA2\u5355\u7F16\u53F7:",(t==null?void 0:t.order_id)||"-"]})}):(0,r.jsx)(le,{record:t})}},{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:V},{title:"\u6570\u91CF",width:80,dataIndex:"number",key:"number",hideInSearch:!0,onCell:V},{title:"\u5546\u54C1\u603B\u4EF7",width:120,dataIndex:"price",hideInSearch:!0,onCell:V,render:function(s,t){var o;return(0,r.jsx)(r.Fragment,{children:(t==null||(o=t.goods)===null||o===void 0?void 0:o.price)||"-"})}},{title:"\u6536\u8D27\u4FE1\u606F",width:200,dataIndex:"customerPhone",hideInSearch:!0,onCell:V,render:function(s,t){var o,g,Z,R,m,i;return(0,r.jsx)(r.Fragment,{children:"".concat(t==null||(o=t.address)===null||o===void 0?void 0:o.firstName," ").concat(t==null||(g=t.address)===null||g===void 0?void 0:g.lastName," ").concat(t==null||(Z=t.address)===null||Z===void 0?void 0:Z.phone," ").concat(t==null||(R=t.address)===null||R===void 0?void 0:R.state).concat(t==null||(m=t.address)===null||m===void 0?void 0:m.city).concat(t==null||(i=t.address)===null||i===void 0?void 0:i.street)})}},{title:"\u7F51\u7EA2\u8D26\u53F7",width:200,dataIndex:"customerPhone",hideInSearch:!0,onCell:V,render:function(s,t){var o,g;return(0,r.jsx)(r.Fragment,{children:t==null||(o=t.mission_claim)===null||o===void 0||(g=o.influencer)===null||g===void 0?void 0:g.nick_name})}},{title:"\u64CD\u4F5C",width:180,hideInSearch:!0,fixed:"right",onCell:V,render:function(s,t){return(0,r.jsxs)(K.Z,{direction:"vertical",children:[(0,r.jsx)(se,{onClick:function(){ee.history.push("/order_manage/task_order_detail?id=".concat(t==null?void 0:t.order_id))},children:"\u67E5\u770B\u8BE6\u60C5"}),(t==null?void 0:t.status)===2?(0,r.jsx)(I.Z,{type:"primary",onClick:function(){H(t),me(!0)},children:"\u53D1\u8D27"}):null]})}}],Me=function(s){return P(s.current),j(s.pageSize),X.R2.request(T()(T()({},s),{},{page:(s==null?void 0:s.page)||1})).then(function(t){var o,g,Z,R,m;return C((t==null||(o=t.data)===null||o===void 0?void 0:o.list)||[]),$(t==null||(g=t.data)===null||g===void 0?void 0:g.total),console.log(ge(t==null||(Z=t.data)===null||Z===void 0?void 0:Z.list)),{success:!0,data:ge(t==null||(R=t.data)===null||R===void 0?void 0:R.list)||[],total:(t==null||(m=t.data)===null||m===void 0?void 0:m.total)*2}})},ze=function(){var O=A()(x()().mark(function s(){var t,o,g,Z;return x()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!_){m.next=2;break}return m.abrupt("return");case 2:return W(!0),t=[{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"}],m.prev=4,m.next=7,X.R2.request({page:v||1,page_size:S||20});case 7:o=m.sent,(o==null?void 0:o.code)===0&&((0,ae.P9)({header:t,dataSet:o==null||(g=o.data)===null||g===void 0||(Z=g.list)===null||Z===void 0?void 0:Z.map(function(i){var pe,Ce,Se,Pe,je,Oe,xe,$e,Te,be,Ie,ye;return T()(T()(T()(T()(T()({},i.address),i.goods),i.deliver),i),{},{commodID:i==null||(pe=i.goods)===null||pe===void 0?void 0:pe.id,addressDetail:"".concat(i==null||(Ce=i.address)===null||Ce===void 0?void 0:Ce.state," ").concat(i==null||(Se=i.address)===null||Se===void 0?void 0:Se.city," ").concat(i==null||(Pe=i.address)===null||Pe===void 0?void 0:Pe.street," ").concat(i==null||(je=i.address)===null||je===void 0?void 0:je.zipCode),recievePeople:"".concat(i==null||(Oe=i.address)===null||Oe===void 0?void 0:Oe.firstName," ").concat(i==null||(xe=i.address)===null||xe===void 0?void 0:xe.lastName),status:($e=[{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(Ee){return Ee.value===i.status}))===null||$e===void 0?void 0:$e.label,specs:i!=null&&(Te=i.goods)!==null&&Te!==void 0&&Te.specs?(be=JSON.parse(i==null||(ye=i.goods)===null||ye===void 0?void 0:ye.specs))===null||be===void 0||(Ie=be.map(function(Ee){return Ee.value}))===null||Ie===void 0?void 0:Ie.join(","):""})}),fileName:"\u8BA2\u5355\u6570\u636E\u5BFC\u51FA"}),W(!1)),m.next=14;break;case 11:m.prev=11,m.t0=m.catch(4),W(!1);case 14:case"end":return m.stop()}},s,null,[[4,11]])}));return function(){return O.apply(this,arguments)}}();return(0,r.jsxs)("div",{className:te.orderList,id:"table",children:[(0,r.jsx)(Le.QVr,{scroll:{x:"max-content"},options:{reload:!1},beforeSearchSubmit:function(s){return n.current=1,P(1),j(20),T()({},s)},defaultSize:"small",onReset:function(){P(1),j(20)},pagination:!1,params:{page:v,page_size:S||20},actionRef:c,request:Me,dataSource:ge(p),columns:Ze,toolBarRender:function(){return[(0,r.jsx)(I.Z,{type:"primary",loading:_,onClick:ze,children:"\u5BFC\u51FA\u8BA2\u5355"},"add")]}}),(0,r.jsx)(oe,{current:n.current,pageSize:20,total:a,onChange:function(s,t){P(s),n.current=s,j(t)}}),(0,r.jsx)(de,{record:u,visible:M,onOk:function(s){return he(s,c)},onCancel:function(){fe(c)}},u==null?void 0:u.order_id)]})}}}]);