Commit 3157c84ec0400c03686bf4df6c33d52689a09a7f
1 parent
87d1f9e9
feat: update
Showing
3 changed files
with
31 additions
and
20 deletions
src/pages/Order/components/OrderDrawer.tsx
@@ -553,6 +553,8 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -553,6 +553,8 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
553 | getDefaultString(option.detail), | 553 | getDefaultString(option.detail), |
554 | ); | 554 | ); |
555 | form.setFieldValue('customerNameString', option.realName); | 555 | form.setFieldValue('customerNameString', option.realName); |
556 | + | ||
557 | + loadAccountOptions(option.phone); | ||
556 | } | 558 | } |
557 | 559 | ||
558 | //erp收货地址:需要与客户联系人中的地址一样:姓名,手机号,地址 | 560 | //erp收货地址:需要与客户联系人中的地址一样:姓名,手机号,地址 |
@@ -978,7 +980,6 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -978,7 +980,6 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
978 | } | 980 | } |
979 | 981 | ||
980 | let title = ''; | 982 | let title = ''; |
981 | - let spanText = ''; | ||
982 | let realName = item.realName; | 983 | let realName = item.realName; |
983 | let phone = item.phone; | 984 | let phone = item.phone; |
984 | let province = item.province; | 985 | let province = item.province; |
@@ -988,31 +989,41 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -988,31 +989,41 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
988 | let institution = item.institution; | 989 | let institution = item.institution; |
989 | let institutionContactName = item.institutionContactName; | 990 | let institutionContactName = item.institutionContactName; |
990 | 991 | ||
991 | - title = | ||
992 | - getDefaultString(realName) + | ||
993 | - '|' + | ||
994 | - getDefaultString(phone) + | ||
995 | - '|' + | ||
996 | - getDefaultString(institution) + | ||
997 | - '|' + | ||
998 | - getDefaultString(institutionContactName) + | ||
999 | - '|' + | 992 | + let address = |
1000 | getDefaultString(province) + | 993 | getDefaultString(province) + |
1001 | getDefaultString(city) + | 994 | getDefaultString(city) + |
1002 | getDefaultString(district) + | 995 | getDefaultString(district) + |
1003 | getDefaultString(detail); | 996 | getDefaultString(detail); |
1004 | 997 | ||
1005 | - spanText = | 998 | + title = |
1006 | getDefaultString(realName) + | 999 | getDefaultString(realName) + |
1007 | '|' + | 1000 | '|' + |
1008 | getDefaultString(phone) + | 1001 | getDefaultString(phone) + |
1009 | '|' + | 1002 | '|' + |
1010 | getDefaultString(institution) + | 1003 | getDefaultString(institution) + |
1011 | '|' + | 1004 | '|' + |
1012 | - getDefaultString(institutionContactName); | 1005 | + getDefaultString(institutionContactName) + |
1006 | + '|' + | ||
1007 | + address; | ||
1008 | + | ||
1013 | return ( | 1009 | return ( |
1014 | - <div title={title}> | ||
1015 | - <span style={{ color: '#333333' }}>{spanText}</span> | 1010 | + <div title={title} className="whitespace-normal"> |
1011 | + <span style={{ color: '#333333' }}> | ||
1012 | + {getDefaultString(realName)} | ||
1013 | + </span> | ||
1014 | + | | ||
1015 | + <span className="text-sky-600"> | ||
1016 | + {getDefaultString(phone)} | ||
1017 | + </span> | ||
1018 | + | | ||
1019 | + <span style={{ color: '#333333' }}> | ||
1020 | + {getDefaultString(institution)} | ||
1021 | + </span> | ||
1022 | + | | ||
1023 | + <span style={{ color: '#333333' }}> | ||
1024 | + {getDefaultString(institutionContactName)} | ||
1025 | + </span> | ||
1026 | + |<span className="text-orange-400">{address}</span> | ||
1016 | </div> | 1027 | </div> |
1017 | ); | 1028 | ); |
1018 | }, | 1029 | }, |
src/pages/Order/index.tsx
@@ -1925,7 +1925,7 @@ const OrderPage = () => { | @@ -1925,7 +1925,7 @@ const OrderPage = () => { | ||
1925 | 1925 | ||
1926 | <Flex title={optRecord.notes}> | 1926 | <Flex title={optRecord.notes}> |
1927 | <div | 1927 | <div |
1928 | - className="overflow-hidden whitespace-normal overflow-ellipsis hover:cursor-pointer" | 1928 | + className="max-w-[1100px] overflow-hidden whitespace-normal overflow-ellipsis hover:cursor-pointer" |
1929 | onClick={() => { | 1929 | onClick={() => { |
1930 | copyToClipboard(optRecord.notes); | 1930 | copyToClipboard(optRecord.notes); |
1931 | message.info('备注复制成功:' + optRecord.notes); | 1931 | message.info('备注复制成功:' + optRecord.notes); |
@@ -3858,11 +3858,11 @@ const OrderPage = () => { | @@ -3858,11 +3858,11 @@ const OrderPage = () => { | ||
3858 | label: '导出已选中订单', | 3858 | label: '导出已选中订单', |
3859 | key: '1', | 3859 | key: '1', |
3860 | onClick: async () => { | 3860 | onClick: async () => { |
3861 | - if (selectedMainOrderKeys.length === 0) { | 3861 | + if (mainOrderSelectedMap.size === 0) { |
3862 | message.error('请选择订单'); | 3862 | message.error('请选择订单'); |
3863 | return; | 3863 | return; |
3864 | } | 3864 | } |
3865 | - let body = { flag: 30, id: selectedMainOrderKeys }; | 3865 | + let body = { flag: 30, id: Array.from(mainOrderSelectedMap.keys()) }; |
3866 | exportLoading(); | 3866 | exportLoading(); |
3867 | orderExport('/api/service/order/export', body, exportLoadingDestory); | 3867 | orderExport('/api/service/order/export', body, exportLoadingDestory); |
3868 | }, | 3868 | }, |
src/pages/ResearchGroup/index.tsx
@@ -83,8 +83,7 @@ const PrepaidPage = () => { | @@ -83,8 +83,7 @@ const PrepaidPage = () => { | ||
83 | if (!value) { | 83 | if (!value) { |
84 | return <span></span>; | 84 | return <span></span>; |
85 | } | 85 | } |
86 | - | ||
87 | - return value.map((item: any) => { | 86 | + let tags = value.map((item: any) => { |
88 | let memberName = item.memberName; | 87 | let memberName = item.memberName; |
89 | let memberPhone = item.memberPhone; | 88 | let memberPhone = item.memberPhone; |
90 | return ( | 89 | return ( |
@@ -98,6 +97,7 @@ const PrepaidPage = () => { | @@ -98,6 +97,7 @@ const PrepaidPage = () => { | ||
98 | </Tag> | 97 | </Tag> |
99 | ); | 98 | ); |
100 | }); | 99 | }); |
100 | + return <div className="whitespace-normal">{tags}</div>; | ||
101 | }; | 101 | }; |
102 | 102 | ||
103 | /** | 103 | /** |
@@ -128,7 +128,7 @@ const PrepaidPage = () => { | @@ -128,7 +128,7 @@ const PrepaidPage = () => { | ||
128 | } | 128 | } |
129 | 129 | ||
130 | return ( | 130 | return ( |
131 | - <div> | 131 | + <div className="whitespace-normal"> |
132 | {value.map((item: any) => { | 132 | {value.map((item: any) => { |
133 | let accountPhone = item.accountPhone; | 133 | let accountPhone = item.accountPhone; |
134 | let accountName = item.accountName; | 134 | let accountName = item.accountName; |