Commit f52ca7112ca46bcddb8f0ecfd4fe568c71aedb2c

Authored by 曾国涛
2 parents 1b5105f2 f6ae1f17
src/pages/Instalment/components/upload/uploadApp.tsx
... ... @@ -24,7 +24,7 @@ const App: React.FC = ({ uploadFile }) => {
24 24 <p className="ant-upload-text">点击或者拖动文件到此处</p>
25 25 </Dragger>
26 26 <a
27   - href="https://order-erp.oss-cn-qingdao.aliyuncs.com/%E5%88%86%E6%9C%9F%E4%BB%98%E6%AC%BE-%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx?Expires=2035527699&OSSAccessKeyId=LTAIZCPI7OaWud0m&Signature=npHyEhfRd6LugJ0St8OkvRmLYtQ%3D"
  27 + href="https://order-erp.oss-cn-qingdao.aliyuncs.com/%E5%88%86%E6%9C%9F%E4%BB%98%E6%AC%BE-%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx?Expires=2036232762&OSSAccessKeyId=LTAIZCPI7OaWud0m&Signature=rtc7LNVK9g3flXQeHdeGOXFOocY%3D"
28 28 className="modul-a"
29 29 >
30 30 下载模板
... ...
src/pages/Order/components/FinancialDrawer.tsx
1   -// import { PlusOutlined } from '@ant-design/icons';
2 1 import { RESPONSE_CODE } from '@/constants/enum';
3 2 import {
4 3 postServiceOrderEditOrder,
... ...
src/pages/Order/components/FinancialEditDrawer.tsx
1   -// import { PlusOutlined } from '@ant-design/icons';
2 1 import { RESPONSE_CODE } from '@/constants/enum';
3 2 import { postServiceOrderNoNeedInvoicingEdit } from '@/services';
4 3 import { enumToSelect } from '@/utils';
... ...
src/pages/Order/components/FinancialMergeDrawer.tsx
1   -// import { PlusOutlined } from '@ant-design/icons';
2 1 import { RESPONSE_CODE } from '@/constants/enum';
3 2 import { enumToSelect } from '@/utils';
4 3 import {
... ...
src/pages/Order/components/OrderDrawer copy.tsx
... ... @@ -647,6 +647,8 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
647 647 const res = await postKingdeeRepCustomer({
648 648 data: { search: keywords },
649 649 });
  650 + console.log(res);
  651 +
650 652 let options = res?.rows?.map((c: any) => {
651 653 return {
652 654 ...c,
... ...
src/pages/Order/components/OrderDrawer.tsx
... ... @@ -3,8 +3,10 @@ import {
3 3 postCanrdApiUserAddressList,
4 4 postCanrdApiUserDetail,
5 5 postCanrdApiUserNowMoneyCheck,
6   - postDistrictSelectBelongByName,
  6 + postDistrictAddOrderAndProvince,
7 7 postDistrictSelectByLevel,
  8 + postDistrictSelectByNameAndLevel,
  9 + postDistrictSelOrderProvince,
8 10 postKingdeeRepCustomerDetail,
9 11 postKingdeeRepMaterial,
10 12 postKingdeeRepMaterialUnit,
... ... @@ -17,15 +19,15 @@ import {
17 19 postServiceOrderUpdateOrder,
18 20 } from '@/services';
19 21 import {
  22 + enumToSelect,
20 23 FloatAdd,
21 24 FloatMul,
22   - enumToSelect,
23 25 getAliYunOSSFileNameFromUrl,
24 26 getUserInfo,
25 27 } from '@/utils';
26   -import { getDefaultString } from '@/utils/StringUtil';
27 28 import { getTeacherCustomFieldNumber } from '@/utils/kingdee';
28 29 import { getSalesCodeOptions } from '@/utils/order';
  30 +import { getDefaultString } from '@/utils/StringUtil';
29 31 import {
30 32 DrawerForm,
31 33 FormListActionType,
... ... @@ -38,7 +40,7 @@ import {
38 40 ProFormTextArea,
39 41 ProFormUploadDragger,
40 42 } from '@ant-design/pro-components';
41   -import { Button, Form, Modal, message } from 'antd';
  43 +import { Button, Form, message, Modal } from 'antd';
42 44 import { cloneDeep } from 'lodash';
43 45 import { useEffect, useRef, useState } from 'react';
44 46 import {
... ... @@ -879,6 +881,17 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
879 881 //新增
880 882 if (optType('add') || optType('copy')) {
881 883 res = await postServiceOrderAddOrder({ data: values });
  884 + if (res && res.data.length === 2) {
  885 + const orderMainProDo = {
  886 + oId: res.data[0],
  887 + province: province,
  888 + city: city,
  889 + district: district,
  890 + };
  891 + await postDistrictAddOrderAndProvince({
  892 + data: orderMainProDo,
  893 + });
  894 + }
882 895 }
883 896 //修改或者申请售后或者申请修改
884 897 if (
... ... @@ -1115,9 +1128,24 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1115 1128 key: c.id,
1116 1129 };
1117 1130 });
1118   - console.log(form.getFieldsValue());
1119   - console.log(form.getFieldValue('customerName'));
  1131 + console.log(form.getFieldValue('customerShippingAddress'));
  1132 + console.log(form.getFieldValue('id'));
  1133 + if (form.getFieldValue('id') !== undefined) {
  1134 + const resp = await postDistrictSelOrderProvince({
  1135 + data: form.getFieldValue('id'),
  1136 + });
  1137 + console.log();
  1138 +
  1139 + setProvince(resp.data.province);
  1140 + form.setFieldValue('province', resp.data.province);
  1141 + setCity(resp.data.city);
  1142 + form.setFieldValue('city', resp.data.city);
  1143 + setDistrict(resp.data.district);
  1144 + form.setFieldValue('district', resp.data.district);
  1145 + console.log(form.getFieldsValue());
  1146 + }
1120 1147 //判断如果是在修改或者复制,那么第一次请求的时候,默认生成当前收货人信息的option
  1148 +
1121 1149 let realName = form.getFieldValue('customerName');
1122 1150 let detail = form.getFieldValue('customerShippingAddress');
1123 1151 let institution = form.getFieldValue('institution');
... ... @@ -1195,11 +1223,14 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1195 1223 key="province"
1196 1224 width={100}
1197 1225 label="省"
  1226 + allowClear={false}
1198 1227 fieldProps={{
1199 1228 labelInValue: true,
1200 1229 }}
1201 1230 onChange={(value) => {
1202   - setProvince(value?.value);
  1231 + if (value !== undefined || value !== null) {
  1232 + setProvince(value?.value);
  1233 + }
1203 1234 }}
1204 1235 placeholder="请选择"
1205 1236 rules={[
... ... @@ -1224,13 +1255,16 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1224 1255 name="city"
1225 1256 width={100}
1226 1257 label="市"
  1258 + allowClear={false}
1227 1259 disabled={province === ''}
1228 1260 fieldProps={{
1229 1261 labelInValue: true,
1230 1262 }}
1231 1263 placeholder="请选择"
1232 1264 onChange={(value) => {
1233   - setCity(value?.value);
  1265 + if (value !== undefined || value !== null) {
  1266 + setCity(value?.value);
  1267 + }
1234 1268 }}
1235 1269 rules={[
1236 1270 {
... ... @@ -1241,8 +1275,8 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1241 1275 request={async () => {
1242 1276 if (province !== '') {
1243 1277 let cityOptions = [];
1244   - let res = await postDistrictSelectBelongByName({
1245   - data: province,
  1278 + let res = await postDistrictSelectByNameAndLevel({
  1279 + data: { district: province, level: 1 },
1246 1280 });
1247 1281 if (res && res.data) {
1248 1282 cityOptions = res.data.map((item) => ({
... ... @@ -1260,8 +1294,11 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1260 1294 name="district"
1261 1295 width={100}
1262 1296 label="区"
  1297 + allowClear={false}
1263 1298 onChange={(value) => {
1264   - setDistrict(value?.value);
  1299 + if (value !== undefined || value !== null) {
  1300 + setDistrict(value?.value);
  1301 + }
1265 1302 }}
1266 1303 disabled={city === ''}
1267 1304 fieldProps={{
... ... @@ -1275,9 +1312,13 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1275 1312 },
1276 1313 ]}
1277 1314 request={async () => {
  1315 + console.log(form.getFieldsValue());
  1316 +
1278 1317 if (city !== '') {
1279 1318 let districtOptions = [];
1280   - let res = await postDistrictSelectBelongByName({ data: city });
  1319 + let res = await postDistrictSelectByNameAndLevel({
  1320 + data: { district: city, level: 2 },
  1321 + });
1281 1322 if (res && res.data) {
1282 1323 districtOptions = res.data.map((item) => ({
1283 1324 value: item.district,
... ... @@ -1690,6 +1731,8 @@ export default ({ onClose, data, subOrders, orderOptType }) =&gt; {
1690 1731 const res = await postKingdeeRepMaterial({
1691 1732 data: { search: keywords },
1692 1733 });
  1734 + console.log(res.customerShippingAddress);
  1735 +
1693 1736 let options = res?.rows?.map((p: any) => {
1694 1737 return {
1695 1738 ...p,
... ...
src/pages/ResearchGroup/index.tsx
... ... @@ -485,9 +485,9 @@ const PrepaidPage = () =&gt; {
485 485 defaultValue: {
486 486 option: { fixed: 'right', disable: true },
487 487 },
488   - onChange(value) {
489   - console.log('value: ', value);
490   - },
  488 + // onChange(value) {
  489 + // console.log('value: ', value);
  490 + // },
491 491 }}
492 492 rowKey="id"
493 493 search={{
... ...
src/services/definition.ts
... ... @@ -1136,6 +1136,12 @@ export interface DistrictDo {
1136 1136 pid?: number;
1137 1137 }
1138 1138  
  1139 +export interface DistrictSearchDo {
  1140 + district?: string;
  1141 + /** @format int32 */
  1142 + level?: number;
  1143 +}
  1144 +
1139 1145 export interface Entry {
1140 1146 bankAccount?: string;
1141 1147 bankName?: string;
... ... @@ -2043,6 +2049,14 @@ export interface OrderInspectionStageVO {
2043 2049 value3?: string;
2044 2050 }
2045 2051  
  2052 +export interface OrderMainProDo {
  2053 + city?: string;
  2054 + district?: string;
  2055 + /** @format int64 */
  2056 + oid?: number;
  2057 + province?: string;
  2058 +}
  2059 +
2046 2060 export interface OrderOptLogQueryVO {
2047 2061 /** @format int32 */
2048 2062 current?: number;
... ... @@ -3014,6 +3028,325 @@ export interface ResearchGroupMemberRequestsRequest {
3014 3028 total?: number;
3015 3029 }
3016 3030  
  3031 +export interface ResearchGroupAccountAddRequest {
  3032 + /**
  3033 + * @description
  3034 + * 关联的账号id
  3035 + * @format int64
  3036 + */
  3037 + accountId?: number;
  3038 + /**
  3039 + * @description
  3040 + * 关联的账号名称
  3041 + */
  3042 + accountName?: string;
  3043 + /**
  3044 + * @description
  3045 + * 关联的账号手机号
  3046 + */
  3047 + accountPhone?: string;
  3048 + /**
  3049 + * @description
  3050 + * 课题组id
  3051 + * @format int64
  3052 + */
  3053 + groupId?: number;
  3054 +}
  3055 +
  3056 +export interface ResearchGroupAccountEditRequest {
  3057 + /**
  3058 + * @description
  3059 + * 关联的账号id
  3060 + * @format int64
  3061 + */
  3062 + accountId?: number;
  3063 + /**
  3064 + * @description
  3065 + * 关联的账号名称
  3066 + */
  3067 + accountName?: string;
  3068 + /**
  3069 + * @description
  3070 + * 关联的账号手机号
  3071 + */
  3072 + accountPhone?: string;
  3073 + /**
  3074 + * @description
  3075 + * 课题组id
  3076 + * @format int64
  3077 + */
  3078 + groupId?: number;
  3079 + /**
  3080 + * @description
  3081 + * 主键id
  3082 + * @format int64
  3083 + */
  3084 + id?: number;
  3085 +}
  3086 +
  3087 +export interface ResearchGroupAddRequest {
  3088 + accounts?: Array<ResearchGroupAccountAddRequest>;
  3089 + /**
  3090 + * @description
  3091 + * 课题组名称
  3092 + */
  3093 + group?: string;
  3094 + /**
  3095 + * @description
  3096 + * 课题组负责人
  3097 + */
  3098 + leader?: string;
  3099 + members?: Array<ResearchGroupMemberAddRequest>;
  3100 +}
  3101 +
  3102 +export interface ResearchGroupDeleteRequest {
  3103 + /**
  3104 + * @description
  3105 + * 主键id
  3106 + */
  3107 + ids?: Array<number>;
  3108 +}
  3109 +
  3110 +export interface ResearchGroupDetailRequest {
  3111 + /**
  3112 + * @description
  3113 + * 主键id
  3114 + * @format int64
  3115 + */
  3116 + id?: number;
  3117 +}
  3118 +
  3119 +export interface ResearchGroupEditRequest {
  3120 + /**
  3121 + * @description
  3122 + * 课题组预存账号
  3123 + */
  3124 + accounts?: Array<ResearchGroupAccountEditRequest>;
  3125 + /**
  3126 + * @description
  3127 + * 课题组名称
  3128 + */
  3129 + group?: string;
  3130 + /**
  3131 + * @description
  3132 + * 主键id
  3133 + * @format int64
  3134 + */
  3135 + id?: number;
  3136 + /**
  3137 + * @description
  3138 + * 课题组负责人
  3139 + */
  3140 + leader?: string;
  3141 + /**
  3142 + * @description
  3143 + * 课题组成员集合
  3144 + */
  3145 + members?: Array<ResearchGroupMemberEditRequest>;
  3146 +}
  3147 +
  3148 +export interface ResearchGroupListRequest {
  3149 + /**
  3150 + * @description
  3151 + * 预存账号手机号
  3152 + */
  3153 + accountPhone?: string;
  3154 + /** @format int32 */
  3155 + current?: number;
  3156 + /** @format int32 */
  3157 + end?: number;
  3158 + /**
  3159 + * @description
  3160 + * 课题组名称
  3161 + */
  3162 + groupName?: string;
  3163 + /**
  3164 + * @description
  3165 + * 课题组负责人
  3166 + */
  3167 + leaderName?: string;
  3168 + /**
  3169 + * @description
  3170 + * 课题组成员名称
  3171 + */
  3172 + memberName?: string;
  3173 + /**
  3174 + * @description
  3175 + * 课题组成员手机号
  3176 + */
  3177 + memberPhone?: string;
  3178 + /** @format int32 */
  3179 + pageSize?: number;
  3180 + /** @format int32 */
  3181 + start?: number;
  3182 + /** @format int32 */
  3183 + total?: number;
  3184 +}
  3185 +
  3186 +export interface ResearchGroupMemberAddRequest {
  3187 + /**
  3188 + * @description
  3189 + * 课题组ID
  3190 + * @format int64
  3191 + */
  3192 + groupId?: number;
  3193 + /**
  3194 + * @description
  3195 + * 成员名称
  3196 + */
  3197 + memberName?: string;
  3198 + /**
  3199 + * @description
  3200 + * 成员手机号
  3201 + */
  3202 + memberPhone?: string;
  3203 +}
  3204 +
  3205 +export interface ResearchGroupMemberEditRequest {
  3206 + /**
  3207 + * @description
  3208 + * 课题组ID
  3209 + * @format int64
  3210 + */
  3211 + groupId?: number;
  3212 + /**
  3213 + * @description
  3214 + * 主键id
  3215 + * @format int64
  3216 + */
  3217 + id?: number;
  3218 + /**
  3219 + * @description
  3220 + * 成员名称
  3221 + */
  3222 + memberName?: string;
  3223 + /**
  3224 + * @description
  3225 + * 成员手机号
  3226 + */
  3227 + memberPhone?: string;
  3228 +}
  3229 +
  3230 +export interface ResearchGroupMemberRequestAddRequest {
  3231 + /**
  3232 + * @description
  3233 + * 课题组ID
  3234 + * @format int64
  3235 + */
  3236 + groupId?: number;
  3237 + /**
  3238 + * @description
  3239 + * 课题组名称
  3240 + */
  3241 + groupName?: string;
  3242 + members?: Array<ResearchGroupMemberAddRequest>;
  3243 + /**
  3244 + * @description
  3245 + * 申请备注
  3246 + */
  3247 + requestNotes?: string;
  3248 +}
  3249 +
  3250 +export interface ResearchGroupMemberRequestDeleteRequest {
  3251 + /**
  3252 + * @description
  3253 + * 主键id
  3254 + */
  3255 + ids?: Array<number>;
  3256 +}
  3257 +
  3258 +export interface ResearchGroupMemberRequestDetailRequest {
  3259 + /**
  3260 + * @description
  3261 + * 主键id
  3262 + * @format int64
  3263 + */
  3264 + id?: number;
  3265 +}
  3266 +
  3267 +export interface ResearchGroupMemberRequestEditRequest {
  3268 + /**
  3269 + * @description
  3270 + * 课题组ID
  3271 + * @format int64
  3272 + */
  3273 + groupId?: number;
  3274 + /**
  3275 + * @description
  3276 + * 课题组名称
  3277 + */
  3278 + groupName?: string;
  3279 + /**
  3280 + * @description
  3281 + * 主键id
  3282 + * @format int64
  3283 + */
  3284 + id?: number;
  3285 + /**
  3286 + * @description
  3287 + * 成员名称
  3288 + */
  3289 + memberName?: string;
  3290 + /**
  3291 + * @description
  3292 + * 成员手机号
  3293 + */
  3294 + memberPhone?: string;
  3295 + /**
  3296 + * @description
  3297 + * 申请备注
  3298 + */
  3299 + requestNotes?: string;
  3300 +}
  3301 +
  3302 +export interface ResearchGroupMemberRequestsRequest {
  3303 + /**
  3304 + * @description
  3305 + * 审核备注
  3306 + */
  3307 + auditNotes?: string;
  3308 + /**
  3309 + * @description
  3310 + * 审核状态
  3311 + */
  3312 + auditStatus?: string;
  3313 + /**
  3314 + * @description
  3315 + * 创建人
  3316 + */
  3317 + createByName?: string;
  3318 + /** @format int32 */
  3319 + current?: number;
  3320 + /** @format int32 */
  3321 + end?: number;
  3322 + /**
  3323 + * @description
  3324 + * 课题组名称
  3325 + */
  3326 + groupName?: string;
  3327 + /**
  3328 + * @description
  3329 + * 成员名称
  3330 + */
  3331 + memberName?: string;
  3332 + /**
  3333 + * @description
  3334 + * 成员手机号
  3335 + */
  3336 + memberPhone?: string;
  3337 + /** @format int32 */
  3338 + pageSize?: number;
  3339 + /**
  3340 + * @description
  3341 + * 申请备注
  3342 + */
  3343 + requestNotes?: string;
  3344 + /** @format int32 */
  3345 + start?: number;
  3346 + /** @format int32 */
  3347 + total?: number;
  3348 +}
  3349 +
3017 3350 export interface ResetPwdVO {
3018 3351 /** @format int64 */
3019 3352 userId?: number;
... ...
src/services/request.ts
... ... @@ -45,6 +45,7 @@ import type {
45 45 DictionaryQueryVO,
46 46 DictionaryVO,
47 47 DistrictDo,
  48 + DistrictSearchDo,
48 49 Dto,
49 50 InventoryMaterialStockReq,
50 51 InvoiceDto,
... ... @@ -61,6 +62,7 @@ import type {
61 62 OrderAuditLogQueryVO,
62 63 OrderBaseInfoQueryVO,
63 64 OrderFieldLockApplyQueryVO,
  65 + OrderMainProDo,
64 66 OrderOptLogQueryVO,
65 67 OrderProfitAnalysisVo,
66 68 OrderStagesDelDo,
... ... @@ -1841,6 +1843,148 @@ export const postCommonAudit = /* #__PURE__ */ (() =&gt; {
1841 1843 return request;
1842 1844 })();
1843 1845  
  1846 +/** @description request parameter type for postDistrictAddOrderAndProvince */
  1847 +export interface PostDistrictAddOrderAndProvinceOption {
  1848 + /**
  1849 + * @description
  1850 + * orderMainProDo
  1851 + */
  1852 + body: {
  1853 + /**
  1854 + @description
  1855 + orderMainProDo */
  1856 + orderMainProDo: OrderMainProDo;
  1857 + };
  1858 +}
  1859 +
  1860 +/** @description response type for postDistrictAddOrderAndProvince */
  1861 +export interface PostDistrictAddOrderAndProvinceResponse {
  1862 + /**
  1863 + * @description
  1864 + * OK
  1865 + */
  1866 + 200: ServerResult;
  1867 + /**
  1868 + * @description
  1869 + * Created
  1870 + */
  1871 + 201: any;
  1872 + /**
  1873 + * @description
  1874 + * Unauthorized
  1875 + */
  1876 + 401: any;
  1877 + /**
  1878 + * @description
  1879 + * Forbidden
  1880 + */
  1881 + 403: any;
  1882 + /**
  1883 + * @description
  1884 + * Not Found
  1885 + */
  1886 + 404: any;
  1887 +}
  1888 +
  1889 +export type PostDistrictAddOrderAndProvinceResponseSuccess =
  1890 + PostDistrictAddOrderAndProvinceResponse[200];
  1891 +/**
  1892 + * @description
  1893 + * 添加到订单省市区关系表
  1894 + * @tags order-district-controller
  1895 + * @produces *
  1896 + * @consumes application/json
  1897 + */
  1898 +export const postDistrictAddOrderAndProvince = /* #__PURE__ */ (() => {
  1899 + const method = 'post';
  1900 + const url = '/district/addOrderAndProvince';
  1901 + function request(
  1902 + option: PostDistrictAddOrderAndProvinceOption,
  1903 + ): Promise<PostDistrictAddOrderAndProvinceResponseSuccess> {
  1904 + return requester(request.url, {
  1905 + method: request.method,
  1906 + ...option,
  1907 + }) as unknown as Promise<PostDistrictAddOrderAndProvinceResponseSuccess>;
  1908 + }
  1909 +
  1910 + /** http method */
  1911 + request.method = method;
  1912 + /** request url */
  1913 + request.url = url;
  1914 + return request;
  1915 +})();
  1916 +
  1917 +/** @description request parameter type for postDistrictSelOrderProvince */
  1918 +export interface PostDistrictSelOrderProvinceOption {
  1919 + /**
  1920 + * @description
  1921 + * oId
  1922 + */
  1923 + body: {
  1924 + /**
  1925 + @description
  1926 + oId */
  1927 + oId: number;
  1928 + };
  1929 +}
  1930 +
  1931 +/** @description response type for postDistrictSelOrderProvince */
  1932 +export interface PostDistrictSelOrderProvinceResponse {
  1933 + /**
  1934 + * @description
  1935 + * OK
  1936 + */
  1937 + 200: ServerResult;
  1938 + /**
  1939 + * @description
  1940 + * Created
  1941 + */
  1942 + 201: any;
  1943 + /**
  1944 + * @description
  1945 + * Unauthorized
  1946 + */
  1947 + 401: any;
  1948 + /**
  1949 + * @description
  1950 + * Forbidden
  1951 + */
  1952 + 403: any;
  1953 + /**
  1954 + * @description
  1955 + * Not Found
  1956 + */
  1957 + 404: any;
  1958 +}
  1959 +
  1960 +export type PostDistrictSelOrderProvinceResponseSuccess =
  1961 + PostDistrictSelOrderProvinceResponse[200];
  1962 +/**
  1963 + * @description
  1964 + * 查询订单的省市区
  1965 + * @tags order-district-controller
  1966 + * @produces *
  1967 + * @consumes application/json
  1968 + */
  1969 +export const postDistrictSelOrderProvince = /* #__PURE__ */ (() => {
  1970 + const method = 'post';
  1971 + const url = '/district/selOrderProvince';
  1972 + function request(
  1973 + option: PostDistrictSelOrderProvinceOption,
  1974 + ): Promise<PostDistrictSelOrderProvinceResponseSuccess> {
  1975 + return requester(request.url, {
  1976 + method: request.method,
  1977 + ...option,
  1978 + }) as unknown as Promise<PostDistrictSelOrderProvinceResponseSuccess>;
  1979 + }
  1980 +
  1981 + /** http method */
  1982 + request.method = method;
  1983 + /** request url */
  1984 + request.url = url;
  1985 + return request;
  1986 +})();
  1987 +
1844 1988 /** @description response type for getDistrictSelectAll */
1845 1989 export interface GetDistrictSelectAllResponse {
1846 1990 /**
... ... @@ -2173,6 +2317,77 @@ export const postDistrictSelectByLevel = /* #__PURE__ */ (() =&gt; {
2173 2317 return request;
2174 2318 })();
2175 2319  
  2320 +/** @description request parameter type for postDistrictSelectByNameAndLevel */
  2321 +export interface PostDistrictSelectByNameAndLevelOption {
  2322 + /**
  2323 + * @description
  2324 + * districtSearchDo
  2325 + */
  2326 + body: {
  2327 + /**
  2328 + @description
  2329 + districtSearchDo */
  2330 + districtSearchDo: DistrictSearchDo;
  2331 + };
  2332 +}
  2333 +
  2334 +/** @description response type for postDistrictSelectByNameAndLevel */
  2335 +export interface PostDistrictSelectByNameAndLevelResponse {
  2336 + /**
  2337 + * @description
  2338 + * OK
  2339 + */
  2340 + 200: ServerResult;
  2341 + /**
  2342 + * @description
  2343 + * Created
  2344 + */
  2345 + 201: any;
  2346 + /**
  2347 + * @description
  2348 + * Unauthorized
  2349 + */
  2350 + 401: any;
  2351 + /**
  2352 + * @description
  2353 + * Forbidden
  2354 + */
  2355 + 403: any;
  2356 + /**
  2357 + * @description
  2358 + * Not Found
  2359 + */
  2360 + 404: any;
  2361 +}
  2362 +
  2363 +export type PostDistrictSelectByNameAndLevelResponseSuccess =
  2364 + PostDistrictSelectByNameAndLevelResponse[200];
  2365 +/**
  2366 + * @description
  2367 + * 根据名字和级别进行筛选
  2368 + * @tags order-district-controller
  2369 + * @produces *
  2370 + * @consumes application/json
  2371 + */
  2372 +export const postDistrictSelectByNameAndLevel = /* #__PURE__ */ (() => {
  2373 + const method = 'post';
  2374 + const url = '/district/selectByNameAndLevel';
  2375 + function request(
  2376 + option: PostDistrictSelectByNameAndLevelOption,
  2377 + ): Promise<PostDistrictSelectByNameAndLevelResponseSuccess> {
  2378 + return requester(request.url, {
  2379 + method: request.method,
  2380 + ...option,
  2381 + }) as unknown as Promise<PostDistrictSelectByNameAndLevelResponseSuccess>;
  2382 + }
  2383 +
  2384 + /** http method */
  2385 + request.method = method;
  2386 + /** request url */
  2387 + request.url = url;
  2388 + return request;
  2389 +})();
  2390 +
2176 2391 /** @description response type for getError */
2177 2392 export interface GetErrorResponse {
2178 2393 /**
... ...