Compare commits
10 Commits
6b7e6260c5
...
3f6f03994e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f6f03994e | ||
|
|
6381db650f | ||
|
|
0be8e91b13 | ||
|
|
2ee58d5905 | ||
|
|
e3f5aaa0a3 | ||
|
|
6cb39e317a | ||
|
|
bcf9bb0e35 | ||
|
|
94113c31fa | ||
|
|
ebdea4475d | ||
|
|
5887c00d28 |
@@ -85,9 +85,11 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
// API_URL: "http://guangdongadminapi.zhongshuai2023.com",
|
// API_URL: "http://guangdongadminapi.zhongshuai2023.com",
|
||||||
// API_URL: "https://iadminapi.zhongshuai2023.com",
|
// API_URL: "http://iadminapi.zhongshuai2023.com",
|
||||||
// API_URL: "http://192.168.1.63:1002",
|
API_URL: "http://192.168.112.207:1002",
|
||||||
API_URL: "http://192.168.1.54:1002",
|
// API_URL: "http://guangdongadminapi.zhongshuai2023.com",
|
||||||
|
|
||||||
|
// API_URL: "http://192.168.1.54:1002",
|
||||||
WS_URL: "ws://lv.com",
|
WS_URL: "ws://lv.com",
|
||||||
STATIC_URL: "http://lv.com",
|
STATIC_URL: "http://lv.com",
|
||||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
||||||
|
|||||||
1
dist/1026.d47f1c0b.async.js
vendored
Normal file
1
dist/1026.d47f1c0b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/193.a9a204fa.async.js
vendored
10
dist/193.a9a204fa.async.js
vendored
File diff suppressed because one or more lines are too long
1
dist/2438.454aa9bd.async.js
vendored
1
dist/2438.454aa9bd.async.js
vendored
File diff suppressed because one or more lines are too long
1
dist/2438.f4c008f0.async.js
vendored
Normal file
1
dist/2438.f4c008f0.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/5700.2ead67d6.async.js
vendored
Normal file
1
dist/5700.2ead67d6.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/5700.ad6b6f90.async.js
vendored
1
dist/5700.ad6b6f90.async.js
vendored
File diff suppressed because one or more lines are too long
10
dist/5861.1641a54e.async.js
vendored
Normal file
10
dist/5861.1641a54e.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/6709.aba45457.async.js
vendored
10
dist/6709.aba45457.async.js
vendored
File diff suppressed because one or more lines are too long
10
dist/7117.7703a87e.async.js
vendored
Normal file
10
dist/7117.7703a87e.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/9710.0b439577.async.js
vendored
Normal file
10
dist/9710.0b439577.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.9848ee1f.js"></script>
|
<script src="/umi.24ab5343.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__activity__513__index.cb8f1c71.async.js
vendored
Normal file
1
dist/src__pages__activity__513__index.cb8f1c71.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__activity__607__components__CreateFormModal.62590a13.async.js
vendored
Normal file
1
dist/src__pages__activity__607__components__CreateFormModal.62590a13.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8282],{63123:function(B,M,e){e.d(M,{Z:function(){return d}});var o=e(35361),u=e(56929),t=e(50959),l=e(71252),p=e(20734),P=e(11527),h=["proFieldProps","fieldProps"],C="date",x=t.forwardRef(function(r,i){var _=r.proFieldProps,a=r.fieldProps,v=(0,u.Z)(r,h),F=(0,t.useContext)(l.Z);return(0,P.jsx)(p.Z,(0,o.Z)({ref:i,valueType:C,fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},a),proFieldProps:_,filedConfig:{valueType:C,customLightMode:!0}},v))}),m=x,O=["proFieldProps","fieldProps"],c="dateMonth",g=t.forwardRef(function(r,i){var _=r.proFieldProps,a=r.fieldProps,v=(0,u.Z)(r,O),F=(0,t.useContext)(l.Z);return(0,P.jsx)(p.Z,(0,o.Z)({ref:i,valueType:c,fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},a),proFieldProps:_,filedConfig:{valueType:c,customLightMode:!0}},v))}),s=g,f=["fieldProps"],E="dateQuarter",Z=t.forwardRef(function(r,i){var _=r.fieldProps,a=(0,u.Z)(r,f),v=(0,t.useContext)(l.Z);return(0,P.jsx)(p.Z,(0,o.Z)({ref:i,valueType:E,fieldProps:(0,o.Z)({getPopupContainer:v.getPopupContainer},_),filedConfig:{valueType:E,customLightMode:!0}},a))}),R=Z,j=["proFieldProps","fieldProps"],D="dateWeek",A=t.forwardRef(function(r,i){var _=r.proFieldProps,a=r.fieldProps,v=(0,u.Z)(r,j),F=(0,t.useContext)(l.Z);return(0,P.jsx)(p.Z,(0,o.Z)({ref:i,valueType:D,fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},a),proFieldProps:_,filedConfig:{valueType:D,customLightMode:!0}},v))}),T=A,L=["proFieldProps","fieldProps"],y="dateYear",b=t.forwardRef(function(r,i){var _=r.proFieldProps,a=r.fieldProps,v=(0,u.Z)(r,L),F=(0,t.useContext)(l.Z);return(0,P.jsx)(p.Z,(0,o.Z)({ref:i,valueType:y,fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},a),proFieldProps:_,filedConfig:{valueType:y,customLightMode:!0}},v))}),W=b,n=m;n.Week=T,n.Month=s,n.Quarter=R,n.Year=W,n.displayName="ProFormComponent";var d=n},35748:function(B,M,e){var o=e(35361),u=e(56929),t=e(50959),l=e(20734),p=e(11527),P=["fieldProps","min","proFieldProps","max"],h=function(m,O){var c=m.fieldProps,g=m.min,s=m.proFieldProps,f=m.max,E=(0,u.Z)(m,P);return(0,p.jsx)(l.Z,(0,o.Z)({valueType:"digit",fieldProps:(0,o.Z)({min:g,max:f},c),ref:O,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:s},E))},C=t.forwardRef(h);M.Z=C},88857:function(B,M,e){e.r(M);var o=e(90228),u=e.n(o),t=e(87999),l=e.n(t),p=e(48305),P=e.n(p),h=e(5e4),C=e(49547),x=e(19014),m=e(63123),O=e(35748),c=e(50959),g=e(2733),s=e(11527);M.default=function(f){var E=f.values,Z=f.modalOpenState,R=f.onModalOpenState,j=f.onSubmit,D=(0,c.useRef)(),A=(0,c.useState)([]),T=P()(A,2),L=T[0],y=T[1],b=function(d){console.log(d)};(0,c.useEffect)(function(){var n;(n=D.current)===null||n===void 0||n.setFieldsValue(E)},[E]);var W=function(){var n=l()(u()().mark(function d(r){var i;return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,j(r);case 2:(i=D.current)===null||i===void 0||i.resetFields();case 3:case"end":return a.stop()}},d)}));return function(r){return n.apply(this,arguments)}}();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(h.Y,{title:"\u4E70\u5341\u8D60\u4E00\u6D3B\u52A8",formRef:D,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var d;(d=D.current)===null||d===void 0||d.resetFields()}}},initialValues:E,onFinish:W,open:Z,onOpenChange:R,children:(0,s.jsxs)(C.A.Group,{children:[(0,s.jsx)(x.Z,{width:"md",name:"userName",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,s.jsx)(x.Z,{width:"md",name:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},{pattern:/^1[3-9]\d{9}$/,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7"}]}),(0,s.jsx)(m.Z,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],name:"confirmDate",label:"\u8BA4\u9886\u65E5\u671F"}),(0,s.jsx)(O.Z,{name:"count",label:"\u8D60\u9001\u6570\u91CF"})]})})})}}}]);
|
||||||
1
dist/src__pages__activity__607__components__ShowDataModal.9aa64d87.async.js
vendored
Normal file
1
dist/src__pages__activity__607__components__ShowDataModal.9aa64d87.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__activity__607__index.cc93798c.async.js
vendored
Normal file
1
dist/src__pages__activity__607__index.cc93798c.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__activity__813__index.0be5ffe8.async.js
vendored
Normal file
1
dist/src__pages__activity__813__index.0be5ffe8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__activity__activity__index.16f0f8a1.async.js
vendored
Normal file
1
dist/src__pages__activity__activity__index.16f0f8a1.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__banner__edit.54ef7c91.async.js
vendored
Normal file
1
dist/src__pages__config__banner__edit.54ef7c91.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(f,a,e){var r=e(35361),t=e(56929),u=e(50959),i=e(20734),s=e(11527),m=["fieldProps","min","proFieldProps","max"],E=function(l,P){var p=l.fieldProps,d=l.min,n=l.proFieldProps,D=l.max,h=(0,t.Z)(l,m);return(0,s.jsx)(i.Z,(0,r.Z)({valueType:"digit",fieldProps:(0,r.Z)({min:d,max:D},p),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:n},h))},_=u.forwardRef(E);a.Z=_},34927:function(f,a,e){var r=e(35361),t=e(56929),u=e(89558),i=e(47186),s=e(50959),m=e(50756),E=e(20734),_=e(11527),O=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],l=s.forwardRef(function(n,D){var h=n.fieldProps,M=n.options,o=n.radioType,F=n.layout,B=n.proFieldProps,v=n.valueEnum,A=(0,t.Z)(n,O);return(0,_.jsx)(E.Z,(0,r.Z)((0,r.Z)({valueType:o==="button"?"radioButton":"radio",ref:D,valueEnum:(0,u.h)(v,void 0)},A),{},{fieldProps:(0,r.Z)({options:M,layout:F},h),proFieldProps:B,filedConfig:{customLightMode:!0}}))}),P=s.forwardRef(function(n,D){var h=n.fieldProps,M=n.children;return(0,_.jsx)(i.ZP,(0,r.Z)((0,r.Z)({},h),{},{ref:D,children:M}))}),p=(0,m.G)(P,{valuePropName:"checked",ignoreWidth:!0}),d=p;d.Group=l,d.Button=i.ZP.Button,d.displayName="ProFormComponent",a.Z=d},92323:function(f,a,e){var r=e(35361),t=e(56929),u=e(50959),i=e(20734),s=e(11527),m=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],E=u.forwardRef(function(_,O){var l=_.fieldProps,P=_.unCheckedChildren,p=_.checkedChildren,d=_.proFieldProps,n=(0,t.Z)(_,m);return(0,s.jsx)(i.Z,(0,r.Z)({valueType:"switch",fieldProps:(0,r.Z)({unCheckedChildren:P,checkedChildren:p},l),ref:O,valuePropName:"checked",proFieldProps:d,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},n))});a.Z=E},33245:function(f,a,e){e.r(a);var r=e(90228),t=e.n(r),u=e(87999),i=e.n(u),s=e(48305),m=e.n(s),E=e(50959),_=e(49547),O=e(35748),l=e(19014),P=e(92323),p=e(34927),d=e(50925),n=e(94675),D=e(3598),h=e(7485),M=e(2733),o=e(11527),F=function(v){var A=d.Z.useForm(),I=m()(A,1),c=I[0],C=v.values;(0,E.useEffect)(function(){console.log(C,"values"),c.resetFields(),c.setFieldsValue(C)},[c,v]);var K=(0,h.useIntl)(),U=function(){c.submit()},L=function(){v.onCancel()},x=function(){var R=i()(t()().mark(function j(W){return t()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:v.onSubmit(W);case 1:case"end":return T.stop()}},j)}));return function(W){return R.apply(this,arguments)}}();return(0,o.jsx)(n.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:v.open,forceRender:!0,destroyOnClose:!0,onOk:U,onCancel:L,children:(0,o.jsxs)(_.A,{form:c,submitter:!1,layout:"horizontal",onFinish:x,children:[(0,o.jsx)(O.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,o.jsx)(_.A.Group,{children:(0,o.jsx)(l.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,o.jsxs)(_.A.Group,{children:[(0,o.jsx)(_.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,o.jsx)(D.Z,{style:{width:200}})}),(0,o.jsx)(l.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,o.jsx)(P.Z,{checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,o.jsx)(p.Z.Group,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],name:"type",radioType:"button",label:"\u4F4D\u7F6E",options:[{label:"\u9996\u9875Banner",value:1},{label:"\u9996\u9875\u4E0B\u65B9\u6D3B\u52A8",value:2},{label:"\u65B0\u80FD\u6E90\u6C7D\u8F66\u4E0B\u4E61",value:3}]}),(0,o.jsx)(_.A.Group,{children:(0,o.jsx)(_.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,o.jsx)(M.Z,{fileType:"image",defaultValue:C==null?void 0:C.imageUrl,count:1,mode:""})})})]})})};a.default=F}}]);
|
||||||
@@ -1 +0,0 @@
|
|||||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),i=e(11527),s=["fieldProps","min","proFieldProps","max"],u=function(r,m){var E=r.fieldProps,P=r.min,h=r.proFieldProps,M=r.max,C=(0,o.Z)(r,s);return(0,i.jsx)(a.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:P,max:M},E),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:h},C))},_=t.forwardRef(u);d.Z=_},92323:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),i=e(11527),s=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],u=t.forwardRef(function(_,p){var r=_.fieldProps,m=_.unCheckedChildren,E=_.checkedChildren,P=_.proFieldProps,h=(0,o.Z)(_,s);return(0,i.jsx)(a.Z,(0,l.Z)({valueType:"switch",fieldProps:(0,l.Z)({unCheckedChildren:m,checkedChildren:E},r),ref:p,valuePropName:"checked",proFieldProps:P,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},h))});d.Z=u},33245:function(A,d,e){e.r(d);var l=e(90228),o=e.n(l),t=e(87999),a=e.n(t),i=e(48305),s=e.n(i),u=e(50959),_=e(49547),p=e(35748),r=e(19014),m=e(92323),E=e(50925),P=e(94675),h=e(3598),M=e(7485),C=e(2733),n=e(11527),R=function(D){var T=E.Z.useForm(),x=s()(T,1),c=x[0],O=D.values;(0,u.useEffect)(function(){console.log(O,"values"),c.resetFields(),c.setFieldsValue(O)},[c,D]);var L=(0,M.useIntl)(),I=function(){c.submit()},U=function(){D.onCancel()},W=function(){var v=a()(o()().mark(function F(j){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:D.onSubmit(j);case 1:case"end":return f.stop()}},F)}));return function(j){return v.apply(this,arguments)}}();return(0,n.jsx)(P.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:D.open,forceRender:!0,destroyOnClose:!0,onOk:I,onCancel:U,children:(0,n.jsxs)(_.A,{form:c,submitter:!1,layout:"horizontal",onFinish:W,children:[(0,n.jsx)(p.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(r.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,n.jsxs)(_.A.Group,{children:[(0,n.jsx)(_.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,n.jsx)(h.Z,{style:{width:200}})}),(0,n.jsx)(r.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,n.jsx)(m.Z,{checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(_.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,n.jsx)(C.Z,{fileType:"image",defaultValue:O==null?void 0:O.imageUrl,count:1,mode:""})})})]})})};d.default=R}}]);
|
|
||||||
1
dist/src__pages__config__banner__index.d8eb5b6e.async.js
vendored
Normal file
1
dist/src__pages__config__banner__index.d8eb5b6e.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__config__index.c34c2b5a.async.js
vendored
Normal file
1
dist/src__pages__config__config__index.c34c2b5a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1418],{68161:function(f,v,n){n.r(v);var x=n(26068),u=n.n(x),T=n(67825),c=n.n(T),j=n(90228),m=n.n(j),A=n(87999),h=n.n(A),M=n(48305),E=n.n(M),b=n(19869),p=n(50959),P=n(98984),R=n(16030),B=n(35384),D=n(49523),C=n(52495),d=n(11527),L=["type","defaultRender","formItemProps","fieldProps"],W=["type","defaultRender","formItemProps","fieldProps"],K=function(){var U=(0,p.useRef)(),g=(0,p.useState)([]),y=E()(g,2),S=y[0],F=y[1],G=(0,p.useState)(null),I=E()(G,2),J=I[0],N=I[1],$=function(){var a=h()(m()().mark(function _(e){var r,o,s;return m()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,C.rb)({userId:e});case 2:r=l.sent,o=r.success,s=r.data,s.records.map(function(t){t.userName=t.userName+" "+t.phone}),F(s.records);case 7:case"end":return l.stop()}},_)}));return function(e){return a.apply(this,arguments)}}(),Z=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(_,e){return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{children:["\u7528\u6237ID:",e==null?void 0:e.userId]}),(0,d.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null?void 0:e.userName]}),(0,d.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]}),(0,d.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.level]})]})},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,L);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u6216\u624B\u673A\u53F7",style:{width:"100%"},filterOption:!1,onSearch:function(O){O&&$(O)},fieldNames:{label:"userName",value:"id"},options:S}))}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text",search:!1},{title:"\u51BB\u7ED3\u4F59\u989D",dataIndex:"freezePoints",valueType:"text",search:!1},{title:"\u7C7B\u578B",dataIndex:"pointType",valueType:"text",search:!1,render:function(_,e){return _==1?"\u6536\u76CA":"\u4F59\u989D"}},{title:"\u8BB0\u5F55\u7C7B\u578B",dataIndex:"type",valueType:"text",search:!0,render:function(_,e){var r,o=D;return(r=o.find(function(s){return s.id==e.type}))===null||r===void 0?void 0:r.name},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,W);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:D}))}},{title:"\u5907\u6CE8",dataIndex:"remarks",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"dateRange",search:{transform:function(_){return{createTimeBegin:_[0],createTimeEnd:_[1]}}},render:function(_,e){return e==null?void 0:e.createTime}}];return(0,d.jsx)(R._z,{children:(0,d.jsx)("div",{style:{width:"100%",float:"right"},children:(0,d.jsx)(B.Z,{actionRef:U,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[]},request:function(){var a=h()(m()().mark(function _(e,r,o){var s,i;return m()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return N(e),t.next=3,(0,b.xQ)(e);case 3:return s=t.sent,i=s.data,t.abrupt("return",{data:(i==null?void 0:i.records)||[],total:i==null?void 0:i.total});case 6:case"end":return t.stop()}},_)}));return function(_,e,r){return a.apply(this,arguments)}}(),columns:Z},"logList")})})};v.default=K},49523:function(f){f.exports=JSON.parse('[{"name":"\u5145\u503C","id":1100},{"name":"\u540E\u53F0\u5145\u503C","id":1200},{"name":"\u540E\u53F0\u5212\u6263","id":1201},{"name":"\u8D2D\u4E70\u5546\u54C1","id":2100},{"name":"\u5546\u54C1\u63A8\u5E7F","id":2110},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34","id":2120},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34","id":2130},{"name":"\u8D2D\u4E70\u5546\u54C1-\u9000\u5355","id":2200},{"name":"\u5546\u54C1\u63A8\u5E7F-\u9000\u5355","id":2210},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":2220},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":2230},{"name":"\u5145\u7535\u6869\u6536\u76CA","id":3100},{"name":"\u5145\u7535\u6869\u63A8\u5E7F","id":3110},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34","id":3120},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34","id":3130},{"name":"\u5145\u7535\u6869\u6536\u76CA-\u9000\u5355","id":3200},{"name":"\u5145\u7535\u6869\u63A8\u5E7F-\u9000\u5355","id":3210},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":3220},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":3230},{"name":"\u63D0\u73B0","id":4100},{"name":"\u63D0\u73B0\u5931\u8D25","id":4200},{"name":"\u8F6C\u8D60\u4ED8\u6B3E","id":5100},{"name":"\u8F6C\u8D60\u6536\u6B3E","id":5200},{"name":"\u8F6C\u6362\u51CF\u5C11","id":6100},{"name":"\u8F6C\u6362\u589E\u52A0","id":6200}]')}}]);
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1418],{68161:function(f,v,n){n.r(v);var x=n(26068),u=n.n(x),T=n(67825),c=n.n(T),j=n(90228),m=n.n(j),A=n(87999),h=n.n(A),M=n(48305),E=n.n(M),b=n(19869),p=n(50959),P=n(98984),R=n(16030),B=n(35384),D=n(49523),C=n(52495),d=n(11527),L=["type","defaultRender","formItemProps","fieldProps"],W=["type","defaultRender","formItemProps","fieldProps"],K=function(){var U=(0,p.useRef)(),g=(0,p.useState)([]),y=E()(g,2),S=y[0],F=y[1],G=(0,p.useState)(null),I=E()(G,2),J=I[0],N=I[1],$=function(){var a=h()(m()().mark(function _(e){var r,o,s;return m()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,C.rb)({userId:e});case 2:r=l.sent,o=r.success,s=r.data,s.records.map(function(t){t.userName=t.userName+" "+t.phone}),F(s.records);case 7:case"end":return l.stop()}},_)}));return function(e){return a.apply(this,arguments)}}(),Z=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(_,e){return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{children:["\u7528\u6237ID:",e==null?void 0:e.userId]}),(0,d.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null?void 0:e.userName]}),(0,d.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]}),(0,d.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.level]})]})},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,L);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u6216\u624B\u673A\u53F7",style:{width:"100%"},filterOption:!1,onSearch:function(O){O&&$(O)},fieldNames:{label:"userName",value:"id"},options:S}))}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text",search:!1},{title:"\u51BB\u7ED3\u4F59\u989D",dataIndex:"freezePoints",valueType:"text",search:!1},{title:"\u7C7B\u578B",dataIndex:"pointType",valueType:"text",search:!1,render:function(_,e){return _==1?"\u6536\u76CA":"\u4F59\u989D"}},{title:"\u8BB0\u5F55\u7C7B\u578B",dataIndex:"type",valueType:"text",search:!0,render:function(_,e){var r,o=D;return(r=o.find(function(s){return s.id==e.type}))===null||r===void 0?void 0:r.name},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,W);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:D}))}},{title:"\u5907\u6CE8",dataIndex:"remarks",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"dateRange",search:{transform:function(_){return{createTimeBegin:_[0],createTimeEnd:_[1]}}},render:function(_,e){return e==null?void 0:e.createTime}}];return(0,d.jsx)(R._z,{children:(0,d.jsx)("div",{style:{width:"100%",float:"right"},children:(0,d.jsx)(B.Z,{actionRef:U,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[]},request:function(){var a=h()(m()().mark(function _(e,r,o){var s,i;return m()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return N(e),t.next=3,(0,b.xQ)(e);case 3:return s=t.sent,i=s.data,t.abrupt("return",{data:(i==null?void 0:i.records)||[],total:i==null?void 0:i.total});case 6:case"end":return t.stop()}},_)}));return function(_,e,r){return a.apply(this,arguments)}}(),columns:Z},"logList")})})};v.default=K},49523:function(f){f.exports=JSON.parse('[{"name":"\u5145\u503C","id":1100},{"name":"\u540E\u53F0\u5145\u503C","id":1200},{"name":"\u540E\u53F0\u5212\u6263","id":1201},{"name":"\u8D2D\u4E70\u5546\u54C1","id":2100},{"name":"\u5546\u54C1\u63A8\u5E7F","id":2110},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34","id":2120},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34","id":2130},{"name":"\u8D2D\u4E70\u5546\u54C1-\u9000\u5355","id":2200},{"name":"\u5546\u54C1\u63A8\u5E7F-\u9000\u5355","id":2210},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":2220},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":2230},{"name":"\u5145\u7535\u6869\u6536\u76CA","id":3100},{"name":"\u5145\u7535\u6869\u63A8\u5E7F","id":3110},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34","id":3120},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34","id":3130},{"name":"\u5145\u7535\u6869\u6536\u76CA-\u9000\u5355","id":3200},{"name":"\u5145\u7535\u6869\u63A8\u5E7F-\u9000\u5355","id":3210},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":3220},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":3230},{"name":"\u63D0\u73B0","id":4100},{"name":"\u63D0\u73B0\u5931\u8D25","id":4200},{"name":"\u8F6C\u8D60\u4ED8\u6B3E","id":5100},{"name":"\u8F6C\u8D60\u6536\u6B3E","id":5200},{"name":"\u8F6C\u6362\u51CF\u5C11","id":6100},{"name":"\u8F6C\u6362\u589E\u52A0","id":6200},{"name":"\u8F6C\u8D26\u5230\u661F\u68A6","id":7100}]')}}]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__goods__$id__create.cf08c9fb.async.js
vendored
Normal file
1
dist/src__pages__goods__$id__create.cf08c9fb.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__goods__$id__update.b052286c.async.js
vendored
Normal file
1
dist/src__pages__goods__$id__update.b052286c.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__goods__index.b8f4e03d.async.js
vendored
Normal file
1
dist/src__pages__goods__index.b8f4e03d.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3759],{63937:function(R,P,n){n.r(P);var D=n(90228),r=n.n(D),O=n(87999),i=n.n(O),l=n(72951),c=n(7485),h=n(50959),M=n(52221),f=n(47698),C=n(45321),m=n(50159),x=n(16030),v=n(35384),s=n(75343),a=n(11527),E=function(){var I=(0,h.useRef)(),A=(0,c.useAccess)(),U=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",valueType:"text",search:!0},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1,render:function(u,e){return e!=null&&e.itemType?(e==null?void 0:e.itemType)+"KW":"-"}},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"purposeType",valueType:"text",search:!1,render:function(u,e){return(e==null?void 0:e.purposeType)==1?"\u5546\u7528\u8FD0\u7EF4\u7248":(e==null?void 0:e.purposeType)==2?"\u5546\u7528\u5408\u4F5C\u7248":(e==null?void 0:e.purposeType)==3?"\u5BB6\u5EAD\u4E13\u4E1A\u7248":"-"}},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(u,e){var _=e.picture?JSON.parse(e.picture)[0]:"";return _?(0,a.jsx)(M.Z,{src:_,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(u,e){var _=function(){var j=i()(r()().mark(function T(d){var g,o;return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return g=JSON.parse(JSON.stringify(e)),g.isUp=d?1:0,y.next=4,(0,l.Ge)(g);case 4:o=y.sent,f.ZP.success(d?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),I.current&&I.current.reload();case 7:case"end":return y.stop()}},T)}));return function(d){return j.apply(this,arguments)}}();return(0,a.jsx)(C.Z,{checkedChildren:"\u4E0A\u67B6",value:e.isUp==1,unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:_})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(u,e){return[(0,a.jsx)(m.ZP,{type:"link",size:"small",hidden:!A.hasPerms("/api/goods/update"),onClick:function(){c.history.push("goods/".concat(e.id,"/update"))},children:"\u7F16\u8F91"})]}}];return(0,a.jsx)(x._z,{children:(0,a.jsx)("div",{style:{width:"100%",float:"right"},children:(0,a.jsx)(v.Z,{actionRef:I,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,a.jsxs)(m.ZP,{type:"primary",hidden:!A.hasPerms("/api/goods/add"),onClick:i()(r()().mark(function u(){return r()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:c.history.push("goods/0/create");case 1:case"end":return _.stop()}},u)})),children:[(0,a.jsx)(s.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var p=i()(r()().mark(function u(e,_,j){var T,d;return r()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,l.k5)(e);case 2:return T=o.sent,d=T.data,o.abrupt("return",{data:(d==null?void 0:d.records)||[],total:d==null?void 0:d.total});case 5:case"end":return o.stop()}},u)}));return function(u,e,_){return p.apply(this,arguments)}}(),columns:U},"goodsList")})})};P.default=E},72951:function(R,P,n){n.d(P,{Ge:function(){return C},VT:function(){return x},Y:function(){return M},k5:function(){return c}});var D=n(90228),r=n.n(D),O=n(87999),i=n.n(O),l=n(7485);function c(s){return h.apply(this,arguments)}function h(){return h=i()(r()().mark(function s(a){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.request)("/api/goods/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return t.stop()}},s)})),h.apply(this,arguments)}function M(s){return f.apply(this,arguments)}function f(){return f=i()(r()().mark(function s(a){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.request)("/api/goods/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return t.stop()}},s)})),f.apply(this,arguments)}function C(s){return m.apply(this,arguments)}function m(){return m=i()(r()().mark(function s(a){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.request)("/api/goods/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return t.stop()}},s)})),m.apply(this,arguments)}function x(s){return v.apply(this,arguments)}function v(){return v=i()(r()().mark(function s(a){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.request)("/api/goods/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:a}));case 1:case"end":return t.stop()}},s)})),v.apply(this,arguments)}}}]);
|
||||||
@@ -1 +0,0 @@
|
|||||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3759],{63937:function(R,g,e){e.r(g);var y=e(90228),r=e.n(y),O=e(87999),u=e.n(O),l=e(72951),m=e(7485),h=e(50959),M=e(52221),f=e(47698),C=e(45321),p=e(50159),I=e(16030),E=e(35384),_=e(75343),a=e(11527),v=function(){var x=(0,h.useRef)(),A=(0,m.useAccess)(),U=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",valueType:"text",search:!0},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1,render:function(i,t){return t!=null&&t.itemType?(t==null?void 0:t.itemType)+"KW":"-"}},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(i,t){var s=t.picture?JSON.parse(t.picture)[0]:"";return s?(0,a.jsx)(M.Z,{src:s,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(i,t){var s=function(){var j=u()(r()().mark(function P(d){var D,o;return r()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return D=JSON.parse(JSON.stringify(t)),D.isUp=d?1:0,T.next=4,(0,l.Ge)(D);case 4:o=T.sent,f.ZP.success(d?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),x.current&&x.current.reload();case 7:case"end":return T.stop()}},P)}));return function(d){return j.apply(this,arguments)}}();return(0,a.jsx)(C.Z,{checkedChildren:"\u4E0A\u67B6",value:t.isUp==1,unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:s})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(i,t){return[(0,a.jsx)(p.ZP,{type:"link",size:"small",hidden:!A.hasPerms("/api/goods/update"),onClick:function(){m.history.push("goods/".concat(t.id,"/update"))},children:"\u7F16\u8F91"})]}}];return(0,a.jsx)(I._z,{children:(0,a.jsx)("div",{style:{width:"100%",float:"right"},children:(0,a.jsx)(E.Z,{actionRef:x,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,a.jsxs)(p.ZP,{type:"primary",hidden:!A.hasPerms("/api/goods/add"),onClick:u()(r()().mark(function i(){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:m.history.push("goods/0/create");case 1:case"end":return s.stop()}},i)})),children:[(0,a.jsx)(_.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var c=u()(r()().mark(function i(t,s,j){var P,d;return r()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,l.k5)(t);case 2:return P=o.sent,d=P.data,o.abrupt("return",{data:(d==null?void 0:d.records)||[],total:d==null?void 0:d.total});case 5:case"end":return o.stop()}},i)}));return function(i,t,s){return c.apply(this,arguments)}}(),columns:U},"goodsList")})})};g.default=v},72951:function(R,g,e){e.d(g,{Ge:function(){return C},VT:function(){return I},Y:function(){return M},k5:function(){return m}});var y=e(90228),r=e.n(y),O=e(87999),u=e.n(O),l=e(7485);function m(_){return h.apply(this,arguments)}function h(){return h=u()(r()().mark(function _(a){return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/goods/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},_)})),h.apply(this,arguments)}function M(_){return f.apply(this,arguments)}function f(){return f=u()(r()().mark(function _(a){return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/goods/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},_)})),f.apply(this,arguments)}function C(_){return p.apply(this,arguments)}function p(){return p=u()(r()().mark(function _(a){return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/goods/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},_)})),p.apply(this,arguments)}function I(_){return E.apply(this,arguments)}function E(){return E=u()(r()().mark(function _(a){return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/goods/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:a}));case 1:case"end":return n.stop()}},_)})),E.apply(this,arguments)}}}]);
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6109],{3599:function(b,T,a){a.r(T);var g=a(48305),r=a.n(g),m=a(50959),i=a(94675),l=a(33917),v=a(92790),u=a(11527);T.default=function(h){var s=h.values,y=h.modalOpenState,d=h.onModalOpenState,O=(0,m.useState)(null),p=r()(O,2),j=p[0],E=p[1],C=(0,m.useState)(null),c=r()(C,2),P=c[0],f=c[1];(0,m.useEffect)(function(){s!=null&&s.id&&(0,v.QN)(s==null?void 0:s.id).then(function(o){var n=o.data;f(n||[])}).catch(function(){})},[s]);var D=[{title:"id",dataIndex:"id",search:!1},{title:"\u6295\u8D44\u4EBA",dataIndex:"shop",search:!1,render:function(n,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",t==null?void 0:t.userName]}),(0,u.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",t==null?void 0:t.phone]}),(0,u.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",t==null?void 0:t.level]})]})}},{title:"\u7C7B\u578B",dataIndex:"typeValue",search:!1},{title:"\u91D1\u989D",dataIndex:"points",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",search:!1}];return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(i.Z,{width:"800px",title:"\u5206\u7EA2",open:y,onOk:function(){d(!1)},onCancel:function(){d(!1)},children:(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(l.Z,{rowKey:"id",columns:D,dataSource:P,pagination:!1})})})})}},92790:function(b,T,a){a.d(T,{KP:function(){return C},Lp:function(){return O},QN:function(){return y},a5:function(){return j},aT:function(){return v},nr:function(){return D},sb:function(){return P},tX:function(){return h}});var g=a(90228),r=a.n(g),m=a(87999),i=a.n(m),l=a(7485);function v(n){return u.apply(this,arguments)}function u(){return u=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),u.apply(this,arguments)}function h(n){return s.apply(this,arguments)}function s(){return s=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),s.apply(this,arguments)}function y(n){return d.apply(this,arguments)}function d(){return d=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/orderIncomeList?id=".concat(t),{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},n)})),d.apply(this,arguments)}function O(n){return p.apply(this,arguments)}function p(){return p=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/orderRefund",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),p.apply(this,arguments)}function j(n){return E.apply(this,arguments)}function E(){return E=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/getWeiXinCollect",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function C(n){return c.apply(this,arguments)}function c(){return c=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/getCollect",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),c.apply(this,arguments)}function P(n){return f.apply(this,arguments)}function f(){return f=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/getBalance",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),f.apply(this,arguments)}function D(n){return o.apply(this,arguments)}function o(){return o=i()(r()().mark(function n(t){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/orders/getZhiFuBaoCollect",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return e.stop()}},n)})),o.apply(this,arguments)}}}]);
|
|
||||||
1
dist/src__pages__order__components__BonusFormModal.16017d75.async.js
vendored
Normal file
1
dist/src__pages__order__components__BonusFormModal.16017d75.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__components__EscFormModal.bd53964e.async.js
vendored
Normal file
1
dist/src__pages__order__components__EscFormModal.bd53964e.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__components__OrderExportForm.3a260dfb.async.js
vendored
Normal file
1
dist/src__pages__order__components__OrderExportForm.3a260dfb.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[321],{76237:function(v,a,e){e.r(a);var m=e(90228),u=e.n(m),p=e(87999),E=e.n(p),c=e(5e4),d=e(19014),h=e(49547),D=e(50959),n=e(11527);a.default=function(r){var O=r.modalOpenState,M=r.onModalOpenState,P=r.onSubmit,o=(0,D.useRef)(),f=function(){var i=E()(u()().mark(function _(l){var s;return u()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P(l);case 2:(s=o.current)===null||s===void 0||s.resetFields();case 3:case"end":return t.stop()}},_)}));return function(l){return i.apply(this,arguments)}}();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(c.Y,{title:"\u56E2\u961F\u7EDF\u8BA1\u5BFC\u51FA",formRef:o,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var _;(_=o.current)===null||_===void 0||_.resetFields()}}},onFinish:f,open:O,onOpenChange:M,children:[(0,n.jsx)(d.Z,{hidden:!0,width:"md",name:"id"}),(0,n.jsx)(h.A.Group,{children:(0,n.jsx)(d.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],width:"md",name:"userName",label:"\u56E2\u961F\u957F\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165"})})]})})}}}]);
|
||||||
1
dist/src__pages__order__fahuo.4e589fb6.async.js
vendored
Normal file
1
dist/src__pages__order__fahuo.4e589fb6.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5873],{35748:function(x,o,_){var d=_(35361),l=_(56929),m=_(50959),E=_(20734),D=_(11527),s=["fieldProps","min","proFieldProps","max"],u=function(n,P){var O=n.fieldProps,M=n.min,p=n.proFieldProps,i=n.max,v=(0,l.Z)(n,s);return(0,D.jsx)(E.Z,(0,d.Z)({valueType:"digit",fieldProps:(0,d.Z)({min:M,max:i},O),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:p},v))},r=m.forwardRef(u);o.Z=r},31185:function(x,o,_){_.r(o);var d=_(90228),l=_.n(d),m=_(87999),E=_.n(m),D=_(48305),s=_.n(D),u=_(50959),r=_(49547),c=_(35748),n=_(19014),P=_(50925),O=_(94675),M=_(7485),p=_(66001),i=_.n(p),v=_(8776),e=_(11527),C=function(t){var R=(0,u.useState)(i().createEditorState("")),f=s()(R,2),y=f[0],T=f[1],b=P.Z.useForm(),I=s()(b,1),a=I[0],F=t.values;(0,u.useEffect)(function(){T(i().createEditorState(F.detail)),a.resetFields(),a.setFieldsValue(F)},[a,t]);var g=(0,M.useIntl)(),W=function(){a.submit()},K=function(){t.onCancel()},L=function(){var h=E()(l()().mark(function B(j){return l()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:t.onSubmit(j);case 1:case"end":return A.stop()}},B)}));return function(j){return h.apply(this,arguments)}}();return(0,e.jsx)(O.Z,{width:800,title:"\u53D1\u8D27",open:t.open,forceRender:!0,destroyOnClose:!0,onOk:W,onCancel:K,children:(0,e.jsxs)(r.A,{form:a,submitter:!1,layout:"horizontal",onFinish:L,children:[(0,e.jsx)(c.Z,{name:"orderId",label:"orderId",disabled:!0,hidden:!0}),(0,e.jsx)(r.A.Group,{children:(0,e.jsx)(n.Z,{name:"takeName",label:"\u6536\u8D27\u4EBA\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u6536\u8D27\u4EBA\u59D3\u540D"})}),(0,e.jsx)(r.A.Group,{children:(0,e.jsx)(n.Z,{name:"takePhone",label:"\u6536\u8D27\u4EBA\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165\u6536\u8D27\u4EBA\u7535\u8BDD"})}),(0,e.jsx)(r.A.Group,{children:(0,e.jsx)(n.Z,{name:"takeAddress",label:"\u6536\u8D27\u4EBA\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u6536\u8D27\u4EBA\u5730\u5740"})}),(0,e.jsx)(r.A.Group,{children:(0,e.jsx)(n.Z,{name:"expressName",label:"\u5FEB\u9012\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u5FEB\u9012\u540D\u79F0"})}),(0,e.jsx)(r.A.Group,{children:(0,e.jsx)(n.Z,{name:"expressNumber",label:"\u5FEB\u9012\u5355\u53F7",placeholder:"\u8BF7\u8F93\u5165\u5FEB\u9012\u5355\u53F7"})})]})})};o.default=C}}]);
|
||||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__index.588b868a.async.js
vendored
Normal file
1
dist/src__pages__order__index.588b868a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__payment__index.24c2ac80.async.js
vendored
Normal file
1
dist/src__pages__payment__index.24c2ac80.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__piles__components__BonusFormModal.a0dab1c9.async.js
vendored
Normal file
1
dist/src__pages__piles__components__BonusFormModal.a0dab1c9.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6660],{25387:function(R,v,t){t.r(v);var y=t(90228),r=t.n(y),T=t(87999),i=t.n(T),s=t(48305),D=t.n(s),c=t(57571),m=t(50959),h=t(94675),O=t(35384),_=t(11527);v.default=function(f){var u=f.values,g=f.modalOpenState,l=f.onModalOpenState,P=(0,m.useState)(null),d=D()(P,2),A=d[0],E=d[1],n=(0,m.useState)(null),a=D()(n,2),o=a[0],e=a[1],b=(0,m.useRef)();(0,m.useEffect)(function(){b.current&&b.current.reload()},[u]);var U=[{title:"\u7528\u6237ID",dataIndex:"userId",search:!1},{title:"\u8BBE\u5907ID",dataIndex:"deviceId",search:!1},{title:"\u5206\u8D26\u65E5\u671F",dataIndex:"incomeDate",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",search:!1}];return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(h.Z,{width:"800px",title:"\u6536\u76CA\u5217\u8868",open:g,onOk:function(){l(!1)},onCancel:function(){l(!1)},children:(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(O.Z,{actionRef:b,rowKey:"id",search:{labelWidth:120},request:function(){var M=i()(r()().mark(function C(S,K,L){var I,j;return r()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,c.TY)({id:u==null?void 0:u.userId});case 2:return I=p.sent,j=I.data,p.abrupt("return",{data:j||[],total:j.length});case 5:case"end":return p.stop()}},C)}));return function(C,S,K){return M.apply(this,arguments)}}(),columns:U},"logList")})})})}},57571:function(R,v,t){t.d(v,{Lb:function(){return D},S$:function(){return g},SC:function(){return A},TY:function(){return O},Xt:function(){return P},zK:function(){return f}});var y=t(90228),r=t.n(y),T=t(87999),i=t.n(T),s=t(7485);function D(n){return c.apply(this,arguments)}function c(){return c=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return e.stop()}},n)})),c.apply(this,arguments)}function m(n){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function n(a){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/device/incomeday/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function O(n){return _.apply(this,arguments)}function _(){return _=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/getDeviceInfoVO",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:a}));case 1:case"end":return e.stop()}},n)})),_.apply(this,arguments)}function f(n){return u.apply(this,arguments)}function u(){return u=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/importDeviceData",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return e.stop()}},n)})),u.apply(this,arguments)}function g(n){return l.apply(this,arguments)}function l(){return l=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/getDeviceAnalyze",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return e.stop()}},n)})),l.apply(this,arguments)}function P(n){return d.apply(this,arguments)}function d(){return d=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),d.apply(this,arguments)}function A(n){return E.apply(this,arguments)}function E(){return E=i()(r()().mark(function n(a){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/device/modifyAddress",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}}}]);
|
||||||
@@ -1 +0,0 @@
|
|||||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6660],{25387:function(I,D,n){n.r(D);var E=n(90228),a=n.n(E),O=n(87999),i=n.n(O),u=n(48305),v=n.n(u),m=n(57571),c=n(50959),h=n(94675),y=n(35384),_=n(11527);D.default=function(f){var s=f.values,T=f.modalOpenState,l=f.onModalOpenState,g=(0,c.useState)(null),d=v()(g,2),t=d[0],r=d[1],o=(0,c.useState)(null),e=v()(o,2),K=e[0],L=e[1],P=(0,c.useRef)();(0,c.useEffect)(function(){P.current&&P.current.reload()},[s]);var C=[{title:"\u7528\u6237ID",dataIndex:"userId",search:!1},{title:"\u8BBE\u5907ID",dataIndex:"deviceId",search:!1},{title:"\u5206\u8D26\u65E5\u671F",dataIndex:"incomeDate",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",search:!1}];return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(h.Z,{width:"800px",title:"\u6536\u76CA\u5217\u8868",open:T,onOk:function(){l(!1)},onCancel:function(){l(!1)},children:(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(y.Z,{actionRef:P,rowKey:"id",search:{labelWidth:120},request:function(){var b=i()(a()().mark(function j(R,U,x){var A,M;return a()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,m.TY)({id:s==null?void 0:s.userId});case 2:return A=p.sent,M=A.data,p.abrupt("return",{data:M||[],total:M.length});case 5:case"end":return p.stop()}},j)}));return function(j,R,U){return b.apply(this,arguments)}}(),columns:C},"logList")})})})}},57571:function(I,D,n){n.d(D,{Lb:function(){return v},S$:function(){return T},TY:function(){return y},Xt:function(){return g},zK:function(){return f}});var E=n(90228),a=n.n(E),O=n(87999),i=n.n(O),u=n(7485);function v(t){return m.apply(this,arguments)}function m(){return m=i()(a()().mark(function t(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/device/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},t)})),m.apply(this,arguments)}function c(t){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/device/incomeday/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},t)})),h.apply(this,arguments)}function y(t){return _.apply(this,arguments)}function _(){return _=i()(a()().mark(function t(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/device/getDeviceInfoVO",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:r}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function f(t){return s.apply(this,arguments)}function s(){return s=i()(a()().mark(function t(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/device/importDeviceData",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},t)})),s.apply(this,arguments)}function T(t){return l.apply(this,arguments)}function l(){return l=i()(a()().mark(function t(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/device/getDeviceAnalyze",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},t)})),l.apply(this,arguments)}function g(t){return d.apply(this,arguments)}function d(){return d=i()(a()().mark(function t(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/device/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{},responseType:"blob"}));case 1:case"end":return e.stop()}},t)})),d.apply(this,arguments)}}}]);
|
|
||||||
1
dist/src__pages__piles__components__SetinfoFormModal.51afce81.async.js
vendored
Normal file
1
dist/src__pages__piles__components__SetinfoFormModal.51afce81.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9702],{34927:function(M,d,e){var n=e(35361),P=e(56929),u=e(89558),i=e(47186),E=e(50959),r=e(50756),a=e(20734),s=e(11527),_=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],p=E.forwardRef(function(o,v){var O=o.fieldProps,D=o.options,F=o.radioType,c=o.layout,B=o.proFieldProps,f=o.valueEnum,R=(0,P.Z)(o,_);return(0,s.jsx)(a.Z,(0,n.Z)((0,n.Z)({valueType:F==="button"?"radioButton":"radio",ref:v,valueEnum:(0,u.h)(f,void 0)},R),{},{fieldProps:(0,n.Z)({options:D,layout:c},O),proFieldProps:B,filedConfig:{customLightMode:!0}}))}),m=E.forwardRef(function(o,v){var O=o.fieldProps,D=o.children;return(0,s.jsx)(i.ZP,(0,n.Z)((0,n.Z)({},O),{},{ref:v,children:D}))}),l=(0,r.G)(m,{valuePropName:"checked",ignoreWidth:!0}),t=l;t.Group=p,t.Button=i.ZP.Button,t.displayName="ProFormComponent",d.Z=t},20902:function(M,d,e){var n=e(35361),P=e(56929),u=e(50959),i=e(20734),E=e(11527),r=["fieldProps","proFieldProps"],a=function(_,p){var m=_.fieldProps,l=_.proFieldProps,t=(0,P.Z)(_,r);return(0,E.jsx)(i.Z,(0,n.Z)({ref:p,valueType:"textarea",fieldProps:m,proFieldProps:l},t))};d.Z=u.forwardRef(a)},97999:function(M,d,e){e.r(d);var n=e(50959),P=e(5e4),u=e(19014),i=e(34927),E=e(20902),r=e(11527);d.default=function(a){var s=a.values,_=a.modalOpenState,p=a.onModalOpenState,m=a.onSubmit,l=(0,n.useRef)();return(0,n.useEffect)(function(){var t;(t=l.current)===null||t===void 0||t.setFieldsValue(s)},[s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(P.Y,{title:"\u5145\u7535\u6869-\u8BBE\u7F6E\u5730\u5740",formRef:l,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var o;(o=l.current)===null||o===void 0||o.resetFields()}}},initialValues:s,onFinish:m,open:_,onOpenChange:p,children:[(0,r.jsx)(u.Z,{hidden:!0,width:"md",name:"deviceId"}),(0,r.jsx)(u.Z,{width:"md",label:"\u8BBE\u5907\u53F7",name:"deviceNo",placeholder:"\u8BF7\u8F93\u5165"}),(0,r.jsx)(i.Z.Group,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],name:"repeat",radioType:"button",label:"\u662F\u5426\u53EF\u4EE5\u91CD\u590D",options:[{label:"\u4E0D\u53EF\u4EE5\u91CD\u590D",value:2},{label:"\u53EF\u4EE5\u91CD\u590D",value:1}]}),(0,r.jsx)(u.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],name:"stationName",label:"\u7535\u7AD9\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165"}),(0,r.jsx)(E.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],name:"stationAddress",label:"\u8BE6\u7EC6\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165"})]})})}}}]);
|
||||||
1
dist/src__pages__piles__index.3a5a4618.async.js
vendored
Normal file
1
dist/src__pages__piles__index.3a5a4618.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__refund__index.d381097a.async.js
vendored
Normal file
1
dist/src__pages__refund__index.d381097a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__components__MoneyFormModal.39b40fd3.async.js
vendored
Normal file
1
dist/src__pages__user__user__components__MoneyFormModal.39b40fd3.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__components__ShopModal.88579eb6.async.js
vendored
Normal file
1
dist/src__pages__user__user__components__ShopModal.88579eb6.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__edit.fd8a4cdf.async.js
vendored
Normal file
1
dist/src__pages__user__user__edit.fd8a4cdf.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4575],{35748:function(L,u,e){var o=e(35361),d=e(56929),n=e(50959),a=e(20734),p=e(11527),_=["fieldProps","min","proFieldProps","max"],P=function(s,m){var c=s.fieldProps,h=s.min,i=s.proFieldProps,t=s.max,r=(0,d.Z)(s,_);return(0,p.jsx)(a.Z,(0,o.Z)({valueType:"digit",fieldProps:(0,o.Z)({min:h,max:t},c),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:i},r))},l=n.forwardRef(P);u.Z=l},27610:function(L,u,e){var o=e(35361),d=e(56929),n=e(89558),a=e(50959),p=e(71252),_=e(20734),P=e(11527),l=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],E=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],s=function(r,v){var C=r.fieldProps,D=r.children,M=r.params,O=r.proFieldProps,F=r.mode,f=r.valueEnum,Z=r.request,R=r.showSearch,W=r.options,x=(0,d.Z)(r,l),T=(0,a.useContext)(p.Z);return(0,P.jsx)(_.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,n.h)(f),request:Z,params:M,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:W,mode:F,showSearch:R,getPopupContainer:T.getPopupContainer},C),ref:v,proFieldProps:O},x),{},{children:D}))},m=a.forwardRef(function(t,r){var v=t.fieldProps,C=t.children,D=t.params,M=t.proFieldProps,O=t.mode,F=t.valueEnum,f=t.request,Z=t.options,R=(0,d.Z)(t,E),W=(0,o.Z)({options:Z,mode:O||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},v),x=(0,a.useContext)(p.Z);return(0,P.jsx)(_.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,n.h)(F),request:f,params:D,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:x.getPopupContainer},W),ref:r,proFieldProps:M},R),{},{children:C}))}),c=a.forwardRef(s),h=m,i=c;i.SearchSelect=h,i.displayName="ProFormComponent",u.Z=i},92323:function(L,u,e){var o=e(35361),d=e(56929),n=e(50959),a=e(20734),p=e(11527),_=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],P=n.forwardRef(function(l,E){var s=l.fieldProps,m=l.unCheckedChildren,c=l.checkedChildren,h=l.proFieldProps,i=(0,d.Z)(l,_);return(0,p.jsx)(a.Z,(0,o.Z)({valueType:"switch",fieldProps:(0,o.Z)({unCheckedChildren:m,checkedChildren:c},s),ref:E,valuePropName:"checked",proFieldProps:h,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},i))});u.Z=P}}]);
|
||||||
1
dist/src__pages__user__user__index.b761b4b8.async.js
vendored
Normal file
1
dist/src__pages__user__user__index.b761b4b8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__verificationOrder__index.98df2a08.async.js
vendored
Normal file
1
dist/src__pages__verificationOrder__index.98df2a08.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__verification__components__CreateFormModal.d8004322.async.js
vendored
Normal file
1
dist/src__pages__verification__components__CreateFormModal.d8004322.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8233],{35748:function(O,_,e){var u=e(35361),l=e(56929),d=e(50959),p=e(20734),m=e(11527),n=["fieldProps","min","proFieldProps","max"],r=function(o,P){var D=o.fieldProps,i=o.min,t=o.proFieldProps,a=o.max,c=(0,l.Z)(o,n);return(0,m.jsx)(p.Z,(0,u.Z)({valueType:"digit",fieldProps:(0,u.Z)({min:i,max:a},D),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:t},c))},s=d.forwardRef(r);_.Z=s},42997:function(O,_,e){e.r(_);var u=e(5e4),l=e(19014),d=e(49547),p=e(35748),m=e(50959),n=e(11527);_.default=function(r){var s=r.values,E=r.modalOpenState,o=r.onModalOpenState,P=r.onSubmit,D=r.permissionTreeData,i=(0,m.useRef)();return(0,m.useEffect)(function(){var t;(t=i.current)===null||t===void 0||t.setFieldsValue(s)},[s]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(u.Y,{title:"\u6838\u9500\u5377-\u6DFB\u52A0",formRef:i,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var a;(a=i.current)===null||a===void 0||a.resetFields()}}},initialValues:s,onFinish:P,open:E,onOpenChange:o,children:[(0,n.jsx)(l.Z,{hidden:!0,width:"md",name:"id"}),(0,n.jsx)(d.A.Group,{children:(0,n.jsx)(l.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"couponName",label:"\u6838\u9500\u5377\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165"})}),(0,n.jsx)(d.A.Group,{children:(0,n.jsx)(p.Z,{fieldProps:{prefix:"\uFFE5"},label:"\u9762\u503C",name:"price",min:0})})]})})}}}]);
|
||||||
1
dist/src__pages__verification__components__UpdateFormModal.a15bb823.async.js
vendored
Normal file
1
dist/src__pages__verification__components__UpdateFormModal.a15bb823.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1875],{35748:function(f,s,e){var i=e(35361),u=e(56929),m=e(50959),a=e(20734),d=e(11527),p=["fieldProps","min","proFieldProps","max"],t=function(n,P){var E=n.fieldProps,D=n.min,M=n.proFieldProps,o=n.max,c=(0,u.Z)(n,p);return(0,d.jsx)(a.Z,(0,i.Z)({valueType:"digit",fieldProps:(0,i.Z)({min:D,max:o},E),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:M},c))},_=m.forwardRef(t);s.Z=_},25193:function(f,s,e){e.r(s);var i=e(48305),u=e.n(i),m=e(5e4),a=e(19014),d=e(49547),p=e(35748),t=e(50959),_=e(11527);s.default=function(r){var n=r.values,P=r.modalOpenState,E=r.onModalOpenState,D=r.onSubmit,M=r.permissionTreeData,o=(0,t.useRef)(),c=(0,t.useState)(),v=u()(c,2),C=v[0],h=v[1];return(0,t.useEffect)(function(){var l;h(n.permission_ids),(l=o.current)===null||l===void 0||l.setFieldsValue(n)},[n]),(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(m.Y,{title:"\u7BA1\u7406\u5458-\u6DFB\u52A0",formRef:o,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var O;(O=o.current)===null||O===void 0||O.resetFields()}}},initialValues:n,onFinish:D,open:P,onOpenChange:E,children:[(0,_.jsx)(a.Z,{hidden:!0,width:"md",name:"id"}),(0,_.jsx)(d.A.Group,{children:(0,_.jsx)(a.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"couponName",label:"\u6838\u9500\u5377\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165"})}),(0,_.jsx)(d.A.Group,{children:(0,_.jsx)(p.Z,{fieldProps:{prefix:"\uFFE5"},label:"\u9762\u503C",name:"price",min:0})})]})})}}}]);
|
||||||
1
dist/src__pages__verification__index.07b60b38.async.js
vendored
Normal file
1
dist/src__pages__verification__index.07b60b38.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
126
dist/umi.9848ee1f.js → dist/umi.24ab5343.js
vendored
126
dist/umi.9848ee1f.js → dist/umi.24ab5343.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -98,5 +98,9 @@
|
|||||||
{
|
{
|
||||||
"name": "转换增加",
|
"name": "转换增加",
|
||||||
"id": 6200
|
"id": 6200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "转账到星梦",
|
||||||
|
"id": 7100
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -1,36 +1,37 @@
|
|||||||
import { GithubOutlined } from '@ant-design/icons';
|
|
||||||
import { DefaultFooter } from '@ant-design/pro-components';
|
import { DefaultFooter } from '@ant-design/pro-components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
const Footer: React.FC = () => {
|
const Footer: React.FC = () => {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DefaultFooter
|
<DefaultFooter
|
||||||
style={{
|
style={{
|
||||||
background: 'none',
|
background: 'none',
|
||||||
}}
|
}}
|
||||||
copyright="中帅新能源"
|
copyright={`${currentYear} 中帅新能源`}
|
||||||
links={[
|
links={[
|
||||||
{
|
{
|
||||||
key: 'Ant Design Pro',
|
key: 'support',
|
||||||
title: '中帅新能源提供技术支持',
|
title: '中帅新能源提供技术支持',
|
||||||
href: '',
|
href: '/',
|
||||||
|
blankTarget: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'icp',
|
||||||
|
title: '豫ICP备2024076153号', // ← 替换为你的 ICP 备案号
|
||||||
|
href: 'https://beian.miit.gov.cn/',
|
||||||
|
blankTarget: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'gongan',
|
||||||
|
title: '豫公网安备41010702004050号', // ← 替换为你的公安备案号
|
||||||
|
href: 'https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41010702004050', // 注意:替换最后的数字为你自己的备案号后缀
|
||||||
blankTarget: true,
|
blankTarget: true,
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// key: 'github',
|
|
||||||
// title: <GithubOutlined />,
|
|
||||||
// href: 'https://github.com/ant-design/ant-design-pro',
|
|
||||||
// blankTarget: true,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// key: 'Ant Design',
|
|
||||||
// title: 'Ant Design',
|
|
||||||
// href: 'https://ant.design',
|
|
||||||
// blankTarget: true,
|
|
||||||
// },
|
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Footer;
|
export default Footer;
|
||||||
17
src/components/Visible/index.tsx
Normal file
17
src/components/Visible/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface VisibleProps {
|
||||||
|
visible: boolean;
|
||||||
|
onCancel: () => void;
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Visible: React.FC<VisibleProps> = ({ visible, onCancel, children }) => {
|
||||||
|
if (!visible) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return <>{children}</>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Visible;
|
||||||
85
src/pages/activity/607/components/CreateFormModal.jsx
Normal file
85
src/pages/activity/607/components/CreateFormModal.jsx
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* @Note:
|
||||||
|
* @Author: 2058827620@qq.com
|
||||||
|
* @Date: 2022-04-03 17:02:15
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { ProForm, ModalForm, ProFormSelect, ProFormText, ProFormDatePicker, ProFormRadio,ProFormDigit } from '@ant-design/pro-components';
|
||||||
|
import { Tree } from 'antd';
|
||||||
|
import { useEffect, useRef, useState } from 'react';
|
||||||
|
import FilesManager from '@/components/FilesManage/index';
|
||||||
|
// import services from '@/services/admin';
|
||||||
|
|
||||||
|
// const { shopLevelItems } = services.ShopLevelController;
|
||||||
|
|
||||||
|
// const { shopItems } = services.ShopController;
|
||||||
|
|
||||||
|
|
||||||
|
export default ({ values, modalOpenState, onModalOpenState, onSubmit }) => {
|
||||||
|
const restFormRef = useRef();
|
||||||
|
|
||||||
|
const [shopOption, setShopOption] = useState([]);
|
||||||
|
|
||||||
|
const searchShop = (e) => {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
restFormRef.current?.setFieldsValue(values);
|
||||||
|
}, [values]);
|
||||||
|
|
||||||
|
const handleFinish = async (formValues) => {
|
||||||
|
await onSubmit(formValues);
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ModalForm
|
||||||
|
title="买十赠一活动"
|
||||||
|
formRef={restFormRef}
|
||||||
|
submitter={{
|
||||||
|
searchConfig: {
|
||||||
|
resetText: '重置',
|
||||||
|
},
|
||||||
|
resetButtonProps: {
|
||||||
|
onClick: () => {
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
initialValues={values}
|
||||||
|
onFinish={handleFinish}
|
||||||
|
open={modalOpenState}
|
||||||
|
onOpenChange={onModalOpenState}
|
||||||
|
>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
width="md"
|
||||||
|
name="userName"
|
||||||
|
label="用户名"
|
||||||
|
placeholder="请输入用户名"
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
/>
|
||||||
|
<ProFormText
|
||||||
|
width="md"
|
||||||
|
name="phone"
|
||||||
|
label="手机号"
|
||||||
|
placeholder="请输入手机号"
|
||||||
|
rules={[{ required: true, message: '请输入手机号' }, { pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号' }]}
|
||||||
|
/>
|
||||||
|
< ProFormDatePicker
|
||||||
|
rules={[{ required: true, message: '请选择' }]}
|
||||||
|
name="confirmDate"
|
||||||
|
label="认领日期"
|
||||||
|
/>
|
||||||
|
<ProFormDigit
|
||||||
|
name="count"
|
||||||
|
label="赠送数量"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
</ModalForm >
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
61
src/pages/activity/607/components/ShowDataModal.jsx
Normal file
61
src/pages/activity/607/components/ShowDataModal.jsx
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* @Note:
|
||||||
|
* @Author: 2058827620@qq.com
|
||||||
|
* @Date: 2022-04-03 10:53:25
|
||||||
|
*/
|
||||||
|
import React, { useState, useEffect } from 'react';
|
||||||
|
import {
|
||||||
|
Modal,
|
||||||
|
Table
|
||||||
|
} from 'antd';
|
||||||
|
import { activity7kwUserListShow } from '@/services/user/user';
|
||||||
|
|
||||||
|
export default ({ values, modalOpenState, onModalOpenState }) => {
|
||||||
|
const [items, setItems] = useState(null);
|
||||||
|
useEffect(() => {
|
||||||
|
if (!values?.id) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
activity7kwUserListShow({
|
||||||
|
id: values?.id
|
||||||
|
}).then(({ data, success }) => {
|
||||||
|
if (success) {
|
||||||
|
setItems(data || []);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
}, [values]);
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: '设备ID',
|
||||||
|
dataIndex: 'id',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
dataIndex: 'createTime',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Modal width="800px" title="" open={modalOpenState} onOk={() => {
|
||||||
|
onModalOpenState(false);
|
||||||
|
}} onCancel={() => {
|
||||||
|
onModalOpenState(false)
|
||||||
|
}}>
|
||||||
|
<>
|
||||||
|
<Table
|
||||||
|
rowKey="id"
|
||||||
|
columns={columns}
|
||||||
|
dataSource={items}
|
||||||
|
pagination={false}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Modal >
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
212
src/pages/activity/607/index.tsx
Normal file
212
src/pages/activity/607/index.tsx
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
|
import { Select, Space, Image, Button } from 'antd';
|
||||||
|
import {
|
||||||
|
PageContainer,
|
||||||
|
ProTable,
|
||||||
|
ActionType
|
||||||
|
} from '@ant-design/pro-components';
|
||||||
|
import { activity7kwUserList } from '@/services/activity/index';
|
||||||
|
import { usersPage,activity10s1UserAdd } from '@/services/user/user';
|
||||||
|
import CreateFormModal from './components/CreateFormModal';
|
||||||
|
import ShowDataModal from './components/ShowDataModal';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
const [createFormModal, setCreateFormModal] = useState(false);
|
||||||
|
const [showDataModal, setShowDataModal] = useState(false);
|
||||||
|
|
||||||
|
|
||||||
|
const initRow = {
|
||||||
|
shop_id: '',
|
||||||
|
todate: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
const initRowCancellationModal = {
|
||||||
|
username: "",
|
||||||
|
mobile: "",
|
||||||
|
code: ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [row, setRow] = useState(initRow);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const [rowCancellationModal, setRowCancellationModal] = useState(initRowCancellationModal);
|
||||||
|
|
||||||
|
|
||||||
|
const actionRef = useRef<ActionType>();
|
||||||
|
|
||||||
|
const [searchParams, setSearchParams] = useState(null);
|
||||||
|
|
||||||
|
const [shopOption, setShopOption] = useState([]);
|
||||||
|
const searchShop = async (value) => {
|
||||||
|
const { success, data } = await usersPage({
|
||||||
|
userName: value
|
||||||
|
});
|
||||||
|
data.records.map((i) => {
|
||||||
|
i.userName = i.userName + ' ' + i.phone
|
||||||
|
})
|
||||||
|
setShopOption(data.records)
|
||||||
|
}
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: 'ID',
|
||||||
|
dataIndex: 'id',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '活动名称',
|
||||||
|
dataIndex: 'title',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '用户信息',
|
||||||
|
dataIndex: 'userId',
|
||||||
|
render: (_, record) => {
|
||||||
|
return <>
|
||||||
|
<div>用户名:{record?.usersInfo?.userName}</div>
|
||||||
|
<div>手机号:{record?.usersInfo?.phone}</div>
|
||||||
|
<div>等级:{record?.usersInfo?.level}</div>
|
||||||
|
</>
|
||||||
|
},
|
||||||
|
renderFormItem: (
|
||||||
|
_,
|
||||||
|
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||||
|
form,
|
||||||
|
) => {
|
||||||
|
return <Select
|
||||||
|
{...fieldProps}
|
||||||
|
allowClear
|
||||||
|
showSearch
|
||||||
|
placeholder="请输入用户名或手机号"
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
filterOption={false}
|
||||||
|
onSearch={
|
||||||
|
(e) => {
|
||||||
|
if (!e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
searchShop(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNames={{
|
||||||
|
label: "userName",
|
||||||
|
value: "id"
|
||||||
|
}}
|
||||||
|
options={shopOption}
|
||||||
|
/>
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '认领时间',
|
||||||
|
dataIndex: 'confirmDate',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// title: '充电桩',
|
||||||
|
// dataIndex: 'device',
|
||||||
|
// search: false,
|
||||||
|
// render: (_, record) => {
|
||||||
|
// let ids = record?.device.map((item) => {
|
||||||
|
// return item.id
|
||||||
|
// })
|
||||||
|
// return ids.join(',')
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
dataIndex: 'createTime',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
dataIndex: 'option',
|
||||||
|
width: '220px',
|
||||||
|
valueType: 'option',
|
||||||
|
render: (_, record) => [
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
onClick={() => {
|
||||||
|
setRow(record)
|
||||||
|
setShowDataModal(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
查看赠送设备
|
||||||
|
</Button>,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const handleCreate = async (fields) => {
|
||||||
|
setRow(fields);
|
||||||
|
const { success } = await activity10s1UserAdd(fields);
|
||||||
|
|
||||||
|
if (success) {
|
||||||
|
setRow(initRow);
|
||||||
|
actionRef.current?.reload();
|
||||||
|
setCreateFormModal(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageContainer
|
||||||
|
ghost
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<CreateFormModal
|
||||||
|
values={row}
|
||||||
|
modalOpenState={createFormModal}
|
||||||
|
onModalOpenState={setCreateFormModal}
|
||||||
|
onSubmit={handleCreate}
|
||||||
|
/>
|
||||||
|
<ShowDataModal
|
||||||
|
values={row}
|
||||||
|
modalOpenState={showDataModal}
|
||||||
|
onModalOpenState={setShowDataModal}
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ProTable
|
||||||
|
actionRef={actionRef}
|
||||||
|
rowKey="id"
|
||||||
|
search={{
|
||||||
|
defaultCollapsed: false,
|
||||||
|
}}
|
||||||
|
// toolBarRender={() => [
|
||||||
|
// <Button
|
||||||
|
// type="primary"
|
||||||
|
// style={{ background: '#67c23a' }}
|
||||||
|
// onClick={() => {
|
||||||
|
// setCreateFormModal(true)
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
|
// 添加
|
||||||
|
// </Button>,
|
||||||
|
// ]}
|
||||||
|
request={async (params, sorter, filter) => {
|
||||||
|
setSearchParams({ token: '', ...params });
|
||||||
|
const { data, success } = await activity7kwUserList({
|
||||||
|
...params,
|
||||||
|
sorter,
|
||||||
|
filter,
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
data: data?.records || [],
|
||||||
|
total: data?.total,
|
||||||
|
success,
|
||||||
|
};
|
||||||
|
}}
|
||||||
|
columns={columns}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</PageContainer>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -3,7 +3,8 @@ import {
|
|||||||
ProForm,
|
ProForm,
|
||||||
ProFormDigit,
|
ProFormDigit,
|
||||||
ProFormText,
|
ProFormText,
|
||||||
ProFormSwitch
|
ProFormSwitch,
|
||||||
|
ProFormRadio
|
||||||
} from '@ant-design/pro-components';
|
} from '@ant-design/pro-components';
|
||||||
import { Form, Modal, InputNumber } from 'antd';
|
import { Form, Modal, InputNumber } from 'antd';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
@@ -87,7 +88,29 @@ const RoleForm: React.FC = (props: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</ProForm.Group>
|
</ProForm.Group>
|
||||||
|
|
||||||
|
<ProFormRadio.Group
|
||||||
|
rules={[{ required: true, message: '请选择' }]}
|
||||||
|
name="type"
|
||||||
|
radioType="button"
|
||||||
|
label="位置"
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: '首页Banner',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '首页下方活动',
|
||||||
|
value: 2,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '新能源汽车下乡',
|
||||||
|
value: 3,
|
||||||
|
}
|
||||||
|
]}
|
||||||
|
/>
|
||||||
<ProForm.Group>
|
<ProForm.Group>
|
||||||
<ProForm.Item label="图片" name="imageUrl">
|
<ProForm.Item label="图片" name="imageUrl">
|
||||||
<FilesManager
|
<FilesManager
|
||||||
|
|||||||
@@ -114,6 +114,14 @@ const MenuTableList: React.FC = () => {
|
|||||||
return <Image src={record.imageUrl} width={60} height={60}></Image>
|
return <Image src={record.imageUrl} width={60} height={60}></Image>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '位置',
|
||||||
|
dataIndex: 'type',
|
||||||
|
search: false,
|
||||||
|
render: (_) => {
|
||||||
|
return _ == 1 ? '首页Banner' : _ == 2 ? '首页下方活动' : _ == 3 ? '新能源汽车下乡' : '-'
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '排序',
|
title: '排序',
|
||||||
dataIndex: 'sortOrder',
|
dataIndex: 'sortOrder',
|
||||||
@@ -126,6 +134,15 @@ const MenuTableList: React.FC = () => {
|
|||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
dataIndex: 'status',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
render: (_) => {
|
||||||
|
return _ == 1 ? '禁用' :'启用'
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
EditableProTable,
|
EditableProTable,
|
||||||
ActionType
|
ActionType
|
||||||
} from '@ant-design/pro-components';
|
} from '@ant-design/pro-components';
|
||||||
import { Card, message, Tabs, InputNumber, TimePicker, Input, Button } from 'antd';
|
import { Card, message, Tabs, InputNumber, TimePicker, Input, Button, Switch } from 'antd';
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
import React, { useState, useRef, useEffect } from 'react';
|
import React, { useState, useRef, useEffect } from 'react';
|
||||||
import { config, configUpdate } from '@/services/config/index'
|
import { config, configUpdate } from '@/services/config/index'
|
||||||
@@ -38,6 +38,15 @@ const BasicForm: FC<Record<string, any>> = () => {
|
|||||||
values.beginTime = dayjs(values.beginTime).format('HH:mm')
|
values.beginTime = dayjs(values.beginTime).format('HH:mm')
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
if (values.newYearSwitch === true || values.newYearSwitch === false) {
|
||||||
|
if (values.newYearSwitch) {
|
||||||
|
values.newYearSwitch = 1
|
||||||
|
} else {
|
||||||
|
values.newYearSwitch = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
await configUpdate(values);
|
await configUpdate(values);
|
||||||
message.success('配置成功');
|
message.success('配置成功');
|
||||||
return true;
|
return true;
|
||||||
@@ -407,6 +416,33 @@ const BasicForm: FC<Record<string, any>> = () => {
|
|||||||
</ProForm >
|
</ProForm >
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i.configKey == 'NEW_YEAR_SWITCH') {
|
||||||
|
data = <ProForm
|
||||||
|
style={{
|
||||||
|
marginTop: 8,
|
||||||
|
maxWidth: 600,
|
||||||
|
}}
|
||||||
|
layout="vertical"
|
||||||
|
initialValues={value}
|
||||||
|
onFinish={onFinish}
|
||||||
|
>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormDigit
|
||||||
|
name="id"
|
||||||
|
disabled
|
||||||
|
hidden={true}
|
||||||
|
/>
|
||||||
|
<ProForm.Item
|
||||||
|
rules={[{ required: true, message: '请输入!' }]}
|
||||||
|
label="新年开关"
|
||||||
|
name={'newYearSwitch'}
|
||||||
|
>
|
||||||
|
<Switch checkedChildren="开" unCheckedChildren="关" />
|
||||||
|
</ProForm.Item>
|
||||||
|
</ProForm.Group>
|
||||||
|
</ProForm >
|
||||||
|
}
|
||||||
|
|
||||||
if (i.configKey == 'ALERT_EMAIL') {
|
if (i.configKey == 'ALERT_EMAIL') {
|
||||||
data = <ProForm
|
data = <ProForm
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -166,6 +166,30 @@ export default () => {
|
|||||||
label="功率"
|
label="功率"
|
||||||
placeholder="功率"
|
placeholder="功率"
|
||||||
/>
|
/>
|
||||||
|
<ProFormRadio.Group
|
||||||
|
name="purposeType"
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: '商用运维版',
|
||||||
|
value: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '商用合作版',
|
||||||
|
value: '2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '家庭专业版',
|
||||||
|
value: '3',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
label={'设备类型'}
|
||||||
|
rules={[
|
||||||
|
{
|
||||||
|
required: false,
|
||||||
|
message: '请选择设备类型',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
<ProForm.Group>
|
<ProForm.Group>
|
||||||
<ProForm.Item
|
<ProForm.Item
|
||||||
rules={[{ required: true, message: '请输入!' }]}
|
rules={[{ required: true, message: '请输入!' }]}
|
||||||
|
|||||||
@@ -179,6 +179,30 @@ export default () => {
|
|||||||
name="itemType"
|
name="itemType"
|
||||||
label="功率"
|
label="功率"
|
||||||
placeholder="功率"
|
placeholder="功率"
|
||||||
|
/>
|
||||||
|
<ProFormRadio.Group
|
||||||
|
name="purposeType"
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: '商用运维版',
|
||||||
|
value: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '商用合作版',
|
||||||
|
value: '2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '家庭专业版',
|
||||||
|
value: '3',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
label={'设备类型'}
|
||||||
|
rules={[
|
||||||
|
{
|
||||||
|
required: false,
|
||||||
|
message: '请选择设备类型',
|
||||||
|
},
|
||||||
|
]}
|
||||||
/>
|
/>
|
||||||
<ProForm.Group>
|
<ProForm.Group>
|
||||||
<ProForm.Item
|
<ProForm.Item
|
||||||
|
|||||||
@@ -33,7 +33,16 @@ const GoodsTableList: React.FC = () => {
|
|||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
search: false,
|
search: false,
|
||||||
render: (_: any, record: any) => {
|
render: (_: any, record: any) => {
|
||||||
return record?.itemType ? record?.itemType + 'KW' :'-'
|
return record?.itemType ? record?.itemType + 'KW' : '-'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '设备类型',
|
||||||
|
dataIndex: 'purposeType',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
render: (_: any, record: any) => {
|
||||||
|
return record?.purposeType == 1 ? '商用运维版' : record?.purposeType == 2 ? '商用合作版' : record?.purposeType == 3 ? '家庭专业版' : '-'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
50
src/pages/order/components/OrderExportForm.tsx
Normal file
50
src/pages/order/components/OrderExportForm.tsx
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import { ProForm, ModalForm, ProFormRadio, ProFormText, ProFormTextArea, ProFormMoney, ProFormCaptcha, ProFormInstance } from '@ant-design/pro-components';
|
||||||
|
import { Button } from 'antd';
|
||||||
|
import { useEffect, useRef } from 'react';
|
||||||
|
import { smsCode } from '@/services/user/user'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ({ modalOpenState, onModalOpenState, onSubmit }) => {
|
||||||
|
const restFormRef = useRef<ProFormInstance>();
|
||||||
|
|
||||||
|
const handleFinish = async (formValues) => {
|
||||||
|
await onSubmit(formValues);
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ModalForm
|
||||||
|
title="团队统计导出"
|
||||||
|
formRef={restFormRef}
|
||||||
|
submitter={{
|
||||||
|
searchConfig: {
|
||||||
|
resetText: '重置',
|
||||||
|
},
|
||||||
|
resetButtonProps: {
|
||||||
|
onClick: () => {
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
onFinish={handleFinish}
|
||||||
|
open={modalOpenState}
|
||||||
|
onOpenChange={onModalOpenState}
|
||||||
|
>
|
||||||
|
<ProFormText hidden={true} width="md" name="id" />
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入!' }]}
|
||||||
|
width="md"
|
||||||
|
name="userName"
|
||||||
|
label="团队长账号"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</ProForm.Group>
|
||||||
|
</ModalForm>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
107
src/pages/order/fahuo.tsx
Normal file
107
src/pages/order/fahuo.tsx
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { contentcategoryPage } from '@/services/note/cate';
|
||||||
|
|
||||||
|
import {
|
||||||
|
ProForm,
|
||||||
|
ProFormDigit,
|
||||||
|
ProFormText,
|
||||||
|
ProFormDatePicker
|
||||||
|
} from '@ant-design/pro-components';
|
||||||
|
import { Form, Modal, InputNumber } from 'antd';
|
||||||
|
import { useIntl } from '@umijs/max';
|
||||||
|
import FilesManager from '@/components/FilesManage/index';
|
||||||
|
|
||||||
|
import { ContentUtils } from 'braft-utils'
|
||||||
|
// 引入编辑器组件
|
||||||
|
import BraftEditor from 'braft-editor'
|
||||||
|
// 引入编辑器样式
|
||||||
|
import 'braft-editor/dist/index.css'
|
||||||
|
|
||||||
|
const RoleForm: React.FC = (props: any) => {
|
||||||
|
const [editorState, setEditorState] = useState(BraftEditor.createEditorState(''))
|
||||||
|
const [form] = Form.useForm();
|
||||||
|
|
||||||
|
const { values } = props;
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setEditorState(BraftEditor.createEditorState(values.detail))
|
||||||
|
form.resetFields();
|
||||||
|
form.setFieldsValue(values);
|
||||||
|
}, [form, props]);
|
||||||
|
|
||||||
|
const intl = useIntl();
|
||||||
|
const handleOk = () => {
|
||||||
|
form.submit();
|
||||||
|
};
|
||||||
|
const handleCancel = () => {
|
||||||
|
props.onCancel();
|
||||||
|
};
|
||||||
|
const handleFinish = async (values: any) => {
|
||||||
|
props.onSubmit(values);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Modal
|
||||||
|
width={800}
|
||||||
|
title={'发货'}
|
||||||
|
open={props.open}
|
||||||
|
forceRender
|
||||||
|
destroyOnClose
|
||||||
|
onOk={handleOk}
|
||||||
|
onCancel={handleCancel}
|
||||||
|
>
|
||||||
|
<ProForm
|
||||||
|
form={form}
|
||||||
|
submitter={false}
|
||||||
|
layout="horizontal"
|
||||||
|
onFinish={handleFinish}>
|
||||||
|
<ProFormDigit
|
||||||
|
name="orderId"
|
||||||
|
label={'orderId'}
|
||||||
|
disabled
|
||||||
|
hidden={true}
|
||||||
|
/>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
name="takeName"
|
||||||
|
label={'收货人姓名'}
|
||||||
|
placeholder="请输入收货人姓名"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
name="takePhone"
|
||||||
|
label={'收货人电话'}
|
||||||
|
placeholder="请输入收货人电话"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
name="takeAddress"
|
||||||
|
label={'收货人地址'}
|
||||||
|
placeholder="请输入收货人地址"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
name="expressName"
|
||||||
|
label={'快递名称'}
|
||||||
|
placeholder="请输入快递名称"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
<ProFormText
|
||||||
|
name="expressNumber"
|
||||||
|
label={'快递单号'}
|
||||||
|
placeholder="请输入快递单号"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
</ProForm>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default RoleForm;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { orderPage, orderExport, orderRefund, getWeiXinCollect, getCollect, getBalance, getZhiFuBaoCollect } from '@/services/order';
|
import { orderPage, orderExport, orderRefund, getWeiXinCollect, getCollect, getBalance, getZhiFuBaoCollect, deliverGoods, orderExportTeam } from '@/services/order';
|
||||||
import { exportData } from '@/utils/func';
|
import { exportData } from '@/utils/func';
|
||||||
import React, { useRef, useEffect, useState } from 'react';
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
import { useIntl, useAccess } from '@umijs/max';
|
import { useIntl, useAccess } from '@umijs/max';
|
||||||
@@ -6,14 +6,21 @@ import { message, Tag, Col, Row, Card, Image, Button, Select } from 'antd';
|
|||||||
import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components';
|
import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components';
|
||||||
import BonusFormModal from './components/BonusFormModal';
|
import BonusFormModal from './components/BonusFormModal';
|
||||||
import EscFormModal from './components/EscFormModal';
|
import EscFormModal from './components/EscFormModal';
|
||||||
import { usersPage } from '@/services/user/user';
|
import OrderExportForm from './components/OrderExportForm';
|
||||||
|
|
||||||
|
|
||||||
|
import { usersPage } from '@/services/user/user';
|
||||||
|
import UpdateForm from './fahuo';
|
||||||
|
|
||||||
|
|
||||||
const LogTableList: React.FC = () => {
|
const LogTableList: React.FC = () => {
|
||||||
const actionRef = useRef<ActionType>();
|
const actionRef = useRef<ActionType>();
|
||||||
const [searchParams, setSearchParams] = useState(null);
|
const [searchParams, setSearchParams] = useState(null);
|
||||||
const [bonusFormModal, setBonusFormModal] = useState(false);
|
const [bonusFormModal, setBonusFormModal] = useState(false);
|
||||||
|
const [orderExportForm, setOrderExport] = useState(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const [row, setRow] = useState();
|
const [row, setRow] = useState();
|
||||||
const [selectedRowsState, setSelectedRows] = useState([]);
|
const [selectedRowsState, setSelectedRows] = useState([]);
|
||||||
const [escFormModal, setEscFormModal] = useState(false);
|
const [escFormModal, setEscFormModal] = useState(false);
|
||||||
@@ -21,8 +28,9 @@ const LogTableList: React.FC = () => {
|
|||||||
const [count2, setCount2] = useState({});
|
const [count2, setCount2] = useState({});
|
||||||
const [count3, setCount3] = useState({});
|
const [count3, setCount3] = useState({});
|
||||||
const [count4, setCount4] = useState({});
|
const [count4, setCount4] = useState({});
|
||||||
|
const [currentRow, setCurrentRow] = useState({});
|
||||||
|
|
||||||
|
const [modalVisible, setModalVisible] = useState<boolean>(false);
|
||||||
|
|
||||||
const access = useAccess()
|
const access = useAccess()
|
||||||
const count = useState({})
|
const count = useState({})
|
||||||
@@ -124,6 +132,7 @@ const LogTableList: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '商品信息',
|
title: '商品信息',
|
||||||
dataIndex: 'ordersGoodsList',
|
dataIndex: 'ordersGoodsList',
|
||||||
@@ -237,6 +246,45 @@ const LogTableList: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '收货信息',
|
||||||
|
dataIndex: 'userId',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
render: (_: any, record: any) => {
|
||||||
|
return <div className={'flex'}>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
姓名:{record?.takeName}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
手机号:{record?.takePhone || '-'}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
地址:{record?.takeAddress}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '快递信息',
|
||||||
|
dataIndex: 'userId',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
render: (_: any, record: any) => {
|
||||||
|
return <div className={'flex'}>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
快递名称:{record?.expressName}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
快递单号:{record?.expressNumber || '-'}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
dataIndex: 'remarks',
|
dataIndex: 'remarks',
|
||||||
@@ -259,6 +307,27 @@ const LogTableList: React.FC = () => {
|
|||||||
return record?.createTime
|
return record?.createTime
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
dataIndex: 'option',
|
||||||
|
valueType: 'option',
|
||||||
|
render: (_, record) => [
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
onClick={() => {
|
||||||
|
var aaa = {
|
||||||
|
...record,
|
||||||
|
orderId: record.id
|
||||||
|
}
|
||||||
|
setModalVisible(true);
|
||||||
|
setCurrentRow(aaa);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
发货
|
||||||
|
</Button>,
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const escSubmit = async (fields) => {
|
const escSubmit = async (fields) => {
|
||||||
@@ -270,6 +339,21 @@ const LogTableList: React.FC = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const orderExportSubmit = async (fields) => {
|
||||||
|
let data = JSON.parse(JSON.stringify(searchParams))
|
||||||
|
delete data.pageSize
|
||||||
|
delete data.current
|
||||||
|
delete data.userId
|
||||||
|
|
||||||
|
const res = await orderExportTeam({
|
||||||
|
...fields,
|
||||||
|
...data
|
||||||
|
});
|
||||||
|
exportData(res, fields.userName + '团队订单统计')
|
||||||
|
setOrderExport(false);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContainer>
|
<PageContainer>
|
||||||
<Row gutter={10} className='mb-30'>
|
<Row gutter={10} className='mb-30'>
|
||||||
@@ -330,6 +414,12 @@ const LogTableList: React.FC = () => {
|
|||||||
modalOpenState={bonusFormModal}
|
modalOpenState={bonusFormModal}
|
||||||
onModalOpenState={setBonusFormModal}
|
onModalOpenState={setBonusFormModal}
|
||||||
/>
|
/>
|
||||||
|
<OrderExportForm
|
||||||
|
values={row}
|
||||||
|
modalOpenState={orderExportForm}
|
||||||
|
onModalOpenState={setOrderExport}
|
||||||
|
onSubmit={orderExportSubmit}
|
||||||
|
/>
|
||||||
<ProTable
|
<ProTable
|
||||||
actionRef={actionRef}
|
actionRef={actionRef}
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
@@ -348,6 +438,10 @@ const LogTableList: React.FC = () => {
|
|||||||
>
|
>
|
||||||
退单
|
退单
|
||||||
</Button>,
|
</Button>,
|
||||||
|
<Button hidden={!access.hasPerms('/api/orders/export')} type="primary" onClick={async () => {
|
||||||
|
setOrderExport(true);
|
||||||
|
|
||||||
|
}}>团队统计导出</Button>,
|
||||||
<Button hidden={!access.hasPerms('/api/orders/export')} type="primary" onClick={async () => {
|
<Button hidden={!access.hasPerms('/api/orders/export')} type="primary" onClick={async () => {
|
||||||
let data = JSON.parse(JSON.stringify(searchParams))
|
let data = JSON.parse(JSON.stringify(searchParams))
|
||||||
delete data.pageSize
|
delete data.pageSize
|
||||||
@@ -375,6 +469,29 @@ const LogTableList: React.FC = () => {
|
|||||||
columns={columns}
|
columns={columns}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<UpdateForm
|
||||||
|
onSubmit={async (values) => {
|
||||||
|
console.log(values);
|
||||||
|
|
||||||
|
let success = false;
|
||||||
|
if (values.orderId) {
|
||||||
|
success = await deliverGoods({ ...values });
|
||||||
|
}
|
||||||
|
if (success) {
|
||||||
|
setModalVisible(false);
|
||||||
|
setCurrentRow(undefined);
|
||||||
|
if (actionRef.current) {
|
||||||
|
actionRef.current.reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
onCancel={() => {
|
||||||
|
setModalVisible(false);
|
||||||
|
setCurrentRow(undefined);
|
||||||
|
}}
|
||||||
|
open={modalVisible}
|
||||||
|
values={currentRow || {}}
|
||||||
|
/>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
76
src/pages/piles/components/SetinfoFormModal.jsx
Normal file
76
src/pages/piles/components/SetinfoFormModal.jsx
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* @Note:
|
||||||
|
* @Author: 2058827620@qq.com
|
||||||
|
* @Date: 2022-04-03 17:02:15
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { useEffect, useRef, useState } from 'react';
|
||||||
|
import { ProForm, ModalForm, ProFormTextArea, ProFormText, ProFormRadio } from '@ant-design/pro-components';
|
||||||
|
|
||||||
|
|
||||||
|
export default ({ values, modalOpenState, onModalOpenState, onSubmit }) => {
|
||||||
|
const restFormRef = useRef();
|
||||||
|
useEffect(() => {
|
||||||
|
restFormRef.current?.setFieldsValue(values);
|
||||||
|
}, [values]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ModalForm
|
||||||
|
title="充电桩-设置地址"
|
||||||
|
formRef={restFormRef}
|
||||||
|
submitter={{
|
||||||
|
searchConfig: {
|
||||||
|
resetText: '重置',
|
||||||
|
},
|
||||||
|
resetButtonProps: {
|
||||||
|
onClick: () => {
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
initialValues={values}
|
||||||
|
onFinish={onSubmit}
|
||||||
|
open={modalOpenState}
|
||||||
|
onOpenChange={onModalOpenState}
|
||||||
|
>
|
||||||
|
<ProFormText hidden={true} width="md" name="deviceId" />
|
||||||
|
<ProFormText
|
||||||
|
width="md"
|
||||||
|
label="设备号"
|
||||||
|
name="deviceNo"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
<ProFormRadio.Group
|
||||||
|
rules={[{ required: true, message: '请选择' }]}
|
||||||
|
name="repeat"
|
||||||
|
radioType="button"
|
||||||
|
label="是否可以重复"
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: '不可以重复',
|
||||||
|
value: 2,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '可以重复',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
name="stationName"
|
||||||
|
label="电站名称"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
<ProFormTextArea
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
name="stationAddress"
|
||||||
|
label="详细地址"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
</ModalForm>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { devicePage, importDeviceData, getDeviceAnalyze, deviceExport } from '@/services/piles';
|
import { devicePage, importDeviceData, getDeviceAnalyze, deviceExport,deviceSetinfo } from '@/services/piles';
|
||||||
import { exportData } from '@/utils/func';
|
import { exportData } from '@/utils/func';
|
||||||
import React, { useRef, useEffect, useState } from 'react';
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
import { useIntl, useAccess } from '@umijs/max';
|
import { useIntl, useAccess } from '@umijs/max';
|
||||||
@@ -7,7 +7,7 @@ import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components'
|
|||||||
import BonusFormModal from './components/BonusFormModal';
|
import BonusFormModal from './components/BonusFormModal';
|
||||||
import TempFormModal from './components/TempFormModal';
|
import TempFormModal from './components/TempFormModal';
|
||||||
import { usersPage } from '@/services/user/user';
|
import { usersPage } from '@/services/user/user';
|
||||||
|
import SetinfoFormModal from './components/SetinfoFormModal';
|
||||||
|
|
||||||
const LogTableList: React.FC = () => {
|
const LogTableList: React.FC = () => {
|
||||||
const actionRef = useRef<ActionType>();
|
const actionRef = useRef<ActionType>();
|
||||||
@@ -18,7 +18,7 @@ const LogTableList: React.FC = () => {
|
|||||||
const access = useAccess()
|
const access = useAccess()
|
||||||
const [shopOption, setShopOption] = useState([]);
|
const [shopOption, setShopOption] = useState([]);
|
||||||
const [count, setCountRows] = useState(false);
|
const [count, setCountRows] = useState(false);
|
||||||
|
const [setinfoFormModal, setSetinfoFormModal] = useState(false);
|
||||||
const countInit = async (params) => {
|
const countInit = async (params) => {
|
||||||
const { success, data } = await getDeviceAnalyze(params);
|
const { success, data } = await getDeviceAnalyze(params);
|
||||||
if (success) {
|
if (success) {
|
||||||
@@ -47,7 +47,25 @@ const LogTableList: React.FC = () => {
|
|||||||
setShopOption(data.records)
|
setShopOption(data.records)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleSetinfo = async (value) => {
|
||||||
|
const { success } = await deviceSetinfo({
|
||||||
|
...value,
|
||||||
|
// repeat: 2
|
||||||
|
});
|
||||||
|
if (success) {
|
||||||
|
setSetinfoFormModal(false);
|
||||||
|
actionRef.current?.reload();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
{
|
||||||
|
title: 'ID',
|
||||||
|
dataIndex: 'id',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '设备号',
|
title: '设备号',
|
||||||
dataIndex: 'deviceNo',
|
dataIndex: 'deviceNo',
|
||||||
@@ -254,6 +272,27 @@ const LogTableList: React.FC = () => {
|
|||||||
return record.createTime
|
return record.createTime
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
dataIndex: 'option',
|
||||||
|
valueType: 'option',
|
||||||
|
render: (_, record) => (
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => {
|
||||||
|
setRow({
|
||||||
|
...record,
|
||||||
|
stationName: record.stationName,
|
||||||
|
deviceNo: record.deviceNo,
|
||||||
|
deviceId: record.id
|
||||||
|
});
|
||||||
|
setSetinfoFormModal(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
设置地址
|
||||||
|
</Button>
|
||||||
|
),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -291,6 +330,12 @@ const LogTableList: React.FC = () => {
|
|||||||
modalOpenState={bonusFormModal}
|
modalOpenState={bonusFormModal}
|
||||||
onModalOpenState={setBonusFormModal}
|
onModalOpenState={setBonusFormModal}
|
||||||
/>
|
/>
|
||||||
|
<SetinfoFormModal
|
||||||
|
values={row}
|
||||||
|
modalOpenState={setinfoFormModal}
|
||||||
|
onModalOpenState={setSetinfoFormModal}
|
||||||
|
onSubmit={handleSetinfo}
|
||||||
|
/>
|
||||||
<TempFormModal
|
<TempFormModal
|
||||||
modalOpenState={tempFormModal}
|
modalOpenState={tempFormModal}
|
||||||
onModalOpenState={setTempFormModal}
|
onModalOpenState={setTempFormModal}
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ import { smsCode } from '@/services/user/user'
|
|||||||
|
|
||||||
export default ({ modalOpenState, onModalOpenState, onSubmit, type }) => {
|
export default ({ modalOpenState, onModalOpenState, onSubmit, type }) => {
|
||||||
const restFormRef = useRef<ProFormInstance>();
|
const restFormRef = useRef<ProFormInstance>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const handleFinish = async (formValues) => {
|
const handleFinish = async (formValues) => {
|
||||||
await onSubmit(formValues);
|
await onSubmit(formValues);
|
||||||
restFormRef.current?.resetFields();
|
restFormRef.current?.resetFields();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { usersPage, usersAdd, usersDelete, usersUpdate, updateUserLevel, userTransferHanging, exportUser, userRecharge, accountChange, updateUserRoleType, updateUserPemType, backendBasics } from '@/services/user/user';
|
import { usersPage, usersCode, usersAdd, usersDelete, usersUpdate, updateUserLevel, userTransferHanging, exportUser, userRecharge, accountChange, updateUserRoleType, updateUserPemType, backendBasics } from '@/services/user/user';
|
||||||
|
|
||||||
|
|
||||||
import React, { useRef, useEffect, useState } from 'react';
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
@@ -20,7 +20,7 @@ import UpPem from './components/UpPem';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加节点
|
* 添加节点
|
||||||
*
|
*2
|
||||||
* @param fields
|
* @param fields
|
||||||
*/
|
*/
|
||||||
const handleAdd = async (fields) => {
|
const handleAdd = async (fields) => {
|
||||||
@@ -163,6 +163,14 @@ const LogTableList: React.FC = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const setCodeRow = async (value) => {
|
||||||
|
const { success } = await usersCode(value);
|
||||||
|
if (success) {
|
||||||
|
actionRef.current?.reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'ID',
|
title: 'ID',
|
||||||
@@ -333,49 +341,60 @@ const LogTableList: React.FC = () => {
|
|||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: '操作',
|
title: '操作',
|
||||||
// dataIndex: 'option',
|
dataIndex: 'option',
|
||||||
// width: '220px',
|
width: '220px',
|
||||||
// valueType: 'option',
|
valueType: 'option',
|
||||||
// render: (_, record) => [
|
render: (_, record) => [
|
||||||
// // <Button
|
<Button
|
||||||
// // type="link"
|
type="link"
|
||||||
// // size="small"
|
size="small"
|
||||||
// // // hidden={!access.hasPerms('admin/banner/update')}
|
// hidden={!access.hasPerms('admin/banner/update')}
|
||||||
// // onClick={() => {
|
onClick={() => {
|
||||||
// // setModalVisible(true);
|
// setModalVisible(true);
|
||||||
// // setCurrentRow(record);
|
setCodeRow(record.id);
|
||||||
// // }}
|
}}
|
||||||
// // >
|
>
|
||||||
// // 编辑
|
{record.tag == 1 ? '取消核销账户' : '设置核销账户'}
|
||||||
// // </Button>,
|
</Button>,
|
||||||
// // <Button
|
// <Button
|
||||||
// // type="link"
|
// type="link"
|
||||||
// // size="small"
|
// size="small"
|
||||||
// // danger
|
// // hidden={!access.hasPerms('admin/banner/update')}
|
||||||
// // // hidden={!access.hasPerms('admin:banner:update')}
|
// onClick={() => {
|
||||||
// // onClick={async () => {
|
// setModalVisible(true);
|
||||||
// // Modal.confirm({
|
// setCurrentRow(record);
|
||||||
// // title: '删除',
|
// }}
|
||||||
// // content: '确定删除该项吗?',
|
// >
|
||||||
// // okText: '确认',
|
// 编辑
|
||||||
// // cancelText: '取消',
|
// </Button>,
|
||||||
// // onOk: async () => {
|
// <Button
|
||||||
// // const success = await handleRemoveOne(record);
|
// type="link"
|
||||||
// // if (success) {
|
// size="small"
|
||||||
// // if (actionRef.current) {
|
// danger
|
||||||
// // actionRef.current.reload();
|
// // hidden={!access.hasPerms('admin:banner:update')}
|
||||||
// // }
|
// onClick={async () => {
|
||||||
// // }
|
// Modal.confirm({
|
||||||
// // },
|
// title: '删除',
|
||||||
// // });
|
// content: '确定删除该项吗?',
|
||||||
// // }}
|
// okText: '确认',
|
||||||
// // >
|
// cancelText: '取消',
|
||||||
// // 删除
|
// onOk: async () => {
|
||||||
// // </Button>,
|
// const success = await handleRemoveOne(record);
|
||||||
// ],
|
// if (success) {
|
||||||
// },
|
// if (actionRef.current) {
|
||||||
|
// actionRef.current.reload();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// });
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
|
// 删除
|
||||||
|
// </Button>,
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const handleTrade = async (fields) => {
|
const handleTrade = async (fields) => {
|
||||||
|
|||||||
90
src/pages/verification/components/CreateFormModal.tsx
Normal file
90
src/pages/verification/components/CreateFormModal.tsx
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* @Note:
|
||||||
|
* @Author: 2058827620@qq.com
|
||||||
|
* @Date: 2022-04-03 17:02:15
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { ProForm, ModalForm, ProFormRadio, ProFormText, ProFormDigit } from '@ant-design/pro-components';
|
||||||
|
import { Tree } from 'antd';
|
||||||
|
import { useEffect, useRef } from 'react';
|
||||||
|
import FilesManager from '@/components/FilesManage/index';
|
||||||
|
|
||||||
|
export default ({ values, modalOpenState, onModalOpenState, onSubmit, permissionTreeData }) => {
|
||||||
|
const restFormRef = useRef();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
restFormRef.current?.setFieldsValue(values);
|
||||||
|
}, [values]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ModalForm
|
||||||
|
title="核销卷-添加"
|
||||||
|
formRef={restFormRef}
|
||||||
|
submitter={{
|
||||||
|
searchConfig: {
|
||||||
|
resetText: '重置',
|
||||||
|
},
|
||||||
|
resetButtonProps: {
|
||||||
|
onClick: () => {
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
initialValues={values}
|
||||||
|
onFinish={onSubmit}
|
||||||
|
open={modalOpenState}
|
||||||
|
onOpenChange={onModalOpenState}
|
||||||
|
>
|
||||||
|
<ProFormText hidden={true} width="md" name="id" />
|
||||||
|
<ProForm.Group>
|
||||||
|
{/* <ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
width="md"
|
||||||
|
name="couponCode"
|
||||||
|
label="核销卷编码"
|
||||||
|
placeholder="请输入"
|
||||||
|
/> */}
|
||||||
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
width="md"
|
||||||
|
name="couponName"
|
||||||
|
label="核销卷名称"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
|
||||||
|
<ProFormDigit
|
||||||
|
fieldProps={{
|
||||||
|
prefix: '¥',
|
||||||
|
}}
|
||||||
|
label="面值"
|
||||||
|
name="price"
|
||||||
|
min={0}
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
{/* <ProFormRadio.Group
|
||||||
|
name="status"
|
||||||
|
radioType="button"
|
||||||
|
label="状态"
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: '正常',
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '冻结',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '禁用',
|
||||||
|
value: 2,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/> */}
|
||||||
|
</ModalForm>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
73
src/pages/verification/components/UpdateFormModal.tsx
Normal file
73
src/pages/verification/components/UpdateFormModal.tsx
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/*
|
||||||
|
* @Note:
|
||||||
|
* @Author: 2058827620@qq.com
|
||||||
|
* @Date: 2022-04-03 17:02:15
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { ProForm, ModalForm, ProFormRadio, ProFormText,ProFormDigit } from '@ant-design/pro-components';
|
||||||
|
import { Tree } from 'antd';
|
||||||
|
import { useEffect, useRef, useState } from 'react';
|
||||||
|
import FilesManager from '@/components/FilesManage/index';
|
||||||
|
|
||||||
|
export default ({ values, modalOpenState, onModalOpenState, onSubmit, permissionTreeData }) => {
|
||||||
|
const restFormRef = useRef();
|
||||||
|
const [checkedKeys, setCheckedKeys] = useState();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setCheckedKeys(values.permission_ids);
|
||||||
|
restFormRef.current?.setFieldsValue(values);
|
||||||
|
}, [values]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ModalForm
|
||||||
|
title="管理员-添加"
|
||||||
|
formRef={restFormRef}
|
||||||
|
submitter={{
|
||||||
|
searchConfig: {
|
||||||
|
resetText: '重置',
|
||||||
|
},
|
||||||
|
resetButtonProps: {
|
||||||
|
onClick: () => {
|
||||||
|
restFormRef.current?.resetFields();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
initialValues={values}
|
||||||
|
onFinish={onSubmit}
|
||||||
|
open={modalOpenState}
|
||||||
|
onOpenChange={onModalOpenState}
|
||||||
|
>
|
||||||
|
<ProFormText hidden={true} width="md" name="id" />
|
||||||
|
<ProForm.Group>
|
||||||
|
{/* <ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
width="md"
|
||||||
|
name="couponCode"
|
||||||
|
label="核销卷编码"
|
||||||
|
placeholder="请输入"
|
||||||
|
/> */}
|
||||||
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入' }]}
|
||||||
|
width="md"
|
||||||
|
name="couponName"
|
||||||
|
label="核销卷名称"
|
||||||
|
placeholder="请输入"
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
<ProForm.Group>
|
||||||
|
|
||||||
|
<ProFormDigit
|
||||||
|
fieldProps={{
|
||||||
|
prefix: '¥',
|
||||||
|
}}
|
||||||
|
label="面值"
|
||||||
|
name="price"
|
||||||
|
min={0}
|
||||||
|
/>
|
||||||
|
</ProForm.Group>
|
||||||
|
</ModalForm>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
233
src/pages/verification/index.tsx
Normal file
233
src/pages/verification/index.tsx
Normal file
@@ -0,0 +1,233 @@
|
|||||||
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
|
import { Button, Space, message, Popconfirm } from 'antd';
|
||||||
|
import {
|
||||||
|
PageContainer,
|
||||||
|
ProTable,
|
||||||
|
} from '@ant-design/pro-components';
|
||||||
|
|
||||||
|
import AuthConsumer from '@/components/Authority';
|
||||||
|
import CreateFormModal from './components/CreateFormModal';
|
||||||
|
import UpdateFormModal from './components/UpdateFormModal';
|
||||||
|
|
||||||
|
import services from '@/services/admin';
|
||||||
|
|
||||||
|
import { adminItems, adminCreate, adminDelete, adminUpdate} from '@/services/verification/index';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
const [createFormModal, setCreateFormModal] = useState(false);
|
||||||
|
const [updateFormModal, setUpdateFormModal] = useState(false);
|
||||||
|
const [permissionTreeData, setPermissionTreeData] = useState([]);
|
||||||
|
|
||||||
|
const actionRef = useRef();
|
||||||
|
|
||||||
|
const initRow = {
|
||||||
|
id: '',
|
||||||
|
nickname: '',
|
||||||
|
username: '',
|
||||||
|
email: '',
|
||||||
|
avatar: '',
|
||||||
|
status: 0,
|
||||||
|
password: '',
|
||||||
|
permission_ids: [],
|
||||||
|
authority_note: undefined
|
||||||
|
};
|
||||||
|
|
||||||
|
const [row, setRow] = useState(initRow);
|
||||||
|
|
||||||
|
const [selectedRowsState, setSelectedRows] = useState([]);
|
||||||
|
|
||||||
|
const handleDelete = async (fields) => {
|
||||||
|
|
||||||
|
const { success } = await adminDelete(fields);
|
||||||
|
if (success) {
|
||||||
|
actionRef.current.clearSelected();
|
||||||
|
actionRef.current?.reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCreate = async (fields) => {
|
||||||
|
setRow(fields);
|
||||||
|
|
||||||
|
const { success } = await adminCreate({ ...fields });
|
||||||
|
|
||||||
|
if (success) {
|
||||||
|
setRow(initRow);
|
||||||
|
actionRef.current?.reload();
|
||||||
|
setCreateFormModal(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleUpdate = async (fields) => {
|
||||||
|
|
||||||
|
const { success } = await adminUpdate({ ...fields });
|
||||||
|
|
||||||
|
if (success) {
|
||||||
|
actionRef.current?.reload();
|
||||||
|
|
||||||
|
setUpdateFormModal(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: 'ID',
|
||||||
|
dataIndex: 'id',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '核销卷编码',
|
||||||
|
dataIndex: 'couponCode',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '核销卷名称',
|
||||||
|
dataIndex: 'couponName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '面值',
|
||||||
|
dataIndex: 'price',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
dataIndex: 'createTime',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
dataIndex: 'option',
|
||||||
|
valueType: 'option',
|
||||||
|
render: (_, record) => (
|
||||||
|
<Space>
|
||||||
|
<AuthConsumer action={'/api/v0/coupon/update'} key="/api/v0/coupon/update">
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => {
|
||||||
|
setRow(record);
|
||||||
|
setUpdateFormModal(true)
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
编辑
|
||||||
|
</Button>
|
||||||
|
</AuthConsumer>
|
||||||
|
<AuthConsumer action={'/api/v0/coupon/delete'} key="/api/v0/coupon/delete">
|
||||||
|
<Popconfirm
|
||||||
|
title="确认删除?"
|
||||||
|
onConfirm={() => {
|
||||||
|
handleDelete({ code: record.couponCode });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
danger
|
||||||
|
>
|
||||||
|
删除
|
||||||
|
</Button>
|
||||||
|
</Popconfirm>
|
||||||
|
</AuthConsumer>
|
||||||
|
</Space>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageContainer
|
||||||
|
ghost
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<UpdateFormModal
|
||||||
|
values={row}
|
||||||
|
modalOpenState={updateFormModal}
|
||||||
|
onModalOpenState={setUpdateFormModal}
|
||||||
|
onSubmit={handleUpdate}
|
||||||
|
/>
|
||||||
|
<CreateFormModal
|
||||||
|
values={row}
|
||||||
|
modalOpenState={createFormModal}
|
||||||
|
onModalOpenState={setCreateFormModal}
|
||||||
|
onSubmit={handleCreate}
|
||||||
|
/>
|
||||||
|
<ProTable
|
||||||
|
actionRef={actionRef}
|
||||||
|
rowKey="id"
|
||||||
|
search={{
|
||||||
|
defaultCollapsed: false,
|
||||||
|
}}
|
||||||
|
toolBarRender={() => [
|
||||||
|
<AuthConsumer action={'admin/admin/create'} key="admin/admin/create">
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
onClick={() => {
|
||||||
|
setCreateFormModal(true)
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
添加
|
||||||
|
</Button>
|
||||||
|
</AuthConsumer>
|
||||||
|
]}
|
||||||
|
request={async (params, sorter, filter) => {
|
||||||
|
const { data, success } = await adminItems({
|
||||||
|
...params,
|
||||||
|
sorter,
|
||||||
|
filter,
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
data: data?.records || [],
|
||||||
|
total: data?.total,
|
||||||
|
success,
|
||||||
|
};
|
||||||
|
}}
|
||||||
|
columns={columns}
|
||||||
|
rowSelection={{
|
||||||
|
onChange: (_, selectedRows) => {
|
||||||
|
setSelectedRows(selectedRows)
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
tableAlertRender={({
|
||||||
|
selectedRowKeys,
|
||||||
|
selectedRows,
|
||||||
|
onCleanSelected,
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Space size={24}>
|
||||||
|
<span>已选 {selectedRowKeys.length} 项</span>
|
||||||
|
<span>
|
||||||
|
<a style={{ marginInlineStart: 8 }} onClick={onCleanSelected}>
|
||||||
|
取消选择
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</Space>
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
tableAlertOptionRender={({ selectedRowKeys, selectedRows, onCleanSelected }) => {
|
||||||
|
return (
|
||||||
|
<Space size={16}>
|
||||||
|
<AuthConsumer action={'admin/admin/delete'} key="admin/admin/delete">
|
||||||
|
<Popconfirm
|
||||||
|
title="确认删除?"
|
||||||
|
onConfirm={() => {
|
||||||
|
handleDelete({ id: selectedRowKeys });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
danger
|
||||||
|
>
|
||||||
|
批量删除
|
||||||
|
</Button>
|
||||||
|
</Popconfirm>
|
||||||
|
</AuthConsumer>
|
||||||
|
</Space>
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
pagination={{
|
||||||
|
showSizeChanger: true,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</PageContainer>
|
||||||
|
);
|
||||||
|
};
|
||||||
55
src/pages/verificationOrder/components/CheckoutModal.tsx
Normal file
55
src/pages/verificationOrder/components/CheckoutModal.tsx
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Modal, Form, Input, Button, message } from 'antd';
|
||||||
|
import { request } from '@umijs/max';
|
||||||
|
|
||||||
|
interface CheckoutModalProps {
|
||||||
|
record: any;
|
||||||
|
onOk: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const CheckoutModal: React.FC<CheckoutModalProps> = ({ record, onOk }) => {
|
||||||
|
const handleOk = async () => {
|
||||||
|
try {
|
||||||
|
const response = await request('/api/orders/updateCheckStatus', {
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: { id: record?.id, checkStatus: 1 },
|
||||||
|
});
|
||||||
|
|
||||||
|
if (response.success) {
|
||||||
|
message.success('对账成功');
|
||||||
|
onOk();
|
||||||
|
} else {
|
||||||
|
message.error('对账失败');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
message.error('对账失败');
|
||||||
|
console.error('Error updating check status:', error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Modal
|
||||||
|
title="财务对账"
|
||||||
|
open={true}
|
||||||
|
onOk={handleOk}
|
||||||
|
onCancel={onOk}
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<p>订单号: {record?.orderNo}</p>
|
||||||
|
<p>用户: {record?.shopEntity?.userName} ({record?.shopEntity?.phone})</p>
|
||||||
|
<p>核销人: {record?.verifier?.userName} ({record?.verifier?.phone})</p>
|
||||||
|
<p>面值: ¥{record?.goodsPrice}</p>
|
||||||
|
<p>数量: {record?.couponNum}</p>
|
||||||
|
<p>状态: {record?.status ? '已核销' : '未核销'}</p>
|
||||||
|
<p>财务对账: {record?.checkStatus ? '已对账' : '未对账'}</p>
|
||||||
|
<p>备注: {record?.note || '-'}</p>
|
||||||
|
<p>创建时间: {record?.createTime}</p>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default CheckoutModal;
|
||||||
268
src/pages/verificationOrder/index.tsx
Normal file
268
src/pages/verificationOrder/index.tsx
Normal file
@@ -0,0 +1,268 @@
|
|||||||
|
import { verificationPage } from '@/services/payment';
|
||||||
|
import { request } from '@umijs/max';
|
||||||
|
|
||||||
|
|
||||||
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
|
import { useIntl, useAccess } from '@umijs/max';
|
||||||
|
import { message, Tag, Image, Button, Select } from 'antd';
|
||||||
|
import Visible from '@/components/Visible';
|
||||||
|
import CheckoutModal from './components/CheckoutModal';
|
||||||
|
import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components';
|
||||||
|
import { usersPage } from '@/services/user/user';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const LogTableList: React.FC = () => {
|
||||||
|
const actionRef = useRef<ActionType>();
|
||||||
|
const [visible, setVisible] = useState(false);
|
||||||
|
const [record, setRecord] = useState(null);
|
||||||
|
const [searchParams, setSearchParams] = useState({});
|
||||||
|
const [shopOption, setShopOption] = useState([]);
|
||||||
|
const searchShop = async (value) => {
|
||||||
|
const { success, data } = await usersPage({
|
||||||
|
userId: value
|
||||||
|
});
|
||||||
|
data.records.map((i) => {
|
||||||
|
i.userName = i.userName + ' ' + i.phone
|
||||||
|
})
|
||||||
|
setShopOption(data.records)
|
||||||
|
}
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: '订单号',
|
||||||
|
dataIndex: 'orderNo',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '用户信息',
|
||||||
|
dataIndex: 'userId',
|
||||||
|
valueType: 'text',
|
||||||
|
render: (_: any, record: any) => {
|
||||||
|
return <div>
|
||||||
|
<div>用户名:{record?.shopEntity?.userName}</div>
|
||||||
|
<div>手机号:{record?.shopEntity?.phone}</div>
|
||||||
|
</div>
|
||||||
|
},
|
||||||
|
renderFormItem: (
|
||||||
|
_,
|
||||||
|
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||||
|
form,
|
||||||
|
) => {
|
||||||
|
return <Select
|
||||||
|
{...fieldProps}
|
||||||
|
allowClear
|
||||||
|
showSearch
|
||||||
|
placeholder="请输入用户名或手机号"
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
filterOption={false}
|
||||||
|
onSearch={
|
||||||
|
(e) => {
|
||||||
|
if (!e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
searchShop(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNames={{
|
||||||
|
label: "userName",
|
||||||
|
value: "id"
|
||||||
|
}}
|
||||||
|
options={shopOption}
|
||||||
|
/>
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '核销人',
|
||||||
|
dataIndex: 'userId',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
render: (_: any, record: any) => {
|
||||||
|
return <div>
|
||||||
|
<div>用户名:{record?.verifier?.userName}</div>
|
||||||
|
<div>手机号:{record?.verifier?.phone}</div>
|
||||||
|
</div>
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '面值',
|
||||||
|
dataIndex: 'goodsPrice',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '数量',
|
||||||
|
dataIndex: 'couponNum',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '核销码',
|
||||||
|
dataIndex: 'qrcode',
|
||||||
|
search: false,
|
||||||
|
render: (_, record) => {
|
||||||
|
return record.qrcode ? <Image src={record.qrcode} width={60} height={60}></Image> : '-'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
dataIndex: 'status',
|
||||||
|
valueType: 'text',
|
||||||
|
renderFormItem: (
|
||||||
|
_,
|
||||||
|
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||||
|
form,
|
||||||
|
) => {
|
||||||
|
const statusMap = [{
|
||||||
|
label: '已核销',
|
||||||
|
value: 1
|
||||||
|
}, {
|
||||||
|
label: '未核销',
|
||||||
|
value: 0
|
||||||
|
}];
|
||||||
|
|
||||||
|
return <Select
|
||||||
|
{...fieldProps}
|
||||||
|
allowClear
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
filterOption={false}
|
||||||
|
fieldNames={{
|
||||||
|
label: "label",
|
||||||
|
value: "value"
|
||||||
|
}}
|
||||||
|
options={statusMap}
|
||||||
|
/>
|
||||||
|
},
|
||||||
|
render: (_, record) => {
|
||||||
|
return record.status ? '已核销' : '未核销'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '财务对账',
|
||||||
|
dataIndex: 'checkStatus',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
renderFormItem: (
|
||||||
|
_,
|
||||||
|
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||||
|
form,
|
||||||
|
) => {
|
||||||
|
const statusMap = [{
|
||||||
|
label: '已核销',
|
||||||
|
value: 1
|
||||||
|
}, {
|
||||||
|
label: '未核销',
|
||||||
|
value: 0
|
||||||
|
}];
|
||||||
|
|
||||||
|
return <Select
|
||||||
|
{...fieldProps}
|
||||||
|
allowClear
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
filterOption={false}
|
||||||
|
fieldNames={{
|
||||||
|
label: "label",
|
||||||
|
value: "value"
|
||||||
|
}}
|
||||||
|
options={statusMap}
|
||||||
|
/>
|
||||||
|
},
|
||||||
|
render: (_, record) => {
|
||||||
|
return record.checkStatus ? '已对账' : '未对账'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '备注',
|
||||||
|
dataIndex: 'note',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '创建时间',
|
||||||
|
dataIndex: 'createTime',
|
||||||
|
valueType: 'text',
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
dataIndex: 'operation',
|
||||||
|
search: false,
|
||||||
|
render: (_, record) => {
|
||||||
|
return <div>
|
||||||
|
{!record?.checkStatus && <Button ghost type="primary" disabled={record?.status === 0} onClick={() => {
|
||||||
|
setVisible(true);
|
||||||
|
setRecord(record);
|
||||||
|
}}>对账</Button>}
|
||||||
|
</div>
|
||||||
|
},
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
const handleExport = async () => {
|
||||||
|
try {
|
||||||
|
const response = await request('/api/orders/couponList-export', {
|
||||||
|
method: 'get',
|
||||||
|
responseType: 'blob',
|
||||||
|
params: searchParams
|
||||||
|
});
|
||||||
|
|
||||||
|
// Create download link
|
||||||
|
const url = window.URL.createObjectURL(new Blob([response]));
|
||||||
|
const link = document.createElement('a');
|
||||||
|
link.href = url;
|
||||||
|
link.setAttribute('download', `verification-orders-${new Date().getTime()}.xlsx`);
|
||||||
|
document.body.appendChild(link);
|
||||||
|
link.click();
|
||||||
|
document.body.removeChild(link);
|
||||||
|
} catch (error) {
|
||||||
|
message.error('导出失败');
|
||||||
|
console.error('Error exporting data:', error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageContainer>
|
||||||
|
<div style={{ width: '100%', float: 'right' }}>
|
||||||
|
<Visible
|
||||||
|
visible={visible}
|
||||||
|
onCancel={() => {
|
||||||
|
setVisible(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CheckoutModal
|
||||||
|
record={record}
|
||||||
|
onOk={async () => {
|
||||||
|
setVisible(false);
|
||||||
|
if (actionRef.current) {
|
||||||
|
actionRef.current.reload();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Visible>
|
||||||
|
<ProTable
|
||||||
|
actionRef={actionRef}
|
||||||
|
rowKey="id"
|
||||||
|
key="logList"
|
||||||
|
search={{
|
||||||
|
labelWidth: 120,
|
||||||
|
}}
|
||||||
|
toolBarRender={() => [
|
||||||
|
<Button key="export" type="primary" onClick={handleExport}>
|
||||||
|
导出
|
||||||
|
</Button>
|
||||||
|
]}
|
||||||
|
request={async (params, sorter, filter) => {
|
||||||
|
setSearchParams(params);
|
||||||
|
let { data } = await verificationPage(params)
|
||||||
|
return {
|
||||||
|
data: data?.records || [],
|
||||||
|
total: data?.total,
|
||||||
|
};
|
||||||
|
}}
|
||||||
|
columns={columns}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</PageContainer>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LogTableList;
|
||||||
@@ -50,6 +50,18 @@ export async function activity10s1UserList(body) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function activity7kwUserList(body) {
|
||||||
|
return request('/api/activity/activity7kwUserList', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'contentcategory-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export async function activity10CarUserList(body) {
|
export async function activity10CarUserList(body) {
|
||||||
return request('/api/activity/activity10CarUserList', {
|
return request('/api/activity/activity10CarUserList', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -60,6 +72,7 @@ export async function activity10CarUserList(body) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function activity10CarUserAdd(body) {
|
export async function activity10CarUserAdd(body) {
|
||||||
return request('/api/activity/activity10CarUserAdd', {
|
return request('/api/activity/activity10CarUserAdd', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@@ -81,3 +81,25 @@ export async function getZhiFuBaoCollect(bodys) {
|
|||||||
data: bodys || {},
|
data: bodys || {},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function deliverGoods(bodys) {
|
||||||
|
return request('/api/orders/deliverGoods', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: bodys || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function orderExportTeam(bodys) {
|
||||||
|
return request('/api/orders/teamExport', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: bodys || {},
|
||||||
|
responseType: 'blob'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,22 @@ export async function paymentPage(body) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export async function verificationPage(body) {
|
||||||
|
return request('/api/orders/couponList', {
|
||||||
|
method: 'get',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
params: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export async function paymentrefundPage(body) {
|
export async function paymentrefundPage(body) {
|
||||||
return request('/api/paymentrefund/page', {
|
return request('/api/paymentrefund/page', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@@ -65,3 +65,14 @@ export async function deviceExport(body) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function deviceSetinfo(body) {
|
||||||
|
return request('/api/device/modifyAddress', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export async function usersPage(body) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function usersAdd(body) {
|
export async function usersAdd(body) {
|
||||||
return request('/api/users/add', {
|
return request('/api/users/add', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -79,6 +80,15 @@ export async function pageUpAndDownLevel(id) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
export async function usersCode(id) {
|
||||||
|
return request(`/api/users/updateTag?id=${id}`, {
|
||||||
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function findFormUserId(id) {
|
export async function findFormUserId(id) {
|
||||||
return request(`/api/users/findFormUserId?id=${id}`, {
|
return request(`/api/users/findFormUserId?id=${id}`, {
|
||||||
@@ -162,4 +172,17 @@ export async function activity10s1UserAdd(body) {
|
|||||||
},
|
},
|
||||||
data: body || {},
|
data: body || {},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export async function activity7kwUserListShow(body) {
|
||||||
|
return request('/api/activity/activity7kwUserListShow', {
|
||||||
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
params:body || {},
|
||||||
|
// data: body || {},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
41
src/services/verification/index.ts
Normal file
41
src/services/verification/index.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import { request } from '@umijs/max';
|
||||||
|
|
||||||
|
export async function adminItems(body) {
|
||||||
|
return request('/api/v0/coupon/page', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function adminCreate(body) {
|
||||||
|
return request('/api/v0/coupon/add', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export async function adminUpdate(body) {
|
||||||
|
return request('/api/v0/coupon/update', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
data: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export async function adminDelete(body) {
|
||||||
|
return request('/api/v0/coupon/delete', {
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
|
},
|
||||||
|
params: body || {},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user