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

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[230],{7539:function(K,S,e){e.d(S,{Ku:function(){return E},n3:function(){return h},Nm:function(){return O},gp:function(){return p},nB:function(){return f},Jz:function(){return v},DM:function(){return T},kJ:function(){return P},$P:function(){return i}});var E={};e.r(E),e.d(E,{Params:function(){return x},request:function(){return j}});var h={};e.r(h),e.d(h,{Params:function(){return m},request:function(){return o}});var P={};e.r(P),e.d(P,{Params:function(){return B},request:function(){return I}});var v={};e.r(v),e.d(v,{Params:function(){return g},request:function(){return C}});var O={};e.r(O),e.d(O,{Params:function(){return A},request:function(){return M}});var p={};e.r(p),e.d(p,{Params:function(){return L},request:function(){return U}});var T={};e.r(T),e.d(T,{Params:function(){return y},request:function(){return t}});var f={};e.r(f),e.d(f,{Params:function(){return _},request:function(){return $}});var i={};e.r(i),e.d(i,{Params:function(){return N},request:function(){return G}});var Z=e(97857),r=e.n(Z),a=e(72004),u=e.n(a),F=e(12444),l=e.n(F),R=e(9783),n=e.n(R),c=e(88593),x=u()(function s(){l()(this,s),n()(this,"page",void 0),n()(this,"page_size",void 0),n()(this,"status",void 0)});function j(s,d){return(0,c.request)("/order/batchList",r()({method:"GET",params:r()({},s),data:{}},d||{}))}var m=u()(function s(){l()(this,s),n()(this,"status1",void 0),n()(this,"status2",void 0),n()(this,"total",void 0)});function o(s,d){return(0,c.request)("/order/batchListTotal",r()({method:"GET",params:r()({},s),data:{}},d||{}))}var B=u()(function s(){l()(this,s)});function I(s,d,D){return(0,c.request)("/order/batchSend",r()({method:"PUT",params:r()({},s),data:r()({},d)},D||{}))}var g=u()(function s(){l()(this,s)});function C(s,d,D){return(0,c.request)("/order/batchSend",r()({method:"POST",params:r()({},s),data:r()({},d)},D||{}))}var A=u()(function s(){l()(this,s),n()(this,"orderID",void 0)});function M(s,d){return(0,c.request)("/order/detail",r()({method:"GET",params:r()({},s),data:{}},d||{}))}var L=u()(function s(){l()(this,s),n()(this,"code",void 0),n()(this,"createdAt",void 0),n()(this,"createdAtEnd",void 0),n()(this,"createdAtStart",void 0),n()(this,"goodsID",void 0),n()(this,"influenceId",void 0),n()(this,"name",void 0),n()(this,"orderID",void 0),n()(this,"page",void 0),n()(this,"page_size",void 0),n()(this,"phone",void 0),n()(this,"spu_no",void 0),n()(this,"status",void 0),n()(this,"userId",void 0)});function U(s,d){return(0,c.request)("/order/list",r()({method:"GET",params:r()({},s),data:{}},d||{}))}var b=null;function W(s,d){return Request("/order/postSale",_objectSpread({method:"GET",params:_objectSpread({},s),data:{}},d||{}))}var y=u()(function s(){l()(this,s)});function t(s,d,D){return(0,c.request)("/order/postSale",r()({method:"POST",params:r()({},s),data:r()({},d)},D||{}))}var _=u()(function s(){l()(this,s),n()(this,"confirmTimeEnd",void 0),n()(this,"confirmTimeStart",void 0),n()(this,"orderId",void 0),n()(this,"page",void 0),n()(this,"page_size",void 0),n()(this,"status",void 0)});function $(s,d){return(0,c.request)("/order/postSale/list",r()({method:"GET",params:r()({},s),data:{}},d||{}))}var z=null;function J(s,d){return Request("/order/postSale/refund",_objectSpread({method:"POST",params:_objectSpread({},s),data:{}},d||{}))}var N=u()(function s(){l()(this,s)});function G(s,d,D){return(0,c.request)("/order/send",r()({method:"PUT",params:r()({},s),data:r()({},d)},D||{}))}},95749:function(K,S,e){e.d(S,{Z:function(){return P}});var E=e(84908),h=e(85893);function P(v){return(0,h.jsx)(E.Z,{title:(v==null?void 0:v.title)||v.children,placement:"topLeft",children:(0,h.jsx)("div",{className:"fm-ellipsis-2",children:v.children})})}},80093:function(K,S,e){e.r(S),e.d(S,{default:function(){return c}});var E=e(5574),h=e.n(E),P=e(88593),v=e(91756),O=e(84485),p=e(26713),T=e(79216),f=e(59652),i=e(2587),Z=e(7539),r=e(95749),a=e(85893),u=v.Z.Step,F=O.Z.Title,l=O.Z.Text,R={1:0,2:1,3:2,4:3},n=function(j){var m,o=j.record;return(0,a.jsxs)(p.Z,{style:{width:250,overflowX:"hidden"},align:"start",children:[(0,a.jsx)(T.Z,{style:{width:120,height:120,objectFit:"cover"},src:o==null||(m=o.images)===null||m===void 0?void 0:m.split(",")[0]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)(l,{children:["ID:",o==null?void 0:o.spu_no]}),(0,a.jsx)(r.Z,{title:o==null?void 0:o.title,children:(0,a.jsx)(F,{level:5,children:o==null?void 0:o.title})})]})]})};function c(){var x,j,m,o,B,I,g,C,A,M,L,U=(0,P.useSearchParams)(),b=h()(U,1),W=b[0],y=(0,P.useRequest)(function(){return Z.Nm.request({orderID:W.get("id")})}),t=y.data;return(0,a.jsxs)("div",{children:[(0,a.jsx)(f.Z,{bordered:!1,children:(t==null?void 0:t.status)===5?(0,a.jsx)(l,{type:"secondary",children:"\u5DF2\u53D6\u6D88"}):(0,a.jsxs)(v.Z,{current:R[(t==null?void 0:t.status)||0],children:[(0,a.jsx)(u,{title:"\u63D0\u4EA4\u8BA2\u5355"}),(0,a.jsx)(u,{title:"\u4ED8\u6B3E\u6210\u529F"}),(0,a.jsx)(u,{title:"\u5DF2\u53D1\u8D27"}),(0,a.jsx)(u,{title:(t==null?void 0:t.status)===4?"\u5DF2\u5B8C\u6210":"\u7B49\u5F85\u7B7E\u6536"})]})}),(0,a.jsx)(f.Z,{title:"\u8BA2\u5355\u4FE1\u606F",extra:(0,a.jsxs)(p.Z,{children:[(0,a.jsxs)(l,{children:["\u8BA2\u5355\u7F16\u53F7:",t==null?void 0:t.orderID]}),(0,a.jsxs)(l,{children:["\u7F51\u7EA2\u8D26\u53F7:",t==null?void 0:t.code]})]}),style:{marginBottom:20},children:(0,a.jsxs)(i.Z,{layout:"vertical",bordered:!0,column:6,children:[(0,a.jsx)(i.Z.Item,{label:"\u5546\u54C1\u4FE1\u606F",children:(0,a.jsx)(n,{record:(t==null?void 0:t.goods)||{}})}),(0,a.jsx)(i.Z.Item,{label:"\u5546\u54C1\u89C4\u683C",children:(x=JSON.parse((t==null||(m=t.goods)===null||m===void 0?void 0:m.specs)||"[]"))===null||x===void 0||(j=x.map(function(_){return _.value}))===null||j===void 0?void 0:j.join(",")}),(0,a.jsx)(i.Z.Item,{label:"\u6570\u91CF",children:t==null?void 0:t.number}),(0,a.jsx)(i.Z.Item,{label:"\u5546\u54C1\u603B\u4EF7",children:t==null?void 0:t.price}),(0,a.jsx)(i.Z.Item,{label:"\u7F51\u7EA2\u4F63\u91D1",children:t==null?void 0:t.IAmount}),(0,a.jsx)(i.Z.Item,{label:"\u5165\u8D26\u91D1\u989D",children:t==null?void 0:t.SAmount})]})}),(0,a.jsx)(f.Z,{title:"\u6536\u8D27\u4FE1\u606F",style:{marginBottom:20},children:(0,a.jsxs)(i.Z,{layout:"horizontal",column:1,children:[(0,a.jsx)(i.Z.Item,{label:"\u6536\u8D27\u4EBA",children:"".concat(t==null||(o=t.address)===null||o===void 0?void 0:o.firstName," ").concat(t==null||(B=t.address)===null||B===void 0?void 0:B.lastName)}),(0,a.jsx)(i.Z.Item,{label:"\u624B\u673A\u53F7",children:t==null||(I=t.address)===null||I===void 0?void 0:I.phone}),(0,a.jsx)(i.Z.Item,{label:"\u6536\u8D27\u5730\u5740",children:"".concat((t==null||(g=t.address)===null||g===void 0?void 0:g.state)||"-"," ").concat((t==null||(C=t.address)===null||C===void 0?void 0:C.city)||"-"," ").concat((t==null||(A=t.address)===null||A===void 0?void 0:A.street)||"-"," ")})]})}),(0,a.jsx)(f.Z,{title:"\u5305\u88F9\u4FE1\u606F",style:{marginBottom:20},children:(0,a.jsx)(i.Z,{layout:"horizontal",column:1,children:(0,a.jsx)(i.Z.Item,{label:"\u5FEB\u9012\u4FE1\u606F",children:"".concat((t==null||(M=t.deliver)===null||M===void 0?void 0:M.courierLink)||""," ").concat((t==null||(L=t.deliver)===null||L===void 0?void 0:L.courierNumber)||"")})})})]})}}}]);