Commit 681eca35766b7070f9c3e1a655845847de6d9956
Merge branch 'master' of http://39.108.227.113:8001/zhusen/canrd-erp-front
Showing
6 changed files
with
737 additions
and
72 deletions
.umirc.ts
src/pages/Client/index.tsx
0 → 100644
1 | +import { EllipsisOutlined, PlusOutlined } from '@ant-design/icons'; | |
2 | +import type { ActionType, ProColumns } from '@ant-design/pro-components'; | |
3 | +import { ProTable, TableDropdown } from '@ant-design/pro-components'; | |
4 | +import { request } from '@umijs/max'; | |
5 | +import { Button, Dropdown, Space, Tag } from 'antd'; | |
6 | +import { useRef } from 'react'; | |
7 | + | |
8 | +export const waitTimePromise = async (time: number = 100) => { | |
9 | + return new Promise((resolve) => { | |
10 | + setTimeout(() => { | |
11 | + resolve(true); | |
12 | + }, time); | |
13 | + }); | |
14 | +}; | |
15 | + | |
16 | +export const waitTime = async (time: number = 100) => { | |
17 | + await waitTimePromise(time); | |
18 | +}; | |
19 | + | |
20 | +type GithubIssueItem = { | |
21 | + url: string; | |
22 | + id: number; | |
23 | + number: number; | |
24 | + title: string; | |
25 | + labels: { | |
26 | + name: string; | |
27 | + color: string; | |
28 | + }[]; | |
29 | + state: string; | |
30 | + comments: number; | |
31 | + created_at: string; | |
32 | + updated_at: string; | |
33 | + closed_at?: string; | |
34 | +}; | |
35 | + | |
36 | +const columns: ProColumns<GithubIssueItem>[] = [ | |
37 | + { | |
38 | + dataIndex: 'index', | |
39 | + valueType: 'indexBorder', | |
40 | + width: 48, | |
41 | + }, | |
42 | + { | |
43 | + title: '标题', | |
44 | + dataIndex: 'title', | |
45 | + copyable: true, | |
46 | + ellipsis: true, | |
47 | + tooltip: '标题过长会自动收缩', | |
48 | + formItemProps: { | |
49 | + rules: [ | |
50 | + { | |
51 | + required: true, | |
52 | + message: '此项为必填项', | |
53 | + }, | |
54 | + ], | |
55 | + }, | |
56 | + }, | |
57 | + { | |
58 | + disable: true, | |
59 | + title: '状态', | |
60 | + dataIndex: 'state', | |
61 | + filters: true, | |
62 | + onFilter: true, | |
63 | + ellipsis: true, | |
64 | + valueType: 'select', | |
65 | + valueEnum: { | |
66 | + all: { text: '超长'.repeat(50) }, | |
67 | + open: { | |
68 | + text: '未解决', | |
69 | + status: 'Error', | |
70 | + }, | |
71 | + closed: { | |
72 | + text: '已解决', | |
73 | + status: 'Success', | |
74 | + disabled: true, | |
75 | + }, | |
76 | + processing: { | |
77 | + text: '解决中', | |
78 | + status: 'Processing', | |
79 | + }, | |
80 | + }, | |
81 | + }, | |
82 | + { | |
83 | + disable: true, | |
84 | + title: '标签', | |
85 | + dataIndex: 'labels', | |
86 | + search: false, | |
87 | + renderFormItem: (_, { defaultRender }) => { | |
88 | + return defaultRender(_); | |
89 | + }, | |
90 | + render: (_, record) => ( | |
91 | + <Space> | |
92 | + {record.labels.map(({ name, color }) => ( | |
93 | + <Tag color={color} key={name}> | |
94 | + {name} | |
95 | + </Tag> | |
96 | + ))} | |
97 | + </Space> | |
98 | + ), | |
99 | + }, | |
100 | + { | |
101 | + title: '创建时间', | |
102 | + key: 'showTime', | |
103 | + dataIndex: 'created_at', | |
104 | + valueType: 'date', | |
105 | + sorter: true, | |
106 | + hideInSearch: true, | |
107 | + }, | |
108 | + { | |
109 | + title: '创建时间', | |
110 | + dataIndex: 'created_at', | |
111 | + valueType: 'dateRange', | |
112 | + hideInTable: true, | |
113 | + search: { | |
114 | + transform: (value) => { | |
115 | + return { | |
116 | + startTime: value[0], | |
117 | + endTime: value[1], | |
118 | + }; | |
119 | + }, | |
120 | + }, | |
121 | + }, | |
122 | + { | |
123 | + title: '操作', | |
124 | + valueType: 'option', | |
125 | + key: 'option', | |
126 | + render: (text, record, _, action) => [ | |
127 | + <a | |
128 | + key="editable" | |
129 | + onClick={() => { | |
130 | + action?.startEditable?.(record.id); | |
131 | + }} | |
132 | + > | |
133 | + 编辑 | |
134 | + </a>, | |
135 | + <a href={record.url} target="_blank" rel="noopener noreferrer" key="view"> | |
136 | + 查看 | |
137 | + </a>, | |
138 | + <TableDropdown | |
139 | + key="actionGroup" | |
140 | + onSelect={() => action?.reload()} | |
141 | + menus={[ | |
142 | + { key: 'copy', name: '复制' }, | |
143 | + { key: 'delete', name: '删除' }, | |
144 | + ]} | |
145 | + />, | |
146 | + ], | |
147 | + }, | |
148 | +]; | |
149 | + | |
150 | +export default () => { | |
151 | + const actionRef = useRef<ActionType>(); | |
152 | + return ( | |
153 | + <ProTable<GithubIssueItem> | |
154 | + columns={columns} | |
155 | + actionRef={actionRef} | |
156 | + cardBordered | |
157 | + request={async (params, sort, filter) => { | |
158 | + console.log(sort, filter); | |
159 | + await waitTime(2000); | |
160 | + return request<{ | |
161 | + data: GithubIssueItem[]; | |
162 | + }>('https://proapi.azurewebsites.net/github/issues', { | |
163 | + params, | |
164 | + }); | |
165 | + }} | |
166 | + editable={{ | |
167 | + type: 'multiple', | |
168 | + }} | |
169 | + columnsState={{ | |
170 | + persistenceKey: 'pro-table-singe-demos', | |
171 | + persistenceType: 'localStorage', | |
172 | + defaultValue: { | |
173 | + option: { fixed: 'right', disable: true }, | |
174 | + }, | |
175 | + onChange(value) { | |
176 | + console.log('value: ', value); | |
177 | + }, | |
178 | + }} | |
179 | + rowKey="id" | |
180 | + search={{ | |
181 | + labelWidth: 'auto', | |
182 | + }} | |
183 | + options={{ | |
184 | + setting: { | |
185 | + listsHeight: 400, | |
186 | + }, | |
187 | + }} | |
188 | + form={{ | |
189 | + // 由于配置了 transform,提交的参与与定义的不同这里需要转化一下 | |
190 | + syncToUrl: (values, type) => { | |
191 | + if (type === 'get') { | |
192 | + return { | |
193 | + ...values, | |
194 | + created_at: [values.startTime, values.endTime], | |
195 | + }; | |
196 | + } | |
197 | + return values; | |
198 | + }, | |
199 | + }} | |
200 | + pagination={{ | |
201 | + pageSize: 5, | |
202 | + onChange: (page) => console.log(page), | |
203 | + }} | |
204 | + dateFormatter="string" | |
205 | + headerTitle="高级表格" | |
206 | + toolBarRender={() => [ | |
207 | + <Button | |
208 | + key="button" | |
209 | + icon={<PlusOutlined />} | |
210 | + onClick={() => { | |
211 | + actionRef.current?.reload(); | |
212 | + }} | |
213 | + type="primary" | |
214 | + > | |
215 | + 新建 | |
216 | + </Button>, | |
217 | + <Dropdown | |
218 | + key="menu" | |
219 | + menu={{ | |
220 | + items: [ | |
221 | + { | |
222 | + label: '1st item', | |
223 | + key: '1', | |
224 | + }, | |
225 | + { | |
226 | + label: '2nd item', | |
227 | + key: '1', | |
228 | + }, | |
229 | + { | |
230 | + label: '3rd item', | |
231 | + key: '1', | |
232 | + }, | |
233 | + ], | |
234 | + }} | |
235 | + > | |
236 | + <Button> | |
237 | + <EllipsisOutlined /> | |
238 | + </Button> | |
239 | + </Dropdown>, | |
240 | + ]} | |
241 | + /> | |
242 | + ); | |
243 | +}; | ... | ... |
src/pages/Order/components/OrderDrawer.tsx
... | ... | @@ -1683,7 +1683,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1683 | 1683 | optionItemRender(item) { |
1684 | 1684 | if (item.type === 'add') { |
1685 | 1685 | return ( |
1686 | - <div title={item.name + '(新增商品信息)'}> | |
1686 | + <div | |
1687 | + style={{ fontSize: '11px' }} | |
1688 | + title={item.name + '(新增商品信息)'} | |
1689 | + > | |
1687 | 1690 | <span style={{ color: '#333333' }}> |
1688 | 1691 | {item.label} |
1689 | 1692 | </span> |
... | ... | @@ -1694,6 +1697,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1694 | 1697 | } |
1695 | 1698 | return ( |
1696 | 1699 | <div |
1700 | + style={{ fontSize: '11px' }} | |
1697 | 1701 | title={ |
1698 | 1702 | item.label + |
1699 | 1703 | ' | ' + | ... | ... |
src/pages/Order/index.tsx
... | ... | @@ -7,6 +7,7 @@ import { |
7 | 7 | postKingdeeRepSalBillOutbound, |
8 | 8 | postKingdeeRepSalOrderSave, |
9 | 9 | postServiceOrderCancelSend, |
10 | + postServiceOrderGetCurrentOptNode, | |
10 | 11 | postServiceOrderNoNeedSend, |
11 | 12 | postServiceOrderOrderCancel, |
12 | 13 | postServiceOrderProcureOrder, |
... | ... | @@ -66,6 +67,7 @@ import { |
66 | 67 | Popconfirm, |
67 | 68 | Radio, |
68 | 69 | Space, |
70 | + Spin, | |
69 | 71 | Tag, |
70 | 72 | Tooltip, |
71 | 73 | message, |
... | ... | @@ -196,8 +198,18 @@ const OrderPage = () => { |
196 | 198 | setShippingWarehouseChangeModalVisible, |
197 | 199 | ] = useState(false); |
198 | 200 | const [ids, setIds] = useState([]); |
201 | + const [recordOptNode, setRecordOptNode] = useState(null); | |
199 | 202 | const roleCode = userInfo?.roleSmallVO?.code; |
200 | 203 | |
204 | + const triggerRecordOptNode = async (id) => { | |
205 | + const res = await postServiceOrderGetCurrentOptNode({ | |
206 | + query: { | |
207 | + id, | |
208 | + }, | |
209 | + }); | |
210 | + setRecordOptNode(res.data); | |
211 | + }; | |
212 | + | |
201 | 213 | const exportLoading = () => { |
202 | 214 | messageApi.open({ |
203 | 215 | type: 'loading', |
... | ... | @@ -1190,10 +1202,16 @@ const OrderPage = () => { |
1190 | 1202 | optRecord.modifiedAuditStatus !== 'AUDIT_FAILURE' ? ( |
1191 | 1203 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1192 | 1204 | <Tooltip |
1193 | - title={enumValueToLabel( | |
1194 | - optRecord.modifiedAuditStatus, | |
1195 | - MODIFIED_AUDIT_STATUS_OPTIONS, | |
1196 | - )} | |
1205 | + title={recordOptNode ? recordOptNode : <Spin />} | |
1206 | + onOpenChange={(open) => { | |
1207 | + console.log('open:' + open); | |
1208 | + console.log('id:' + optRecord.id); | |
1209 | + if (open) { | |
1210 | + triggerRecordOptNode(optRecord.id); | |
1211 | + } else { | |
1212 | + setRecordOptNode(null); | |
1213 | + } | |
1214 | + }} | |
1197 | 1215 | > |
1198 | 1216 | <Tag color={TAGS_COLOR.get(optRecord.modifiedAuditStatus)}> |
1199 | 1217 | {enumValueToLabel( |
... | ... | @@ -1232,6 +1250,39 @@ const OrderPage = () => { |
1232 | 1250 | </div> |
1233 | 1251 | </Flex> |
1234 | 1252 | <Flex className="w-[18%]" wrap="wrap" gap="small"> |
1253 | + {optRecord.subPath?.includes('postAudit') ? ( | |
1254 | + <Button | |
1255 | + className="p-0" | |
1256 | + type="link" | |
1257 | + onClick={() => { | |
1258 | + createOptObject(optRecord.id, record.id); | |
1259 | + setCheckVisible(true); | |
1260 | + setOrderCheckType(CHECK_TYPE.WAITING_FOR_POST_AUDIT); | |
1261 | + }} | |
1262 | + > | |
1263 | + 后置审核 | |
1264 | + </Button> | |
1265 | + ) : ( | |
1266 | + '' | |
1267 | + )} | |
1268 | + {/* 加急审核 */} | |
1269 | + {optRecord.subPath?.includes('URGENT_INVOICE_AUDITING') ? ( | |
1270 | + <Button | |
1271 | + className="p-0" | |
1272 | + type="link" | |
1273 | + onClick={() => { | |
1274 | + console.log('here'); | |
1275 | + setCurrentMainId(record.id); | |
1276 | + setCurretnOptSubId(optRecord.id); | |
1277 | + setCheckVisible(true); | |
1278 | + setOrderCheckType(CHECK_TYPE.URGENT_INVOICE_AUDITING); | |
1279 | + }} | |
1280 | + > | |
1281 | + 加急审核 | |
1282 | + </Button> | |
1283 | + ) : ( | |
1284 | + '' | |
1285 | + )} | |
1235 | 1286 | {optRecord.subPath?.includes('salesConfirm') && ( |
1236 | 1287 | <ButtonConfirm |
1237 | 1288 | className="p-0" |
... | ... | @@ -1351,41 +1402,6 @@ const OrderPage = () => { |
1351 | 1402 | '' |
1352 | 1403 | )} |
1353 | 1404 | |
1354 | - {/* 加急审核 */} | |
1355 | - {optRecord.subPath?.includes('URGENT_INVOICE_AUDITING') ? ( | |
1356 | - <Button | |
1357 | - className="p-0" | |
1358 | - type="link" | |
1359 | - onClick={() => { | |
1360 | - console.log('here'); | |
1361 | - setCurrentMainId(record.id); | |
1362 | - setCurretnOptSubId(optRecord.id); | |
1363 | - setCheckVisible(true); | |
1364 | - setOrderCheckType(CHECK_TYPE.URGENT_INVOICE_AUDITING); | |
1365 | - }} | |
1366 | - > | |
1367 | - 加急审核 | |
1368 | - </Button> | |
1369 | - ) : ( | |
1370 | - '' | |
1371 | - )} | |
1372 | - | |
1373 | - {optRecord.subPath?.includes('postAudit') ? ( | |
1374 | - <Button | |
1375 | - className="p-0" | |
1376 | - type="link" | |
1377 | - onClick={() => { | |
1378 | - createOptObject(optRecord.id, record.id); | |
1379 | - setCheckVisible(true); | |
1380 | - setOrderCheckType(CHECK_TYPE.WAITING_FOR_POST_AUDIT); | |
1381 | - }} | |
1382 | - > | |
1383 | - 后置审核 | |
1384 | - </Button> | |
1385 | - ) : ( | |
1386 | - '' | |
1387 | - )} | |
1388 | - | |
1389 | 1405 | {optRecord.subPath?.includes('modifiedAuditRequest') ? ( |
1390 | 1406 | <Button |
1391 | 1407 | className="p-0" |
... | ... | @@ -2545,6 +2561,37 @@ const OrderPage = () => { |
2545 | 2561 | <Flex justify="flex-end"> |
2546 | 2562 | <Space.Compact direction="vertical" align="end"> |
2547 | 2563 | <Space wrap> |
2564 | + {record.mainPath?.includes('postAudit') ? ( | |
2565 | + <Button | |
2566 | + className="p-0" | |
2567 | + type="link" | |
2568 | + onClick={() => { | |
2569 | + setCurrentMainId(record.id); | |
2570 | + setCurretnOptSubId(null); | |
2571 | + setCheckVisible(true); | |
2572 | + setOrderCheckType(CHECK_TYPE.WAITING_FOR_POST_AUDIT); | |
2573 | + }} | |
2574 | + > | |
2575 | + 后置审核 | |
2576 | + </Button> | |
2577 | + ) : ( | |
2578 | + '' | |
2579 | + )} | |
2580 | + {record.mainPath?.includes('URGENT_INVOICE_AUDITING') ? ( | |
2581 | + <Button | |
2582 | + className="p-0" | |
2583 | + type="link" | |
2584 | + onClick={() => { | |
2585 | + createOptObject(null, record.id); | |
2586 | + setCheckVisible(true); | |
2587 | + setOrderCheckType(CHECK_TYPE.URGENT_INVOICE_AUDITING); | |
2588 | + }} | |
2589 | + > | |
2590 | + 加急审核 | |
2591 | + </Button> | |
2592 | + ) : ( | |
2593 | + '' | |
2594 | + )} | |
2548 | 2595 | {record.mainPath?.includes('salesConfirm') && ( |
2549 | 2596 | <ButtonConfirm |
2550 | 2597 | className="p-0" |
... | ... | @@ -2607,22 +2654,6 @@ const OrderPage = () => { |
2607 | 2654 | '' |
2608 | 2655 | )} |
2609 | 2656 | |
2610 | - {record.mainPath?.includes('URGENT_INVOICE_AUDITING') ? ( | |
2611 | - <Button | |
2612 | - className="p-0" | |
2613 | - type="link" | |
2614 | - onClick={() => { | |
2615 | - createOptObject(null, record.id); | |
2616 | - setCheckVisible(true); | |
2617 | - setOrderCheckType(CHECK_TYPE.URGENT_INVOICE_AUDITING); | |
2618 | - }} | |
2619 | - > | |
2620 | - 加急审核 | |
2621 | - </Button> | |
2622 | - ) : ( | |
2623 | - '' | |
2624 | - )} | |
2625 | - | |
2626 | 2657 | {record.mainPath?.includes('auditPaymentReceipt') ? ( |
2627 | 2658 | <Button |
2628 | 2659 | className="p-0" |
... | ... | @@ -2705,22 +2736,6 @@ const OrderPage = () => { |
2705 | 2736 | ) : ( |
2706 | 2737 | '' |
2707 | 2738 | )} |
2708 | - {record.mainPath?.includes('postAudit') ? ( | |
2709 | - <Button | |
2710 | - className="p-0" | |
2711 | - type="link" | |
2712 | - onClick={() => { | |
2713 | - setCurrentMainId(record.id); | |
2714 | - setCurretnOptSubId(null); | |
2715 | - setCheckVisible(true); | |
2716 | - setOrderCheckType(CHECK_TYPE.WAITING_FOR_POST_AUDIT); | |
2717 | - }} | |
2718 | - > | |
2719 | - 后置审核 | |
2720 | - </Button> | |
2721 | - ) : ( | |
2722 | - '' | |
2723 | - )} | |
2724 | 2739 | |
2725 | 2740 | {record.mainPath?.includes('procureOrder') ? ( |
2726 | 2741 | <ButtonConfirm | ... | ... |
src/services/definition.ts
... | ... | @@ -1074,6 +1074,10 @@ export interface ItemSaItem { |
1074 | 1074 | |
1075 | 1075 | export interface MainOrderqueryRequest { |
1076 | 1076 | afterInvoicingStatusIsNull?: boolean; |
1077 | + /** @format date-time */ | |
1078 | + invoicingTimeGe?: string; | |
1079 | + /** @format date-time */ | |
1080 | + invoicingTimeLe?: string; | |
1077 | 1081 | orderStatusNotIn?: Array<string>; |
1078 | 1082 | /** @format int32 */ |
1079 | 1083 | pageNumber?: number; |
... | ... | @@ -1888,6 +1892,326 @@ export interface ReissueInvoiceDto { |
1888 | 1892 | /** @format int64 */ |
1889 | 1893 | invoiceId?: number; |
1890 | 1894 | notes?: string; |
1895 | + purchaser?: string; | |
1896 | +} | |
1897 | + | |
1898 | +export interface ResearchGroupAccountAddRequest { | |
1899 | + /** | |
1900 | + * @description | |
1901 | + * 关联的账号id | |
1902 | + * @format int64 | |
1903 | + */ | |
1904 | + accountId?: number; | |
1905 | + /** | |
1906 | + * @description | |
1907 | + * 关联的账号名称 | |
1908 | + */ | |
1909 | + accountName?: string; | |
1910 | + /** | |
1911 | + * @description | |
1912 | + * 关联的账号手机号 | |
1913 | + */ | |
1914 | + accountPhone?: string; | |
1915 | + /** | |
1916 | + * @description | |
1917 | + * 课题组id | |
1918 | + * @format int64 | |
1919 | + */ | |
1920 | + groupId?: number; | |
1921 | +} | |
1922 | + | |
1923 | +export interface ResearchGroupAccountEditRequest { | |
1924 | + /** | |
1925 | + * @description | |
1926 | + * 关联的账号id | |
1927 | + * @format int64 | |
1928 | + */ | |
1929 | + accountId?: number; | |
1930 | + /** | |
1931 | + * @description | |
1932 | + * 关联的账号名称 | |
1933 | + */ | |
1934 | + accountName?: string; | |
1935 | + /** | |
1936 | + * @description | |
1937 | + * 关联的账号手机号 | |
1938 | + */ | |
1939 | + accountPhone?: string; | |
1940 | + /** | |
1941 | + * @description | |
1942 | + * 课题组id | |
1943 | + * @format int64 | |
1944 | + */ | |
1945 | + groupId?: number; | |
1946 | + /** | |
1947 | + * @description | |
1948 | + * 主键id | |
1949 | + * @format int64 | |
1950 | + */ | |
1951 | + id?: number; | |
1952 | +} | |
1953 | + | |
1954 | +export interface ResearchGroupAddRequest { | |
1955 | + accounts?: Array<ResearchGroupAccountAddRequest>; | |
1956 | + /** | |
1957 | + * @description | |
1958 | + * 课题组名称 | |
1959 | + */ | |
1960 | + group?: string; | |
1961 | + /** | |
1962 | + * @description | |
1963 | + * 课题组负责人 | |
1964 | + */ | |
1965 | + leader?: string; | |
1966 | + members?: Array<ResearchGroupMemberAddRequest>; | |
1967 | +} | |
1968 | + | |
1969 | +export interface ResearchGroupDeleteRequest { | |
1970 | + /** | |
1971 | + * @description | |
1972 | + * 主键id | |
1973 | + */ | |
1974 | + ids?: Array<number>; | |
1975 | +} | |
1976 | + | |
1977 | +export interface ResearchGroupDetailRequest { | |
1978 | + /** | |
1979 | + * @description | |
1980 | + * 主键id | |
1981 | + * @format int64 | |
1982 | + */ | |
1983 | + id?: number; | |
1984 | +} | |
1985 | + | |
1986 | +export interface ResearchGroupEditRequest { | |
1987 | + /** | |
1988 | + * @description | |
1989 | + * 课题组预存账号 | |
1990 | + */ | |
1991 | + accounts?: Array<ResearchGroupAccountEditRequest>; | |
1992 | + /** | |
1993 | + * @description | |
1994 | + * 课题组名称 | |
1995 | + */ | |
1996 | + group?: string; | |
1997 | + /** | |
1998 | + * @description | |
1999 | + * 主键id | |
2000 | + * @format int64 | |
2001 | + */ | |
2002 | + id?: number; | |
2003 | + /** | |
2004 | + * @description | |
2005 | + * 课题组负责人 | |
2006 | + */ | |
2007 | + leader?: string; | |
2008 | + /** | |
2009 | + * @description | |
2010 | + * 课题组成员集合 | |
2011 | + */ | |
2012 | + members?: Array<ResearchGroupMemberEditRequest>; | |
2013 | +} | |
2014 | + | |
2015 | +export interface ResearchGroupListRequest { | |
2016 | + /** | |
2017 | + * @description | |
2018 | + * 预存账号手机号 | |
2019 | + */ | |
2020 | + accountPhone?: string; | |
2021 | + /** @format int32 */ | |
2022 | + current?: number; | |
2023 | + /** @format int32 */ | |
2024 | + end?: number; | |
2025 | + /** | |
2026 | + * @description | |
2027 | + * 课题组名称 | |
2028 | + */ | |
2029 | + groupName?: string; | |
2030 | + /** | |
2031 | + * @description | |
2032 | + * 课题组负责人 | |
2033 | + */ | |
2034 | + leaderName?: string; | |
2035 | + /** | |
2036 | + * @description | |
2037 | + * 课题组成员名称 | |
2038 | + */ | |
2039 | + memberName?: string; | |
2040 | + /** | |
2041 | + * @description | |
2042 | + * 课题组成员手机号 | |
2043 | + */ | |
2044 | + memberPhone?: string; | |
2045 | + /** @format int32 */ | |
2046 | + pageSize?: number; | |
2047 | + /** @format int32 */ | |
2048 | + start?: number; | |
2049 | + /** @format int32 */ | |
2050 | + total?: number; | |
2051 | +} | |
2052 | + | |
2053 | +export interface ResearchGroupMemberAddRequest { | |
2054 | + /** | |
2055 | + * @description | |
2056 | + * 课题组ID | |
2057 | + * @format int64 | |
2058 | + */ | |
2059 | + groupId?: number; | |
2060 | + /** | |
2061 | + * @description | |
2062 | + * 成员名称 | |
2063 | + */ | |
2064 | + memberName?: string; | |
2065 | + /** | |
2066 | + * @description | |
2067 | + * 成员手机号 | |
2068 | + */ | |
2069 | + memberPhone?: string; | |
2070 | +} | |
2071 | + | |
2072 | +export interface ResearchGroupMemberEditRequest { | |
2073 | + /** | |
2074 | + * @description | |
2075 | + * 课题组ID | |
2076 | + * @format int64 | |
2077 | + */ | |
2078 | + groupId?: number; | |
2079 | + /** | |
2080 | + * @description | |
2081 | + * 主键id | |
2082 | + * @format int64 | |
2083 | + */ | |
2084 | + id?: number; | |
2085 | + /** | |
2086 | + * @description | |
2087 | + * 成员名称 | |
2088 | + */ | |
2089 | + memberName?: string; | |
2090 | + /** | |
2091 | + * @description | |
2092 | + * 成员手机号 | |
2093 | + */ | |
2094 | + memberPhone?: string; | |
2095 | +} | |
2096 | + | |
2097 | +export interface ResearchGroupMemberRequestAddRequest { | |
2098 | + /** | |
2099 | + * @description | |
2100 | + * 课题组ID | |
2101 | + * @format int64 | |
2102 | + */ | |
2103 | + groupId?: number; | |
2104 | + /** | |
2105 | + * @description | |
2106 | + * 课题组名称 | |
2107 | + */ | |
2108 | + groupName?: string; | |
2109 | + members?: Array<ResearchGroupMemberAddRequest>; | |
2110 | + /** | |
2111 | + * @description | |
2112 | + * 申请备注 | |
2113 | + */ | |
2114 | + requestNotes?: string; | |
2115 | +} | |
2116 | + | |
2117 | +export interface ResearchGroupMemberRequestDeleteRequest { | |
2118 | + /** | |
2119 | + * @description | |
2120 | + * 主键id | |
2121 | + */ | |
2122 | + ids?: Array<number>; | |
2123 | +} | |
2124 | + | |
2125 | +export interface ResearchGroupMemberRequestDetailRequest { | |
2126 | + /** | |
2127 | + * @description | |
2128 | + * 主键id | |
2129 | + * @format int64 | |
2130 | + */ | |
2131 | + id?: number; | |
2132 | +} | |
2133 | + | |
2134 | +export interface ResearchGroupMemberRequestEditRequest { | |
2135 | + /** | |
2136 | + * @description | |
2137 | + * 课题组ID | |
2138 | + * @format int64 | |
2139 | + */ | |
2140 | + groupId?: number; | |
2141 | + /** | |
2142 | + * @description | |
2143 | + * 课题组名称 | |
2144 | + */ | |
2145 | + groupName?: string; | |
2146 | + /** | |
2147 | + * @description | |
2148 | + * 主键id | |
2149 | + * @format int64 | |
2150 | + */ | |
2151 | + id?: number; | |
2152 | + /** | |
2153 | + * @description | |
2154 | + * 成员名称 | |
2155 | + */ | |
2156 | + memberName?: string; | |
2157 | + /** | |
2158 | + * @description | |
2159 | + * 成员手机号 | |
2160 | + */ | |
2161 | + memberPhone?: string; | |
2162 | + /** | |
2163 | + * @description | |
2164 | + * 申请备注 | |
2165 | + */ | |
2166 | + requestNotes?: string; | |
2167 | +} | |
2168 | + | |
2169 | +export interface ResearchGroupMemberRequestsRequest { | |
2170 | + /** | |
2171 | + * @description | |
2172 | + * 审核备注 | |
2173 | + */ | |
2174 | + auditNotes?: string; | |
2175 | + /** | |
2176 | + * @description | |
2177 | + * 审核状态 | |
2178 | + */ | |
2179 | + auditStatus?: string; | |
2180 | + /** | |
2181 | + * @description | |
2182 | + * 创建人 | |
2183 | + */ | |
2184 | + createByName?: string; | |
2185 | + /** @format int32 */ | |
2186 | + current?: number; | |
2187 | + /** @format int32 */ | |
2188 | + end?: number; | |
2189 | + /** | |
2190 | + * @description | |
2191 | + * 课题组名称 | |
2192 | + */ | |
2193 | + groupName?: string; | |
2194 | + /** | |
2195 | + * @description | |
2196 | + * 成员名称 | |
2197 | + */ | |
2198 | + memberName?: string; | |
2199 | + /** | |
2200 | + * @description | |
2201 | + * 成员手机号 | |
2202 | + */ | |
2203 | + memberPhone?: string; | |
2204 | + /** @format int32 */ | |
2205 | + pageSize?: number; | |
2206 | + /** | |
2207 | + * @description | |
2208 | + * 申请备注 | |
2209 | + */ | |
2210 | + requestNotes?: string; | |
2211 | + /** @format int32 */ | |
2212 | + start?: number; | |
2213 | + /** @format int32 */ | |
2214 | + total?: number; | |
1891 | 2215 | } |
1892 | 2216 | |
1893 | 2217 | export interface ResearchGroupAccountAddRequest { | ... | ... |
src/services/request.ts
... | ... | @@ -12495,6 +12495,79 @@ export const postServiceOrderFindServiceOrder = /* #__PURE__ */ (() => { |
12495 | 12495 | return request; |
12496 | 12496 | })(); |
12497 | 12497 | |
12498 | +/** @description request parameter type for postServiceOrderGetCurrentOptNode */ | |
12499 | +export interface PostServiceOrderGetCurrentOptNodeOption { | |
12500 | + /** | |
12501 | + * @description | |
12502 | + * id | |
12503 | + * @format int64 | |
12504 | + */ | |
12505 | + query?: { | |
12506 | + /** | |
12507 | + @description | |
12508 | + id | |
12509 | + @format int64 */ | |
12510 | + id?: number; | |
12511 | + }; | |
12512 | +} | |
12513 | + | |
12514 | +/** @description response type for postServiceOrderGetCurrentOptNode */ | |
12515 | +export interface PostServiceOrderGetCurrentOptNodeResponse { | |
12516 | + /** | |
12517 | + * @description | |
12518 | + * OK | |
12519 | + */ | |
12520 | + 200: ServerResult; | |
12521 | + /** | |
12522 | + * @description | |
12523 | + * Created | |
12524 | + */ | |
12525 | + 201: any; | |
12526 | + /** | |
12527 | + * @description | |
12528 | + * Unauthorized | |
12529 | + */ | |
12530 | + 401: any; | |
12531 | + /** | |
12532 | + * @description | |
12533 | + * Forbidden | |
12534 | + */ | |
12535 | + 403: any; | |
12536 | + /** | |
12537 | + * @description | |
12538 | + * Not Found | |
12539 | + */ | |
12540 | + 404: any; | |
12541 | +} | |
12542 | + | |
12543 | +export type PostServiceOrderGetCurrentOptNodeResponseSuccess = | |
12544 | + PostServiceOrderGetCurrentOptNodeResponse[200]; | |
12545 | +/** | |
12546 | + * @description | |
12547 | + * 获取当前节点的操作人 | |
12548 | + * @tags 内部订单 | |
12549 | + * @produces * | |
12550 | + * @consumes application/json | |
12551 | + */ | |
12552 | +export const postServiceOrderGetCurrentOptNode = /* #__PURE__ */ (() => { | |
12553 | + const method = 'post'; | |
12554 | + const url = '/service/order/getCurrentOptNode'; | |
12555 | + function request( | |
12556 | + option?: PostServiceOrderGetCurrentOptNodeOption, | |
12557 | + ): Promise<PostServiceOrderGetCurrentOptNodeResponseSuccess> { | |
12558 | + return requester(request.url, { | |
12559 | + method: request.method, | |
12560 | + ...option, | |
12561 | + }) as unknown as Promise<PostServiceOrderGetCurrentOptNodeResponseSuccess>; | |
12562 | + } | |
12563 | + | |
12564 | + /** http method */ | |
12565 | + request.method = method; | |
12566 | + /** request url */ | |
12567 | + request.url = url; | |
12568 | + return request; | |
12569 | +})(); | |
12570 | + | |
12498 | 12571 | /** @description request parameter type for postServiceOrderImportExcel */ |
12499 | 12572 | export interface PostServiceOrderImportExcelOption { |
12500 | 12573 | /** | ... | ... |