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

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7306,7975,1322],{49096:function(H,F,t){"use strict";t.r(F),t.d(F,{default:function(){return k}});var R=t(93224),I=t(2824),v=t(39428),Q=t(34792),g=t(48086),C=t(3182),Z=t(67294),V=t(78009),P=t(16894),m=t(48971),S={orderList:function(e){return(0,m.WY)("/kitchen/api/Order/GetPage",{method:"Post",data:e})},GetPageListLogs:function(e){return(0,m.WY)("/kitchen/api/Order/GetPageListLogs",{method:"Post",params:e})},Update:function(e){return(0,m.WY)("/kitchen/api/Order/Update",{method:"Post",data:e})},srdTypeList:function(e){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},X=t(71194),E=t(50146),a=t(85893),M={},W=function(e){var l=e.ModalVisible,o=e.onCancel;return(0,a.jsx)(E.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:e.ModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return o()},maskClosable:!1,children:(0,a.jsx)(P.ZP,{rowKey:"id",request:(0,C.Z)((0,v.Z)().mark(function d(){return(0,v.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,S.GetPageListLogs({id:e.values.id});case 2:return M=u.sent,u.abrupt("return",{data:M,success:!0});case 4:case"end":return u.stop()}},d)})),columns:[{title:"\u65E5\u5FD7\u7ED3\u679C",key:"desc",dataIndex:"desc"}],toolBarRender:!1,search:!1})})},b=W,q=t(57663),A=t(71577),_=t(9715),x=t(71257),ee=t(47673),B=t(4107),te=t(43358),L=t(34041),G=function(e){var l=L.Z.Option,o=L.Z.OptGroup;return(0,a.jsx)(E.Z,{title:e.values.orderId+"\u552E\u540E\u5904\u7406",width:640,visible:e.updateModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,a.jsxs)(x.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,a.jsx)(x.Z.Item,{name:"id",hidden:!0,children:(0,a.jsx)(B.Z,{})}),(0,a.jsx)(x.Z.Item,{name:"status",label:"\u5904\u7406\u7C7B\u578B",rules:[{required:!0}],children:(0,a.jsxs)(L.Z,{showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5904\u7406\u7C7B\u578B",style:{width:"100%"},children:[(0,a.jsx)(l,{children:"\u62D2\u7EDD"},1),(0,a.jsx)(l,{children:"\u5F00\u59CB\u5904\u7406"},3),(0,a.jsx)(l,{children:"\u540C\u610F\u9000\u6B3E"},4)]})}),(0,a.jsx)(x.Z.Item,{name:"desc",label:"\u5904\u7406\u5907\u6CE8",rules:[{required:!0}],children:(0,a.jsx)(B.Z,{placeholder:"\u8BF7\u8F93\u5165\u5904\u7406\u539F\u56E0"})}),(0,a.jsx)(x.Z.Item,{children:(0,a.jsx)(A.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Y=G,w=["defaultRender"],U=function(){var i=(0,C.Z)((0,v.Z)().mark(function e(l){var o;return(0,v.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=g.default.loading("\u6B63\u5728\u5904\u7406"),r.prev=1,r.next=4,S.Update(JSON.stringify(l)).then(function(u){console.log("fds",u),u.data?g.default.success("\u5904\u7406\u6210\u529F"):g.default.error("\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:return o(),r.abrupt("return",!0);case 8:return r.prev=8,r.t0=r.catch(1),o(),g.default.error("\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 13:case"end":return r.stop()}},e,null,[[1,8]])}));return function(l){return i.apply(this,arguments)}}(),$=function(){var e=(0,Z.useState)(),l=(0,I.Z)(e,2),o=l[0],d=l[1],r=(0,Z.useState)(),u=(0,I.Z)(r,2),K=u[0],O=u[1],J=(0,Z.useState)(!1),D=(0,I.Z)(J,2),N=D[0],j=D[1],T=(0,Z.useRef)(),z=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(n){return{order_CreateTime:n[0],order_EndTime:n[1]}}}},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId"},{title:"\u8BA2\u5355\u91D1\u989D",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u552E\u540E\u539F\u56E0",dataIndex:"why",hideInSearch:!0},{title:"\u552E\u540E\u72B6\u6001",dataIndex:"auditStatus",key:"auditStatus",valueEnum:{0:{text:"\u53D6\u6D88\u7533\u8BF7",status:"success"},1:{text:"\u62D2\u7EDD",status:"success"},2:{text:"\u672A\u5BA1\u6838",status:"warning"},3:{text:"\u5BA1\u6838\u4E2D",status:"Processing"},4:{text:"\u5904\u7406\u5B8C\u6210",status:"success"}}},{title:"\u5904\u7406\u7ED3\u679C",dataIndex:"auditWhy",hideInSearch:!0},{title:"\u5904\u7406\u65F6\u95F4",sorter:!0,dataIndex:"updatedAt",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(n,s,c){var p=s.defaultRender,f=(0,R.Z)(s,w);return p(n)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,s){var c=(0,a.jsx)("a",{},"primary");return s.auditStatus=="2"&&(c=(0,a.jsx)("a",{onClick:function(){j(!0),d(s)},children:"\u5F00\u59CB\u5904\u7406"},"primary")),s.auditStatus=="3"&&(c=(0,a.jsx)("a",{onClick:function(){j(!0),d(s)},children:"\u7EE7\u7EED\u5904\u7406"},"primary")),[(0,a.jsx)("a",{onClick:function(){O(!0),d(s)},children:"\u5904\u7406\u65E5\u5FD7"},"primary"),c]}}];return(0,a.jsxs)(V.ZP,{children:[(0,a.jsx)(P.ZP,{headerTitle:"\u552E\u540E\u7533\u8BF7",actionRef:T,rowKey:"id",search:{labelWidth:120},columns:z,request:function(){var h=(0,C.Z)((0,v.Z)().mark(function n(s,c,p){var f;return(0,v.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,S.orderList(s);case 2:return f=y.sent,y.abrupt("return",{data:f.data.data,success:!0,total:f.data.total});case 4:case"end":return y.stop()}},n)}));return function(n,s,c){return h.apply(this,arguments)}}()}),!!o&&(0,a.jsx)(b,{onCancel:function(){d(void 0),O(!1)},ModalVisible:K,values:o||{}}),(0,a.jsx)(Y,{onFinish:function(){var h=(0,C.Z)((0,v.Z)().mark(function n(s){var c;return(0,v.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return c=!1,f.next=3,U(s);case 3:c=f.sent,c&&(j(!1),d(void 0),T.current&&T.current.reload());case 5:case"end":return f.stop()}},n)}));return function(n){return h.apply(this,arguments)}}(),onCancel:function(){j(!1),d(void 0)},updateModalVisible:N,values:o||{}})]})},k=$}}]);