Commit 2dfe7ddf81dd92591138ff454002e033af85ff94
Merge branch 'master' of http://39.108.227.113:8001/zhusen/canrd-erp-front
Showing
4 changed files
with
38 additions
and
6 deletions
src/pages/Order/components/OrderDrawer.tsx
@@ -741,9 +741,8 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -741,9 +741,8 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
741 | } | 741 | } |
742 | 742 | ||
743 | const validateContactNumber = (_: any, value: any) => { | 743 | const validateContactNumber = (_: any, value: any) => { |
744 | - console.log(value); | ||
745 | const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | 744 | const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; |
746 | - const phoneRegex = /^\d{1,11}$/; | 745 | + const phoneRegex = /^\d{1,11}(-\d{1,11})?$/; |
747 | 746 | ||
748 | if (emailRegex.test(value) || phoneRegex.test(value)) { | 747 | if (emailRegex.test(value) || phoneRegex.test(value)) { |
749 | return Promise.resolve(); | 748 | return Promise.resolve(); |
src/pages/Order/index.tsx
@@ -3904,7 +3904,13 @@ const OrderPage = () => { | @@ -3904,7 +3904,13 @@ const OrderPage = () => { | ||
3904 | onClick: async () => { | 3904 | onClick: async () => { |
3905 | let body = { flag: 50, ...searchParams }; | 3905 | let body = { flag: 50, ...searchParams }; |
3906 | exportLoading(); | 3906 | exportLoading(); |
3907 | - orderExport('/api/service/order/export', body, exportLoadingDestory); | 3907 | + orderExport( |
3908 | + '/api/service/order/export', | ||
3909 | + '订单导出结果.xls', | ||
3910 | + 'POST', | ||
3911 | + body, | ||
3912 | + exportLoadingDestory, | ||
3913 | + ); | ||
3908 | }, | 3914 | }, |
3909 | }, | 3915 | }, |
3910 | { | 3916 | { |
@@ -3917,7 +3923,13 @@ const OrderPage = () => { | @@ -3917,7 +3923,13 @@ const OrderPage = () => { | ||
3917 | } | 3923 | } |
3918 | let body = { flag: 30, id: Array.from(mainOrderSelectedMap.keys()) }; | 3924 | let body = { flag: 30, id: Array.from(mainOrderSelectedMap.keys()) }; |
3919 | exportLoading(); | 3925 | exportLoading(); |
3920 | - orderExport('/api/service/order/export', body, exportLoadingDestory); | 3926 | + orderExport( |
3927 | + '/api/service/order/export', | ||
3928 | + '订单导出结果.xls', | ||
3929 | + 'POST', | ||
3930 | + body, | ||
3931 | + exportLoadingDestory, | ||
3932 | + ); | ||
3921 | }, | 3933 | }, |
3922 | }, | 3934 | }, |
3923 | { | 3935 | { |
@@ -3926,7 +3938,13 @@ const OrderPage = () => { | @@ -3926,7 +3938,13 @@ const OrderPage = () => { | ||
3926 | onClick: async () => { | 3938 | onClick: async () => { |
3927 | let body = { flag: 40, ids: [] }; | 3939 | let body = { flag: 40, ids: [] }; |
3928 | exportLoading(); | 3940 | exportLoading(); |
3929 | - orderExport('/api/service/order/export', body, exportLoadingDestory); | 3941 | + orderExport( |
3942 | + '/api/service/order/export', | ||
3943 | + '订单导出结果.xls', | ||
3944 | + 'POST', | ||
3945 | + body, | ||
3946 | + exportLoadingDestory, | ||
3947 | + ); | ||
3930 | }, | 3948 | }, |
3931 | }, | 3949 | }, |
3932 | { | 3950 | { |
@@ -3935,7 +3953,13 @@ const OrderPage = () => { | @@ -3935,7 +3953,13 @@ const OrderPage = () => { | ||
3935 | onClick: async () => { | 3953 | onClick: async () => { |
3936 | let body = { flag: 10, ids: [] }; | 3954 | let body = { flag: 10, ids: [] }; |
3937 | exportLoading(); | 3955 | exportLoading(); |
3938 | - orderExport('/api/service/order/export', body, exportLoadingDestory); | 3956 | + orderExport( |
3957 | + '/api/service/order/export', | ||
3958 | + '订单导出结果.xls', | ||
3959 | + 'POST', | ||
3960 | + body, | ||
3961 | + exportLoadingDestory, | ||
3962 | + ); | ||
3939 | }, | 3963 | }, |
3940 | }, | 3964 | }, |
3941 | ]; | 3965 | ]; |
src/pages/Prepaid/constant.tsx
@@ -226,6 +226,13 @@ export const BALANCE_CHANGE_COLUMNS = [ | @@ -226,6 +226,13 @@ export const BALANCE_CHANGE_COLUMNS = [ | ||
226 | width: 140, | 226 | width: 140, |
227 | }, | 227 | }, |
228 | { | 228 | { |
229 | + title: '变动人', | ||
230 | + dataIndex: 'updateBy', | ||
231 | + key: 'updateBy', | ||
232 | + dataType: 'text', | ||
233 | + width: 200, | ||
234 | + }, | ||
235 | + { | ||
229 | title: '类型', | 236 | title: '类型', |
230 | dataIndex: 'title', | 237 | dataIndex: 'title', |
231 | key: 'title', | 238 | key: 'title', |
src/pages/ResearchGroup/components/ImportModal.tsx
@@ -28,6 +28,8 @@ export default ({ onClose }) => { | @@ -28,6 +28,8 @@ export default ({ onClose }) => { | ||
28 | exportLoading('正在下载模板...'); | 28 | exportLoading('正在下载模板...'); |
29 | orderExport( | 29 | orderExport( |
30 | '/api/research/groups/download/importTemplate', | 30 | '/api/research/groups/download/importTemplate', |
31 | + '导入模板.xls', | ||
32 | + 'POST', | ||
31 | {}, | 33 | {}, |
32 | exportLoadingDestory, | 34 | exportLoadingDestory, |
33 | ); | 35 | ); |