Você não pode selecionar mais de 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
8.1 KiB

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