Commit 897d4524c8b2b623f9da4176f2493f0f21204cf0

Authored by 曾国涛
1 parent 605e26ae

feat(Order): 课题组选择bug修复

src/pages/Order/OrderList/OrderDrawer.tsx
... ... @@ -11,8 +11,8 @@ import {
11 11 postKingdeeRepMaterialUnit,
12 12 postKingdeeRepMeasureUnit,
13 13 postPrepaidPhoneAvailableList,
  14 + postResearchGroupsListNotPage,
14 15 postResearchGroupsMemberExists,
15   - postResearchGroupsNameSet,
16 16 postServiceConstCompanyType,
17 17 postServiceConstOrderSource,
18 18 postServiceConstPlatformType,
... ... @@ -48,7 +48,7 @@ import {
48 48 ProFormUploadDragger,
49 49 } from '@ant-design/pro-components';
50 50 import { Group } from '@ant-design/pro-form';
51   -import { Button, Form, message, Modal } from 'antd';
  51 +import { Alert, Button, Form, message, Modal } from 'antd';
52 52 import { cloneDeep } from 'lodash';
53 53 import { useEffect, useRef, useState } from 'react';
54 54 import {
... ... @@ -1245,35 +1245,43 @@ export default ({ onClose, data, subOrders, orderOptType }) => {
1245 1245 const renderInstitutionContactName = () => (
1246 1246 <>
1247 1247 <Group>
  1248 + {/* 课题组选择下拉框(隐藏) */}
1248 1249 <ProFormSelect
1249   - key="institutionContactName"
  1250 + key="researchGroupSelect"
1250 1251 width="xl"
1251 1252 showSearch
1252   - name="institutionContactName"
1253   - rules={[{ required: true, message: '请输入课题组名称!' }]}
  1253 + name="researchGroupSelect"
  1254 + label="选择课题组"
  1255 + placeholder="请搜索并选择课题组"
  1256 + rules={[{ required: true, message: '请选择课题组!' }]}
1254 1257 request={async (value) => {
1255 1258 const keywords = value?.keyWords || '';
1256   - const res = await postResearchGroupsNameSet({
  1259 + const res = await postResearchGroupsListNotPage({
1257 1260 data: {
1258 1261 status: 'ADD_AUDIT_PASS',
1259 1262 groupName: keywords,
1260 1263 },
1261 1264 });
1262   - return Object.entries(res?.data || {}).map(
1263   - ([researchGroupsId, researchGroupsName]) => ({
1264   - label: researchGroupsName,
1265   - value: researchGroupsName, // 使用 researchGroupsId 作为 value
1266   - key: researchGroupsId,
1267   - id: researchGroupsId,
1268   - }),
1269   - );
  1265 + return res.data.map((item) => ({
  1266 + label: `${item.groupName} | ${item.companyName} | ${item.id}`,
  1267 + value: item.id.toString(),
  1268 + key: item.id.toString(),
  1269 + groupName: item.groupName,
  1270 + }));
1270 1271 }}
1271 1272 fieldProps={{
1272 1273 filterOption: () => true,
1273   - onChange: async (_, option) => {
1274   - const researchGroupId = option?.id || '';
  1274 + onChange: async (value, option) => {
  1275 + const selectedOption = Array.isArray(option)
  1276 + ? option[0]
  1277 + : option;
  1278 + const researchGroupId = value;
  1279 + const researchGroupName = selectedOption?.groupName;
  1280 +
  1281 + // 更新表单值
1275 1282 form.setFieldsValue({
1276   - researchGroupId: researchGroupId,
  1283 + researchGroupId,
  1284 + institutionContactName: researchGroupName,
1277 1285 });
1278 1286  
1279 1287 // 检查用户是否已经是该课题组成员
... ... @@ -1291,78 +1299,78 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1291 1299 },
1292 1300 });
1293 1301  
1294   - // 响应码200表示请求成功,值为false表示用户不是课题组成员
1295   - // 必须先检查res是否存在并且是否有200属性
1296   - console.log(res, '5656res');
1297 1302 const isMember = res;
1298   -
1299   - if (!isMember) {
1300   - // 显示用户将被添加到课题组的信息
1301   - form.setFields([
1302   - {
1303   - name: 'researchGroupWarning',
1304   - value: true,
1305   - },
1306   - ]);
1307   - } else {
1308   - form.setFields([
1309   - {
1310   - name: 'researchGroupWarning',
1311   - value: false,
1312   - },
1313   - ]);
1314   - }
  1303 + form.setFields([
  1304 + {
  1305 + name: 'researchGroupWarning',
  1306 + value: !isMember, // 警告显示逻辑:非成员才显示警告
  1307 + },
  1308 + ]);
1315 1309 } catch (error) {
1316 1310 console.error('检查课题组成员失败:', error);
  1311 + form.setFields([
  1312 + {
  1313 + name: 'researchGroupWarning',
  1314 + value: false,
  1315 + },
  1316 + ]);
1317 1317 }
1318 1318 }
1319 1319 }
1320 1320 },
1321 1321 }}
1322 1322 debounceTime={1000}
  1323 + />
  1324 +
  1325 + {/* 显示课题组名称的只读输入框 */}
  1326 + <ProFormText
  1327 + name="institutionContactName"
  1328 + width="xl"
  1329 + readonly
1323 1330 label="课题组名称"
1324   - placeholder="请输入名称"
  1331 + fieldProps={{
  1332 + readOnly: true,
  1333 + style: {
  1334 + backgroundColor: '#f5f5f5',
  1335 + cursor: 'not-allowed',
  1336 + },
  1337 + }}
  1338 + rules={[{ required: true, message: '请重新选择课题组!' }]}
1325 1339 />
  1340 +
  1341 + {/* 课题组ID显示框(保持原有样式) */}
1326 1342 <ProFormDigit
1327 1343 readonly
1328 1344 key="researchGroupId"
1329 1345 width="md"
1330 1346 name="researchGroupId"
1331   - label="课题组Id"
1332   - fieldProps={{ precision: 0 }} // 只允许整数
  1347 + label="课题组ID"
  1348 + fieldProps={{ precision: 0 }}
1333 1349 rules={[{ required: true, message: '请重新选择课题组!' }]}
1334 1350 />
1335 1351 </Group>
  1352 +
  1353 + {/* 警告信息显示 */}
1336 1354 <ProFormDependency
1337   - name={[
1338   - 'researchGroupWarning',
1339   - 'institutionContactName',
1340   - 'researchGroupId',
1341   - ]}
  1355 + name={['researchGroupWarning', 'institutionContactName']}
1342 1356 >
1343   - {({
1344   - researchGroupWarning,
1345   - institutionContactName,
1346   - researchGroupId,
1347   - }) => {
1348   - if (
1349   - researchGroupWarning &&
1350   - institutionContactName &&
1351   - researchGroupId
1352   - ) {
  1357 + {({ researchGroupWarning, institutionContactName }) => {
  1358 + if (researchGroupWarning && institutionContactName) {
1353 1359 const customerNameString =
1354 1360 form.getFieldValue('customerNameString') || '客户';
1355 1361 return (
1356   - <div
1357   - style={{
1358   - color: 'red',
1359   - marginBottom: '15px',
1360   - marginTop: '0px',
1361   - }}
1362   - >
1363   - 订单提交后{customerNameString}将默认加入
1364   - {institutionContactName}课题组
1365   - </div>
  1362 + <Alert
  1363 + message={
  1364 + <span>
  1365 + 订单提交后{customerNameString}将默认加入
  1366 + <strong> {institutionContactName} </strong>
  1367 + 课题组
  1368 + </span>
  1369 + }
  1370 + type="warning"
  1371 + showIcon
  1372 + style={{ marginBottom: 16 }}
  1373 + />
1366 1374 );
1367 1375 }
1368 1376 return null;
... ... @@ -1370,6 +1378,7 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1370 1378 </ProFormDependency>
1371 1379 </>
1372 1380 );
  1381 +
1373 1382 const renderPlatformType = (fieldKey) => (
1374 1383 <ProFormSelect
1375 1384 key={fieldKey}
... ...
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 }
... ... @@ -4256,7 +4282,7 @@ export interface ResetPwdVO {
4256 4282  
4257 4283 export interface Resource {
4258 4284 description?: string;
4259   - file?: TsgFile;
  4285 + file?: File;
4260 4286 filename?: string;
4261 4287 inputStream?: InputStream;
4262 4288 open?: boolean;
... ... @@ -4964,32 +4990,6 @@ export interface CompanyInfo {
4964 4990 taxIdIsNotNull?: boolean;
4965 4991 }
4966 4992  
4967   -export interface TsgFile {
4968   - absolute?: boolean;
4969   - absoluteFile?: TsgFile;
4970   - absolutePath?: string;
4971   - canonicalFile?: TsgFile;
4972   - canonicalPath?: string;
4973   - directory?: boolean;
4974   - executable?: boolean;
4975   - file?: boolean;
4976   - /** @format int64 */
4977   - freeSpace?: number;
4978   - hidden?: boolean;
4979   - /** @format int64 */
4980   - lastModified?: number;
4981   - name?: string;
4982   - parent?: string;
4983   - parentFile?: TsgFile;
4984   - path?: string;
4985   - readable?: boolean;
4986   - /** @format int64 */
4987   - totalSpace?: number;
4988   - /** @format int64 */
4989   - usableSpace?: number;
4990   - writable?: boolean;
4991   -}
4992   -
4993 4993 export interface InvoiceDetail {
4994 4994 createByName?: string;
4995 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,77 @@ export const postResearchGroupsList = /* #__PURE__ */ (() =&gt; {
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 +
15314 15372 /** @description request parameter type for postResearchGroupsMemberExists */
15315 15373 export interface PostResearchGroupsMemberExistsOption {
15316 15374 /**
... ... @@ -21220,6 +21278,259 @@ export const postServiceOrderBatchCaculateAndSetIntegral =
21220 21278 return request;
21221 21279 })();
21222 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 +
21223 21534 /** @description request parameter type for postServiceOrderCancelSend */
21224 21535 export interface PostServiceOrderCancelSendOption {
21225 21536 /**
... ...