Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

2 Zeilen
7.7 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,7975,1322],{56036:function(G,_,r){"use strict";r.r(_),r.d(_,{default:function(){return d}});var c=r(39428),T=r(3182),x=r(57663),S=r(71577),W=r(62999),Z=r(54680),g=r(2824),E=r(90631),p=r(67294),O=r(78009),b=r(16894),P=r(53667),A=r.n(P),y=r(48971),L={orderSummaryList:function(e){return e.isreport=!0,(0,y.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,y.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,y.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,y.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,y.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},w=r(3408),M=r(30381),v=r(85893),n=function(){var e=(0,p.useState)([]),I=(0,g.Z)(e,2),U=I[0],H=I[1],N=(0,p.useState)([]),j=(0,g.Z)(N,2),de=j[0],z=j[1],V=(0,p.useState)([]),B=(0,g.Z)(V,2),oe=B[0],J=B[1],Q=(0,p.useState)([]),Y=(0,g.Z)(Q,2),le=Y[0],X=Y[1],q=(0,p.useState)([]),F=(0,g.Z)(q,2),K=F[0],ee=F[1],te=(0,p.useRef)(),re=(0,p.useState)([]),$=(0,g.Z)(re,2),ne=$[0],ae=$[1],ie=(0,p.useState)([]),k=(0,g.Z)(ie,2),ce=k[0],ue=k[1];(0,p.useEffect)(function(){function f(){(0,w.FM)().then(function(i){a(i.data);function a(u){for(var l in u)u[l].type==2||u[l].type==3?u[l].disabled=!1:u[l].disabled=!0,u[l].children&&a(u[l].children)}ae(i.data);var t={};D(i.data);function D(u){for(var l in u)t[u[l].disabled]=!0,t[u[l].value]={text:u[l].title},u[l].children&&D(u[l].children)}ue(t)})}function s(){L.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),H(a)})}function o(){L.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function R(){L.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function m(){L.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),s(),R(),m(),f()},[]);function se(){var f=K.ReqDetailList,s={},o=[];C.map(function(m,i){i>2&&o.push(m)}),s.fileName="\u8BA2\u5355\u6C47\u603B",s.datas=[{sheetData:K.map(function(m){var i={};return C.forEach(function(a,t){t>2&&(i[a.dataIndex]=m[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(m){return m.dataIndex}),sheetHeader:o.map(function(m){return m.title}),columnWidths:o.map(function(){return 9})}];var R=new(A())(s);R.saveExcel()}var C=[{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,v.jsx)(Z.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:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u5E94\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(s){return"".concat(s,"\xA5")},hideInSearch:!0,width:160},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u5B9E\u9645\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:160},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u672A\u652F\u4ED8\u8BA2\u5355",dataIndex:"noPayRealCount",hideInSearch:!0,width:120},{title:"\u672A\u652F\u4ED8\u91D1\u989D",dataIndex:"noPayRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120}];return(0,v.jsx)(O.ZP,{children:(0,v.jsx)(b.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,v.jsxs)(S.Z,{type:"primary",onClick:function(){return se()},children:[(0,v.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:C,request:function(){var f=(0,T.Z)((0,c.Z)().mark(function s(o,R,m){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=U[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,L.orderSummaryList(t).then(function(l){i=l.data.data,a=l.data.total,ee(l.data.data)});case 6:return u.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return u.stop()}},s)}));return function(s,o,R){return f.apply(this,arguments)}}()})})},d=n},3408:function(G,_,r){"use strict";r.d(_,{lM:function(){return W},IH:function(){return g},mm:function(){return b},eP:function(){return A},FM:function(){return M}});var c=r(39428),T=r(11849),x=r(3182),S=r(48971);function W(n,d){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,c.Z)().mark(function n(d,h){return(0,c.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},d)}));case 1:case"end":return I.stop()}},n)})),Z.apply(this,arguments)}function g(n){return E.apply(this,arguments)}function E(){return E=(0,x.Z)((0,c.Z)().mark(function n(d){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)({},d)}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function p(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){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({},d)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function b(n){return P.apply(this,arguments)}function P(){return P=(0,x.Z)((0,c.Z)().mark(function n(d){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)({},d)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function A(n){return y.apply(this,arguments)}function y(){return y=(0,x.Z)((0,c.Z)().mark(function n(d){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)({},d)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}function L(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){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({},d)}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,c.Z)().mark(function n(d){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)({},d)}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}}}]);