Commit 698f9b7db2b54a99d3a684540d7d8fc08899676d
1 parent
53bf932d
feat(Order): 课题组选择bug修复
Showing
3 changed files
with
555 additions
and
84 deletions
src/pages/Order/OrderList/OrderDrawer.tsx
... | ... | @@ -11,7 +11,7 @@ import { |
11 | 11 | postKingdeeRepMaterialUnit, |
12 | 12 | postKingdeeRepMeasureUnit, |
13 | 13 | postPrepaidPhoneAvailableList, |
14 | - postResearchGroupsNameSet, | |
14 | + postResearchGroupsListNotPage, | |
15 | 15 | postServiceConstCompanyType, |
16 | 16 | postServiceConstOrderSource, |
17 | 17 | postServiceConstPlatformType, |
... | ... | @@ -1243,38 +1243,55 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1243 | 1243 | {({ companyType }) => { |
1244 | 1244 | const renderInstitutionContactName = () => ( |
1245 | 1245 | <Group> |
1246 | + {/* 下拉选择框 */} | |
1246 | 1247 | <ProFormSelect |
1247 | - key="institutionContactName" | |
1248 | - width="xl" | |
1248 | + key="researchGroupSelect" | |
1249 | + width="md" | |
1249 | 1250 | showSearch |
1250 | - name="institutionContactName" | |
1251 | - rules={[{ required: true, message: '请输入课题组名称!' }]} | |
1252 | - request={async (value) => { | |
1253 | - const keywords = value?.keyWords || ''; | |
1254 | - const res = await postResearchGroupsNameSet({ | |
1255 | - data: { status: 'ADD_AUDIT_PASS', groupName: keywords }, | |
1256 | - }); | |
1257 | - return Object.entries(res?.data || {}).map( | |
1258 | - ([researchGroupsId, researchGroupsName]) => ({ | |
1259 | - label: researchGroupsName, | |
1260 | - value: researchGroupsName, // 使用 researchGroupsId 作为 value | |
1261 | - key: researchGroupsId, | |
1262 | - id: researchGroupsId, | |
1263 | - }), | |
1264 | - ); | |
1265 | - }} | |
1251 | + label="选择课题组" | |
1252 | + placeholder="请选择课题组" | |
1266 | 1253 | fieldProps={{ |
1267 | 1254 | filterOption: () => true, |
1268 | - onChange: (_, option) => { | |
1255 | + onChange: (value, option) => { | |
1256 | + const selectedOption = Array.isArray(option) | |
1257 | + ? option[0] | |
1258 | + : option; | |
1269 | 1259 | form.setFieldsValue({ |
1270 | - researchGroupId: option?.id || '', | |
1260 | + researchGroupId: value, // 存储ID到隐藏字段 | |
1261 | + institutionContactName: selectedOption?.groupName, // 显示名称 | |
1271 | 1262 | }); |
1272 | 1263 | }, |
1273 | 1264 | }} |
1265 | + request={async (value) => { | |
1266 | + const keywords = value?.keyWords || ''; | |
1267 | + const res = await postResearchGroupsListNotPage({ | |
1268 | + data: { status: 'ADD_AUDIT_PASS', groupName: keywords }, | |
1269 | + }); | |
1270 | + return res.data.map((item) => ({ | |
1271 | + label: `${item.groupName} | ${item.companyName} | ${item.id}`, | |
1272 | + value: item.id.toString(), | |
1273 | + key: item.id.toString(), | |
1274 | + groupName: item.groupName, | |
1275 | + })); | |
1276 | + }} | |
1274 | 1277 | debounceTime={1000} |
1278 | + /> | |
1279 | + {/* 显示框 - 只读显示选中的课题组名称 */} | |
1280 | + <ProFormText | |
1281 | + name="institutionContactName" | |
1275 | 1282 | label="课题组名称" |
1276 | - placeholder="请输入名称" | |
1283 | + width="xl" | |
1284 | + readonly | |
1285 | + fieldProps={{ | |
1286 | + readOnly: true, | |
1287 | + style: { | |
1288 | + backgroundColor: '#f5f5f5', | |
1289 | + cursor: 'not-allowed', | |
1290 | + }, | |
1291 | + }} | |
1292 | + rules={[{ required: true, message: '请重新选择课题组!' }]} | |
1277 | 1293 | /> |
1294 | + | |
1278 | 1295 | <ProFormDigit |
1279 | 1296 | readonly |
1280 | 1297 | key="researchGroupId" | ... | ... |
src/services/definition.ts
... | ... | @@ -1556,6 +1556,32 @@ export interface ExchangeRecordsRequestDto { |
1556 | 1556 | total?: number; |
1557 | 1557 | } |
1558 | 1558 | |
1559 | +export interface File { | |
1560 | + absolute?: boolean; | |
1561 | + absoluteFile?: File; | |
1562 | + absolutePath?: string; | |
1563 | + canonicalFile?: File; | |
1564 | + canonicalPath?: string; | |
1565 | + directory?: boolean; | |
1566 | + executable?: boolean; | |
1567 | + file?: boolean; | |
1568 | + /** @format int64 */ | |
1569 | + freeSpace?: number; | |
1570 | + hidden?: boolean; | |
1571 | + /** @format int64 */ | |
1572 | + lastModified?: number; | |
1573 | + name?: string; | |
1574 | + parent?: string; | |
1575 | + parentFile?: File; | |
1576 | + path?: string; | |
1577 | + readable?: boolean; | |
1578 | + /** @format int64 */ | |
1579 | + totalSpace?: number; | |
1580 | + /** @format int64 */ | |
1581 | + usableSpace?: number; | |
1582 | + writable?: boolean; | |
1583 | +} | |
1584 | + | |
1559 | 1585 | export interface FilePathDto { |
1560 | 1586 | url?: string; |
1561 | 1587 | } |
... | ... | @@ -3838,6 +3864,12 @@ export interface ResearchGroupListRequest { |
3838 | 3864 | end?: number; |
3839 | 3865 | /** |
3840 | 3866 | * @description |
3867 | + * 课题组ID | |
3868 | + * @format int64 | |
3869 | + */ | |
3870 | + groupId?: number; | |
3871 | + /** | |
3872 | + * @description | |
3841 | 3873 | * 课题组名称 |
3842 | 3874 | */ |
3843 | 3875 | groupName?: string; |
... | ... | @@ -4134,6 +4166,12 @@ export interface ResearchGroupsAccessDTO { |
4134 | 4166 | deleteFlag?: number; |
4135 | 4167 | /** |
4136 | 4168 | * @description |
4169 | + * 课题组id | |
4170 | + * @format int64 | |
4171 | + */ | |
4172 | + groupId?: number; | |
4173 | + /** | |
4174 | + * @description | |
4137 | 4175 | * 课题组名称 |
4138 | 4176 | */ |
4139 | 4177 | groupName?: string; |
... | ... | @@ -4244,7 +4282,7 @@ export interface ResetPwdVO { |
4244 | 4282 | |
4245 | 4283 | export interface Resource { |
4246 | 4284 | description?: string; |
4247 | - file?: TsgFile; | |
4285 | + file?: File; | |
4248 | 4286 | filename?: string; |
4249 | 4287 | inputStream?: InputStream; |
4250 | 4288 | open?: boolean; |
... | ... | @@ -4952,32 +4990,6 @@ export interface CompanyInfo { |
4952 | 4990 | taxIdIsNotNull?: boolean; |
4953 | 4991 | } |
4954 | 4992 | |
4955 | -export interface TsgFile { | |
4956 | - absolute?: boolean; | |
4957 | - absoluteFile?: TsgFile; | |
4958 | - absolutePath?: string; | |
4959 | - canonicalFile?: TsgFile; | |
4960 | - canonicalPath?: string; | |
4961 | - directory?: boolean; | |
4962 | - executable?: boolean; | |
4963 | - file?: boolean; | |
4964 | - /** @format int64 */ | |
4965 | - freeSpace?: number; | |
4966 | - hidden?: boolean; | |
4967 | - /** @format int64 */ | |
4968 | - lastModified?: number; | |
4969 | - name?: string; | |
4970 | - parent?: string; | |
4971 | - parentFile?: TsgFile; | |
4972 | - path?: string; | |
4973 | - readable?: boolean; | |
4974 | - /** @format int64 */ | |
4975 | - totalSpace?: number; | |
4976 | - /** @format int64 */ | |
4977 | - usableSpace?: number; | |
4978 | - writable?: boolean; | |
4979 | -} | |
4980 | - | |
4981 | 4993 | export interface InvoiceDetail { |
4982 | 4994 | createByName?: string; |
4983 | 4995 | /** @format date-time */ | ... | ... |
src/services/request.ts
... | ... | @@ -74,6 +74,7 @@ import type { |
74 | 74 | MeasureUnitListRes, |
75 | 75 | MergeIntegralDto, |
76 | 76 | MessageQueryDTO, |
77 | + ModelAndView, | |
77 | 78 | OrderAddVO, |
78 | 79 | OrderAuditLogQueryVO, |
79 | 80 | OrderBaseInfoQueryVO, |
... | ... | @@ -3834,9 +3835,7 @@ export interface GetErrorResponse { |
3834 | 3835 | * @description |
3835 | 3836 | * OK |
3836 | 3837 | */ |
3837 | - 200: { | |
3838 | - [propertyName: string]: any; | |
3839 | - }; | |
3838 | + 200: ModelAndView; | |
3840 | 3839 | /** |
3841 | 3840 | * @description |
3842 | 3841 | * Unauthorized |
... | ... | @@ -3857,9 +3856,9 @@ export interface GetErrorResponse { |
3857 | 3856 | export type GetErrorResponseSuccess = GetErrorResponse[200]; |
3858 | 3857 | /** |
3859 | 3858 | * @description |
3860 | - * error | |
3859 | + * errorHtml | |
3861 | 3860 | * @tags basic-error-controller |
3862 | - * @produces * | |
3861 | + * @produces text/html | |
3863 | 3862 | */ |
3864 | 3863 | export const getError = /* #__PURE__ */ (() => { |
3865 | 3864 | const method = 'get'; |
... | ... | @@ -3883,9 +3882,7 @@ export interface PutErrorResponse { |
3883 | 3882 | * @description |
3884 | 3883 | * OK |
3885 | 3884 | */ |
3886 | - 200: { | |
3887 | - [propertyName: string]: any; | |
3888 | - }; | |
3885 | + 200: ModelAndView; | |
3889 | 3886 | /** |
3890 | 3887 | * @description |
3891 | 3888 | * Created |
... | ... | @@ -3911,9 +3908,9 @@ export interface PutErrorResponse { |
3911 | 3908 | export type PutErrorResponseSuccess = PutErrorResponse[200]; |
3912 | 3909 | /** |
3913 | 3910 | * @description |
3914 | - * error | |
3911 | + * errorHtml | |
3915 | 3912 | * @tags basic-error-controller |
3916 | - * @produces * | |
3913 | + * @produces text/html | |
3917 | 3914 | * @consumes application/json |
3918 | 3915 | */ |
3919 | 3916 | export const putError = /* #__PURE__ */ (() => { |
... | ... | @@ -3938,9 +3935,7 @@ export interface PostErrorResponse { |
3938 | 3935 | * @description |
3939 | 3936 | * OK |
3940 | 3937 | */ |
3941 | - 200: { | |
3942 | - [propertyName: string]: any; | |
3943 | - }; | |
3938 | + 200: ModelAndView; | |
3944 | 3939 | /** |
3945 | 3940 | * @description |
3946 | 3941 | * Created |
... | ... | @@ -3966,9 +3961,9 @@ export interface PostErrorResponse { |
3966 | 3961 | export type PostErrorResponseSuccess = PostErrorResponse[200]; |
3967 | 3962 | /** |
3968 | 3963 | * @description |
3969 | - * error | |
3964 | + * errorHtml | |
3970 | 3965 | * @tags basic-error-controller |
3971 | - * @produces * | |
3966 | + * @produces text/html | |
3972 | 3967 | * @consumes application/json |
3973 | 3968 | */ |
3974 | 3969 | export const postError = /* #__PURE__ */ (() => { |
... | ... | @@ -3993,9 +3988,7 @@ export interface DeleteErrorResponse { |
3993 | 3988 | * @description |
3994 | 3989 | * OK |
3995 | 3990 | */ |
3996 | - 200: { | |
3997 | - [propertyName: string]: any; | |
3998 | - }; | |
3991 | + 200: ModelAndView; | |
3999 | 3992 | /** |
4000 | 3993 | * @description |
4001 | 3994 | * No Content |
... | ... | @@ -4016,9 +4009,9 @@ export interface DeleteErrorResponse { |
4016 | 4009 | export type DeleteErrorResponseSuccess = DeleteErrorResponse[200]; |
4017 | 4010 | /** |
4018 | 4011 | * @description |
4019 | - * error | |
4012 | + * errorHtml | |
4020 | 4013 | * @tags basic-error-controller |
4021 | - * @produces * | |
4014 | + * @produces text/html | |
4022 | 4015 | */ |
4023 | 4016 | export const deleteError = /* #__PURE__ */ (() => { |
4024 | 4017 | const method = 'delete'; |
... | ... | @@ -4042,9 +4035,7 @@ export interface OptionsErrorResponse { |
4042 | 4035 | * @description |
4043 | 4036 | * OK |
4044 | 4037 | */ |
4045 | - 200: { | |
4046 | - [propertyName: string]: any; | |
4047 | - }; | |
4038 | + 200: ModelAndView; | |
4048 | 4039 | /** |
4049 | 4040 | * @description |
4050 | 4041 | * No Content |
... | ... | @@ -4065,9 +4056,9 @@ export interface OptionsErrorResponse { |
4065 | 4056 | export type OptionsErrorResponseSuccess = OptionsErrorResponse[200]; |
4066 | 4057 | /** |
4067 | 4058 | * @description |
4068 | - * error | |
4059 | + * errorHtml | |
4069 | 4060 | * @tags basic-error-controller |
4070 | - * @produces * | |
4061 | + * @produces text/html | |
4071 | 4062 | * @consumes application/json |
4072 | 4063 | */ |
4073 | 4064 | export const optionsError = /* #__PURE__ */ (() => { |
... | ... | @@ -4092,9 +4083,7 @@ export interface HeadErrorResponse { |
4092 | 4083 | * @description |
4093 | 4084 | * OK |
4094 | 4085 | */ |
4095 | - 200: { | |
4096 | - [propertyName: string]: any; | |
4097 | - }; | |
4086 | + 200: ModelAndView; | |
4098 | 4087 | /** |
4099 | 4088 | * @description |
4100 | 4089 | * No Content |
... | ... | @@ -4115,9 +4104,9 @@ export interface HeadErrorResponse { |
4115 | 4104 | export type HeadErrorResponseSuccess = HeadErrorResponse[200]; |
4116 | 4105 | /** |
4117 | 4106 | * @description |
4118 | - * error | |
4107 | + * errorHtml | |
4119 | 4108 | * @tags basic-error-controller |
4120 | - * @produces * | |
4109 | + * @produces text/html | |
4121 | 4110 | * @consumes application/json |
4122 | 4111 | */ |
4123 | 4112 | export const headError = /* #__PURE__ */ (() => { |
... | ... | @@ -4142,9 +4131,7 @@ export interface PatchErrorResponse { |
4142 | 4131 | * @description |
4143 | 4132 | * OK |
4144 | 4133 | */ |
4145 | - 200: { | |
4146 | - [propertyName: string]: any; | |
4147 | - }; | |
4134 | + 200: ModelAndView; | |
4148 | 4135 | /** |
4149 | 4136 | * @description |
4150 | 4137 | * No Content |
... | ... | @@ -4165,9 +4152,9 @@ export interface PatchErrorResponse { |
4165 | 4152 | export type PatchErrorResponseSuccess = PatchErrorResponse[200]; |
4166 | 4153 | /** |
4167 | 4154 | * @description |
4168 | - * error | |
4155 | + * errorHtml | |
4169 | 4156 | * @tags basic-error-controller |
4170 | - * @produces * | |
4157 | + * @produces text/html | |
4171 | 4158 | * @consumes application/json |
4172 | 4159 | */ |
4173 | 4160 | export const patchError = /* #__PURE__ */ (() => { |
... | ... | @@ -15311,6 +15298,153 @@ export const postResearchGroupsList = /* #__PURE__ */ (() => { |
15311 | 15298 | return request; |
15312 | 15299 | })(); |
15313 | 15300 | |
15301 | +/** @description request parameter type for postResearchGroupsListNotPage */ | |
15302 | +export interface PostResearchGroupsListNotPageOption { | |
15303 | + /** | |
15304 | + * @description | |
15305 | + * request | |
15306 | + */ | |
15307 | + body: { | |
15308 | + /** | |
15309 | + @description | |
15310 | + request */ | |
15311 | + request: ResearchGroupListRequest; | |
15312 | + }; | |
15313 | +} | |
15314 | + | |
15315 | +/** @description response type for postResearchGroupsListNotPage */ | |
15316 | +export interface PostResearchGroupsListNotPageResponse { | |
15317 | + /** | |
15318 | + * @description | |
15319 | + * OK | |
15320 | + */ | |
15321 | + 200: ServerResult; | |
15322 | + /** | |
15323 | + * @description | |
15324 | + * Created | |
15325 | + */ | |
15326 | + 201: any; | |
15327 | + /** | |
15328 | + * @description | |
15329 | + * Unauthorized | |
15330 | + */ | |
15331 | + 401: any; | |
15332 | + /** | |
15333 | + * @description | |
15334 | + * Forbidden | |
15335 | + */ | |
15336 | + 403: any; | |
15337 | + /** | |
15338 | + * @description | |
15339 | + * Not Found | |
15340 | + */ | |
15341 | + 404: any; | |
15342 | +} | |
15343 | + | |
15344 | +export type PostResearchGroupsListNotPageResponseSuccess = | |
15345 | + PostResearchGroupsListNotPageResponse[200]; | |
15346 | +/** | |
15347 | + * @description | |
15348 | + * 课题组名称列表 | |
15349 | + * @tags research-groups-controller | |
15350 | + * @produces * | |
15351 | + * @consumes application/json | |
15352 | + */ | |
15353 | +export const postResearchGroupsListNotPage = /* #__PURE__ */ (() => { | |
15354 | + const method = 'post'; | |
15355 | + const url = '/research/groups/listNotPage'; | |
15356 | + function request( | |
15357 | + option: PostResearchGroupsListNotPageOption, | |
15358 | + ): Promise<PostResearchGroupsListNotPageResponseSuccess> { | |
15359 | + return requester(request.url, { | |
15360 | + method: request.method, | |
15361 | + ...option, | |
15362 | + }) as unknown as Promise<PostResearchGroupsListNotPageResponseSuccess>; | |
15363 | + } | |
15364 | + | |
15365 | + /** http method */ | |
15366 | + request.method = method; | |
15367 | + /** request url */ | |
15368 | + request.url = url; | |
15369 | + return request; | |
15370 | +})(); | |
15371 | + | |
15372 | +/** @description request parameter type for postResearchGroupsMemberExists */ | |
15373 | +export interface PostResearchGroupsMemberExistsOption { | |
15374 | + /** | |
15375 | + * @description | |
15376 | + * customerContact | |
15377 | + */ | |
15378 | + query?: { | |
15379 | + /** | |
15380 | + @description | |
15381 | + customerContact */ | |
15382 | + customerContact?: string; | |
15383 | + /** | |
15384 | + @description | |
15385 | + researchGroupId | |
15386 | + @format int64 */ | |
15387 | + researchGroupId?: number; | |
15388 | + }; | |
15389 | +} | |
15390 | + | |
15391 | +/** @description response type for postResearchGroupsMemberExists */ | |
15392 | +export interface PostResearchGroupsMemberExistsResponse { | |
15393 | + /** | |
15394 | + * @description | |
15395 | + * OK | |
15396 | + */ | |
15397 | + 200: boolean; | |
15398 | + /** | |
15399 | + * @description | |
15400 | + * Created | |
15401 | + */ | |
15402 | + 201: any; | |
15403 | + /** | |
15404 | + * @description | |
15405 | + * Unauthorized | |
15406 | + */ | |
15407 | + 401: any; | |
15408 | + /** | |
15409 | + * @description | |
15410 | + * Forbidden | |
15411 | + */ | |
15412 | + 403: any; | |
15413 | + /** | |
15414 | + * @description | |
15415 | + * Not Found | |
15416 | + */ | |
15417 | + 404: any; | |
15418 | +} | |
15419 | + | |
15420 | +export type PostResearchGroupsMemberExistsResponseSuccess = | |
15421 | + PostResearchGroupsMemberExistsResponse[200]; | |
15422 | +/** | |
15423 | + * @description | |
15424 | + * 查询课题组成员 | |
15425 | + * @tags research-groups-controller | |
15426 | + * @produces * | |
15427 | + * @consumes application/json | |
15428 | + */ | |
15429 | +export const postResearchGroupsMemberExists = /* #__PURE__ */ (() => { | |
15430 | + const method = 'post'; | |
15431 | + const url = '/research/groups/memberExists'; | |
15432 | + function request( | |
15433 | + option?: PostResearchGroupsMemberExistsOption, | |
15434 | + ): Promise<PostResearchGroupsMemberExistsResponseSuccess> { | |
15435 | + return requester(request.url, { | |
15436 | + method: request.method, | |
15437 | + ...option, | |
15438 | + }) as unknown as Promise<PostResearchGroupsMemberExistsResponseSuccess>; | |
15439 | + } | |
15440 | + | |
15441 | + /** http method */ | |
15442 | + request.method = method; | |
15443 | + /** request url */ | |
15444 | + request.url = url; | |
15445 | + return request; | |
15446 | +})(); | |
15447 | + | |
15314 | 15448 | /** @description request parameter type for postResearchGroupsNameSet */ |
15315 | 15449 | export interface PostResearchGroupsNameSetOption { |
15316 | 15450 | /** |
... | ... | @@ -21089,6 +21223,314 @@ export const postServiceOrderAuditPaymentReceipt = /* #__PURE__ */ (() => { |
21089 | 21223 | return request; |
21090 | 21224 | })(); |
21091 | 21225 | |
21226 | +/** @description response type for postServiceOrderBatchCaculateAndSetIntegral */ | |
21227 | +export interface PostServiceOrderBatchCaculateAndSetIntegralResponse { | |
21228 | + /** | |
21229 | + * @description | |
21230 | + * OK | |
21231 | + */ | |
21232 | + 200: ServerResult; | |
21233 | + /** | |
21234 | + * @description | |
21235 | + * Created | |
21236 | + */ | |
21237 | + 201: any; | |
21238 | + /** | |
21239 | + * @description | |
21240 | + * Unauthorized | |
21241 | + */ | |
21242 | + 401: any; | |
21243 | + /** | |
21244 | + * @description | |
21245 | + * Forbidden | |
21246 | + */ | |
21247 | + 403: any; | |
21248 | + /** | |
21249 | + * @description | |
21250 | + * Not Found | |
21251 | + */ | |
21252 | + 404: any; | |
21253 | +} | |
21254 | + | |
21255 | +export type PostServiceOrderBatchCaculateAndSetIntegralResponseSuccess = | |
21256 | + PostServiceOrderBatchCaculateAndSetIntegralResponse[200]; | |
21257 | +/** | |
21258 | + * @description | |
21259 | + * 计算积分 | |
21260 | + * @tags 内部订单 | |
21261 | + * @produces * | |
21262 | + * @consumes application/json | |
21263 | + */ | |
21264 | +export const postServiceOrderBatchCaculateAndSetIntegral = | |
21265 | + /* #__PURE__ */ (() => { | |
21266 | + const method = 'post'; | |
21267 | + const url = '/service/order/batchCaculateAndSetIntegral'; | |
21268 | + function request(): Promise<PostServiceOrderBatchCaculateAndSetIntegralResponseSuccess> { | |
21269 | + return requester(request.url, { | |
21270 | + method: request.method, | |
21271 | + }) as unknown as Promise<PostServiceOrderBatchCaculateAndSetIntegralResponseSuccess>; | |
21272 | + } | |
21273 | + | |
21274 | + /** http method */ | |
21275 | + request.method = method; | |
21276 | + /** request url */ | |
21277 | + request.url = url; | |
21278 | + return request; | |
21279 | + })(); | |
21280 | + | |
21281 | +/** @description request parameter type for postServiceOrderBatchCaculateAndSetIntegralByMainIds */ | |
21282 | +export interface PostServiceOrderBatchCaculateAndSetIntegralByMainIdsOption { | |
21283 | + /** | |
21284 | + * @description | |
21285 | + * ids | |
21286 | + */ | |
21287 | + query: { | |
21288 | + /** | |
21289 | + @description | |
21290 | + ids */ | |
21291 | + ids: Array<number>; | |
21292 | + }; | |
21293 | +} | |
21294 | + | |
21295 | +/** @description response type for postServiceOrderBatchCaculateAndSetIntegralByMainIds */ | |
21296 | +export interface PostServiceOrderBatchCaculateAndSetIntegralByMainIdsResponse { | |
21297 | + /** | |
21298 | + * @description | |
21299 | + * OK | |
21300 | + */ | |
21301 | + 200: ServerResult; | |
21302 | + /** | |
21303 | + * @description | |
21304 | + * Created | |
21305 | + */ | |
21306 | + 201: any; | |
21307 | + /** | |
21308 | + * @description | |
21309 | + * Unauthorized | |
21310 | + */ | |
21311 | + 401: any; | |
21312 | + /** | |
21313 | + * @description | |
21314 | + * Forbidden | |
21315 | + */ | |
21316 | + 403: any; | |
21317 | + /** | |
21318 | + * @description | |
21319 | + * Not Found | |
21320 | + */ | |
21321 | + 404: any; | |
21322 | +} | |
21323 | + | |
21324 | +export type PostServiceOrderBatchCaculateAndSetIntegralByMainIdsResponseSuccess = | |
21325 | + PostServiceOrderBatchCaculateAndSetIntegralByMainIdsResponse[200]; | |
21326 | +/** | |
21327 | + * @description | |
21328 | + * 计算积分 | |
21329 | + * @tags 内部订单 | |
21330 | + * @produces * | |
21331 | + * @consumes application/json | |
21332 | + */ | |
21333 | +export const postServiceOrderBatchCaculateAndSetIntegralByMainIds = | |
21334 | + /* #__PURE__ */ (() => { | |
21335 | + const method = 'post'; | |
21336 | + const url = '/service/order/batchCaculateAndSetIntegralByMainIds'; | |
21337 | + function request( | |
21338 | + option: PostServiceOrderBatchCaculateAndSetIntegralByMainIdsOption, | |
21339 | + ): Promise<PostServiceOrderBatchCaculateAndSetIntegralByMainIdsResponseSuccess> { | |
21340 | + return requester(request.url, { | |
21341 | + method: request.method, | |
21342 | + ...option, | |
21343 | + }) as unknown as Promise<PostServiceOrderBatchCaculateAndSetIntegralByMainIdsResponseSuccess>; | |
21344 | + } | |
21345 | + | |
21346 | + /** http method */ | |
21347 | + request.method = method; | |
21348 | + /** request url */ | |
21349 | + request.url = url; | |
21350 | + return request; | |
21351 | + })(); | |
21352 | + | |
21353 | +/** @description response type for postServiceOrderBatchCaculateAndSetPrePaidIntegral */ | |
21354 | +export interface PostServiceOrderBatchCaculateAndSetPrePaidIntegralResponse { | |
21355 | + /** | |
21356 | + * @description | |
21357 | + * OK | |
21358 | + */ | |
21359 | + 200: ServerResult; | |
21360 | + /** | |
21361 | + * @description | |
21362 | + * Created | |
21363 | + */ | |
21364 | + 201: any; | |
21365 | + /** | |
21366 | + * @description | |
21367 | + * Unauthorized | |
21368 | + */ | |
21369 | + 401: any; | |
21370 | + /** | |
21371 | + * @description | |
21372 | + * Forbidden | |
21373 | + */ | |
21374 | + 403: any; | |
21375 | + /** | |
21376 | + * @description | |
21377 | + * Not Found | |
21378 | + */ | |
21379 | + 404: any; | |
21380 | +} | |
21381 | + | |
21382 | +export type PostServiceOrderBatchCaculateAndSetPrePaidIntegralResponseSuccess = | |
21383 | + PostServiceOrderBatchCaculateAndSetPrePaidIntegralResponse[200]; | |
21384 | +/** | |
21385 | + * @description | |
21386 | + * 计算积分 | |
21387 | + * @tags 内部订单 | |
21388 | + * @produces * | |
21389 | + * @consumes application/json | |
21390 | + */ | |
21391 | +export const postServiceOrderBatchCaculateAndSetPrePaidIntegral = | |
21392 | + /* #__PURE__ */ (() => { | |
21393 | + const method = 'post'; | |
21394 | + const url = '/service/order/batchCaculateAndSetPrePaidIntegral'; | |
21395 | + function request(): Promise<PostServiceOrderBatchCaculateAndSetPrePaidIntegralResponseSuccess> { | |
21396 | + return requester(request.url, { | |
21397 | + method: request.method, | |
21398 | + }) as unknown as Promise<PostServiceOrderBatchCaculateAndSetPrePaidIntegralResponseSuccess>; | |
21399 | + } | |
21400 | + | |
21401 | + /** http method */ | |
21402 | + request.method = method; | |
21403 | + /** request url */ | |
21404 | + request.url = url; | |
21405 | + return request; | |
21406 | + })(); | |
21407 | + | |
21408 | +/** @description response type for postServiceOrderBatchCaculateAndSetStoreIntegral */ | |
21409 | +export interface PostServiceOrderBatchCaculateAndSetStoreIntegralResponse { | |
21410 | + /** | |
21411 | + * @description | |
21412 | + * OK | |
21413 | + */ | |
21414 | + 200: ServerResult; | |
21415 | + /** | |
21416 | + * @description | |
21417 | + * Created | |
21418 | + */ | |
21419 | + 201: any; | |
21420 | + /** | |
21421 | + * @description | |
21422 | + * Unauthorized | |
21423 | + */ | |
21424 | + 401: any; | |
21425 | + /** | |
21426 | + * @description | |
21427 | + * Forbidden | |
21428 | + */ | |
21429 | + 403: any; | |
21430 | + /** | |
21431 | + * @description | |
21432 | + * Not Found | |
21433 | + */ | |
21434 | + 404: any; | |
21435 | +} | |
21436 | + | |
21437 | +export type PostServiceOrderBatchCaculateAndSetStoreIntegralResponseSuccess = | |
21438 | + PostServiceOrderBatchCaculateAndSetStoreIntegralResponse[200]; | |
21439 | +/** | |
21440 | + * @description | |
21441 | + * 计算积分 | |
21442 | + * @tags 内部订单 | |
21443 | + * @produces * | |
21444 | + * @consumes application/json | |
21445 | + */ | |
21446 | +export const postServiceOrderBatchCaculateAndSetStoreIntegral = | |
21447 | + /* #__PURE__ */ (() => { | |
21448 | + const method = 'post'; | |
21449 | + const url = '/service/order/batchCaculateAndSetStoreIntegral'; | |
21450 | + function request(): Promise<PostServiceOrderBatchCaculateAndSetStoreIntegralResponseSuccess> { | |
21451 | + return requester(request.url, { | |
21452 | + method: request.method, | |
21453 | + }) as unknown as Promise<PostServiceOrderBatchCaculateAndSetStoreIntegralResponseSuccess>; | |
21454 | + } | |
21455 | + | |
21456 | + /** http method */ | |
21457 | + request.method = method; | |
21458 | + /** request url */ | |
21459 | + request.url = url; | |
21460 | + return request; | |
21461 | + })(); | |
21462 | + | |
21463 | +/** @description request parameter type for postServiceOrderBatchReceiveIntegral */ | |
21464 | +export interface PostServiceOrderBatchReceiveIntegralOption { | |
21465 | + /** | |
21466 | + * @description | |
21467 | + * ids | |
21468 | + */ | |
21469 | + query: { | |
21470 | + /** | |
21471 | + @description | |
21472 | + ids */ | |
21473 | + ids: Array<number>; | |
21474 | + }; | |
21475 | +} | |
21476 | + | |
21477 | +/** @description response type for postServiceOrderBatchReceiveIntegral */ | |
21478 | +export interface PostServiceOrderBatchReceiveIntegralResponse { | |
21479 | + /** | |
21480 | + * @description | |
21481 | + * OK | |
21482 | + */ | |
21483 | + 200: ServerResult; | |
21484 | + /** | |
21485 | + * @description | |
21486 | + * Created | |
21487 | + */ | |
21488 | + 201: any; | |
21489 | + /** | |
21490 | + * @description | |
21491 | + * Unauthorized | |
21492 | + */ | |
21493 | + 401: any; | |
21494 | + /** | |
21495 | + * @description | |
21496 | + * Forbidden | |
21497 | + */ | |
21498 | + 403: any; | |
21499 | + /** | |
21500 | + * @description | |
21501 | + * Not Found | |
21502 | + */ | |
21503 | + 404: any; | |
21504 | +} | |
21505 | + | |
21506 | +export type PostServiceOrderBatchReceiveIntegralResponseSuccess = | |
21507 | + PostServiceOrderBatchReceiveIntegralResponse[200]; | |
21508 | +/** | |
21509 | + * @description | |
21510 | + * 计算积分 | |
21511 | + * @tags 内部订单 | |
21512 | + * @produces * | |
21513 | + * @consumes application/json | |
21514 | + */ | |
21515 | +export const postServiceOrderBatchReceiveIntegral = /* #__PURE__ */ (() => { | |
21516 | + const method = 'post'; | |
21517 | + const url = '/service/order/batchReceiveIntegral'; | |
21518 | + function request( | |
21519 | + option: PostServiceOrderBatchReceiveIntegralOption, | |
21520 | + ): Promise<PostServiceOrderBatchReceiveIntegralResponseSuccess> { | |
21521 | + return requester(request.url, { | |
21522 | + method: request.method, | |
21523 | + ...option, | |
21524 | + }) as unknown as Promise<PostServiceOrderBatchReceiveIntegralResponseSuccess>; | |
21525 | + } | |
21526 | + | |
21527 | + /** http method */ | |
21528 | + request.method = method; | |
21529 | + /** request url */ | |
21530 | + request.url = url; | |
21531 | + return request; | |
21532 | +})(); | |
21533 | + | |
21092 | 21534 | /** @description request parameter type for postServiceOrderCancelSend */ |
21093 | 21535 | export interface PostServiceOrderCancelSendOption { |
21094 | 21536 | /** | ... | ... |