Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

2 linhas
7.3 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,7975,1322],{56036:function(N,b,r){"use strict";r.r(b),r.d(b,{default:function(){return s}});var c=r(39428),T=r(3182),I=r(57663),S=r(71577),A=r(62999),E=r(54680),m=r(2824),x=r(90631),f=r(67294),O=r(78009),C=r(16894),P=r(53667),R=r.n(P),g=r(48971),Z={orderSummaryList:function(e){return e.isreport=!0,(0,g.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,g.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,g.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,g.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,g.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},_=r(3408),D=r(30381),y=r(85893),n=function(){var e=(0,f.useState)([]),L=(0,m.Z)(e,2),G=L[0],U=L[1],H=(0,f.useState)([]),M=(0,m.Z)(H,2),oe=M[0],z=M[1],V=(0,f.useState)([]),B=(0,m.Z)(V,2),de=B[0],J=B[1],Q=(0,f.useState)([]),Y=(0,m.Z)(Q,2),le=Y[0],X=Y[1],q=(0,f.useState)([]),F=(0,m.Z)(q,2),K=F[0],ee=F[1],te=(0,f.useRef)(),re=(0,f.useState)([]),$=(0,m.Z)(re,2),ne=$[0],ae=$[1],ie=(0,f.useState)([]),k=(0,m.Z)(ie,2),ce=k[0],ue=k[1];(0,f.useEffect)(function(){function v(){(0,_.FM)().then(function(i){a(i.data);function a(u){for(var d in u)u[d].type==2||u[d].type==3?u[d].disabled=!1:u[d].disabled=!0,u[d].children&&a(u[d].children)}ae(i.data);var t={};j(i.data);function j(u){for(var d in u)t[u[d].disabled]=!0,t[u[d].value]={text:u[d].title},u[d].children&&j(u[d].children)}ue(t)})}function l(){Z.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),U(a)})}function o(){Z.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function w(){Z.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function p(){Z.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),l(),w(),p(),v()},[]);function se(){var v=K.ReqDetailList,l={},o=[];W.map(function(p,i){i>2&&o.push(p)}),l.fileName="\u8BA2\u5355\u6C47\u603B",l.datas=[{sheetData:K.map(function(p){var i={};return W.forEach(function(a,t){t>2&&(i[a.dataIndex]=p[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(p){return p.dataIndex}),sheetHeader:o.map(function(p){return p.title}),columnWidths:o.map(function(){return 9})}];var w=new(R())(l);w.saveExcel()}var W=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,y.jsx)(E.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ne,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}},{title:"\u65E5\u671F\u8303\u56F4",dataIndex:"startTime",valueType:"dateRange",hideInTable:!0,initialValue:[]},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0,width:120},{title:"\u5E94\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0,width:160},{title:"\u5B9E\u9645\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(l){return"".concat(l,"\xA5")},width:160},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(l){return"".concat(l,"\xA5")},width:120},{title:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120}];return(0,y.jsx)(O.ZP,{children:(0,y.jsx)(C.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,y.jsxs)(S.Z,{type:"primary",onClick:function(){return se()},children:[(0,y.jsx)(x.Z,{})," \u5BFC\u51FA"]},"create")]},columns:W,request:function(){var v=(0,T.Z)((0,c.Z)().mark(function l(o,w,p){var i,a,t;return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=[],a=0,o.storeTypeId!=null&&(o.storeTypeId=G[o.storeTypeId].storeTypeId),t={current:o.current,pageSize:o.pageSize,storeId:[o.storeId],Order_CreateTime:o.startTime[0],Order_EndTime:o.startTime[1]},u.next=6,Z.orderSummaryList(t).then(function(d){i=d.data.data,a=d.data.total,ee(d.data.data)});case 6:return u.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return u.stop()}},l)}));return function(l,o,w){return v.apply(this,arguments)}}()})})},s=n},3408:function(N,b,r){"use strict";r.d(b,{lM:function(){return A},IH:function(){return m},mm:function(){return C},eP:function(){return R},FM:function(){return D}});var c=r(39428),T=r(11849),I=r(3182),S=r(48971);function A(n,s){return E.apply(this,arguments)}function E(){return E=(0,I.Z)((0,c.Z)().mark(function n(s,h){return(0,c.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},s)}));case 1:case"end":return L.stop()}},n)})),E.apply(this,arguments)}function m(n){return x.apply(this,arguments)}function x(){return x=(0,I.Z)((0,c.Z)().mark(function n(s){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,T.Z)({},s)}));case 1:case"end":return e.stop()}},n)})),x.apply(this,arguments)}function f(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},s)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function C(n){return P.apply(this,arguments)}function P(){return P=(0,I.Z)((0,c.Z)().mark(function n(s){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,T.Z)({},s)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function R(n){return g.apply(this,arguments)}function g(){return g=(0,I.Z)((0,c.Z)().mark(function n(s){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,T.Z)({},s)}));case 1:case"end":return e.stop()}},n)})),g.apply(this,arguments)}function Z(n){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function n(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},s)}));case 1:case"end":return e.stop()}},n)})),_.apply(this,arguments)}function D(n){return y.apply(this,arguments)}function y(){return y=(0,I.Z)((0,c.Z)().mark(function n(s){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,T.Z)({},s)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}}}]);