Commit 1d454be0bcbd9bc956800a01867899015720a809
1 parent
15c41122
feat: add new functionality
chore: update review functionality
Showing
10 changed files
with
6891 additions
and
298 deletions
.umirc.ts
@@ -12,8 +12,8 @@ export default defineConfig({ | @@ -12,8 +12,8 @@ export default defineConfig({ | ||
12 | title: '订单管理系统', | 12 | title: '订单管理系统', |
13 | }, | 13 | }, |
14 | proxy: { | 14 | proxy: { |
15 | - '/erp/': { | ||
16 | - target: 'http://39.108.227.113:3000/mock/39', | 15 | + '/service/': { |
16 | + target: 'http://localhost:8085/', | ||
17 | changeOrigin: true, | 17 | changeOrigin: true, |
18 | // pathRewrite: { '^/api': '' }, | 18 | // pathRewrite: { '^/api': '' }, |
19 | }, | 19 | }, |
src/pages/Order/components/CheckModal.tsx
1 | +import { postServiceOrderCheckOrder } from '@/services'; | ||
1 | import { ModalForm, ProFormTextArea } from '@ant-design/pro-components'; | 2 | import { ModalForm, ProFormTextArea } from '@ant-design/pro-components'; |
2 | -import { Form, message } from 'antd'; | ||
3 | - | ||
4 | -export default ({ setCheckVisible }) => { | 3 | +import { Button, Form, message } from 'antd'; |
4 | +export default ({ setCheckVisible, data, onClose }) => { | ||
5 | const [form] = Form.useForm<{ name: string; company: string }>(); | 5 | const [form] = Form.useForm<{ name: string; company: string }>(); |
6 | + let subOrderIds: any[] = []; | ||
7 | + const subOrderList = data.subOrderInformationLists; | ||
8 | + //是单条子订单审核 | ||
9 | + if (subOrderList === undefined) { | ||
10 | + subOrderIds = [data.id]; | ||
11 | + } else { | ||
12 | + subOrderIds = subOrderList.map((subOrder) => subOrder.id); | ||
13 | + } | ||
14 | + async function doCheck(body: object) { | ||
15 | + const res = await postServiceOrderCheckOrder({ | ||
16 | + data: body, | ||
17 | + }); | ||
18 | + if (res.result === 0) { | ||
19 | + message.success(res.message); | ||
20 | + } else { | ||
21 | + message.error(res.message); | ||
22 | + } | ||
23 | + onClose(); | ||
24 | + return true; | ||
25 | + } | ||
6 | return ( | 26 | return ( |
7 | <ModalForm<{ | 27 | <ModalForm<{ |
8 | name: string; | 28 | name: string; |
@@ -21,12 +41,35 @@ export default ({ setCheckVisible }) => { | @@ -21,12 +41,35 @@ export default ({ setCheckVisible }) => { | ||
21 | setCheckVisible(false); | 41 | setCheckVisible(false); |
22 | }, | 42 | }, |
23 | }} | 43 | }} |
44 | + submitter={{ | ||
45 | + render: (props, defaultDoms) => { | ||
46 | + return [ | ||
47 | + <Button | ||
48 | + key="驳回" | ||
49 | + onClick={() => { | ||
50 | + doCheck({ | ||
51 | + flag: false, | ||
52 | + ids: subOrderIds, | ||
53 | + checkNotes: form.getFieldValue('name'), | ||
54 | + }); | ||
55 | + }} | ||
56 | + > | ||
57 | + 驳回 | ||
58 | + </Button>, | ||
59 | + defaultDoms[1], | ||
60 | + ]; | ||
61 | + }, | ||
62 | + }} | ||
24 | submitTimeout={2000} | 63 | submitTimeout={2000} |
25 | onFinish={async (values) => { | 64 | onFinish={async (values) => { |
26 | - console.log(values.name); | ||
27 | - message.success('提交成功'); | ||
28 | - return true; | 65 | + //审核通过 |
66 | + return doCheck({ | ||
67 | + flag: true, | ||
68 | + ids: subOrderIds, | ||
69 | + checkNotes: values.name, | ||
70 | + }); | ||
29 | }} | 71 | }} |
72 | + onOpenChange={setCheckVisible} | ||
30 | > | 73 | > |
31 | <div>请特别注意订单总金额与订单金额。</div> | 74 | <div>请特别注意订单总金额与订单金额。</div> |
32 | <ProFormTextArea | 75 | <ProFormTextArea |
src/pages/Order/components/DeliverModal.tsx
1 | +import { enumToSelect } from '@/utils'; | ||
1 | import { | 2 | import { |
2 | ProColumns, | 3 | ProColumns, |
3 | ProForm, | 4 | ProForm, |
5 | + ProFormSelect, | ||
4 | ProFormText, | 6 | ProFormText, |
5 | ProTable, | 7 | ProTable, |
6 | } from '@ant-design/pro-components'; | 8 | } from '@ant-design/pro-components'; |
7 | -import { Button, Input, InputNumber, Modal } from 'antd'; | 9 | +import { Button, InputNumber, Modal } from 'antd'; |
8 | import { cloneDeep } from 'lodash'; | 10 | import { cloneDeep } from 'lodash'; |
9 | import { useEffect, useRef, useState } from 'react'; | 11 | import { useEffect, useRef, useState } from 'react'; |
12 | +import { LOGISTICS_STATUS_OPTIONS } from '../constant'; | ||
10 | 13 | ||
11 | const DeliverModal = ({ data: propsData, onClose }) => { | 14 | const DeliverModal = ({ data: propsData, onClose }) => { |
12 | const [data, setData] = useState(propsData || {}); | 15 | const [data, setData] = useState(propsData || {}); |
@@ -40,18 +43,21 @@ const DeliverModal = ({ data: propsData, onClose }) => { | @@ -40,18 +43,21 @@ const DeliverModal = ({ data: propsData, onClose }) => { | ||
40 | { | 43 | { |
41 | title: '物流方式', | 44 | title: '物流方式', |
42 | width: 180, | 45 | width: 180, |
43 | - key: 'paymentChannel', | ||
44 | - render: (_, record, index) => ( | ||
45 | - <Input | ||
46 | - value={record.paymentChannel} | ||
47 | - onChange={handleChange('paymentChannel', index)} | 46 | + key: 'logisticsMethod', |
47 | + render: () => ( | ||
48 | + <ProFormSelect | ||
49 | + placeholder="请输入物流方式" | ||
50 | + name="logisticsMethod" | ||
51 | + width="lg" | ||
52 | + label="物流方式" | ||
53 | + options={enumToSelect(LOGISTICS_STATUS_OPTIONS)} | ||
48 | /> | 54 | /> |
49 | ), | 55 | ), |
50 | }, | 56 | }, |
51 | { | 57 | { |
52 | title: '物流单号', | 58 | title: '物流单号', |
53 | width: 180, | 59 | width: 180, |
54 | - key: 'productCode', | 60 | + key: 'serialNumber', |
55 | render: (_, record, index) => ( | 61 | render: (_, record, index) => ( |
56 | <InputNumber | 62 | <InputNumber |
57 | value={record.productCode} | 63 | value={record.productCode} |
src/pages/Order/components/OrderDrawer.tsx
1 | -import { postErpOrderAdd } from '@/services'; | 1 | +import { postServiceOrderAddOrder } from '@/services'; |
2 | +import { enumToSelect } from '@/utils'; | ||
2 | import { | 3 | import { |
3 | DrawerForm, | 4 | DrawerForm, |
4 | FormListActionType, | 5 | FormListActionType, |
5 | ProCard, | 6 | ProCard, |
7 | + ProFormDateTimePicker, | ||
6 | ProFormGroup, | 8 | ProFormGroup, |
7 | ProFormList, | 9 | ProFormList, |
10 | + ProFormSelect, | ||
8 | ProFormText, | 11 | ProFormText, |
12 | + ProFormTextArea, | ||
9 | } from '@ant-design/pro-components'; | 13 | } from '@ant-design/pro-components'; |
10 | import { Form, message } from 'antd'; | 14 | import { Form, message } from 'antd'; |
11 | import { useEffect, useRef } from 'react'; | 15 | import { useEffect, useRef } from 'react'; |
12 | -import { useFieldAuth } from '../hooks'; | ||
13 | -import { OPERATION_TYPE } from '../type.d'; | 16 | +import { |
17 | + INVOCING_STATUS_OPTIONS, | ||
18 | + PAYMENT_CHANNEL_OPTIONS, | ||
19 | + PAYMENT_METHOD_OPTIONS, | ||
20 | + PRODUCT_BELONG_DEPARTMENT_OPTIONS, | ||
21 | +} from '../constant'; | ||
14 | 22 | ||
15 | export default ({ onClose, data }) => { | 23 | export default ({ onClose, data }) => { |
16 | - const { authFields } = useFieldAuth({ | ||
17 | - operation: data?.id ? OPERATION_TYPE.EDIT : OPERATION_TYPE.CREATE, | ||
18 | - }); | 24 | + console.log(''); |
19 | const [form] = Form.useForm<{ name: string; company: string }>(); | 25 | const [form] = Form.useForm<{ name: string; company: string }>(); |
20 | const actionRef = useRef< | 26 | const actionRef = useRef< |
21 | FormListActionType<{ | 27 | FormListActionType<{ |
@@ -35,7 +41,48 @@ export default ({ onClose, data }) => { | @@ -35,7 +41,48 @@ export default ({ onClose, data }) => { | ||
35 | company: string; | 41 | company: string; |
36 | }> | 42 | }> |
37 | open | 43 | open |
44 | + width="35%" | ||
38 | title="新建订单" | 45 | title="新建订单" |
46 | + initialValues={{ | ||
47 | + customerName: '123', | ||
48 | + customerContactNumber: '123', | ||
49 | + institution: '123', | ||
50 | + institutionContactName: '123', | ||
51 | + customerShippingAddress: '123123', | ||
52 | + totalPayment: '12312', | ||
53 | + paymentChannel: 'BANK_TRANSFER', | ||
54 | + paymentMethod: 'PAYMENT_IN_ADVANCE', | ||
55 | + productBelongBusiness: 'EXPERIMENTAL_CONSUMABLES', | ||
56 | + invoicingStatus: 'INVOICED', | ||
57 | + invoiceIdentificationNumber: '12312', | ||
58 | + invoicingTime: '2023-11-29 23:19:15', | ||
59 | + bank: '123', | ||
60 | + bankAccountNumber: '1231', | ||
61 | + notes: '123', | ||
62 | + list: [ | ||
63 | + { | ||
64 | + productCode: 'qweq', | ||
65 | + productName: 'qweqwe', | ||
66 | + quantity: '99', | ||
67 | + productPrice: '12313', | ||
68 | + parameters: 'qweq', | ||
69 | + subOrderPayment: '1231', | ||
70 | + unit: 'qweq', | ||
71 | + serialNumber: 'qwewqe', | ||
72 | + notes: 'qweqw', | ||
73 | + }, | ||
74 | + { | ||
75 | + productName: 'asdsda', | ||
76 | + productCode: 'dasda', | ||
77 | + parameters: 'sdasa', | ||
78 | + quantity: '99', | ||
79 | + productPrice: '123', | ||
80 | + unit: '123', | ||
81 | + subOrderPayment: '123', | ||
82 | + serialNumber: 'adadas', | ||
83 | + }, | ||
84 | + ], | ||
85 | + }} | ||
39 | resize={{ | 86 | resize={{ |
40 | onResize() { | 87 | onResize() { |
41 | console.log('resize!'); | 88 | console.log('resize!'); |
@@ -52,13 +99,10 @@ export default ({ onClose, data }) => { | @@ -52,13 +99,10 @@ export default ({ onClose, data }) => { | ||
52 | }} | 99 | }} |
53 | submitTimeout={2000} | 100 | submitTimeout={2000} |
54 | onFinish={async (values) => { | 101 | onFinish={async (values) => { |
55 | - console.log(form); | ||
56 | - console.log(values); | ||
57 | - await postErpOrderAdd({ values }); | ||
58 | - console.log(values.name); | 102 | + await postServiceOrderAddOrder({ data: values }); |
59 | message.success('提交成功'); | 103 | message.success('提交成功'); |
60 | // 不返回不会关闭弹框 | 104 | // 不返回不会关闭弹框 |
61 | - // onClose(); | 105 | + onClose(); |
62 | return true; | 106 | return true; |
63 | }} | 107 | }} |
64 | onOpenChange={(val) => { | 108 | onOpenChange={(val) => { |
@@ -67,37 +111,30 @@ export default ({ onClose, data }) => { | @@ -67,37 +111,30 @@ export default ({ onClose, data }) => { | ||
67 | > | 111 | > |
68 | <h2>订单基本信息</h2> | 112 | <h2>订单基本信息</h2> |
69 | <ProFormText | 113 | <ProFormText |
70 | - name="id" | ||
71 | - width="lg" | ||
72 | - label="订单编号" | ||
73 | - placeholder="请输入订单编号" | ||
74 | - disabled={authFields.id} | ||
75 | - /> | ||
76 | - <ProFormText | ||
77 | - width="lg" | ||
78 | name="salesCode" | 114 | name="salesCode" |
79 | - label="销售代号" | ||
80 | - placeholder="请输入销售代号" | ||
81 | - disabled={authFields.salesCode} | 115 | + width="lg" |
116 | + disabled | ||
117 | + label="销售代表" | ||
118 | + placeholder="请输入销售代表" | ||
119 | + initialValue="JOJO" | ||
82 | /> | 120 | /> |
83 | <ProFormText | 121 | <ProFormText |
84 | name="customerName" | 122 | name="customerName" |
85 | width="lg" | 123 | width="lg" |
86 | label="收货人" | 124 | label="收货人" |
87 | placeholder="请输入收货人" | 125 | placeholder="请输入收货人" |
88 | - disabled={authFields.customerName} | ||
89 | /> | 126 | /> |
90 | <ProFormText | 127 | <ProFormText |
91 | width="lg" | 128 | width="lg" |
92 | name="customerContactNumber" | 129 | name="customerContactNumber" |
93 | - label="收货人联系手机号" | ||
94 | - placeholder="请输入收货人联系手机号" | 130 | + label="联系方式" |
131 | + placeholder="请输入联系方式" | ||
95 | /> | 132 | /> |
96 | <ProFormText | 133 | <ProFormText |
97 | width="lg" | 134 | width="lg" |
98 | - name="customerShippingAddress" | ||
99 | - label="收货人地址信息" | ||
100 | - placeholder="请输入收货人地址信息" | 135 | + name="institution" |
136 | + label="单位" | ||
137 | + placeholder="请输入单位" | ||
101 | /> | 138 | /> |
102 | <ProFormText | 139 | <ProFormText |
103 | width="lg" | 140 | width="lg" |
@@ -105,20 +142,85 @@ export default ({ onClose, data }) => { | @@ -105,20 +142,85 @@ export default ({ onClose, data }) => { | ||
105 | label="单位联系人" | 142 | label="单位联系人" |
106 | placeholder="请输入单位联系人" | 143 | placeholder="请输入单位联系人" |
107 | /> | 144 | /> |
145 | + <ProFormTextArea | ||
146 | + width="lg" | ||
147 | + name="customerShippingAddress" | ||
148 | + label="收货地址" | ||
149 | + placeholder="请输入收货地址" | ||
150 | + /> | ||
151 | + <ProFormText name="totalPayment" width="lg" label="支付总额(¥)" /> | ||
152 | + <ProFormSelect | ||
153 | + placeholder="请输入支付渠道" | ||
154 | + name="paymentChannel" | ||
155 | + width="lg" | ||
156 | + label="支付渠道" | ||
157 | + options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)} | ||
158 | + /> | ||
159 | + <ProFormSelect | ||
160 | + placeholder="请输入支付方式" | ||
161 | + name="paymentMethod" | ||
162 | + width="lg" | ||
163 | + label="支付方式" | ||
164 | + options={enumToSelect(PAYMENT_METHOD_OPTIONS)} | ||
165 | + /> | ||
166 | + <ProFormSelect | ||
167 | + placeholder="请输入所属事业部" | ||
168 | + name="productBelongBusiness" | ||
169 | + width="lg" | ||
170 | + label="所属事业部" | ||
171 | + options={enumToSelect(PRODUCT_BELONG_DEPARTMENT_OPTIONS)} | ||
172 | + /> | ||
173 | + <ProFormSelect | ||
174 | + placeholder="选择是否要开票" | ||
175 | + name="invoicingStatus" | ||
176 | + width="lg" | ||
177 | + label="是否要开票" | ||
178 | + options={enumToSelect(INVOCING_STATUS_OPTIONS)} | ||
179 | + /> | ||
108 | <ProFormText | 180 | <ProFormText |
109 | width="lg" | 181 | width="lg" |
110 | - name="institution" | ||
111 | - label="单位" | ||
112 | - placeholder="请输入单位" | 182 | + name="invoiceIdentificationNumber" |
183 | + label="开票信息" | ||
184 | + placeholder="请输入开票信息" | ||
185 | + /> | ||
186 | + <ProFormDateTimePicker | ||
187 | + width="lg" | ||
188 | + name="invoicingTime" | ||
189 | + label="开票时间" | ||
190 | + placeholder="请输入开票时间" | ||
191 | + /> | ||
192 | + <ProFormText | ||
193 | + width="lg" | ||
194 | + name="bank" | ||
195 | + label="开户银行" | ||
196 | + placeholder="请输入开户银行" | ||
197 | + /> | ||
198 | + <ProFormText | ||
199 | + width="lg" | ||
200 | + name="bankAccountNumber" | ||
201 | + label="银行账号" | ||
202 | + placeholder="请输入银行账号" | ||
203 | + /> | ||
204 | + <ProFormText | ||
205 | + width="lg" | ||
206 | + name="notes" | ||
207 | + label="备注" | ||
208 | + placeholder="请输入备注" | ||
113 | /> | 209 | /> |
114 | 210 | ||
115 | - <h2>商品基本信息</h2> | 211 | + {/* <h2>商品基本信息</h2> |
116 | <ProFormText width="lg" name="totalPayment" label="支付总金额" /> | 212 | <ProFormText width="lg" name="totalPayment" label="支付总金额" /> |
117 | - <ProFormText | 213 | + <ProFormSelect |
214 | + disabled | ||
215 | + placeholder="请输入物流方式" | ||
216 | + name="logisticsMethod" | ||
118 | width="lg" | 217 | width="lg" |
119 | - name="logisticsStatus" | ||
120 | label="物流方式" | 218 | label="物流方式" |
121 | - placeholder="请输入物流方式" | 219 | + request={async () => { |
220 | + // 发送请求获取选项数据 | ||
221 | + const { data } = await getServiceOrderProvideLogisticsStatus(); | ||
222 | + return enumToSelect(data); | ||
223 | + }} | ||
122 | /> | 224 | /> |
123 | <ProFormText | 225 | <ProFormText |
124 | width="lg" | 226 | width="lg" |
@@ -126,17 +228,28 @@ export default ({ onClose, data }) => { | @@ -126,17 +228,28 @@ export default ({ onClose, data }) => { | ||
126 | label="支付状态" | 228 | label="支付状态" |
127 | placeholder="请输入支付状态" | 229 | placeholder="请输入支付状态" |
128 | /> | 230 | /> |
129 | - <ProFormText | ||
130 | - width="lg" | 231 | + |
232 | + <ProFormSelect | ||
233 | + placeholder="请输入支付方式" | ||
131 | name="paymentMethod" | 234 | name="paymentMethod" |
235 | + width="lg" | ||
132 | label="支付方式" | 236 | label="支付方式" |
133 | - placeholder="请输入支付方式" | 237 | + request={async () => { |
238 | + // 发送请求获取选项数据 | ||
239 | + const { data } = await getServiceOrderProvidePaymentMethod(); | ||
240 | + return enumToSelect(data); | ||
241 | + }} | ||
134 | /> | 242 | /> |
135 | - <ProFormText | ||
136 | - width="lg" | 243 | + <ProFormSelect |
244 | + placeholder="请输入支付渠道" | ||
137 | name="paymentChannel" | 245 | name="paymentChannel" |
246 | + width="lg" | ||
138 | label="支付渠道" | 247 | label="支付渠道" |
139 | - placeholder="请输入支付渠道" | 248 | + request={async () => { |
249 | + // 发送请求获取选项数据 | ||
250 | + const { data } = await getServiceOrderProvidePaymentChannel(); | ||
251 | + return enumToSelect(data); | ||
252 | + }} | ||
140 | /> | 253 | /> |
141 | <ProFormText | 254 | <ProFormText |
142 | width="lg" | 255 | width="lg" |
@@ -185,11 +298,11 @@ export default ({ onClose, data }) => { | @@ -185,11 +298,11 @@ export default ({ onClose, data }) => { | ||
185 | name="orderStatus" | 298 | name="orderStatus" |
186 | label="订单状态" | 299 | label="订单状态" |
187 | placeholder="请输入订单状态" | 300 | placeholder="请输入订单状态" |
188 | - /> | 301 | + /> */} |
189 | 302 | ||
190 | <h2>商品信息</h2> | 303 | <h2>商品信息</h2> |
191 | <ProFormList | 304 | <ProFormList |
192 | - name="subOrderInformationLists" | 305 | + name="list" |
193 | label="" | 306 | label="" |
194 | initialValue={[ | 307 | initialValue={[ |
195 | { | 308 | { |
@@ -217,11 +330,14 @@ export default ({ onClose, data }) => { | @@ -217,11 +330,14 @@ export default ({ onClose, data }) => { | ||
217 | return; | 330 | return; |
218 | } | 331 | } |
219 | rowNumber.current = 1; | 332 | rowNumber.current = 1; |
220 | - setTimeout(() => resolve(true), 1000); | 333 | + setTimeout(() => { |
334 | + resolve(true); | ||
335 | + }, 1000); | ||
221 | }); | 336 | }); |
222 | }, | 337 | }, |
223 | }} | 338 | }} |
224 | - itemRender={({ listDom, action }) => { | 339 | + itemRender={({ listDom, action }, {}) => { |
340 | + // const list = actionRef.current?.getList(); | ||
225 | return ( | 341 | return ( |
226 | <ProCard | 342 | <ProCard |
227 | bordered | 343 | bordered |
@@ -239,47 +355,60 @@ export default ({ onClose, data }) => { | @@ -239,47 +355,60 @@ export default ({ onClose, data }) => { | ||
239 | > | 355 | > |
240 | <ProFormGroup key="group"> | 356 | <ProFormGroup key="group"> |
241 | <ProFormText | 357 | <ProFormText |
242 | - width="md" | 358 | + width="lg" |
359 | + name="productName" | ||
360 | + label="商品名称" | ||
361 | + placeholder="请输入商品名称" | ||
362 | + /> | ||
363 | + <ProFormText | ||
364 | + width="lg" | ||
243 | name="productCode" | 365 | name="productCode" |
244 | label="商品编码" | 366 | label="商品编码" |
245 | - placeholder="请输入商品编码" | 367 | + placeholder="未输入商品名称" |
246 | /> | 368 | /> |
247 | <ProFormText | 369 | <ProFormText |
248 | - width="md" | ||
249 | - name="productName" | ||
250 | - label="商品名称" | ||
251 | - placeholder="请输入商品名称" | 370 | + width="lg" |
371 | + name="parameters" | ||
372 | + label="商品参数" | ||
373 | + placeholder="请输入商品参数" | ||
252 | /> | 374 | /> |
253 | <ProFormText | 375 | <ProFormText |
254 | - width="md" | 376 | + width="lg" |
255 | name="quantity" | 377 | name="quantity" |
256 | label="商品数量" | 378 | label="商品数量" |
257 | placeholder="请输入商品数量" | 379 | placeholder="请输入商品数量" |
258 | /> | 380 | /> |
259 | <ProFormText | 381 | <ProFormText |
260 | - width="md" | 382 | + width="lg" |
261 | name="productPrice" | 383 | name="productPrice" |
262 | label="商品单价" | 384 | label="商品单价" |
263 | placeholder="请输入商品单价" | 385 | placeholder="请输入商品单价" |
264 | /> | 386 | /> |
265 | <ProFormText | 387 | <ProFormText |
266 | - width="md" | 388 | + width="lg" |
267 | name="unit" | 389 | name="unit" |
268 | label="价格单位" | 390 | label="价格单位" |
269 | placeholder="请输入价格单位" | 391 | placeholder="请输入价格单位" |
270 | /> | 392 | /> |
393 | + | ||
271 | <ProFormText | 394 | <ProFormText |
272 | - width="md" | ||
273 | - name="parameters" | ||
274 | - label="商品参数" | ||
275 | - placeholder="请输入商品参数" | ||
276 | - /> | ||
277 | - <ProFormText | ||
278 | - width="md" | 395 | + width="lg" |
279 | name="subOrderPayment" | 396 | name="subOrderPayment" |
280 | label="子订单金额" | 397 | label="子订单金额" |
281 | placeholder="请输入子订单金额" | 398 | placeholder="请输入子订单金额" |
282 | /> | 399 | /> |
400 | + <ProFormText | ||
401 | + width="lg" | ||
402 | + name="serialNumber" | ||
403 | + label="物流单号" | ||
404 | + placeholder="请输入物流单号" | ||
405 | + /> | ||
406 | + <ProFormText | ||
407 | + width="lg" | ||
408 | + name="notes" | ||
409 | + label="备注" | ||
410 | + placeholder="请输入备注" | ||
411 | + /> | ||
283 | </ProFormGroup> | 412 | </ProFormGroup> |
284 | </ProFormList> | 413 | </ProFormList> |
285 | 414 |
src/pages/Order/constant.ts
@@ -182,3 +182,41 @@ export const SUB_ORDER_COLUMNS = [ | @@ -182,3 +182,41 @@ export const SUB_ORDER_COLUMNS = [ | ||
182 | component: 'tag', | 182 | component: 'tag', |
183 | }, | 183 | }, |
184 | ]; | 184 | ]; |
185 | + | ||
186 | +export const PAYMENT_CHANNEL_OPTIONS = { | ||
187 | + ALIPAY: '支付宝', | ||
188 | + WECHAT: '微信', | ||
189 | + BANK_TRANSFER: '银行转账', | ||
190 | +}; | ||
191 | + | ||
192 | +export const PAYMENT_METHOD_OPTIONS = { | ||
193 | + PAYMENT_IN_ADVANCE: '预付', | ||
194 | + CASH_ON_DELIVERY: '货到付款', | ||
195 | +}; | ||
196 | + | ||
197 | +export const PRODUCT_BELONG_DEPARTMENT_OPTIONS = { | ||
198 | + APPLICATION_PROJECT: '应用项目事业部门', | ||
199 | + TEST: '测试事业部门', | ||
200 | + CUSTOMIZATION: '定制化事业部门', | ||
201 | + EXPERIMENTAL_EQUIPMENT: '实验设备事业部门', | ||
202 | + EXPERIMENTAL_CONSUMABLES: '实验耗材事业部门', | ||
203 | +}; | ||
204 | + | ||
205 | +export const INVOCING_STATUS_OPTIONS = { | ||
206 | + UN_INVOICE: '未开票', | ||
207 | + INVOICED: '已开票', | ||
208 | +}; | ||
209 | + | ||
210 | +export const LOGISTICS_STATUS_OPTIONS = { | ||
211 | + JINGDONG_LOGISTICS: '京东物流', | ||
212 | + DEBANG_LOGISTICS: '德邦物流', | ||
213 | +}; | ||
214 | + | ||
215 | +export const ORDER_STATUS_OPTIONS = { | ||
216 | + CONFIRM_RECEIPT: '确认收货', | ||
217 | + UNAUDITED: '未审核', | ||
218 | + AUDITED: '已审核', | ||
219 | + WAIT_SHIP: '待发货', | ||
220 | + AUDIT_FAILED: '审核失败', | ||
221 | + SHIPPED: '已发货', | ||
222 | +}; |
src/pages/Order/index.tsx
1 | import ButtonConfirm from '@/components/ButtomConfirm'; | 1 | import ButtonConfirm from '@/components/ButtomConfirm'; |
2 | -import { postErpOrderListByPage } from '@/services'; | 2 | +import { postServiceOrderQueryServiceOrder } from '@/services'; |
3 | +import { enumValueToLabel } from '@/utils'; | ||
3 | import { | 4 | import { |
4 | PageContainer, | 5 | PageContainer, |
5 | ProColumns, | 6 | ProColumns, |
6 | ProTable, | 7 | ProTable, |
7 | } from '@ant-design/pro-components'; | 8 | } from '@ant-design/pro-components'; |
8 | -import { Button, Divider, Flex, Space, Tag, message } from 'antd'; | ||
9 | -import { Key, useState } from 'react'; | 9 | +import { Button, Checkbox, Divider, Flex, Space, Tag, message } from 'antd'; |
10 | +import { Key, useRef, useState } from 'react'; | ||
10 | import CheckModal from './components/CheckModal'; | 11 | import CheckModal from './components/CheckModal'; |
11 | import DeliverModal from './components/DeliverModal'; | 12 | import DeliverModal from './components/DeliverModal'; |
12 | import OrderDrawer from './components/OrderDrawer'; | 13 | import OrderDrawer from './components/OrderDrawer'; |
13 | -import { MAIN_ORDER_COLUMNS, SUB_ORDER_COLUMNS } from './constant'; | 14 | +import { |
15 | + INVOCING_STATUS_OPTIONS, | ||
16 | + MAIN_ORDER_COLUMNS, | ||
17 | + ORDER_STATUS_OPTIONS, | ||
18 | + PAYMENT_CHANNEL_OPTIONS, | ||
19 | + PAYMENT_METHOD_OPTIONS, | ||
20 | + SUB_ORDER_COLUMNS, | ||
21 | +} from './constant'; | ||
14 | import './index.less'; | 22 | import './index.less'; |
15 | import { OrderListItemType, OrderType } from './type.d'; | 23 | import { OrderListItemType, OrderType } from './type.d'; |
16 | 24 | ||
@@ -20,27 +28,23 @@ const OrderPage = () => { | @@ -20,27 +28,23 @@ const OrderPage = () => { | ||
20 | const [deliverVisible, setDeliverVisible] = useState<boolean>(false); | 28 | const [deliverVisible, setDeliverVisible] = useState<boolean>(false); |
21 | const [expandedRowKeys, setExpandedRowKeys] = useState<Key[]>([]); | 29 | const [expandedRowKeys, setExpandedRowKeys] = useState<Key[]>([]); |
22 | const [orderRow, setOrderRow] = useState<Partial<OrderType>>({}); | 30 | const [orderRow, setOrderRow] = useState<Partial<OrderType>>({}); |
23 | - const [subOrderShowText, setSubOrderShowText] = useState('订单详情'); | ||
24 | 31 | ||
25 | const [selectedRows, setSelectedRows] = useState({}); | 32 | const [selectedRows, setSelectedRows] = useState({}); |
26 | const [selectedRowObj, setSelectedRowObj] = useState({}); | 33 | const [selectedRowObj, setSelectedRowObj] = useState({}); |
34 | + const [selectedItems, setSelectedItems] = useState([]); | ||
35 | + const mainTableRef = useRef(); | ||
27 | 36 | ||
28 | - // const onCheckboxChange = (itemKey: number) => { | ||
29 | - // const newSelectedItems = selectedItems.includes(itemKey) | ||
30 | - // ? selectedItems.filter((key) => key !== itemKey) | ||
31 | - // : [...selectedItems, itemKey]; | 37 | + const onCheckboxChange = (itemKey: never) => { |
38 | + const newSelectedItems = selectedItems.includes(itemKey) | ||
39 | + ? selectedItems.filter((key) => key !== itemKey) | ||
40 | + : [...selectedItems, itemKey]; | ||
32 | 41 | ||
33 | - // setSelectedItems(newSelectedItems); | ||
34 | - // }; | 42 | + setSelectedItems(newSelectedItems); |
43 | + }; | ||
35 | 44 | ||
36 | // 主订单内容渲染 | 45 | // 主订单内容渲染 |
37 | const MainOrderColumnRender = ({ record }: { record: OrderListItemType }) => { | 46 | const MainOrderColumnRender = ({ record }: { record: OrderListItemType }) => { |
38 | const handleExpand = (key: number) => { | 47 | const handleExpand = (key: number) => { |
39 | - if (expandedRowKeys.includes(key)) { | ||
40 | - setSubOrderShowText('查看详情'); | ||
41 | - } else { | ||
42 | - setSubOrderShowText('收起详情'); | ||
43 | - } | ||
44 | const newExpandedRowKeys = expandedRowKeys.includes(key) | 48 | const newExpandedRowKeys = expandedRowKeys.includes(key) |
45 | ? expandedRowKeys.filter((k) => k !== key) | 49 | ? expandedRowKeys.filter((k) => k !== key) |
46 | : [...expandedRowKeys, key]; | 50 | : [...expandedRowKeys, key]; |
@@ -51,15 +55,15 @@ const OrderPage = () => { | @@ -51,15 +55,15 @@ const OrderPage = () => { | ||
51 | <Flex vertical={true}> | 55 | <Flex vertical={true}> |
52 | {/* 编号、时间、销售信息 */} | 56 | {/* 编号、时间、销售信息 */} |
53 | <Flex justify="space-between" className="px-2 py-4 bg-gray-100"> | 57 | <Flex justify="space-between" className="px-2 py-4 bg-gray-100"> |
54 | - {/* <Checkbox | ||
55 | - onChange={() => onCheckboxChange(record.main_order_id)} | ||
56 | - checked={selectedItems.includes(record.main_order_id)} | ||
57 | - > */} | ||
58 | - <Flex wrap="wrap" gap="middle"> | ||
59 | - <div>{record.createTime}</div> | ||
60 | - <div>订单编号:{record.main_order_id}</div> | ||
61 | - </Flex> | ||
62 | - {/* </Checkbox> */} | 58 | + <Checkbox |
59 | + onChange={() => onCheckboxChange(record.id)} | ||
60 | + checked={selectedItems.includes(record.id)} | ||
61 | + > | ||
62 | + <Flex wrap="wrap" gap="middle"> | ||
63 | + <div>{record.createTime}</div> | ||
64 | + <div>订单编号:{record.main_order_id}</div> | ||
65 | + </Flex> | ||
66 | + </Checkbox> | ||
63 | </Flex> | 67 | </Flex> |
64 | {/* 收货、开票、备注信息 */} | 68 | {/* 收货、开票、备注信息 */} |
65 | <Flex justify="space-between" className="px-2 py-4"> | 69 | <Flex justify="space-between" className="px-2 py-4"> |
@@ -156,6 +160,7 @@ const OrderPage = () => { | @@ -156,6 +160,7 @@ const OrderPage = () => { | ||
156 | className="p-0" | 160 | className="p-0" |
157 | type="link" | 161 | type="link" |
158 | onClick={() => { | 162 | onClick={() => { |
163 | + setOrderRow(record); | ||
159 | setCheckVisible(true); | 164 | setCheckVisible(true); |
160 | }} | 165 | }} |
161 | > | 166 | > |
@@ -176,7 +181,7 @@ const OrderPage = () => { | @@ -176,7 +181,7 @@ const OrderPage = () => { | ||
176 | onClick={() => handleExpand(record.id)} | 181 | onClick={() => handleExpand(record.id)} |
177 | size="small" | 182 | size="small" |
178 | > | 183 | > |
179 | - {subOrderShowText} | 184 | + {expandedRowKeys.includes(record.id) ? '收起详情' : '订单详情'} |
180 | </Button> | 185 | </Button> |
181 | </Space.Compact> | 186 | </Space.Compact> |
182 | </Space> | 187 | </Space> |
@@ -211,11 +216,30 @@ const OrderPage = () => { | @@ -211,11 +216,30 @@ const OrderPage = () => { | ||
211 | return { | 216 | return { |
212 | ...item, | 217 | ...item, |
213 | render: (text: string) => { | 218 | render: (text: string) => { |
219 | + let label = enumValueToLabel(text, ORDER_STATUS_OPTIONS); | ||
220 | + console.log('label:' + label); | ||
221 | + if (label === undefined) { | ||
222 | + label = enumValueToLabel(text, INVOCING_STATUS_OPTIONS); | ||
223 | + } | ||
214 | let color = 'gold'; | 224 | let color = 'gold'; |
215 | - if (text === '已开票' || text === '已审核') { | 225 | + if (label === '已开票' || label === '已审核') { |
216 | color = 'green'; | 226 | color = 'green'; |
217 | } | 227 | } |
218 | - return <Tag color={color}>{text}</Tag>; | 228 | + return <Tag color={color}>{label}</Tag>; |
229 | + }, | ||
230 | + }; | ||
231 | + } | ||
232 | + | ||
233 | + //枚举字段处理 | ||
234 | + if (item.key === 'paymentMethod' || item.key === 'paymentChannel') { | ||
235 | + return { | ||
236 | + ...item, | ||
237 | + render: (text: string) => { | ||
238 | + let label = enumValueToLabel(text, PAYMENT_CHANNEL_OPTIONS); | ||
239 | + if (label === undefined) { | ||
240 | + label = enumValueToLabel(text, PAYMENT_METHOD_OPTIONS); | ||
241 | + } | ||
242 | + return label; | ||
219 | }, | 243 | }, |
220 | }; | 244 | }; |
221 | } | 245 | } |
@@ -227,9 +251,15 @@ const OrderPage = () => { | @@ -227,9 +251,15 @@ const OrderPage = () => { | ||
227 | dataIndex: 'operation', | 251 | dataIndex: 'operation', |
228 | key: 'operation', | 252 | key: 'operation', |
229 | align: 'center', | 253 | align: 'center', |
230 | - render: () => ( | 254 | + render: (optText, optRecord) => ( |
231 | <Flex> | 255 | <Flex> |
232 | - <Button type="link" size="small"> | 256 | + <Button |
257 | + type="link" | ||
258 | + size="small" | ||
259 | + onClick={() => { | ||
260 | + mainTableRef.current?.reload(); | ||
261 | + }} | ||
262 | + > | ||
233 | 编辑 | 263 | 编辑 |
234 | </Button> | 264 | </Button> |
235 | <Button | 265 | <Button |
@@ -237,7 +267,7 @@ const OrderPage = () => { | @@ -237,7 +267,7 @@ const OrderPage = () => { | ||
237 | size="small" | 267 | size="small" |
238 | onClick={() => { | 268 | onClick={() => { |
239 | setCheckVisible(true); | 269 | setCheckVisible(true); |
240 | - setOrderRow(record); | 270 | + setOrderRow(optRecord); |
241 | }} | 271 | }} |
242 | > | 272 | > |
243 | 审核 | 273 | 审核 |
@@ -294,6 +324,7 @@ const OrderPage = () => { | @@ -294,6 +324,7 @@ const OrderPage = () => { | ||
294 | }} | 324 | }} |
295 | > | 325 | > |
296 | <ProTable | 326 | <ProTable |
327 | + actionRef={mainTableRef} | ||
297 | expandIconColumnIndex={-1} | 328 | expandIconColumnIndex={-1} |
298 | columns={mainOrdersColumns} | 329 | columns={mainOrdersColumns} |
299 | rowKey="id" | 330 | rowKey="id" |
@@ -318,7 +349,7 @@ const OrderPage = () => { | @@ -318,7 +349,7 @@ const OrderPage = () => { | ||
318 | sorter, | 349 | sorter, |
319 | filter, | 350 | filter, |
320 | ) => { | 351 | ) => { |
321 | - const { data } = await postErpOrderListByPage({ | 352 | + const { data } = await postServiceOrderQueryServiceOrder({ |
322 | // ...params, | 353 | // ...params, |
323 | // FIXME: remove @ts-ignore | 354 | // FIXME: remove @ts-ignore |
324 | // @ts-ignore | 355 | // @ts-ignore |
@@ -336,7 +367,7 @@ const OrderPage = () => { | @@ -336,7 +367,7 @@ const OrderPage = () => { | ||
336 | <Button key="out" onClick={() => setOrderDrawerVisible(true)}> | 367 | <Button key="out" onClick={() => setOrderDrawerVisible(true)}> |
337 | 新增 | 368 | 新增 |
338 | </Button>, | 369 | </Button>, |
339 | - <Button key="primary" type="primary"> | 370 | + <Button key="primary" type="primary" onClick={() => {}}> |
340 | 导出 | 371 | 导出 |
341 | </Button>, | 372 | </Button>, |
342 | ]} | 373 | ]} |
@@ -348,17 +379,19 @@ const OrderPage = () => { | @@ -348,17 +379,19 @@ const OrderPage = () => { | ||
348 | onClose={() => { | 379 | onClose={() => { |
349 | setOrderDrawerVisible(false); | 380 | setOrderDrawerVisible(false); |
350 | setOrderRow({}); | 381 | setOrderRow({}); |
382 | + mainTableRef.current?.reload(); | ||
351 | }} | 383 | }} |
352 | /> | 384 | /> |
353 | )} | 385 | )} |
354 | 386 | ||
355 | {checkVisible && ( | 387 | {checkVisible && ( |
356 | <CheckModal | 388 | <CheckModal |
357 | - data={orderRow} | ||
358 | setCheckVisible={setCheckVisible} | 389 | setCheckVisible={setCheckVisible} |
390 | + data={orderRow} | ||
359 | onClose={() => { | 391 | onClose={() => { |
360 | setCheckVisible(false); | 392 | setCheckVisible(false); |
361 | setOrderRow({}); | 393 | setOrderRow({}); |
394 | + mainTableRef.current?.reload(); | ||
362 | }} | 395 | }} |
363 | /> | 396 | /> |
364 | )} | 397 | )} |
src/services/definition.ts
@@ -2,3 +2,844 @@ | @@ -2,3 +2,844 @@ | ||
2 | /* tslint:disable */ | 2 | /* tslint:disable */ |
3 | /** Do not modify manually. | 3 | /** Do not modify manually. |
4 | content is generated automatically by `ts-gear`. */ | 4 | content is generated automatically by `ts-gear`. */ |
5 | +export type ModelAndViewStatus = | ||
6 | + | '100 CONTINUE' | ||
7 | + | '101 SWITCHING_PROTOCOLS' | ||
8 | + | '102 PROCESSING' | ||
9 | + | '103 CHECKPOINT' | ||
10 | + | '200 OK' | ||
11 | + | '201 CREATED' | ||
12 | + | '202 ACCEPTED' | ||
13 | + | '203 NON_AUTHORITATIVE_INFORMATION' | ||
14 | + | '204 NO_CONTENT' | ||
15 | + | '205 RESET_CONTENT' | ||
16 | + | '206 PARTIAL_CONTENT' | ||
17 | + | '207 MULTI_STATUS' | ||
18 | + | '208 ALREADY_REPORTED' | ||
19 | + | '226 IM_USED' | ||
20 | + | '300 MULTIPLE_CHOICES' | ||
21 | + | '301 MOVED_PERMANENTLY' | ||
22 | + | '302 FOUND' | ||
23 | + | '302 MOVED_TEMPORARILY' | ||
24 | + | '303 SEE_OTHER' | ||
25 | + | '304 NOT_MODIFIED' | ||
26 | + | '305 USE_PROXY' | ||
27 | + | '307 TEMPORARY_REDIRECT' | ||
28 | + | '308 PERMANENT_REDIRECT' | ||
29 | + | '400 BAD_REQUEST' | ||
30 | + | '401 UNAUTHORIZED' | ||
31 | + | '402 PAYMENT_REQUIRED' | ||
32 | + | '403 FORBIDDEN' | ||
33 | + | '404 NOT_FOUND' | ||
34 | + | '405 METHOD_NOT_ALLOWED' | ||
35 | + | '406 NOT_ACCEPTABLE' | ||
36 | + | '407 PROXY_AUTHENTICATION_REQUIRED' | ||
37 | + | '408 REQUEST_TIMEOUT' | ||
38 | + | '409 CONFLICT' | ||
39 | + | '410 GONE' | ||
40 | + | '411 LENGTH_REQUIRED' | ||
41 | + | '412 PRECONDITION_FAILED' | ||
42 | + | '413 PAYLOAD_TOO_LARGE' | ||
43 | + | '413 REQUEST_ENTITY_TOO_LARGE' | ||
44 | + | '414 URI_TOO_LONG' | ||
45 | + | '414 REQUEST_URI_TOO_LONG' | ||
46 | + | '415 UNSUPPORTED_MEDIA_TYPE' | ||
47 | + | '416 REQUESTED_RANGE_NOT_SATISFIABLE' | ||
48 | + | '417 EXPECTATION_FAILED' | ||
49 | + | '418 I_AM_A_TEAPOT' | ||
50 | + | '419 INSUFFICIENT_SPACE_ON_RESOURCE' | ||
51 | + | '420 METHOD_FAILURE' | ||
52 | + | '421 DESTINATION_LOCKED' | ||
53 | + | '422 UNPROCESSABLE_ENTITY' | ||
54 | + | '423 LOCKED' | ||
55 | + | '424 FAILED_DEPENDENCY' | ||
56 | + | '425 TOO_EARLY' | ||
57 | + | '426 UPGRADE_REQUIRED' | ||
58 | + | '428 PRECONDITION_REQUIRED' | ||
59 | + | '429 TOO_MANY_REQUESTS' | ||
60 | + | '431 REQUEST_HEADER_FIELDS_TOO_LARGE' | ||
61 | + | '451 UNAVAILABLE_FOR_LEGAL_REASONS' | ||
62 | + | '500 INTERNAL_SERVER_ERROR' | ||
63 | + | '501 NOT_IMPLEMENTED' | ||
64 | + | '502 BAD_GATEWAY' | ||
65 | + | '503 SERVICE_UNAVAILABLE' | ||
66 | + | '504 GATEWAY_TIMEOUT' | ||
67 | + | '505 HTTP_VERSION_NOT_SUPPORTED' | ||
68 | + | '506 VARIANT_ALSO_NEGOTIATES' | ||
69 | + | '507 INSUFFICIENT_STORAGE' | ||
70 | + | '508 LOOP_DETECTED' | ||
71 | + | '509 BANDWIDTH_LIMIT_EXCEEDED' | ||
72 | + | '510 NOT_EXTENDED' | ||
73 | + | '511 NETWORK_AUTHENTICATION_REQUIRED'; | ||
74 | +export interface AdminAuthRoleVO { | ||
75 | + menuIds?: Array<number>; | ||
76 | + /** @format int64 */ | ||
77 | + roleId?: number; | ||
78 | +} | ||
79 | + | ||
80 | +export interface AdminAuthUserVO { | ||
81 | + roleIds?: Array<number>; | ||
82 | + /** @format int64 */ | ||
83 | + userId?: number; | ||
84 | +} | ||
85 | + | ||
86 | +export interface AdminDeptQueryVO { | ||
87 | + /** @format int32 */ | ||
88 | + current?: number; | ||
89 | + /** @format int64 */ | ||
90 | + id?: number; | ||
91 | + ids?: Array<number>; | ||
92 | + name?: string; | ||
93 | + /** @format int32 */ | ||
94 | + pageSize?: number; | ||
95 | + /** @format int64 */ | ||
96 | + pid?: number; | ||
97 | + /** @format int32 */ | ||
98 | + total?: number; | ||
99 | +} | ||
100 | + | ||
101 | +export interface AdminDeptVO { | ||
102 | + /** @format int64 */ | ||
103 | + id?: number; | ||
104 | + name?: string; | ||
105 | + /** @format int64 */ | ||
106 | + pid?: number; | ||
107 | +} | ||
108 | + | ||
109 | +export interface AdminJobQueryVO { | ||
110 | + /** @format int32 */ | ||
111 | + current?: number; | ||
112 | + /** @format int64 */ | ||
113 | + id?: number; | ||
114 | + ids?: Array<number>; | ||
115 | + name?: string; | ||
116 | + /** @format int32 */ | ||
117 | + pageSize?: number; | ||
118 | + /** @format int32 */ | ||
119 | + sort?: number; | ||
120 | + /** @format int32 */ | ||
121 | + total?: number; | ||
122 | +} | ||
123 | + | ||
124 | +export interface AdminJobVO { | ||
125 | + /** @format int64 */ | ||
126 | + id?: number; | ||
127 | + name?: string; | ||
128 | + /** @format int32 */ | ||
129 | + sort?: number; | ||
130 | +} | ||
131 | + | ||
132 | +export interface AdminMenuQueryVO { | ||
133 | + /** @format int32 */ | ||
134 | + cache?: number; | ||
135 | + component?: string; | ||
136 | + /** @format int32 */ | ||
137 | + current?: number; | ||
138 | + /** @format int32 */ | ||
139 | + hidden?: number; | ||
140 | + icon?: string; | ||
141 | + /** @format int64 */ | ||
142 | + id?: number; | ||
143 | + ids?: Array<number>; | ||
144 | + /** @format int32 */ | ||
145 | + iframe?: number; | ||
146 | + name?: string; | ||
147 | + /** @format int32 */ | ||
148 | + pageSize?: number; | ||
149 | + path?: string; | ||
150 | + permission?: string; | ||
151 | + /** @format int64 */ | ||
152 | + pid?: number; | ||
153 | + /** @format int32 */ | ||
154 | + total?: number; | ||
155 | + /** @format int32 */ | ||
156 | + type?: number; | ||
157 | +} | ||
158 | + | ||
159 | +export interface AdminMenuVO { | ||
160 | + /** @format int32 */ | ||
161 | + cache?: number; | ||
162 | + component?: string; | ||
163 | + /** @format int32 */ | ||
164 | + hidden?: number; | ||
165 | + icon?: string; | ||
166 | + /** @format int64 */ | ||
167 | + id?: number; | ||
168 | + /** @format int32 */ | ||
169 | + iframe?: number; | ||
170 | + name?: string; | ||
171 | + path?: string; | ||
172 | + permission?: string; | ||
173 | + /** @format int64 */ | ||
174 | + pid?: number; | ||
175 | + title?: string; | ||
176 | + /** @format int32 */ | ||
177 | + type?: number; | ||
178 | +} | ||
179 | + | ||
180 | +export interface AdminRoleQueryVO { | ||
181 | + /** @format int32 */ | ||
182 | + current?: number; | ||
183 | + dataScope?: string; | ||
184 | + /** @format int64 */ | ||
185 | + id?: number; | ||
186 | + ids?: Array<number>; | ||
187 | + /** @format int32 */ | ||
188 | + level?: number; | ||
189 | + name?: string; | ||
190 | + /** @format int32 */ | ||
191 | + pageSize?: number; | ||
192 | + permission?: string; | ||
193 | + remark?: string; | ||
194 | + /** @format int32 */ | ||
195 | + total?: number; | ||
196 | +} | ||
197 | + | ||
198 | +export interface AdminRoleVO { | ||
199 | + dataScope?: string; | ||
200 | + description?: string; | ||
201 | + /** @format int64 */ | ||
202 | + id?: number; | ||
203 | + /** @format int32 */ | ||
204 | + level?: number; | ||
205 | + name?: string; | ||
206 | +} | ||
207 | + | ||
208 | +export interface AdminUserLoginByPhoneVO { | ||
209 | + /** @format int32 */ | ||
210 | + current?: number; | ||
211 | + /** @format int32 */ | ||
212 | + pageSize?: number; | ||
213 | + phone?: string; | ||
214 | + smsCaptchaCode?: string; | ||
215 | + /** @format int32 */ | ||
216 | + total?: number; | ||
217 | +} | ||
218 | + | ||
219 | +export interface AdminUserLoginByPwdVO { | ||
220 | + /** @format int32 */ | ||
221 | + current?: number; | ||
222 | + imgCaptchaCode?: string; | ||
223 | + imgCaptchaUuid?: string; | ||
224 | + /** @format int32 */ | ||
225 | + pageSize?: number; | ||
226 | + password?: string; | ||
227 | + /** @format int32 */ | ||
228 | + total?: number; | ||
229 | + userName?: string; | ||
230 | +} | ||
231 | + | ||
232 | +export interface AdminUserModifyPwdVO { | ||
233 | + confirmPassword?: string; | ||
234 | + /** @format int32 */ | ||
235 | + current?: number; | ||
236 | + /** @format int32 */ | ||
237 | + pageSize?: number; | ||
238 | + password?: string; | ||
239 | + phone?: string; | ||
240 | + smsCaptchaCode?: string; | ||
241 | + /** @format int32 */ | ||
242 | + total?: number; | ||
243 | +} | ||
244 | + | ||
245 | +export interface AdminUserPasswordRecoverEmailVO { | ||
246 | + /** @format int32 */ | ||
247 | + current?: number; | ||
248 | + /** @format int32 */ | ||
249 | + pageSize?: number; | ||
250 | + /** @format int32 */ | ||
251 | + total?: number; | ||
252 | + userName?: string; | ||
253 | +} | ||
254 | + | ||
255 | +export interface AdminUserQueryVO { | ||
256 | + /** @format int32 */ | ||
257 | + current?: number; | ||
258 | + email?: string; | ||
259 | + /** @format int64 */ | ||
260 | + id?: number; | ||
261 | + ids?: Array<number>; | ||
262 | + nickName?: string; | ||
263 | + /** @format int32 */ | ||
264 | + pageSize?: number; | ||
265 | + password?: string; | ||
266 | + phone?: string; | ||
267 | + sex?: string; | ||
268 | + /** @format int32 */ | ||
269 | + total?: number; | ||
270 | + userName?: string; | ||
271 | + workerType?: string; | ||
272 | +} | ||
273 | + | ||
274 | +export interface AdminUserRegisterVO { | ||
275 | + confirmPassword?: string; | ||
276 | + /** @format int32 */ | ||
277 | + current?: number; | ||
278 | + email?: string; | ||
279 | + isAgreeAgreement?: boolean; | ||
280 | + /** @format int32 */ | ||
281 | + pageSize?: number; | ||
282 | + password?: string; | ||
283 | + phone?: string; | ||
284 | + safeAnswer?: string; | ||
285 | + safeQuestion?: string; | ||
286 | + smsCaptchaCode?: string; | ||
287 | + /** @format int32 */ | ||
288 | + total?: number; | ||
289 | + userName?: string; | ||
290 | +} | ||
291 | + | ||
292 | +export interface AdminUserVO { | ||
293 | + avatarName?: string; | ||
294 | + avatarPath?: string; | ||
295 | + /** @format int64 */ | ||
296 | + deptId?: number; | ||
297 | + email?: string; | ||
298 | + gender?: string; | ||
299 | + /** @format int64 */ | ||
300 | + id?: number; | ||
301 | + isAdmin?: boolean; | ||
302 | + nickName?: string; | ||
303 | + password?: string; | ||
304 | + phone?: string; | ||
305 | + /** @format date-time */ | ||
306 | + pwdResetTime?: string; | ||
307 | + remark?: string; | ||
308 | + /** @format int64 */ | ||
309 | + roleId?: number; | ||
310 | + userName?: string; | ||
311 | +} | ||
312 | + | ||
313 | +export interface AuditVO { | ||
314 | + /** @format int32 */ | ||
315 | + current?: number; | ||
316 | + /** @format int64 */ | ||
317 | + id?: number; | ||
318 | + /** @format int32 */ | ||
319 | + pageSize?: number; | ||
320 | + /** @format int32 */ | ||
321 | + status?: number; | ||
322 | + /** @format int32 */ | ||
323 | + total?: number; | ||
324 | +} | ||
325 | + | ||
326 | +export interface CaptchaMessageVO { | ||
327 | + /** @format int32 */ | ||
328 | + current?: number; | ||
329 | + imgCaptchaCode?: string; | ||
330 | + imgCaptchaUuid?: string; | ||
331 | + /** @format int32 */ | ||
332 | + pageSize?: number; | ||
333 | + phone?: string; | ||
334 | + /** @format int32 */ | ||
335 | + total?: number; | ||
336 | + type?: string; | ||
337 | +} | ||
338 | + | ||
339 | +export interface DictionaryQueryVO { | ||
340 | + /** @format int32 */ | ||
341 | + current?: number; | ||
342 | + dictCode?: string; | ||
343 | + dictName?: string; | ||
344 | + dictValue?: string; | ||
345 | + /** @format int64 */ | ||
346 | + id?: number; | ||
347 | + ids?: Array<number>; | ||
348 | + /** @format int32 */ | ||
349 | + pageSize?: number; | ||
350 | + remark?: string; | ||
351 | + /** @format int32 */ | ||
352 | + sort?: number; | ||
353 | + /** @format int32 */ | ||
354 | + total?: number; | ||
355 | +} | ||
356 | + | ||
357 | +export interface DictionaryVO { | ||
358 | + dictCode?: string; | ||
359 | + dictName?: string; | ||
360 | + dictValue?: string; | ||
361 | + /** @format int64 */ | ||
362 | + id?: number; | ||
363 | + remark?: string; | ||
364 | + /** @format int32 */ | ||
365 | + sort?: number; | ||
366 | +} | ||
367 | + | ||
368 | +export interface ModelAndView { | ||
369 | + empty?: boolean; | ||
370 | + model?: any; | ||
371 | + modelMap?: { | ||
372 | + [propertyName: string]: any; | ||
373 | + }; | ||
374 | + reference?: boolean; | ||
375 | + status?: ModelAndViewStatus; | ||
376 | + view?: View; | ||
377 | + viewName?: string; | ||
378 | +} | ||
379 | + | ||
380 | +export interface OrderAddVO { | ||
381 | + baseInfo?: OrderBaseInfoVO; | ||
382 | + inspectionStageInfo?: OrderInspectionStageVO; | ||
383 | + profitAnalysisInfo?: OrderProfitAnalysisVO; | ||
384 | + reportInfo?: OrderCompletionReportVO; | ||
385 | + trackStageInfo?: OrderTrackStageVO; | ||
386 | +} | ||
387 | + | ||
388 | +export interface OrderAuditLogQueryVO { | ||
389 | + /** @format int64 */ | ||
390 | + applyId?: number; | ||
391 | + /** @format int32 */ | ||
392 | + current?: number; | ||
393 | + /** @format int64 */ | ||
394 | + id?: number; | ||
395 | + ids?: Array<number>; | ||
396 | + optType?: string; | ||
397 | + /** @format int64 */ | ||
398 | + orderId?: number; | ||
399 | + /** @format int32 */ | ||
400 | + pageSize?: number; | ||
401 | + /** @format int32 */ | ||
402 | + total?: number; | ||
403 | +} | ||
404 | + | ||
405 | +export interface OrderBaseFieldVO { | ||
406 | + cnColor?: string; | ||
407 | + collection?: string; | ||
408 | + customerCode?: string; | ||
409 | + customerPo?: string; | ||
410 | + customerStyle?: string; | ||
411 | + innerNo?: string; | ||
412 | + modeleLo?: string; | ||
413 | + orderComposition?: string; | ||
414 | + orderCount?: string; | ||
415 | + orderHodTime?: string; | ||
416 | + orderStatus?: string; | ||
417 | + outboundType?: string; | ||
418 | + packetType?: string; | ||
419 | + picUrl?: string; | ||
420 | + poColor?: string; | ||
421 | + productStyle?: string; | ||
422 | + productionComment?: string; | ||
423 | + productionDepartment?: string; | ||
424 | + productionDepartmentConsignTime?: string; | ||
425 | + projectNo?: string; | ||
426 | +} | ||
427 | + | ||
428 | +export interface OrderBaseInfoQueryVO { | ||
429 | + cnColor?: string; | ||
430 | + collection?: string; | ||
431 | + /** @format int32 */ | ||
432 | + current?: number; | ||
433 | + customerCode?: string; | ||
434 | + customerPo?: string; | ||
435 | + customerStyle?: string; | ||
436 | + /** @format int64 */ | ||
437 | + id?: number; | ||
438 | + ids?: Array<number>; | ||
439 | + innerNo?: string; | ||
440 | + modeleLo?: string; | ||
441 | + orderComposition?: string; | ||
442 | + /** @format int32 */ | ||
443 | + orderCount?: number; | ||
444 | + orderHodTime?: string; | ||
445 | + outboundType?: string; | ||
446 | + packetType?: string; | ||
447 | + /** @format int32 */ | ||
448 | + pageSize?: number; | ||
449 | + picUrl?: string; | ||
450 | + poColor?: string; | ||
451 | + productStyle?: string; | ||
452 | + productionComment?: string; | ||
453 | + productionDepartment?: string; | ||
454 | + productionDepartmentConsignTime?: string; | ||
455 | + projectNo?: string; | ||
456 | + /** @format int32 */ | ||
457 | + total?: number; | ||
458 | +} | ||
459 | + | ||
460 | +export interface OrderBaseInfoVO { | ||
461 | + cnColor?: string; | ||
462 | + collection?: string; | ||
463 | + customerCode?: string; | ||
464 | + customerPo?: string; | ||
465 | + customerStyle?: string; | ||
466 | + /** @format int64 */ | ||
467 | + id?: number; | ||
468 | + innerNo?: string; | ||
469 | + modeleLo?: string; | ||
470 | + orderComposition?: string; | ||
471 | + /** @format int32 */ | ||
472 | + orderCount?: number; | ||
473 | + orderHodTime?: string; | ||
474 | + /** @format int32 */ | ||
475 | + orderStatus?: number; | ||
476 | + outboundType?: string; | ||
477 | + packetType?: string; | ||
478 | + picUrl?: string; | ||
479 | + poColor?: string; | ||
480 | + productStyle?: string; | ||
481 | + productionComment?: string; | ||
482 | + productionDepartment?: string; | ||
483 | + productionDepartmentConsignTime?: string; | ||
484 | + projectNo?: string; | ||
485 | + smallPicUrl?: string; | ||
486 | +} | ||
487 | + | ||
488 | +export interface OrderCompletionReportFieldVO { | ||
489 | + ideaManualRate?: string; | ||
490 | + ideaSource?: string; | ||
491 | + manualPreform?: string; | ||
492 | + /** @format int64 */ | ||
493 | + orderId?: number; | ||
494 | + orderStatus?: string; | ||
495 | +} | ||
496 | + | ||
497 | +export interface OrderCompletionReportVO { | ||
498 | + /** @format int64 */ | ||
499 | + id?: number; | ||
500 | + /** @format double */ | ||
501 | + ideaManualRate?: number; | ||
502 | + ideaSource?: string; | ||
503 | + manualPreform?: string; | ||
504 | + /** @format int64 */ | ||
505 | + orderId?: number; | ||
506 | + /** @format int32 */ | ||
507 | + orderStatus?: number; | ||
508 | +} | ||
509 | + | ||
510 | +export interface OrderFieldLockApplyQueryVO { | ||
511 | + /** @format int64 */ | ||
512 | + applyUserId?: number; | ||
513 | + /** @format int64 */ | ||
514 | + auditUserId?: number; | ||
515 | + /** @format int32 */ | ||
516 | + current?: number; | ||
517 | + fields?: string; | ||
518 | + /** @format int64 */ | ||
519 | + id?: number; | ||
520 | + ids?: Array<number>; | ||
521 | + /** @format int64 */ | ||
522 | + orderId?: number; | ||
523 | + /** @format int32 */ | ||
524 | + pageSize?: number; | ||
525 | + /** @format int32 */ | ||
526 | + status?: number; | ||
527 | + statusList?: Array<number>; | ||
528 | + /** @format int32 */ | ||
529 | + total?: number; | ||
530 | + /** @format int32 */ | ||
531 | + type?: number; | ||
532 | +} | ||
533 | + | ||
534 | +export interface OrderInspectionStageFieldVO { | ||
535 | + boxPacket?: string; | ||
536 | + electroplate?: string; | ||
537 | + endCheckApplyTime?: string; | ||
538 | + endCheckResult?: string; | ||
539 | + functionality?: string; | ||
540 | + midCheckApplyTime?: string; | ||
541 | + midCheckComment?: string; | ||
542 | + midCheckResult?: string; | ||
543 | + orderStatus?: string; | ||
544 | + specification?: string; | ||
545 | + value1?: string; | ||
546 | + value2?: string; | ||
547 | + value3?: string; | ||
548 | +} | ||
549 | + | ||
550 | +export interface OrderInspectionStageVO { | ||
551 | + boxPacket?: string; | ||
552 | + electroplate?: string; | ||
553 | + endCheckApplyTime?: string; | ||
554 | + endCheckResult?: string; | ||
555 | + functionality?: string; | ||
556 | + /** @format int64 */ | ||
557 | + id?: number; | ||
558 | + midCheckApplyTime?: string; | ||
559 | + midCheckComment?: string; | ||
560 | + midCheckResult?: string; | ||
561 | + /** @format int64 */ | ||
562 | + orderId?: number; | ||
563 | + /** @format int32 */ | ||
564 | + orderStatus?: number; | ||
565 | + specification?: string; | ||
566 | + value1?: string; | ||
567 | + value2?: string; | ||
568 | + value3?: string; | ||
569 | +} | ||
570 | + | ||
571 | +export interface OrderOptLogQueryVO { | ||
572 | + /** @format int32 */ | ||
573 | + current?: number; | ||
574 | + /** @format int64 */ | ||
575 | + id?: number; | ||
576 | + ids?: Array<number>; | ||
577 | + /** @format int64 */ | ||
578 | + orderId?: number; | ||
579 | + /** @format int32 */ | ||
580 | + pageSize?: number; | ||
581 | + /** @format int32 */ | ||
582 | + total?: number; | ||
583 | +} | ||
584 | + | ||
585 | +export interface OrderProfitAnalysisFieldVO { | ||
586 | + customerPrice?: string; | ||
587 | + customerTotalPrice?: string; | ||
588 | + exchangeRate?: string; | ||
589 | + /** @format int64 */ | ||
590 | + orderId?: number; | ||
591 | + orderStatus?: string; | ||
592 | + packetPrice?: string; | ||
593 | + packetTotalPrice?: string; | ||
594 | + productionDepartmentPrice?: string; | ||
595 | + productionDepartmentTotalPrice?: string; | ||
596 | + profitRate?: string; | ||
597 | +} | ||
598 | + | ||
599 | +export interface OrderProfitAnalysisVO { | ||
600 | + customerCurrency?: string; | ||
601 | + /** @format double */ | ||
602 | + customerPrice?: number; | ||
603 | + /** @format double */ | ||
604 | + customerTotalPrice?: number; | ||
605 | + /** @format double */ | ||
606 | + exchangeRate?: number; | ||
607 | + /** @format int64 */ | ||
608 | + id?: number; | ||
609 | + /** @format int64 */ | ||
610 | + orderId?: number; | ||
611 | + /** @format int32 */ | ||
612 | + orderStatus?: number; | ||
613 | + packetCurrency?: string; | ||
614 | + /** @format double */ | ||
615 | + packetPrice?: number; | ||
616 | + /** @format double */ | ||
617 | + packetTotalPrice?: number; | ||
618 | + productionDepartmentCurrency?: string; | ||
619 | + /** @format double */ | ||
620 | + productionDepartmentPrice?: number; | ||
621 | + /** @format double */ | ||
622 | + productionDepartmentTotalPrice?: number; | ||
623 | + /** @format double */ | ||
624 | + profitRate?: number; | ||
625 | +} | ||
626 | + | ||
627 | +export interface OrderProfitAnalysisVo { | ||
628 | + orderIds?: Array<number>; | ||
629 | +} | ||
630 | + | ||
631 | +export interface OrderTrackStageFieldVO { | ||
632 | + aitexTestFinishResult?: string; | ||
633 | + aitexTestSendTime?: string; | ||
634 | + barcodeStickerArrivalTime?: string; | ||
635 | + esoSampleSendTime?: string; | ||
636 | + latestArrivalTime?: string; | ||
637 | + latestBkTime?: string; | ||
638 | + orderStatus?: string; | ||
639 | + ppConfirmResult?: string; | ||
640 | + ppTime?: string; | ||
641 | + selfTestPassTime?: string; | ||
642 | + sgsTestFinishResult?: string; | ||
643 | + sgsTestSendTime?: string; | ||
644 | + shippmentSampleConfirmResult?: string; | ||
645 | + shippmentSampleSendTime?: string; | ||
646 | +} | ||
647 | + | ||
648 | +export interface OrderTrackStageVO { | ||
649 | + aitexTestFinishResult?: string; | ||
650 | + aitexTestSendTime?: string; | ||
651 | + barcodeStickerArrivalTime?: string; | ||
652 | + esoSampleSendTime?: string; | ||
653 | + /** @format int64 */ | ||
654 | + id?: number; | ||
655 | + latestArrivalTime?: string; | ||
656 | + latestBkTime?: string; | ||
657 | + /** @format int64 */ | ||
658 | + orderId?: number; | ||
659 | + /** @format int32 */ | ||
660 | + orderStatus?: number; | ||
661 | + ppConfirmResult?: string; | ||
662 | + ppTime?: string; | ||
663 | + selfTestPassTime?: string; | ||
664 | + sgsTestFinishResult?: string; | ||
665 | + sgsTestSendTime?: string; | ||
666 | + shippmentSampleConfirmResult?: string; | ||
667 | + shippmentSampleSendTime?: string; | ||
668 | +} | ||
669 | + | ||
670 | +export interface OrderUnlockFieldApplyVO { | ||
671 | + baseFields?: OrderBaseFieldVO; | ||
672 | + inspectionStageFields?: OrderInspectionStageFieldVO; | ||
673 | + /** @format int64 */ | ||
674 | + orderId?: number; | ||
675 | + profitAnalysisFields?: OrderProfitAnalysisFieldVO; | ||
676 | + reportFields?: OrderCompletionReportFieldVO; | ||
677 | + trackStageFields?: OrderTrackStageFieldVO; | ||
678 | +} | ||
679 | + | ||
680 | +export interface OrderUpdateVO { | ||
681 | + baseInfo?: OrderBaseInfoVO; | ||
682 | + inspectionStageInfo?: OrderInspectionStageVO; | ||
683 | + /** @format int64 */ | ||
684 | + orderId?: number; | ||
685 | + profitAnalysisInfo?: OrderProfitAnalysisVO; | ||
686 | + reportInfo?: OrderCompletionReportVO; | ||
687 | + trackStageInfo?: OrderTrackStageVO; | ||
688 | +} | ||
689 | + | ||
690 | +export interface ResetPwdVO { | ||
691 | + /** @format int64 */ | ||
692 | + userId?: number; | ||
693 | +} | ||
694 | + | ||
695 | +export interface ServerResult { | ||
696 | + data?: any; | ||
697 | + message?: string; | ||
698 | + /** @format int32 */ | ||
699 | + result?: number; | ||
700 | +} | ||
701 | + | ||
702 | +export interface SysLogQueryVO { | ||
703 | + address?: string; | ||
704 | + browser?: string; | ||
705 | + /** @format int32 */ | ||
706 | + current?: number; | ||
707 | + description?: string; | ||
708 | + exceptionDetail?: string; | ||
709 | + /** @format int64 */ | ||
710 | + id?: number; | ||
711 | + ids?: Array<number>; | ||
712 | + logType?: string; | ||
713 | + method?: string; | ||
714 | + /** @format int32 */ | ||
715 | + pageSize?: number; | ||
716 | + params?: string; | ||
717 | + requestIp?: string; | ||
718 | + /** @format int64 */ | ||
719 | + time?: number; | ||
720 | + /** @format int32 */ | ||
721 | + total?: number; | ||
722 | + username?: string; | ||
723 | +} | ||
724 | + | ||
725 | +export interface UpdatePwdVO { | ||
726 | + confirmPassword?: string; | ||
727 | + password?: string; | ||
728 | + /** @format int64 */ | ||
729 | + userId?: number; | ||
730 | +} | ||
731 | + | ||
732 | +export interface View { | ||
733 | + contentType?: string; | ||
734 | +} | ||
735 | + | ||
736 | +export interface Dto { | ||
737 | + /** | ||
738 | + * @description | ||
739 | + * 银行名称 | ||
740 | + */ | ||
741 | + bank?: string; | ||
742 | + /** | ||
743 | + * @description | ||
744 | + * 开始时间 | ||
745 | + * @format date-time | ||
746 | + * @example | ||
747 | + * 2023-11-11 10:10 | ||
748 | + */ | ||
749 | + beginTime?: string; | ||
750 | + /** @format int32 */ | ||
751 | + current?: number; | ||
752 | + /** | ||
753 | + * @description | ||
754 | + * 收货人联系手机号 | ||
755 | + */ | ||
756 | + customerContactNumber?: string; | ||
757 | + /** | ||
758 | + * @description | ||
759 | + * 收货人姓名 | ||
760 | + */ | ||
761 | + customerName?: string; | ||
762 | + /** | ||
763 | + * @description | ||
764 | + * 收货人地址信息 | ||
765 | + */ | ||
766 | + customerShippingAddress?: string; | ||
767 | + /** | ||
768 | + * @description | ||
769 | + * 结束时间 | ||
770 | + * @format date-time | ||
771 | + * @example | ||
772 | + * 2023-11-11 10:20 | ||
773 | + */ | ||
774 | + endTime?: string; | ||
775 | + /** | ||
776 | + * @description | ||
777 | + * 主订单号id | ||
778 | + * @format int64 | ||
779 | + */ | ||
780 | + id?: number; | ||
781 | + /** | ||
782 | + * @description | ||
783 | + * 单位 | ||
784 | + */ | ||
785 | + institution?: string; | ||
786 | + /** | ||
787 | + * @description | ||
788 | + * 单位联系人 | ||
789 | + */ | ||
790 | + institutionContactName?: string; | ||
791 | + /** | ||
792 | + * @description | ||
793 | + * 开票状态 | ||
794 | + */ | ||
795 | + invoicingStatus?: string; | ||
796 | + /** | ||
797 | + * @description | ||
798 | + * 物流方式 | ||
799 | + */ | ||
800 | + logisticsMethod?: string; | ||
801 | + /** | ||
802 | + * @description | ||
803 | + * 订单状态 | ||
804 | + */ | ||
805 | + orderStatus?: string; | ||
806 | + /** @format int32 */ | ||
807 | + pageSize?: number; | ||
808 | + /** | ||
809 | + * @description | ||
810 | + * 商品参数 | ||
811 | + */ | ||
812 | + parameters?: string; | ||
813 | + /** | ||
814 | + * @description | ||
815 | + * 支付渠道 | ||
816 | + */ | ||
817 | + paymentChannel?: string; | ||
818 | + /** | ||
819 | + * @description | ||
820 | + * 支付方式 | ||
821 | + */ | ||
822 | + paymentMethod?: string; | ||
823 | + /** | ||
824 | + * @description | ||
825 | + * 支付流水号 | ||
826 | + */ | ||
827 | + paymentTransactionId?: string; | ||
828 | + /** | ||
829 | + * @description | ||
830 | + * 商品所属事业部门 | ||
831 | + */ | ||
832 | + productBelongBusiness?: string; | ||
833 | + /** | ||
834 | + * @description | ||
835 | + * 商品名称 | ||
836 | + */ | ||
837 | + productName?: string; | ||
838 | + /** | ||
839 | + * @description | ||
840 | + * 销售代号 | ||
841 | + */ | ||
842 | + salesCode?: string; | ||
843 | + /** @format int32 */ | ||
844 | + total?: number; | ||
845 | +} |
src/services/request.ts
@@ -3,99 +3,119 @@ | @@ -3,99 +3,119 @@ | ||
3 | /** Do not modify manually. | 3 | /** Do not modify manually. |
4 | content is generated automatically by `ts-gear`. */ | 4 | content is generated automatically by `ts-gear`. */ |
5 | import { request as requester } from 'umi'; | 5 | import { request as requester } from 'umi'; |
6 | -import type {} from './definition'; | ||
7 | - | ||
8 | -/** @description request parameter type for postErpOrderListByPage */ | ||
9 | -export interface PostErpOrderListByPageOption { | ||
10 | - body?: { | ||
11 | - root?: { | ||
12 | - bank?: string; | ||
13 | - beginTime?: string; | ||
14 | - current?: number; | ||
15 | - customerContactNumber?: string; | ||
16 | - customerName?: string; | ||
17 | - customerShippingAddress?: string; | ||
18 | - endTime?: string; | ||
19 | - id?: number; | ||
20 | - institution?: string; | ||
21 | - institutionContactName?: string; | ||
22 | - invoicingStatus?: string; | ||
23 | - logisticsMethod?: string; | ||
24 | - orderStatus?: string; | ||
25 | - pageSize?: number; | ||
26 | - parameters?: string; | ||
27 | - paymentChannel?: string; | ||
28 | - paymentMethod?: string; | ||
29 | - paymentTransactionId?: string; | ||
30 | - productBelongBusiness?: string; | ||
31 | - productName?: string; | ||
32 | - salesCode?: string; | ||
33 | - total?: number; | ||
34 | - }; | ||
35 | - }; | ||
36 | -} | ||
37 | - | ||
38 | -/** @description response type for postErpOrderListByPage */ | ||
39 | -export interface PostErpOrderListByPageResponse { | ||
40 | - /** | ||
41 | - * @description | ||
42 | - * successful operation | 6 | +import type { |
7 | + AdminAuthRoleVO, | ||
8 | + AdminAuthUserVO, | ||
9 | + AdminDeptQueryVO, | ||
10 | + AdminDeptVO, | ||
11 | + AdminJobQueryVO, | ||
12 | + AdminJobVO, | ||
13 | + AdminMenuQueryVO, | ||
14 | + AdminMenuVO, | ||
15 | + AdminRoleQueryVO, | ||
16 | + AdminRoleVO, | ||
17 | + AdminUserLoginByPhoneVO, | ||
18 | + AdminUserLoginByPwdVO, | ||
19 | + AdminUserModifyPwdVO, | ||
20 | + AdminUserPasswordRecoverEmailVO, | ||
21 | + AdminUserQueryVO, | ||
22 | + AdminUserRegisterVO, | ||
23 | + AdminUserVO, | ||
24 | + AuditVO, | ||
25 | + CaptchaMessageVO, | ||
26 | + DictionaryQueryVO, | ||
27 | + DictionaryVO, | ||
28 | + Dto, | ||
29 | + OrderAddVO, | ||
30 | + OrderAuditLogQueryVO, | ||
31 | + OrderBaseInfoQueryVO, | ||
32 | + OrderFieldLockApplyQueryVO, | ||
33 | + OrderOptLogQueryVO, | ||
34 | + OrderProfitAnalysisVo, | ||
35 | + OrderUnlockFieldApplyVO, | ||
36 | + OrderUpdateVO, | ||
37 | + ResetPwdVO, | ||
38 | + ServerResult, | ||
39 | + SysLogQueryVO, | ||
40 | + UpdatePwdVO, | ||
41 | +} from './definition'; | ||
42 | + | ||
43 | +/** @description request parameter type for postApiLocalStorageUpload */ | ||
44 | +export interface PostApiLocalStorageUploadOption { | ||
45 | + /** | ||
46 | + * @description | ||
47 | + * file | ||
43 | */ | 48 | */ |
44 | - 200: { | ||
45 | - data?: { | ||
46 | - data?: Array<{ | ||
47 | - bank?: string; | ||
48 | - bankAccountNumber?: string; | ||
49 | - createTime?: string; | ||
50 | - customerContactNumber?: string; | ||
51 | - customerName?: string; | ||
52 | - customerShippingAddress?: string; | ||
53 | - id?: number; | ||
54 | - institution?: string; | ||
55 | - institutionContactName?: string; | ||
56 | - invoiceIdentificationNumber?: string; | ||
57 | - notes?: string; | ||
58 | - salesCode?: string; | ||
59 | - subOrderInformationLists?: Array<{ | ||
60 | - id: number; | ||
61 | - invoicingStatus: string; | ||
62 | - mainOrderId: number; | ||
63 | - orderStatus: string; | ||
64 | - parameters: string; | ||
65 | - paymentChannel: string; | ||
66 | - productCode: string; | ||
67 | - productName: string; | ||
68 | - quantity: string; | ||
69 | - subOrderPayment: number; | ||
70 | - }>; | ||
71 | - totalPayment?: number; | ||
72 | - }>; | ||
73 | - pageSize?: number; | ||
74 | - total?: number; | ||
75 | - }; | ||
76 | - message?: string; | ||
77 | - result?: number; | 49 | + formData: { |
50 | + /** | ||
51 | + @description | ||
52 | + file */ | ||
53 | + file: File; | ||
54 | + }; | ||
55 | +} | ||
56 | + | ||
57 | +/** @description request parameter type for postApiLocalStorageUpload */ | ||
58 | +export interface PostApiLocalStorageUploadOption { | ||
59 | + /** | ||
60 | + * @description | ||
61 | + * name | ||
62 | + */ | ||
63 | + query: { | ||
64 | + /** | ||
65 | + @description | ||
66 | + name */ | ||
67 | + name: string; | ||
78 | }; | 68 | }; |
79 | } | 69 | } |
80 | 70 | ||
81 | -export type PostErpOrderListByPageResponseSuccess = | ||
82 | - PostErpOrderListByPageResponse[200]; | 71 | +/** @description response type for postApiLocalStorageUpload */ |
72 | +export interface PostApiLocalStorageUploadResponse { | ||
73 | + /** | ||
74 | + * @description | ||
75 | + * OK | ||
76 | + */ | ||
77 | + 200: ServerResult; | ||
78 | + /** | ||
79 | + * @description | ||
80 | + * Created | ||
81 | + */ | ||
82 | + 201: any; | ||
83 | + /** | ||
84 | + * @description | ||
85 | + * Unauthorized | ||
86 | + */ | ||
87 | + 401: any; | ||
88 | + /** | ||
89 | + * @description | ||
90 | + * Forbidden | ||
91 | + */ | ||
92 | + 403: any; | ||
93 | + /** | ||
94 | + * @description | ||
95 | + * Not Found | ||
96 | + */ | ||
97 | + 404: any; | ||
98 | +} | ||
99 | + | ||
100 | +export type PostApiLocalStorageUploadResponseSuccess = | ||
101 | + PostApiLocalStorageUploadResponse[200]; | ||
83 | /** | 102 | /** |
84 | * @description | 103 | * @description |
85 | - * 订单列表查询 | ||
86 | - * @tags 公共分类 | ||
87 | - * @consumes application/json | 104 | + * 上传文件 |
105 | + * @tags 文件上传 | ||
106 | + * @produces * | ||
107 | + * @consumes multipart/form-data | ||
88 | */ | 108 | */ |
89 | -export const postErpOrderListByPage = /* #__PURE__ */ (() => { | 109 | +export const postApiLocalStorageUpload = /* #__PURE__ */ (() => { |
90 | const method = 'post'; | 110 | const method = 'post'; |
91 | - const url = '/erp/order/listByPage'; | 111 | + const url = '/api/localStorage/upload'; |
92 | function request( | 112 | function request( |
93 | - option?: PostErpOrderListByPageOption, | ||
94 | - ): Promise<PostErpOrderListByPageResponseSuccess> { | 113 | + option: PostApiLocalStorageUploadOption, |
114 | + ): Promise<PostApiLocalStorageUploadResponseSuccess> { | ||
95 | return requester(request.url, { | 115 | return requester(request.url, { |
96 | method: request.method, | 116 | method: request.method, |
97 | ...option, | 117 | ...option, |
98 | - }) as unknown as Promise<PostErpOrderListByPageResponseSuccess>; | 118 | + }) as unknown as Promise<PostApiLocalStorageUploadResponseSuccess>; |
99 | } | 119 | } |
100 | 120 | ||
101 | /** http method */ | 121 | /** http method */ |
@@ -105,95 +125,340 @@ export const postErpOrderListByPage = /* #__PURE__ */ (() => { | @@ -105,95 +125,340 @@ export const postErpOrderListByPage = /* #__PURE__ */ (() => { | ||
105 | return request; | 125 | return request; |
106 | })(); | 126 | })(); |
107 | 127 | ||
108 | -/** @description request parameter type for postErpOrderAdd */ | ||
109 | -export interface PostErpOrderAddOption { | 128 | +/** @description request parameter type for postApiLocalStorageUploadOss */ |
129 | +export interface PostApiLocalStorageUploadOssOption { | ||
110 | /** | 130 | /** |
111 | * @description | 131 | * @description |
112 | - * add_token (Only:undefined) | 132 | + * file |
113 | */ | 133 | */ |
114 | - header: { | 134 | + formData: { |
115 | /** | 135 | /** |
116 | @description | 136 | @description |
117 | - add_token (Only:undefined) */ | ||
118 | - add_token: string; | 137 | + file */ |
138 | + file: File; | ||
119 | }; | 139 | }; |
120 | } | 140 | } |
121 | 141 | ||
122 | -/** @description request parameter type for postErpOrderAdd */ | ||
123 | -export interface PostErpOrderAddOption { | ||
124 | - body?: { | ||
125 | - root?: { | ||
126 | - /** | ||
127 | - @description | ||
128 | - 订单编号 */ | ||
129 | - id: string; | ||
130 | - sales_code: string; | ||
131 | - customer_name: string; | ||
132 | - customer_contact_number: string; | ||
133 | - customer_shipping_address: string; | ||
134 | - institution_contact_name: string; | ||
135 | - institution: string; | ||
136 | - sub_orders: Array<{ | ||
137 | - /** | ||
138 | - @description | ||
139 | - 子订单编号 */ | ||
140 | - id: string; | ||
141 | - product_code: number; | ||
142 | - product_name: string; | ||
143 | - quantity: number; | ||
144 | - product_price: number; | ||
145 | - unit: string; | ||
146 | - parameters: string; | ||
147 | - total_payment: number; | ||
148 | - sub_order_payment: number; | ||
149 | - payment_status: string; | ||
150 | - payment_method: string; | ||
151 | - payment_channel: string; | ||
152 | - /** | ||
153 | - @description | ||
154 | - 预付必填 */ | ||
155 | - payment_transaction_id?: string; | ||
156 | - /** | 142 | +/** @description request parameter type for postApiLocalStorageUploadOss */ |
143 | +export interface PostApiLocalStorageUploadOssOption { | ||
144 | + /** | ||
145 | + * @description | ||
146 | + * name | ||
147 | + */ | ||
148 | + query: { | ||
149 | + /** | ||
157 | @description | 150 | @description |
158 | - 需要开票必填 */ | ||
159 | - invoice_information?: string; | ||
160 | - invoicing_status: string; | ||
161 | - product_belong_department: string; | ||
162 | - notes?: string; | ||
163 | - }>; | ||
164 | - }; | 151 | + name */ |
152 | + name: string; | ||
153 | + }; | ||
154 | +} | ||
155 | + | ||
156 | +/** @description response type for postApiLocalStorageUploadOss */ | ||
157 | +export interface PostApiLocalStorageUploadOssResponse { | ||
158 | + /** | ||
159 | + * @description | ||
160 | + * OK | ||
161 | + */ | ||
162 | + 200: ServerResult; | ||
163 | + /** | ||
164 | + * @description | ||
165 | + * Created | ||
166 | + */ | ||
167 | + 201: any; | ||
168 | + /** | ||
169 | + * @description | ||
170 | + * Unauthorized | ||
171 | + */ | ||
172 | + 401: any; | ||
173 | + /** | ||
174 | + * @description | ||
175 | + * Forbidden | ||
176 | + */ | ||
177 | + 403: any; | ||
178 | + /** | ||
179 | + * @description | ||
180 | + * Not Found | ||
181 | + */ | ||
182 | + 404: any; | ||
183 | +} | ||
184 | + | ||
185 | +export type PostApiLocalStorageUploadOssResponseSuccess = | ||
186 | + PostApiLocalStorageUploadOssResponse[200]; | ||
187 | +/** | ||
188 | + * @description | ||
189 | + * 上传文件到oss服务 | ||
190 | + * @tags 文件上传 | ||
191 | + * @produces * | ||
192 | + * @consumes multipart/form-data | ||
193 | + */ | ||
194 | +export const postApiLocalStorageUploadOss = /* #__PURE__ */ (() => { | ||
195 | + const method = 'post'; | ||
196 | + const url = '/api/localStorage/upload_oss'; | ||
197 | + function request( | ||
198 | + option: PostApiLocalStorageUploadOssOption, | ||
199 | + ): Promise<PostApiLocalStorageUploadOssResponseSuccess> { | ||
200 | + return requester(request.url, { | ||
201 | + method: request.method, | ||
202 | + ...option, | ||
203 | + }) as unknown as Promise<PostApiLocalStorageUploadOssResponseSuccess>; | ||
204 | + } | ||
205 | + | ||
206 | + /** http method */ | ||
207 | + request.method = method; | ||
208 | + /** request url */ | ||
209 | + request.url = url; | ||
210 | + return request; | ||
211 | +})(); | ||
212 | + | ||
213 | +/** @description response type for getError */ | ||
214 | +export interface GetErrorResponse { | ||
215 | + /** | ||
216 | + * @description | ||
217 | + * OK | ||
218 | + */ | ||
219 | + 200: { | ||
220 | + [propertyName: string]: any; | ||
221 | + }; | ||
222 | + /** | ||
223 | + * @description | ||
224 | + * Unauthorized | ||
225 | + */ | ||
226 | + 401: any; | ||
227 | + /** | ||
228 | + * @description | ||
229 | + * Forbidden | ||
230 | + */ | ||
231 | + 403: any; | ||
232 | + /** | ||
233 | + * @description | ||
234 | + * Not Found | ||
235 | + */ | ||
236 | + 404: any; | ||
237 | +} | ||
238 | + | ||
239 | +export type GetErrorResponseSuccess = GetErrorResponse[200]; | ||
240 | +/** | ||
241 | + * @description | ||
242 | + * error | ||
243 | + * @tags basic-error-controller | ||
244 | + * @produces * | ||
245 | + */ | ||
246 | +export const getError = /* #__PURE__ */ (() => { | ||
247 | + const method = 'get'; | ||
248 | + const url = '/error'; | ||
249 | + function request(): Promise<GetErrorResponseSuccess> { | ||
250 | + return requester(request.url, { | ||
251 | + method: request.method, | ||
252 | + }) as unknown as Promise<GetErrorResponseSuccess>; | ||
253 | + } | ||
254 | + | ||
255 | + /** http method */ | ||
256 | + request.method = method; | ||
257 | + /** request url */ | ||
258 | + request.url = url; | ||
259 | + return request; | ||
260 | +})(); | ||
261 | + | ||
262 | +/** @description response type for putError */ | ||
263 | +export interface PutErrorResponse { | ||
264 | + /** | ||
265 | + * @description | ||
266 | + * OK | ||
267 | + */ | ||
268 | + 200: { | ||
269 | + [propertyName: string]: any; | ||
165 | }; | 270 | }; |
271 | + /** | ||
272 | + * @description | ||
273 | + * Created | ||
274 | + */ | ||
275 | + 201: any; | ||
276 | + /** | ||
277 | + * @description | ||
278 | + * Unauthorized | ||
279 | + */ | ||
280 | + 401: any; | ||
281 | + /** | ||
282 | + * @description | ||
283 | + * Forbidden | ||
284 | + */ | ||
285 | + 403: any; | ||
286 | + /** | ||
287 | + * @description | ||
288 | + * Not Found | ||
289 | + */ | ||
290 | + 404: any; | ||
166 | } | 291 | } |
167 | 292 | ||
168 | -/** @description response type for postErpOrderAdd */ | ||
169 | -export interface PostErpOrderAddResponse { | 293 | +export type PutErrorResponseSuccess = PutErrorResponse[200]; |
294 | +/** | ||
295 | + * @description | ||
296 | + * error | ||
297 | + * @tags basic-error-controller | ||
298 | + * @produces * | ||
299 | + * @consumes application/json | ||
300 | + */ | ||
301 | +export const putError = /* #__PURE__ */ (() => { | ||
302 | + const method = 'put'; | ||
303 | + const url = '/error'; | ||
304 | + function request(): Promise<PutErrorResponseSuccess> { | ||
305 | + return requester(request.url, { | ||
306 | + method: request.method, | ||
307 | + }) as unknown as Promise<PutErrorResponseSuccess>; | ||
308 | + } | ||
309 | + | ||
310 | + /** http method */ | ||
311 | + request.method = method; | ||
312 | + /** request url */ | ||
313 | + request.url = url; | ||
314 | + return request; | ||
315 | +})(); | ||
316 | + | ||
317 | +/** @description response type for postError */ | ||
318 | +export interface PostErrorResponse { | ||
170 | /** | 319 | /** |
171 | * @description | 320 | * @description |
172 | - * successful operation | 321 | + * OK |
173 | */ | 322 | */ |
174 | 200: { | 323 | 200: { |
175 | - message?: string; | ||
176 | - code?: number; | 324 | + [propertyName: string]: any; |
177 | }; | 325 | }; |
326 | + /** | ||
327 | + * @description | ||
328 | + * Created | ||
329 | + */ | ||
330 | + 201: any; | ||
331 | + /** | ||
332 | + * @description | ||
333 | + * Unauthorized | ||
334 | + */ | ||
335 | + 401: any; | ||
336 | + /** | ||
337 | + * @description | ||
338 | + * Forbidden | ||
339 | + */ | ||
340 | + 403: any; | ||
341 | + /** | ||
342 | + * @description | ||
343 | + * Not Found | ||
344 | + */ | ||
345 | + 404: any; | ||
178 | } | 346 | } |
179 | 347 | ||
180 | -export type PostErpOrderAddResponseSuccess = PostErpOrderAddResponse[200]; | 348 | +export type PostErrorResponseSuccess = PostErrorResponse[200]; |
181 | /** | 349 | /** |
182 | * @description | 350 | * @description |
183 | - * 订单新增 | ||
184 | - * @tags 公共分类 | 351 | + * error |
352 | + * @tags basic-error-controller | ||
353 | + * @produces * | ||
185 | * @consumes application/json | 354 | * @consumes application/json |
186 | */ | 355 | */ |
187 | -export const postErpOrderAdd = /* #__PURE__ */ (() => { | 356 | +export const postError = /* #__PURE__ */ (() => { |
188 | const method = 'post'; | 357 | const method = 'post'; |
189 | - const url = '/erp/order/add'; | ||
190 | - function request( | ||
191 | - option: PostErpOrderAddOption, | ||
192 | - ): Promise<PostErpOrderAddResponseSuccess> { | 358 | + const url = '/error'; |
359 | + function request(): Promise<PostErrorResponseSuccess> { | ||
193 | return requester(request.url, { | 360 | return requester(request.url, { |
194 | method: request.method, | 361 | method: request.method, |
195 | - ...option, | ||
196 | - }) as unknown as Promise<PostErpOrderAddResponseSuccess>; | 362 | + }) as unknown as Promise<PostErrorResponseSuccess>; |
363 | + } | ||
364 | + | ||
365 | + /** http method */ | ||
366 | + request.method = method; | ||
367 | + /** request url */ | ||
368 | + request.url = url; | ||
369 | + return request; | ||
370 | +})(); | ||
371 | + | ||
372 | +/** @description response type for deleteError */ | ||
373 | +export interface DeleteErrorResponse { | ||
374 | + /** | ||
375 | + * @description | ||
376 | + * OK | ||
377 | + */ | ||
378 | + 200: { | ||
379 | + [propertyName: string]: any; | ||
380 | + }; | ||
381 | + /** | ||
382 | + * @description | ||
383 | + * No Content | ||
384 | + */ | ||
385 | + 204: any; | ||
386 | + /** | ||
387 | + * @description | ||
388 | + * Unauthorized | ||
389 | + */ | ||
390 | + 401: any; | ||
391 | + /** | ||
392 | + * @description | ||
393 | + * Forbidden | ||
394 | + */ | ||
395 | + 403: any; | ||
396 | +} | ||
397 | + | ||
398 | +export type DeleteErrorResponseSuccess = DeleteErrorResponse[200]; | ||
399 | +/** | ||
400 | + * @description | ||
401 | + * error | ||
402 | + * @tags basic-error-controller | ||
403 | + * @produces * | ||
404 | + */ | ||
405 | +export const deleteError = /* #__PURE__ */ (() => { | ||
406 | + const method = 'delete'; | ||
407 | + const url = '/error'; | ||
408 | + function request(): Promise<DeleteErrorResponseSuccess> { | ||
409 | + return requester(request.url, { | ||
410 | + method: request.method, | ||
411 | + }) as unknown as Promise<DeleteErrorResponseSuccess>; | ||
412 | + } | ||
413 | + | ||
414 | + /** http method */ | ||
415 | + request.method = method; | ||
416 | + /** request url */ | ||
417 | + request.url = url; | ||
418 | + return request; | ||
419 | +})(); | ||
420 | + | ||
421 | +/** @description response type for optionsError */ | ||
422 | +export interface OptionsErrorResponse { | ||
423 | + /** | ||
424 | + * @description | ||
425 | + * OK | ||
426 | + */ | ||
427 | + 200: { | ||
428 | + [propertyName: string]: any; | ||
429 | + }; | ||
430 | + /** | ||
431 | + * @description | ||
432 | + * No Content | ||
433 | + */ | ||
434 | + 204: any; | ||
435 | + /** | ||
436 | + * @description | ||
437 | + * Unauthorized | ||
438 | + */ | ||
439 | + 401: any; | ||
440 | + /** | ||
441 | + * @description | ||
442 | + * Forbidden | ||
443 | + */ | ||
444 | + 403: any; | ||
445 | +} | ||
446 | + | ||
447 | +export type OptionsErrorResponseSuccess = OptionsErrorResponse[200]; | ||
448 | +/** | ||
449 | + * @description | ||
450 | + * error | ||
451 | + * @tags basic-error-controller | ||
452 | + * @produces * | ||
453 | + * @consumes application/json | ||
454 | + */ | ||
455 | +export const optionsError = /* #__PURE__ */ (() => { | ||
456 | + const method = 'options'; | ||
457 | + const url = '/error'; | ||
458 | + function request(): Promise<OptionsErrorResponseSuccess> { | ||
459 | + return requester(request.url, { | ||
460 | + method: request.method, | ||
461 | + }) as unknown as Promise<OptionsErrorResponseSuccess>; | ||
197 | } | 462 | } |
198 | 463 | ||
199 | /** http method */ | 464 | /** http method */ |
@@ -203,67 +468,5289 @@ export const postErpOrderAdd = /* #__PURE__ */ (() => { | @@ -203,67 +468,5289 @@ export const postErpOrderAdd = /* #__PURE__ */ (() => { | ||
203 | return request; | 468 | return request; |
204 | })(); | 469 | })(); |
205 | 470 | ||
206 | -/** @description request parameter type for postErpOrderUpdate */ | ||
207 | -export interface PostErpOrderUpdateOption { | ||
208 | - body?: { | ||
209 | - root?: { | ||
210 | - sales_code: string; | ||
211 | - customer_name: string; | ||
212 | - customer_contact_number: string; | ||
213 | - customer_shipping_address: string; | ||
214 | - institution_contact_name: string; | ||
215 | - institution: string; | ||
216 | - sub_orders: Array<{ | ||
217 | - product_code: number; | ||
218 | - product_name: string; | ||
219 | - quantity: number; | ||
220 | - product_price: number; | ||
221 | - unit: string; | ||
222 | - parameters: string; | ||
223 | - total_payment: number; | ||
224 | - sub_order_payment: number; | ||
225 | - payment_status: string; | ||
226 | - payment_method: string; | ||
227 | - payment_channel: string; | ||
228 | - payment_transaction_id?: string; | ||
229 | - invoice_information?: string; | ||
230 | - invoicing_status: string; | ||
231 | - product_belong_department: string; | ||
232 | - notes?: string; | ||
233 | - }>; | ||
234 | - }; | 471 | +/** @description response type for headError */ |
472 | +export interface HeadErrorResponse { | ||
473 | + /** | ||
474 | + * @description | ||
475 | + * OK | ||
476 | + */ | ||
477 | + 200: { | ||
478 | + [propertyName: string]: any; | ||
235 | }; | 479 | }; |
480 | + /** | ||
481 | + * @description | ||
482 | + * No Content | ||
483 | + */ | ||
484 | + 204: any; | ||
485 | + /** | ||
486 | + * @description | ||
487 | + * Unauthorized | ||
488 | + */ | ||
489 | + 401: any; | ||
490 | + /** | ||
491 | + * @description | ||
492 | + * Forbidden | ||
493 | + */ | ||
494 | + 403: any; | ||
236 | } | 495 | } |
237 | 496 | ||
238 | -/** @description response type for postErpOrderUpdate */ | ||
239 | -export interface PostErpOrderUpdateResponse { | 497 | +export type HeadErrorResponseSuccess = HeadErrorResponse[200]; |
498 | +/** | ||
499 | + * @description | ||
500 | + * error | ||
501 | + * @tags basic-error-controller | ||
502 | + * @produces * | ||
503 | + * @consumes application/json | ||
504 | + */ | ||
505 | +export const headError = /* #__PURE__ */ (() => { | ||
506 | + const method = 'head'; | ||
507 | + const url = '/error'; | ||
508 | + function request(): Promise<HeadErrorResponseSuccess> { | ||
509 | + return requester(request.url, { | ||
510 | + method: request.method, | ||
511 | + }) as unknown as Promise<HeadErrorResponseSuccess>; | ||
512 | + } | ||
513 | + | ||
514 | + /** http method */ | ||
515 | + request.method = method; | ||
516 | + /** request url */ | ||
517 | + request.url = url; | ||
518 | + return request; | ||
519 | +})(); | ||
520 | + | ||
521 | +/** @description response type for patchError */ | ||
522 | +export interface PatchErrorResponse { | ||
240 | /** | 523 | /** |
241 | * @description | 524 | * @description |
242 | - * successful operation | 525 | + * OK |
243 | */ | 526 | */ |
244 | 200: { | 527 | 200: { |
245 | - message?: string; | ||
246 | - code?: number; | 528 | + [propertyName: string]: any; |
247 | }; | 529 | }; |
530 | + /** | ||
531 | + * @description | ||
532 | + * No Content | ||
533 | + */ | ||
534 | + 204: any; | ||
535 | + /** | ||
536 | + * @description | ||
537 | + * Unauthorized | ||
538 | + */ | ||
539 | + 401: any; | ||
540 | + /** | ||
541 | + * @description | ||
542 | + * Forbidden | ||
543 | + */ | ||
544 | + 403: any; | ||
545 | +} | ||
546 | + | ||
547 | +export type PatchErrorResponseSuccess = PatchErrorResponse[200]; | ||
548 | +/** | ||
549 | + * @description | ||
550 | + * error | ||
551 | + * @tags basic-error-controller | ||
552 | + * @produces * | ||
553 | + * @consumes application/json | ||
554 | + */ | ||
555 | +export const patchError = /* #__PURE__ */ (() => { | ||
556 | + const method = 'patch'; | ||
557 | + const url = '/error'; | ||
558 | + function request(): Promise<PatchErrorResponseSuccess> { | ||
559 | + return requester(request.url, { | ||
560 | + method: request.method, | ||
561 | + }) as unknown as Promise<PatchErrorResponseSuccess>; | ||
562 | + } | ||
563 | + | ||
564 | + /** http method */ | ||
565 | + request.method = method; | ||
566 | + /** request url */ | ||
567 | + request.url = url; | ||
568 | + return request; | ||
569 | +})(); | ||
570 | + | ||
571 | +/** @description request parameter type for postOrderErpApplyList */ | ||
572 | +export interface PostOrderErpApplyListOption { | ||
573 | + /** | ||
574 | + * @description | ||
575 | + * orderFieldLockApplyQueryVO | ||
576 | + */ | ||
577 | + body: { | ||
578 | + /** | ||
579 | + @description | ||
580 | + orderFieldLockApplyQueryVO */ | ||
581 | + orderFieldLockApplyQueryVO: OrderFieldLockApplyQueryVO; | ||
582 | + }; | ||
583 | +} | ||
584 | + | ||
585 | +/** @description response type for postOrderErpApplyList */ | ||
586 | +export interface PostOrderErpApplyListResponse { | ||
587 | + /** | ||
588 | + * @description | ||
589 | + * OK | ||
590 | + */ | ||
591 | + 200: ServerResult; | ||
592 | + /** | ||
593 | + * @description | ||
594 | + * Created | ||
595 | + */ | ||
596 | + 201: any; | ||
597 | + /** | ||
598 | + * @description | ||
599 | + * Unauthorized | ||
600 | + */ | ||
601 | + 401: any; | ||
602 | + /** | ||
603 | + * @description | ||
604 | + * Forbidden | ||
605 | + */ | ||
606 | + 403: any; | ||
607 | + /** | ||
608 | + * @description | ||
609 | + * Not Found | ||
610 | + */ | ||
611 | + 404: any; | ||
612 | +} | ||
613 | + | ||
614 | +export type PostOrderErpApplyListResponseSuccess = | ||
615 | + PostOrderErpApplyListResponse[200]; | ||
616 | +/** | ||
617 | + * @description | ||
618 | + * 分页查询 | ||
619 | + * @tags 用户订单-字段锁定申请(忽略) | ||
620 | + * @produces * | ||
621 | + * @consumes application/json | ||
622 | + */ | ||
623 | +export const postOrderErpApplyList = /* #__PURE__ */ (() => { | ||
624 | + const method = 'post'; | ||
625 | + const url = '/order/erp/apply/list'; | ||
626 | + function request( | ||
627 | + option: PostOrderErpApplyListOption, | ||
628 | + ): Promise<PostOrderErpApplyListResponseSuccess> { | ||
629 | + return requester(request.url, { | ||
630 | + method: request.method, | ||
631 | + ...option, | ||
632 | + }) as unknown as Promise<PostOrderErpApplyListResponseSuccess>; | ||
633 | + } | ||
634 | + | ||
635 | + /** http method */ | ||
636 | + request.method = method; | ||
637 | + /** request url */ | ||
638 | + request.url = url; | ||
639 | + return request; | ||
640 | +})(); | ||
641 | + | ||
642 | +/** @description request parameter type for postOrderErpAuditAuditList */ | ||
643 | +export interface PostOrderErpAuditAuditListOption { | ||
644 | + /** | ||
645 | + * @description | ||
646 | + * queryVO | ||
647 | + */ | ||
648 | + body: { | ||
649 | + /** | ||
650 | + @description | ||
651 | + queryVO */ | ||
652 | + queryVO: OrderFieldLockApplyQueryVO; | ||
653 | + }; | ||
654 | +} | ||
655 | + | ||
656 | +/** @description response type for postOrderErpAuditAuditList */ | ||
657 | +export interface PostOrderErpAuditAuditListResponse { | ||
658 | + /** | ||
659 | + * @description | ||
660 | + * OK | ||
661 | + */ | ||
662 | + 200: ServerResult; | ||
663 | + /** | ||
664 | + * @description | ||
665 | + * Created | ||
666 | + */ | ||
667 | + 201: any; | ||
668 | + /** | ||
669 | + * @description | ||
670 | + * Unauthorized | ||
671 | + */ | ||
672 | + 401: any; | ||
673 | + /** | ||
674 | + * @description | ||
675 | + * Forbidden | ||
676 | + */ | ||
677 | + 403: any; | ||
678 | + /** | ||
679 | + * @description | ||
680 | + * Not Found | ||
681 | + */ | ||
682 | + 404: any; | ||
683 | +} | ||
684 | + | ||
685 | +export type PostOrderErpAuditAuditListResponseSuccess = | ||
686 | + PostOrderErpAuditAuditListResponse[200]; | ||
687 | +/** | ||
688 | + * @description | ||
689 | + * 已审批列表 | ||
690 | + * @tags 审批管理 | ||
691 | + * @produces * | ||
692 | + * @consumes application/json | ||
693 | + */ | ||
694 | +export const postOrderErpAuditAuditList = /* #__PURE__ */ (() => { | ||
695 | + const method = 'post'; | ||
696 | + const url = '/order/erp/audit/audit_list'; | ||
697 | + function request( | ||
698 | + option: PostOrderErpAuditAuditListOption, | ||
699 | + ): Promise<PostOrderErpAuditAuditListResponseSuccess> { | ||
700 | + return requester(request.url, { | ||
701 | + method: request.method, | ||
702 | + ...option, | ||
703 | + }) as unknown as Promise<PostOrderErpAuditAuditListResponseSuccess>; | ||
704 | + } | ||
705 | + | ||
706 | + /** http method */ | ||
707 | + request.method = method; | ||
708 | + /** request url */ | ||
709 | + request.url = url; | ||
710 | + return request; | ||
711 | +})(); | ||
712 | + | ||
713 | +/** @description request parameter type for postOrderErpAuditDoAudit */ | ||
714 | +export interface PostOrderErpAuditDoAuditOption { | ||
715 | + /** | ||
716 | + * @description | ||
717 | + * auditVO | ||
718 | + */ | ||
719 | + body: { | ||
720 | + /** | ||
721 | + @description | ||
722 | + auditVO */ | ||
723 | + auditVO: AuditVO; | ||
724 | + }; | ||
725 | +} | ||
726 | + | ||
727 | +/** @description response type for postOrderErpAuditDoAudit */ | ||
728 | +export interface PostOrderErpAuditDoAuditResponse { | ||
729 | + /** | ||
730 | + * @description | ||
731 | + * OK | ||
732 | + */ | ||
733 | + 200: ServerResult; | ||
734 | + /** | ||
735 | + * @description | ||
736 | + * Created | ||
737 | + */ | ||
738 | + 201: any; | ||
739 | + /** | ||
740 | + * @description | ||
741 | + * Unauthorized | ||
742 | + */ | ||
743 | + 401: any; | ||
744 | + /** | ||
745 | + * @description | ||
746 | + * Forbidden | ||
747 | + */ | ||
748 | + 403: any; | ||
749 | + /** | ||
750 | + * @description | ||
751 | + * Not Found | ||
752 | + */ | ||
753 | + 404: any; | ||
754 | +} | ||
755 | + | ||
756 | +export type PostOrderErpAuditDoAuditResponseSuccess = | ||
757 | + PostOrderErpAuditDoAuditResponse[200]; | ||
758 | +/** | ||
759 | + * @description | ||
760 | + * 审核 | ||
761 | + * @tags 审批管理 | ||
762 | + * @produces * | ||
763 | + * @consumes application/json | ||
764 | + */ | ||
765 | +export const postOrderErpAuditDoAudit = /* #__PURE__ */ (() => { | ||
766 | + const method = 'post'; | ||
767 | + const url = '/order/erp/audit/do_audit'; | ||
768 | + function request( | ||
769 | + option: PostOrderErpAuditDoAuditOption, | ||
770 | + ): Promise<PostOrderErpAuditDoAuditResponseSuccess> { | ||
771 | + return requester(request.url, { | ||
772 | + method: request.method, | ||
773 | + ...option, | ||
774 | + }) as unknown as Promise<PostOrderErpAuditDoAuditResponseSuccess>; | ||
775 | + } | ||
776 | + | ||
777 | + /** http method */ | ||
778 | + request.method = method; | ||
779 | + /** request url */ | ||
780 | + request.url = url; | ||
781 | + return request; | ||
782 | +})(); | ||
783 | + | ||
784 | +/** @description request parameter type for postOrderErpAuditListByPage */ | ||
785 | +export interface PostOrderErpAuditListByPageOption { | ||
786 | + /** | ||
787 | + * @description | ||
788 | + * queryVO | ||
789 | + */ | ||
790 | + body: { | ||
791 | + /** | ||
792 | + @description | ||
793 | + queryVO */ | ||
794 | + queryVO: OrderFieldLockApplyQueryVO; | ||
795 | + }; | ||
796 | +} | ||
797 | + | ||
798 | +/** @description response type for postOrderErpAuditListByPage */ | ||
799 | +export interface PostOrderErpAuditListByPageResponse { | ||
800 | + /** | ||
801 | + * @description | ||
802 | + * OK | ||
803 | + */ | ||
804 | + 200: ServerResult; | ||
805 | + /** | ||
806 | + * @description | ||
807 | + * Created | ||
808 | + */ | ||
809 | + 201: any; | ||
810 | + /** | ||
811 | + * @description | ||
812 | + * Unauthorized | ||
813 | + */ | ||
814 | + 401: any; | ||
815 | + /** | ||
816 | + * @description | ||
817 | + * Forbidden | ||
818 | + */ | ||
819 | + 403: any; | ||
820 | + /** | ||
821 | + * @description | ||
822 | + * Not Found | ||
823 | + */ | ||
824 | + 404: any; | ||
825 | +} | ||
826 | + | ||
827 | +export type PostOrderErpAuditListByPageResponseSuccess = | ||
828 | + PostOrderErpAuditListByPageResponse[200]; | ||
829 | +/** | ||
830 | + * @description | ||
831 | + * 分页查询 | ||
832 | + * @tags 审批管理 | ||
833 | + * @produces * | ||
834 | + * @consumes application/json | ||
835 | + */ | ||
836 | +export const postOrderErpAuditListByPage = /* #__PURE__ */ (() => { | ||
837 | + const method = 'post'; | ||
838 | + const url = '/order/erp/audit/list_by_page'; | ||
839 | + function request( | ||
840 | + option: PostOrderErpAuditListByPageOption, | ||
841 | + ): Promise<PostOrderErpAuditListByPageResponseSuccess> { | ||
842 | + return requester(request.url, { | ||
843 | + method: request.method, | ||
844 | + ...option, | ||
845 | + }) as unknown as Promise<PostOrderErpAuditListByPageResponseSuccess>; | ||
846 | + } | ||
847 | + | ||
848 | + /** http method */ | ||
849 | + request.method = method; | ||
850 | + /** request url */ | ||
851 | + request.url = url; | ||
852 | + return request; | ||
853 | +})(); | ||
854 | + | ||
855 | +/** @description request parameter type for postOrderErpAuditLogListByPage */ | ||
856 | +export interface PostOrderErpAuditLogListByPageOption { | ||
857 | + /** | ||
858 | + * @description | ||
859 | + * orderAuditLogQueryVO | ||
860 | + */ | ||
861 | + body: { | ||
862 | + /** | ||
863 | + @description | ||
864 | + orderAuditLogQueryVO */ | ||
865 | + orderAuditLogQueryVO: OrderAuditLogQueryVO; | ||
866 | + }; | ||
867 | +} | ||
868 | + | ||
869 | +/** @description response type for postOrderErpAuditLogListByPage */ | ||
870 | +export interface PostOrderErpAuditLogListByPageResponse { | ||
871 | + /** | ||
872 | + * @description | ||
873 | + * OK | ||
874 | + */ | ||
875 | + 200: ServerResult; | ||
876 | + /** | ||
877 | + * @description | ||
878 | + * Created | ||
879 | + */ | ||
880 | + 201: any; | ||
881 | + /** | ||
882 | + * @description | ||
883 | + * Unauthorized | ||
884 | + */ | ||
885 | + 401: any; | ||
886 | + /** | ||
887 | + * @description | ||
888 | + * Forbidden | ||
889 | + */ | ||
890 | + 403: any; | ||
891 | + /** | ||
892 | + * @description | ||
893 | + * Not Found | ||
894 | + */ | ||
895 | + 404: any; | ||
896 | +} | ||
897 | + | ||
898 | +export type PostOrderErpAuditLogListByPageResponseSuccess = | ||
899 | + PostOrderErpAuditLogListByPageResponse[200]; | ||
900 | +/** | ||
901 | + * @description | ||
902 | + * 分页查询 | ||
903 | + * @tags 用户订单审批日志 | ||
904 | + * @produces * | ||
905 | + * @consumes application/json | ||
906 | + */ | ||
907 | +export const postOrderErpAuditLogListByPage = /* #__PURE__ */ (() => { | ||
908 | + const method = 'post'; | ||
909 | + const url = '/order/erp/audit/log/list_by_page'; | ||
910 | + function request( | ||
911 | + option: PostOrderErpAuditLogListByPageOption, | ||
912 | + ): Promise<PostOrderErpAuditLogListByPageResponseSuccess> { | ||
913 | + return requester(request.url, { | ||
914 | + method: request.method, | ||
915 | + ...option, | ||
916 | + }) as unknown as Promise<PostOrderErpAuditLogListByPageResponseSuccess>; | ||
917 | + } | ||
918 | + | ||
919 | + /** http method */ | ||
920 | + request.method = method; | ||
921 | + /** request url */ | ||
922 | + request.url = url; | ||
923 | + return request; | ||
924 | +})(); | ||
925 | + | ||
926 | +/** @description request parameter type for postOrderErpAuditLogQueryById */ | ||
927 | +export interface PostOrderErpAuditLogQueryByIdOption { | ||
928 | + /** | ||
929 | + * @description | ||
930 | + * orderAuditLogQueryVO | ||
931 | + */ | ||
932 | + body: { | ||
933 | + /** | ||
934 | + @description | ||
935 | + orderAuditLogQueryVO */ | ||
936 | + orderAuditLogQueryVO: OrderAuditLogQueryVO; | ||
937 | + }; | ||
938 | +} | ||
939 | + | ||
940 | +/** @description response type for postOrderErpAuditLogQueryById */ | ||
941 | +export interface PostOrderErpAuditLogQueryByIdResponse { | ||
942 | + /** | ||
943 | + * @description | ||
944 | + * OK | ||
945 | + */ | ||
946 | + 200: ServerResult; | ||
947 | + /** | ||
948 | + * @description | ||
949 | + * Created | ||
950 | + */ | ||
951 | + 201: any; | ||
952 | + /** | ||
953 | + * @description | ||
954 | + * Unauthorized | ||
955 | + */ | ||
956 | + 401: any; | ||
957 | + /** | ||
958 | + * @description | ||
959 | + * Forbidden | ||
960 | + */ | ||
961 | + 403: any; | ||
962 | + /** | ||
963 | + * @description | ||
964 | + * Not Found | ||
965 | + */ | ||
966 | + 404: any; | ||
967 | +} | ||
968 | + | ||
969 | +export type PostOrderErpAuditLogQueryByIdResponseSuccess = | ||
970 | + PostOrderErpAuditLogQueryByIdResponse[200]; | ||
971 | +/** | ||
972 | + * @description | ||
973 | + * 通过主键查询单条数据 | ||
974 | + * @tags 用户订单审批日志 | ||
975 | + * @produces * | ||
976 | + * @consumes application/json | ||
977 | + */ | ||
978 | +export const postOrderErpAuditLogQueryById = /* #__PURE__ */ (() => { | ||
979 | + const method = 'post'; | ||
980 | + const url = '/order/erp/audit/log/query_by_id'; | ||
981 | + function request( | ||
982 | + option: PostOrderErpAuditLogQueryByIdOption, | ||
983 | + ): Promise<PostOrderErpAuditLogQueryByIdResponseSuccess> { | ||
984 | + return requester(request.url, { | ||
985 | + method: request.method, | ||
986 | + ...option, | ||
987 | + }) as unknown as Promise<PostOrderErpAuditLogQueryByIdResponseSuccess>; | ||
988 | + } | ||
989 | + | ||
990 | + /** http method */ | ||
991 | + request.method = method; | ||
992 | + /** request url */ | ||
993 | + request.url = url; | ||
994 | + return request; | ||
995 | +})(); | ||
996 | + | ||
997 | +/** @description request parameter type for postOrderErpAuditWaitAuditList */ | ||
998 | +export interface PostOrderErpAuditWaitAuditListOption { | ||
999 | + /** | ||
1000 | + * @description | ||
1001 | + * queryVO | ||
1002 | + */ | ||
1003 | + body: { | ||
1004 | + /** | ||
1005 | + @description | ||
1006 | + queryVO */ | ||
1007 | + queryVO: OrderFieldLockApplyQueryVO; | ||
1008 | + }; | ||
1009 | +} | ||
1010 | + | ||
1011 | +/** @description response type for postOrderErpAuditWaitAuditList */ | ||
1012 | +export interface PostOrderErpAuditWaitAuditListResponse { | ||
1013 | + /** | ||
1014 | + * @description | ||
1015 | + * OK | ||
1016 | + */ | ||
1017 | + 200: ServerResult; | ||
1018 | + /** | ||
1019 | + * @description | ||
1020 | + * Created | ||
1021 | + */ | ||
1022 | + 201: any; | ||
1023 | + /** | ||
1024 | + * @description | ||
1025 | + * Unauthorized | ||
1026 | + */ | ||
1027 | + 401: any; | ||
1028 | + /** | ||
1029 | + * @description | ||
1030 | + * Forbidden | ||
1031 | + */ | ||
1032 | + 403: any; | ||
1033 | + /** | ||
1034 | + * @description | ||
1035 | + * Not Found | ||
1036 | + */ | ||
1037 | + 404: any; | ||
1038 | +} | ||
1039 | + | ||
1040 | +export type PostOrderErpAuditWaitAuditListResponseSuccess = | ||
1041 | + PostOrderErpAuditWaitAuditListResponse[200]; | ||
1042 | +/** | ||
1043 | + * @description | ||
1044 | + * 待审批列表 | ||
1045 | + * @tags 审批管理 | ||
1046 | + * @produces * | ||
1047 | + * @consumes application/json | ||
1048 | + */ | ||
1049 | +export const postOrderErpAuditWaitAuditList = /* #__PURE__ */ (() => { | ||
1050 | + const method = 'post'; | ||
1051 | + const url = '/order/erp/audit/wait_audit_list'; | ||
1052 | + function request( | ||
1053 | + option: PostOrderErpAuditWaitAuditListOption, | ||
1054 | + ): Promise<PostOrderErpAuditWaitAuditListResponseSuccess> { | ||
1055 | + return requester(request.url, { | ||
1056 | + method: request.method, | ||
1057 | + ...option, | ||
1058 | + }) as unknown as Promise<PostOrderErpAuditWaitAuditListResponseSuccess>; | ||
1059 | + } | ||
1060 | + | ||
1061 | + /** http method */ | ||
1062 | + request.method = method; | ||
1063 | + /** request url */ | ||
1064 | + request.url = url; | ||
1065 | + return request; | ||
1066 | +})(); | ||
1067 | + | ||
1068 | +/** @description request parameter type for postOrderErpAuthLoginByPhone */ | ||
1069 | +export interface PostOrderErpAuthLoginByPhoneOption { | ||
1070 | + /** | ||
1071 | + * @description | ||
1072 | + * loginByPhoneVO | ||
1073 | + */ | ||
1074 | + body: { | ||
1075 | + /** | ||
1076 | + @description | ||
1077 | + loginByPhoneVO */ | ||
1078 | + loginByPhoneVO: AdminUserLoginByPhoneVO; | ||
1079 | + }; | ||
1080 | +} | ||
1081 | + | ||
1082 | +/** @description response type for postOrderErpAuthLoginByPhone */ | ||
1083 | +export interface PostOrderErpAuthLoginByPhoneResponse { | ||
1084 | + /** | ||
1085 | + * @description | ||
1086 | + * OK | ||
1087 | + */ | ||
1088 | + 200: ServerResult; | ||
1089 | + /** | ||
1090 | + * @description | ||
1091 | + * Created | ||
1092 | + */ | ||
1093 | + 201: any; | ||
1094 | + /** | ||
1095 | + * @description | ||
1096 | + * Unauthorized | ||
1097 | + */ | ||
1098 | + 401: any; | ||
1099 | + /** | ||
1100 | + * @description | ||
1101 | + * Forbidden | ||
1102 | + */ | ||
1103 | + 403: any; | ||
1104 | + /** | ||
1105 | + * @description | ||
1106 | + * Not Found | ||
1107 | + */ | ||
1108 | + 404: any; | ||
1109 | +} | ||
1110 | + | ||
1111 | +export type PostOrderErpAuthLoginByPhoneResponseSuccess = | ||
1112 | + PostOrderErpAuthLoginByPhoneResponse[200]; | ||
1113 | +/** | ||
1114 | + * @description | ||
1115 | + * 手机登录 | ||
1116 | + * @tags login-controller | ||
1117 | + * @produces * | ||
1118 | + * @consumes application/json | ||
1119 | + */ | ||
1120 | +export const postOrderErpAuthLoginByPhone = /* #__PURE__ */ (() => { | ||
1121 | + const method = 'post'; | ||
1122 | + const url = '/order/erp/auth/login_by_phone'; | ||
1123 | + function request( | ||
1124 | + option: PostOrderErpAuthLoginByPhoneOption, | ||
1125 | + ): Promise<PostOrderErpAuthLoginByPhoneResponseSuccess> { | ||
1126 | + return requester(request.url, { | ||
1127 | + method: request.method, | ||
1128 | + ...option, | ||
1129 | + }) as unknown as Promise<PostOrderErpAuthLoginByPhoneResponseSuccess>; | ||
1130 | + } | ||
1131 | + | ||
1132 | + /** http method */ | ||
1133 | + request.method = method; | ||
1134 | + /** request url */ | ||
1135 | + request.url = url; | ||
1136 | + return request; | ||
1137 | +})(); | ||
1138 | + | ||
1139 | +/** @description request parameter type for postOrderErpAuthLoginByPwd */ | ||
1140 | +export interface PostOrderErpAuthLoginByPwdOption { | ||
1141 | + /** | ||
1142 | + * @description | ||
1143 | + * loginByPwdVO | ||
1144 | + */ | ||
1145 | + body: { | ||
1146 | + /** | ||
1147 | + @description | ||
1148 | + loginByPwdVO */ | ||
1149 | + loginByPwdVO: AdminUserLoginByPwdVO; | ||
1150 | + }; | ||
1151 | +} | ||
1152 | + | ||
1153 | +/** @description response type for postOrderErpAuthLoginByPwd */ | ||
1154 | +export interface PostOrderErpAuthLoginByPwdResponse { | ||
1155 | + /** | ||
1156 | + * @description | ||
1157 | + * OK | ||
1158 | + */ | ||
1159 | + 200: ServerResult; | ||
1160 | + /** | ||
1161 | + * @description | ||
1162 | + * Created | ||
1163 | + */ | ||
1164 | + 201: any; | ||
1165 | + /** | ||
1166 | + * @description | ||
1167 | + * Unauthorized | ||
1168 | + */ | ||
1169 | + 401: any; | ||
1170 | + /** | ||
1171 | + * @description | ||
1172 | + * Forbidden | ||
1173 | + */ | ||
1174 | + 403: any; | ||
1175 | + /** | ||
1176 | + * @description | ||
1177 | + * Not Found | ||
1178 | + */ | ||
1179 | + 404: any; | ||
1180 | +} | ||
1181 | + | ||
1182 | +export type PostOrderErpAuthLoginByPwdResponseSuccess = | ||
1183 | + PostOrderErpAuthLoginByPwdResponse[200]; | ||
1184 | +/** | ||
1185 | + * @description | ||
1186 | + * 用户登录 | ||
1187 | + * @tags login-controller | ||
1188 | + * @produces * | ||
1189 | + * @consumes application/json | ||
1190 | + */ | ||
1191 | +export const postOrderErpAuthLoginByPwd = /* #__PURE__ */ (() => { | ||
1192 | + const method = 'post'; | ||
1193 | + const url = '/order/erp/auth/login_by_pwd'; | ||
1194 | + function request( | ||
1195 | + option: PostOrderErpAuthLoginByPwdOption, | ||
1196 | + ): Promise<PostOrderErpAuthLoginByPwdResponseSuccess> { | ||
1197 | + return requester(request.url, { | ||
1198 | + method: request.method, | ||
1199 | + ...option, | ||
1200 | + }) as unknown as Promise<PostOrderErpAuthLoginByPwdResponseSuccess>; | ||
1201 | + } | ||
1202 | + | ||
1203 | + /** http method */ | ||
1204 | + request.method = method; | ||
1205 | + /** request url */ | ||
1206 | + request.url = url; | ||
1207 | + return request; | ||
1208 | +})(); | ||
1209 | + | ||
1210 | +/** @description response type for postOrderErpAuthLoginOut */ | ||
1211 | +export interface PostOrderErpAuthLoginOutResponse { | ||
1212 | + /** | ||
1213 | + * @description | ||
1214 | + * OK | ||
1215 | + */ | ||
1216 | + 200: ServerResult; | ||
1217 | + /** | ||
1218 | + * @description | ||
1219 | + * Created | ||
1220 | + */ | ||
1221 | + 201: any; | ||
1222 | + /** | ||
1223 | + * @description | ||
1224 | + * Unauthorized | ||
1225 | + */ | ||
1226 | + 401: any; | ||
1227 | + /** | ||
1228 | + * @description | ||
1229 | + * Forbidden | ||
1230 | + */ | ||
1231 | + 403: any; | ||
1232 | + /** | ||
1233 | + * @description | ||
1234 | + * Not Found | ||
1235 | + */ | ||
1236 | + 404: any; | ||
1237 | +} | ||
1238 | + | ||
1239 | +export type PostOrderErpAuthLoginOutResponseSuccess = | ||
1240 | + PostOrderErpAuthLoginOutResponse[200]; | ||
1241 | +/** | ||
1242 | + * @description | ||
1243 | + * 退出登录 | ||
1244 | + * @tags login-controller | ||
1245 | + * @produces * | ||
1246 | + * @consumes application/json | ||
1247 | + */ | ||
1248 | +export const postOrderErpAuthLoginOut = /* #__PURE__ */ (() => { | ||
1249 | + const method = 'post'; | ||
1250 | + const url = '/order/erp/auth/login_out'; | ||
1251 | + function request(): Promise<PostOrderErpAuthLoginOutResponseSuccess> { | ||
1252 | + return requester(request.url, { | ||
1253 | + method: request.method, | ||
1254 | + }) as unknown as Promise<PostOrderErpAuthLoginOutResponseSuccess>; | ||
1255 | + } | ||
1256 | + | ||
1257 | + /** http method */ | ||
1258 | + request.method = method; | ||
1259 | + /** request url */ | ||
1260 | + request.url = url; | ||
1261 | + return request; | ||
1262 | +})(); | ||
1263 | + | ||
1264 | +/** @description request parameter type for postOrderErpAuthPasswordModify */ | ||
1265 | +export interface PostOrderErpAuthPasswordModifyOption { | ||
1266 | + /** | ||
1267 | + * @description | ||
1268 | + * modifyPwdVO | ||
1269 | + */ | ||
1270 | + body: { | ||
1271 | + /** | ||
1272 | + @description | ||
1273 | + modifyPwdVO */ | ||
1274 | + modifyPwdVO: AdminUserModifyPwdVO; | ||
1275 | + }; | ||
1276 | +} | ||
1277 | + | ||
1278 | +/** @description response type for postOrderErpAuthPasswordModify */ | ||
1279 | +export interface PostOrderErpAuthPasswordModifyResponse { | ||
1280 | + /** | ||
1281 | + * @description | ||
1282 | + * OK | ||
1283 | + */ | ||
1284 | + 200: ServerResult; | ||
1285 | + /** | ||
1286 | + * @description | ||
1287 | + * Created | ||
1288 | + */ | ||
1289 | + 201: any; | ||
1290 | + /** | ||
1291 | + * @description | ||
1292 | + * Unauthorized | ||
1293 | + */ | ||
1294 | + 401: any; | ||
1295 | + /** | ||
1296 | + * @description | ||
1297 | + * Forbidden | ||
1298 | + */ | ||
1299 | + 403: any; | ||
1300 | + /** | ||
1301 | + * @description | ||
1302 | + * Not Found | ||
1303 | + */ | ||
1304 | + 404: any; | ||
1305 | +} | ||
1306 | + | ||
1307 | +export type PostOrderErpAuthPasswordModifyResponseSuccess = | ||
1308 | + PostOrderErpAuthPasswordModifyResponse[200]; | ||
1309 | +/** | ||
1310 | + * @description | ||
1311 | + * 用户登录 | ||
1312 | + * @tags login-controller | ||
1313 | + * @produces * | ||
1314 | + * @consumes application/json | ||
1315 | + */ | ||
1316 | +export const postOrderErpAuthPasswordModify = /* #__PURE__ */ (() => { | ||
1317 | + const method = 'post'; | ||
1318 | + const url = '/order/erp/auth/password_modify'; | ||
1319 | + function request( | ||
1320 | + option: PostOrderErpAuthPasswordModifyOption, | ||
1321 | + ): Promise<PostOrderErpAuthPasswordModifyResponseSuccess> { | ||
1322 | + return requester(request.url, { | ||
1323 | + method: request.method, | ||
1324 | + ...option, | ||
1325 | + }) as unknown as Promise<PostOrderErpAuthPasswordModifyResponseSuccess>; | ||
1326 | + } | ||
1327 | + | ||
1328 | + /** http method */ | ||
1329 | + request.method = method; | ||
1330 | + /** request url */ | ||
1331 | + request.url = url; | ||
1332 | + return request; | ||
1333 | +})(); | ||
1334 | + | ||
1335 | +/** @description request parameter type for postOrderErpAuthPhoneRegister */ | ||
1336 | +export interface PostOrderErpAuthPhoneRegisterOption { | ||
1337 | + /** | ||
1338 | + * @description | ||
1339 | + * registerVO | ||
1340 | + */ | ||
1341 | + body: { | ||
1342 | + /** | ||
1343 | + @description | ||
1344 | + registerVO */ | ||
1345 | + registerVO: AdminUserRegisterVO; | ||
1346 | + }; | ||
1347 | +} | ||
1348 | + | ||
1349 | +/** @description response type for postOrderErpAuthPhoneRegister */ | ||
1350 | +export interface PostOrderErpAuthPhoneRegisterResponse { | ||
1351 | + /** | ||
1352 | + * @description | ||
1353 | + * OK | ||
1354 | + */ | ||
1355 | + 200: ServerResult; | ||
1356 | + /** | ||
1357 | + * @description | ||
1358 | + * Created | ||
1359 | + */ | ||
1360 | + 201: any; | ||
1361 | + /** | ||
1362 | + * @description | ||
1363 | + * Unauthorized | ||
1364 | + */ | ||
1365 | + 401: any; | ||
1366 | + /** | ||
1367 | + * @description | ||
1368 | + * Forbidden | ||
1369 | + */ | ||
1370 | + 403: any; | ||
1371 | + /** | ||
1372 | + * @description | ||
1373 | + * Not Found | ||
1374 | + */ | ||
1375 | + 404: any; | ||
1376 | +} | ||
1377 | + | ||
1378 | +export type PostOrderErpAuthPhoneRegisterResponseSuccess = | ||
1379 | + PostOrderErpAuthPhoneRegisterResponse[200]; | ||
1380 | +/** | ||
1381 | + * @description | ||
1382 | + * 手机注册 | ||
1383 | + * @tags login-controller | ||
1384 | + * @produces * | ||
1385 | + * @consumes application/json | ||
1386 | + */ | ||
1387 | +export const postOrderErpAuthPhoneRegister = /* #__PURE__ */ (() => { | ||
1388 | + const method = 'post'; | ||
1389 | + const url = '/order/erp/auth/phone_register'; | ||
1390 | + function request( | ||
1391 | + option: PostOrderErpAuthPhoneRegisterOption, | ||
1392 | + ): Promise<PostOrderErpAuthPhoneRegisterResponseSuccess> { | ||
1393 | + return requester(request.url, { | ||
1394 | + method: request.method, | ||
1395 | + ...option, | ||
1396 | + }) as unknown as Promise<PostOrderErpAuthPhoneRegisterResponseSuccess>; | ||
1397 | + } | ||
1398 | + | ||
1399 | + /** http method */ | ||
1400 | + request.method = method; | ||
1401 | + /** request url */ | ||
1402 | + request.url = url; | ||
1403 | + return request; | ||
1404 | +})(); | ||
1405 | + | ||
1406 | +/** @description request parameter type for postOrderErpAuthSendPasswordRecoverMail */ | ||
1407 | +export interface PostOrderErpAuthSendPasswordRecoverMailOption { | ||
1408 | + /** | ||
1409 | + * @description | ||
1410 | + * recoverEmailVO | ||
1411 | + */ | ||
1412 | + body: { | ||
1413 | + /** | ||
1414 | + @description | ||
1415 | + recoverEmailVO */ | ||
1416 | + recoverEmailVO: AdminUserPasswordRecoverEmailVO; | ||
1417 | + }; | ||
1418 | +} | ||
1419 | + | ||
1420 | +/** @description response type for postOrderErpAuthSendPasswordRecoverMail */ | ||
1421 | +export interface PostOrderErpAuthSendPasswordRecoverMailResponse { | ||
1422 | + /** | ||
1423 | + * @description | ||
1424 | + * OK | ||
1425 | + */ | ||
1426 | + 200: ServerResult; | ||
1427 | + /** | ||
1428 | + * @description | ||
1429 | + * Created | ||
1430 | + */ | ||
1431 | + 201: any; | ||
1432 | + /** | ||
1433 | + * @description | ||
1434 | + * Unauthorized | ||
1435 | + */ | ||
1436 | + 401: any; | ||
1437 | + /** | ||
1438 | + * @description | ||
1439 | + * Forbidden | ||
1440 | + */ | ||
1441 | + 403: any; | ||
1442 | + /** | ||
1443 | + * @description | ||
1444 | + * Not Found | ||
1445 | + */ | ||
1446 | + 404: any; | ||
1447 | +} | ||
1448 | + | ||
1449 | +export type PostOrderErpAuthSendPasswordRecoverMailResponseSuccess = | ||
1450 | + PostOrderErpAuthSendPasswordRecoverMailResponse[200]; | ||
1451 | +/** | ||
1452 | + * @description | ||
1453 | + * sendPasswordRecoverMail | ||
1454 | + * @tags login-controller | ||
1455 | + * @produces * | ||
1456 | + * @consumes application/json | ||
1457 | + */ | ||
1458 | +export const postOrderErpAuthSendPasswordRecoverMail = /* #__PURE__ */ (() => { | ||
1459 | + const method = 'post'; | ||
1460 | + const url = '/order/erp/auth/send_password_recover_mail'; | ||
1461 | + function request( | ||
1462 | + option: PostOrderErpAuthSendPasswordRecoverMailOption, | ||
1463 | + ): Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess> { | ||
1464 | + return requester(request.url, { | ||
1465 | + method: request.method, | ||
1466 | + ...option, | ||
1467 | + }) as unknown as Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess>; | ||
1468 | + } | ||
1469 | + | ||
1470 | + /** http method */ | ||
1471 | + request.method = method; | ||
1472 | + /** request url */ | ||
1473 | + request.url = url; | ||
1474 | + return request; | ||
1475 | +})(); | ||
1476 | + | ||
1477 | +/** @description response type for postOrderErpCaptchaGetImgCaptchaCode */ | ||
1478 | +export interface PostOrderErpCaptchaGetImgCaptchaCodeResponse { | ||
1479 | + /** | ||
1480 | + * @description | ||
1481 | + * OK | ||
1482 | + */ | ||
1483 | + 200: ServerResult; | ||
1484 | + /** | ||
1485 | + * @description | ||
1486 | + * Created | ||
1487 | + */ | ||
1488 | + 201: any; | ||
1489 | + /** | ||
1490 | + * @description | ||
1491 | + * Unauthorized | ||
1492 | + */ | ||
1493 | + 401: any; | ||
1494 | + /** | ||
1495 | + * @description | ||
1496 | + * Forbidden | ||
1497 | + */ | ||
1498 | + 403: any; | ||
1499 | + /** | ||
1500 | + * @description | ||
1501 | + * Not Found | ||
1502 | + */ | ||
1503 | + 404: any; | ||
1504 | +} | ||
1505 | + | ||
1506 | +export type PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess = | ||
1507 | + PostOrderErpCaptchaGetImgCaptchaCodeResponse[200]; | ||
1508 | +/** | ||
1509 | + * @description | ||
1510 | + * 获取图片验证码 | ||
1511 | + * @tags 验证码 | ||
1512 | + * @produces * | ||
1513 | + * @consumes application/json | ||
1514 | + */ | ||
1515 | +export const postOrderErpCaptchaGetImgCaptchaCode = /* #__PURE__ */ (() => { | ||
1516 | + const method = 'post'; | ||
1517 | + const url = '/order/erp/captcha/get_img_captcha_code'; | ||
1518 | + function request(): Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess> { | ||
1519 | + return requester(request.url, { | ||
1520 | + method: request.method, | ||
1521 | + }) as unknown as Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess>; | ||
1522 | + } | ||
1523 | + | ||
1524 | + /** http method */ | ||
1525 | + request.method = method; | ||
1526 | + /** request url */ | ||
1527 | + request.url = url; | ||
1528 | + return request; | ||
1529 | +})(); | ||
1530 | + | ||
1531 | +/** @description request parameter type for postOrderErpCaptchaSendCaptchaCode */ | ||
1532 | +export interface PostOrderErpCaptchaSendCaptchaCodeOption { | ||
1533 | + /** | ||
1534 | + * @description | ||
1535 | + * msgVo | ||
1536 | + */ | ||
1537 | + body: { | ||
1538 | + /** | ||
1539 | + @description | ||
1540 | + msgVo */ | ||
1541 | + msgVo: CaptchaMessageVO; | ||
1542 | + }; | ||
1543 | +} | ||
1544 | + | ||
1545 | +/** @description response type for postOrderErpCaptchaSendCaptchaCode */ | ||
1546 | +export interface PostOrderErpCaptchaSendCaptchaCodeResponse { | ||
1547 | + /** | ||
1548 | + * @description | ||
1549 | + * OK | ||
1550 | + */ | ||
1551 | + 200: ServerResult; | ||
1552 | + /** | ||
1553 | + * @description | ||
1554 | + * Created | ||
1555 | + */ | ||
1556 | + 201: any; | ||
1557 | + /** | ||
1558 | + * @description | ||
1559 | + * Unauthorized | ||
1560 | + */ | ||
1561 | + 401: any; | ||
1562 | + /** | ||
1563 | + * @description | ||
1564 | + * Forbidden | ||
1565 | + */ | ||
1566 | + 403: any; | ||
1567 | + /** | ||
1568 | + * @description | ||
1569 | + * Not Found | ||
1570 | + */ | ||
1571 | + 404: any; | ||
1572 | +} | ||
1573 | + | ||
1574 | +export type PostOrderErpCaptchaSendCaptchaCodeResponseSuccess = | ||
1575 | + PostOrderErpCaptchaSendCaptchaCodeResponse[200]; | ||
1576 | +/** | ||
1577 | + * @description | ||
1578 | + * 获取验证码 | ||
1579 | + * @tags 验证码 | ||
1580 | + * @produces * | ||
1581 | + * @consumes application/json | ||
1582 | + */ | ||
1583 | +export const postOrderErpCaptchaSendCaptchaCode = /* #__PURE__ */ (() => { | ||
1584 | + const method = 'post'; | ||
1585 | + const url = '/order/erp/captcha/send_captcha_code'; | ||
1586 | + function request( | ||
1587 | + option: PostOrderErpCaptchaSendCaptchaCodeOption, | ||
1588 | + ): Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess> { | ||
1589 | + return requester(request.url, { | ||
1590 | + method: request.method, | ||
1591 | + ...option, | ||
1592 | + }) as unknown as Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess>; | ||
1593 | + } | ||
1594 | + | ||
1595 | + /** http method */ | ||
1596 | + request.method = method; | ||
1597 | + /** request url */ | ||
1598 | + request.url = url; | ||
1599 | + return request; | ||
1600 | +})(); | ||
1601 | + | ||
1602 | +/** @description request parameter type for putOrderErpDepts */ | ||
1603 | +export interface PutOrderErpDeptsOption { | ||
1604 | + /** | ||
1605 | + * @description | ||
1606 | + * deptVO | ||
1607 | + */ | ||
1608 | + body: { | ||
1609 | + /** | ||
1610 | + @description | ||
1611 | + deptVO */ | ||
1612 | + deptVO: AdminDeptVO; | ||
1613 | + }; | ||
1614 | +} | ||
1615 | + | ||
1616 | +/** @description response type for putOrderErpDepts */ | ||
1617 | +export interface PutOrderErpDeptsResponse { | ||
1618 | + /** | ||
1619 | + * @description | ||
1620 | + * OK | ||
1621 | + */ | ||
1622 | + 200: ServerResult; | ||
1623 | + /** | ||
1624 | + * @description | ||
1625 | + * Created | ||
1626 | + */ | ||
1627 | + 201: any; | ||
1628 | + /** | ||
1629 | + * @description | ||
1630 | + * Unauthorized | ||
1631 | + */ | ||
1632 | + 401: any; | ||
1633 | + /** | ||
1634 | + * @description | ||
1635 | + * Forbidden | ||
1636 | + */ | ||
1637 | + 403: any; | ||
1638 | + /** | ||
1639 | + * @description | ||
1640 | + * Not Found | ||
1641 | + */ | ||
1642 | + 404: any; | ||
1643 | +} | ||
1644 | + | ||
1645 | +export type PutOrderErpDeptsResponseSuccess = PutOrderErpDeptsResponse[200]; | ||
1646 | +/** | ||
1647 | + * @description | ||
1648 | + * 修改部门 | ||
1649 | + * @tags 系统:部门管理 | ||
1650 | + * @produces * | ||
1651 | + * @consumes application/json | ||
1652 | + */ | ||
1653 | +export const putOrderErpDepts = /* #__PURE__ */ (() => { | ||
1654 | + const method = 'put'; | ||
1655 | + const url = '/order/erp/depts'; | ||
1656 | + function request( | ||
1657 | + option: PutOrderErpDeptsOption, | ||
1658 | + ): Promise<PutOrderErpDeptsResponseSuccess> { | ||
1659 | + return requester(request.url, { | ||
1660 | + method: request.method, | ||
1661 | + ...option, | ||
1662 | + }) as unknown as Promise<PutOrderErpDeptsResponseSuccess>; | ||
1663 | + } | ||
1664 | + | ||
1665 | + /** http method */ | ||
1666 | + request.method = method; | ||
1667 | + /** request url */ | ||
1668 | + request.url = url; | ||
1669 | + return request; | ||
1670 | +})(); | ||
1671 | + | ||
1672 | +/** @description request parameter type for deleteOrderErpDepts */ | ||
1673 | +export interface DeleteOrderErpDeptsOption { | ||
1674 | + /** | ||
1675 | + * @description | ||
1676 | + * queryVO | ||
1677 | + */ | ||
1678 | + body: { | ||
1679 | + /** | ||
1680 | + @description | ||
1681 | + queryVO */ | ||
1682 | + queryVO: AdminDeptQueryVO; | ||
1683 | + }; | ||
1684 | +} | ||
1685 | + | ||
1686 | +/** @description response type for deleteOrderErpDepts */ | ||
1687 | +export interface DeleteOrderErpDeptsResponse { | ||
1688 | + /** | ||
1689 | + * @description | ||
1690 | + * OK | ||
1691 | + */ | ||
1692 | + 200: ServerResult; | ||
1693 | + /** | ||
1694 | + * @description | ||
1695 | + * No Content | ||
1696 | + */ | ||
1697 | + 204: any; | ||
1698 | + /** | ||
1699 | + * @description | ||
1700 | + * Unauthorized | ||
1701 | + */ | ||
1702 | + 401: any; | ||
1703 | + /** | ||
1704 | + * @description | ||
1705 | + * Forbidden | ||
1706 | + */ | ||
1707 | + 403: any; | ||
1708 | +} | ||
1709 | + | ||
1710 | +export type DeleteOrderErpDeptsResponseSuccess = | ||
1711 | + DeleteOrderErpDeptsResponse[200]; | ||
1712 | +/** | ||
1713 | + * @description | ||
1714 | + * 删除部门 | ||
1715 | + * @tags 系统:部门管理 | ||
1716 | + * @produces * | ||
1717 | + */ | ||
1718 | +export const deleteOrderErpDepts = /* #__PURE__ */ (() => { | ||
1719 | + const method = 'delete'; | ||
1720 | + const url = '/order/erp/depts'; | ||
1721 | + function request( | ||
1722 | + option: DeleteOrderErpDeptsOption, | ||
1723 | + ): Promise<DeleteOrderErpDeptsResponseSuccess> { | ||
1724 | + return requester(request.url, { | ||
1725 | + method: request.method, | ||
1726 | + ...option, | ||
1727 | + }) as unknown as Promise<DeleteOrderErpDeptsResponseSuccess>; | ||
1728 | + } | ||
1729 | + | ||
1730 | + /** http method */ | ||
1731 | + request.method = method; | ||
1732 | + /** request url */ | ||
1733 | + request.url = url; | ||
1734 | + return request; | ||
1735 | +})(); | ||
1736 | + | ||
1737 | +/** @description request parameter type for postOrderErpDeptsAdd */ | ||
1738 | +export interface PostOrderErpDeptsAddOption { | ||
1739 | + /** | ||
1740 | + * @description | ||
1741 | + * deptVO | ||
1742 | + */ | ||
1743 | + body: { | ||
1744 | + /** | ||
1745 | + @description | ||
1746 | + deptVO */ | ||
1747 | + deptVO: AdminDeptVO; | ||
1748 | + }; | ||
1749 | +} | ||
1750 | + | ||
1751 | +/** @description response type for postOrderErpDeptsAdd */ | ||
1752 | +export interface PostOrderErpDeptsAddResponse { | ||
1753 | + /** | ||
1754 | + * @description | ||
1755 | + * OK | ||
1756 | + */ | ||
1757 | + 200: ServerResult; | ||
1758 | + /** | ||
1759 | + * @description | ||
1760 | + * Created | ||
1761 | + */ | ||
1762 | + 201: any; | ||
1763 | + /** | ||
1764 | + * @description | ||
1765 | + * Unauthorized | ||
1766 | + */ | ||
1767 | + 401: any; | ||
1768 | + /** | ||
1769 | + * @description | ||
1770 | + * Forbidden | ||
1771 | + */ | ||
1772 | + 403: any; | ||
1773 | + /** | ||
1774 | + * @description | ||
1775 | + * Not Found | ||
1776 | + */ | ||
1777 | + 404: any; | ||
1778 | +} | ||
1779 | + | ||
1780 | +export type PostOrderErpDeptsAddResponseSuccess = | ||
1781 | + PostOrderErpDeptsAddResponse[200]; | ||
1782 | +/** | ||
1783 | + * @description | ||
1784 | + * 新增部门 | ||
1785 | + * @tags 系统:部门管理 | ||
1786 | + * @produces * | ||
1787 | + * @consumes application/json | ||
1788 | + */ | ||
1789 | +export const postOrderErpDeptsAdd = /* #__PURE__ */ (() => { | ||
1790 | + const method = 'post'; | ||
1791 | + const url = '/order/erp/depts/add'; | ||
1792 | + function request( | ||
1793 | + option: PostOrderErpDeptsAddOption, | ||
1794 | + ): Promise<PostOrderErpDeptsAddResponseSuccess> { | ||
1795 | + return requester(request.url, { | ||
1796 | + method: request.method, | ||
1797 | + ...option, | ||
1798 | + }) as unknown as Promise<PostOrderErpDeptsAddResponseSuccess>; | ||
1799 | + } | ||
1800 | + | ||
1801 | + /** http method */ | ||
1802 | + request.method = method; | ||
1803 | + /** request url */ | ||
1804 | + request.url = url; | ||
1805 | + return request; | ||
1806 | +})(); | ||
1807 | + | ||
1808 | +/** @description request parameter type for postOrderErpDeptsListByPage */ | ||
1809 | +export interface PostOrderErpDeptsListByPageOption { | ||
1810 | + /** | ||
1811 | + * @description | ||
1812 | + * queryVO | ||
1813 | + */ | ||
1814 | + body: { | ||
1815 | + /** | ||
1816 | + @description | ||
1817 | + queryVO */ | ||
1818 | + queryVO: AdminDeptQueryVO; | ||
1819 | + }; | ||
1820 | +} | ||
1821 | + | ||
1822 | +/** @description response type for postOrderErpDeptsListByPage */ | ||
1823 | +export interface PostOrderErpDeptsListByPageResponse { | ||
1824 | + /** | ||
1825 | + * @description | ||
1826 | + * OK | ||
1827 | + */ | ||
1828 | + 200: ServerResult; | ||
1829 | + /** | ||
1830 | + * @description | ||
1831 | + * Created | ||
1832 | + */ | ||
1833 | + 201: any; | ||
1834 | + /** | ||
1835 | + * @description | ||
1836 | + * Unauthorized | ||
1837 | + */ | ||
1838 | + 401: any; | ||
1839 | + /** | ||
1840 | + * @description | ||
1841 | + * Forbidden | ||
1842 | + */ | ||
1843 | + 403: any; | ||
1844 | + /** | ||
1845 | + * @description | ||
1846 | + * Not Found | ||
1847 | + */ | ||
1848 | + 404: any; | ||
1849 | +} | ||
1850 | + | ||
1851 | +export type PostOrderErpDeptsListByPageResponseSuccess = | ||
1852 | + PostOrderErpDeptsListByPageResponse[200]; | ||
1853 | +/** | ||
1854 | + * @description | ||
1855 | + * 查询部门 | ||
1856 | + * @tags 系统:部门管理 | ||
1857 | + * @produces * | ||
1858 | + * @consumes application/json | ||
1859 | + */ | ||
1860 | +export const postOrderErpDeptsListByPage = /* #__PURE__ */ (() => { | ||
1861 | + const method = 'post'; | ||
1862 | + const url = '/order/erp/depts/list_by_page'; | ||
1863 | + function request( | ||
1864 | + option: PostOrderErpDeptsListByPageOption, | ||
1865 | + ): Promise<PostOrderErpDeptsListByPageResponseSuccess> { | ||
1866 | + return requester(request.url, { | ||
1867 | + method: request.method, | ||
1868 | + ...option, | ||
1869 | + }) as unknown as Promise<PostOrderErpDeptsListByPageResponseSuccess>; | ||
1870 | + } | ||
1871 | + | ||
1872 | + /** http method */ | ||
1873 | + request.method = method; | ||
1874 | + /** request url */ | ||
1875 | + request.url = url; | ||
1876 | + return request; | ||
1877 | +})(); | ||
1878 | + | ||
1879 | +/** @description request parameter type for postOrderErpDictionaryAdd */ | ||
1880 | +export interface PostOrderErpDictionaryAddOption { | ||
1881 | + /** | ||
1882 | + * @description | ||
1883 | + * dictionaryVO | ||
1884 | + */ | ||
1885 | + body: { | ||
1886 | + /** | ||
1887 | + @description | ||
1888 | + dictionaryVO */ | ||
1889 | + dictionaryVO: DictionaryVO; | ||
1890 | + }; | ||
1891 | +} | ||
1892 | + | ||
1893 | +/** @description response type for postOrderErpDictionaryAdd */ | ||
1894 | +export interface PostOrderErpDictionaryAddResponse { | ||
1895 | + /** | ||
1896 | + * @description | ||
1897 | + * OK | ||
1898 | + */ | ||
1899 | + 200: ServerResult; | ||
1900 | + /** | ||
1901 | + * @description | ||
1902 | + * Created | ||
1903 | + */ | ||
1904 | + 201: any; | ||
1905 | + /** | ||
1906 | + * @description | ||
1907 | + * Unauthorized | ||
1908 | + */ | ||
1909 | + 401: any; | ||
1910 | + /** | ||
1911 | + * @description | ||
1912 | + * Forbidden | ||
1913 | + */ | ||
1914 | + 403: any; | ||
1915 | + /** | ||
1916 | + * @description | ||
1917 | + * Not Found | ||
1918 | + */ | ||
1919 | + 404: any; | ||
1920 | +} | ||
1921 | + | ||
1922 | +export type PostOrderErpDictionaryAddResponseSuccess = | ||
1923 | + PostOrderErpDictionaryAddResponse[200]; | ||
1924 | +/** | ||
1925 | + * @description | ||
1926 | + * 新增字典 | ||
1927 | + * @tags 系统:字典管理 | ||
1928 | + * @produces * | ||
1929 | + * @consumes application/json | ||
1930 | + */ | ||
1931 | +export const postOrderErpDictionaryAdd = /* #__PURE__ */ (() => { | ||
1932 | + const method = 'post'; | ||
1933 | + const url = '/order/erp/dictionary/add'; | ||
1934 | + function request( | ||
1935 | + option: PostOrderErpDictionaryAddOption, | ||
1936 | + ): Promise<PostOrderErpDictionaryAddResponseSuccess> { | ||
1937 | + return requester(request.url, { | ||
1938 | + method: request.method, | ||
1939 | + ...option, | ||
1940 | + }) as unknown as Promise<PostOrderErpDictionaryAddResponseSuccess>; | ||
1941 | + } | ||
1942 | + | ||
1943 | + /** http method */ | ||
1944 | + request.method = method; | ||
1945 | + /** request url */ | ||
1946 | + request.url = url; | ||
1947 | + return request; | ||
1948 | +})(); | ||
1949 | + | ||
1950 | +/** @description request parameter type for postOrderErpDictionaryDelete */ | ||
1951 | +export interface PostOrderErpDictionaryDeleteOption { | ||
1952 | + /** | ||
1953 | + * @description | ||
1954 | + * queryVO | ||
1955 | + */ | ||
1956 | + body: { | ||
1957 | + /** | ||
1958 | + @description | ||
1959 | + queryVO */ | ||
1960 | + queryVO: DictionaryQueryVO; | ||
1961 | + }; | ||
1962 | +} | ||
1963 | + | ||
1964 | +/** @description response type for postOrderErpDictionaryDelete */ | ||
1965 | +export interface PostOrderErpDictionaryDeleteResponse { | ||
1966 | + /** | ||
1967 | + * @description | ||
1968 | + * OK | ||
1969 | + */ | ||
1970 | + 200: ServerResult; | ||
1971 | + /** | ||
1972 | + * @description | ||
1973 | + * Created | ||
1974 | + */ | ||
1975 | + 201: any; | ||
1976 | + /** | ||
1977 | + * @description | ||
1978 | + * Unauthorized | ||
1979 | + */ | ||
1980 | + 401: any; | ||
1981 | + /** | ||
1982 | + * @description | ||
1983 | + * Forbidden | ||
1984 | + */ | ||
1985 | + 403: any; | ||
1986 | + /** | ||
1987 | + * @description | ||
1988 | + * Not Found | ||
1989 | + */ | ||
1990 | + 404: any; | ||
1991 | +} | ||
1992 | + | ||
1993 | +export type PostOrderErpDictionaryDeleteResponseSuccess = | ||
1994 | + PostOrderErpDictionaryDeleteResponse[200]; | ||
1995 | +/** | ||
1996 | + * @description | ||
1997 | + * 删除字典 | ||
1998 | + * @tags 系统:字典管理 | ||
1999 | + * @produces * | ||
2000 | + * @consumes application/json | ||
2001 | + */ | ||
2002 | +export const postOrderErpDictionaryDelete = /* #__PURE__ */ (() => { | ||
2003 | + const method = 'post'; | ||
2004 | + const url = '/order/erp/dictionary/delete'; | ||
2005 | + function request( | ||
2006 | + option: PostOrderErpDictionaryDeleteOption, | ||
2007 | + ): Promise<PostOrderErpDictionaryDeleteResponseSuccess> { | ||
2008 | + return requester(request.url, { | ||
2009 | + method: request.method, | ||
2010 | + ...option, | ||
2011 | + }) as unknown as Promise<PostOrderErpDictionaryDeleteResponseSuccess>; | ||
2012 | + } | ||
2013 | + | ||
2014 | + /** http method */ | ||
2015 | + request.method = method; | ||
2016 | + /** request url */ | ||
2017 | + request.url = url; | ||
2018 | + return request; | ||
2019 | +})(); | ||
2020 | + | ||
2021 | +/** @description request parameter type for postOrderErpDictionaryEdit */ | ||
2022 | +export interface PostOrderErpDictionaryEditOption { | ||
2023 | + /** | ||
2024 | + * @description | ||
2025 | + * dictionaryVO | ||
2026 | + */ | ||
2027 | + body: { | ||
2028 | + /** | ||
2029 | + @description | ||
2030 | + dictionaryVO */ | ||
2031 | + dictionaryVO: DictionaryVO; | ||
2032 | + }; | ||
2033 | +} | ||
2034 | + | ||
2035 | +/** @description response type for postOrderErpDictionaryEdit */ | ||
2036 | +export interface PostOrderErpDictionaryEditResponse { | ||
2037 | + /** | ||
2038 | + * @description | ||
2039 | + * OK | ||
2040 | + */ | ||
2041 | + 200: ServerResult; | ||
2042 | + /** | ||
2043 | + * @description | ||
2044 | + * Created | ||
2045 | + */ | ||
2046 | + 201: any; | ||
2047 | + /** | ||
2048 | + * @description | ||
2049 | + * Unauthorized | ||
2050 | + */ | ||
2051 | + 401: any; | ||
2052 | + /** | ||
2053 | + * @description | ||
2054 | + * Forbidden | ||
2055 | + */ | ||
2056 | + 403: any; | ||
2057 | + /** | ||
2058 | + * @description | ||
2059 | + * Not Found | ||
2060 | + */ | ||
2061 | + 404: any; | ||
2062 | +} | ||
2063 | + | ||
2064 | +export type PostOrderErpDictionaryEditResponseSuccess = | ||
2065 | + PostOrderErpDictionaryEditResponse[200]; | ||
2066 | +/** | ||
2067 | + * @description | ||
2068 | + * 修改字典 | ||
2069 | + * @tags 系统:字典管理 | ||
2070 | + * @produces * | ||
2071 | + * @consumes application/json | ||
2072 | + */ | ||
2073 | +export const postOrderErpDictionaryEdit = /* #__PURE__ */ (() => { | ||
2074 | + const method = 'post'; | ||
2075 | + const url = '/order/erp/dictionary/edit'; | ||
2076 | + function request( | ||
2077 | + option: PostOrderErpDictionaryEditOption, | ||
2078 | + ): Promise<PostOrderErpDictionaryEditResponseSuccess> { | ||
2079 | + return requester(request.url, { | ||
2080 | + method: request.method, | ||
2081 | + ...option, | ||
2082 | + }) as unknown as Promise<PostOrderErpDictionaryEditResponseSuccess>; | ||
2083 | + } | ||
2084 | + | ||
2085 | + /** http method */ | ||
2086 | + request.method = method; | ||
2087 | + /** request url */ | ||
2088 | + request.url = url; | ||
2089 | + return request; | ||
2090 | +})(); | ||
2091 | + | ||
2092 | +/** @description request parameter type for postOrderErpDictionaryGetAll */ | ||
2093 | +export interface PostOrderErpDictionaryGetAllOption { | ||
2094 | + /** | ||
2095 | + * @description | ||
2096 | + * queryVO | ||
2097 | + */ | ||
2098 | + body: { | ||
2099 | + /** | ||
2100 | + @description | ||
2101 | + queryVO */ | ||
2102 | + queryVO: DictionaryQueryVO; | ||
2103 | + }; | ||
2104 | +} | ||
2105 | + | ||
2106 | +/** @description response type for postOrderErpDictionaryGetAll */ | ||
2107 | +export interface PostOrderErpDictionaryGetAllResponse { | ||
2108 | + /** | ||
2109 | + * @description | ||
2110 | + * OK | ||
2111 | + */ | ||
2112 | + 200: ServerResult; | ||
2113 | + /** | ||
2114 | + * @description | ||
2115 | + * Created | ||
2116 | + */ | ||
2117 | + 201: any; | ||
2118 | + /** | ||
2119 | + * @description | ||
2120 | + * Unauthorized | ||
2121 | + */ | ||
2122 | + 401: any; | ||
2123 | + /** | ||
2124 | + * @description | ||
2125 | + * Forbidden | ||
2126 | + */ | ||
2127 | + 403: any; | ||
2128 | + /** | ||
2129 | + * @description | ||
2130 | + * Not Found | ||
2131 | + */ | ||
2132 | + 404: any; | ||
2133 | +} | ||
2134 | + | ||
2135 | +export type PostOrderErpDictionaryGetAllResponseSuccess = | ||
2136 | + PostOrderErpDictionaryGetAllResponse[200]; | ||
2137 | +/** | ||
2138 | + * @description | ||
2139 | + * 获取所有字典 | ||
2140 | + * @tags 系统:字典管理 | ||
2141 | + * @produces * | ||
2142 | + * @consumes application/json | ||
2143 | + */ | ||
2144 | +export const postOrderErpDictionaryGetAll = /* #__PURE__ */ (() => { | ||
2145 | + const method = 'post'; | ||
2146 | + const url = '/order/erp/dictionary/get_all'; | ||
2147 | + function request( | ||
2148 | + option: PostOrderErpDictionaryGetAllOption, | ||
2149 | + ): Promise<PostOrderErpDictionaryGetAllResponseSuccess> { | ||
2150 | + return requester(request.url, { | ||
2151 | + method: request.method, | ||
2152 | + ...option, | ||
2153 | + }) as unknown as Promise<PostOrderErpDictionaryGetAllResponseSuccess>; | ||
2154 | + } | ||
2155 | + | ||
2156 | + /** http method */ | ||
2157 | + request.method = method; | ||
2158 | + /** request url */ | ||
2159 | + request.url = url; | ||
2160 | + return request; | ||
2161 | +})(); | ||
2162 | + | ||
2163 | +/** @description request parameter type for postOrderErpDictionaryListByPage */ | ||
2164 | +export interface PostOrderErpDictionaryListByPageOption { | ||
2165 | + /** | ||
2166 | + * @description | ||
2167 | + * queryVO | ||
2168 | + */ | ||
2169 | + body: { | ||
2170 | + /** | ||
2171 | + @description | ||
2172 | + queryVO */ | ||
2173 | + queryVO: DictionaryQueryVO; | ||
2174 | + }; | ||
2175 | +} | ||
2176 | + | ||
2177 | +/** @description response type for postOrderErpDictionaryListByPage */ | ||
2178 | +export interface PostOrderErpDictionaryListByPageResponse { | ||
2179 | + /** | ||
2180 | + * @description | ||
2181 | + * OK | ||
2182 | + */ | ||
2183 | + 200: ServerResult; | ||
2184 | + /** | ||
2185 | + * @description | ||
2186 | + * Created | ||
2187 | + */ | ||
2188 | + 201: any; | ||
2189 | + /** | ||
2190 | + * @description | ||
2191 | + * Unauthorized | ||
2192 | + */ | ||
2193 | + 401: any; | ||
2194 | + /** | ||
2195 | + * @description | ||
2196 | + * Forbidden | ||
2197 | + */ | ||
2198 | + 403: any; | ||
2199 | + /** | ||
2200 | + * @description | ||
2201 | + * Not Found | ||
2202 | + */ | ||
2203 | + 404: any; | ||
2204 | +} | ||
2205 | + | ||
2206 | +export type PostOrderErpDictionaryListByPageResponseSuccess = | ||
2207 | + PostOrderErpDictionaryListByPageResponse[200]; | ||
2208 | +/** | ||
2209 | + * @description | ||
2210 | + * 查询字典列表 | ||
2211 | + * @tags 系统:字典管理 | ||
2212 | + * @produces * | ||
2213 | + * @consumes application/json | ||
2214 | + */ | ||
2215 | +export const postOrderErpDictionaryListByPage = /* #__PURE__ */ (() => { | ||
2216 | + const method = 'post'; | ||
2217 | + const url = '/order/erp/dictionary/list_by_page'; | ||
2218 | + function request( | ||
2219 | + option: PostOrderErpDictionaryListByPageOption, | ||
2220 | + ): Promise<PostOrderErpDictionaryListByPageResponseSuccess> { | ||
2221 | + return requester(request.url, { | ||
2222 | + method: request.method, | ||
2223 | + ...option, | ||
2224 | + }) as unknown as Promise<PostOrderErpDictionaryListByPageResponseSuccess>; | ||
2225 | + } | ||
2226 | + | ||
2227 | + /** http method */ | ||
2228 | + request.method = method; | ||
2229 | + /** request url */ | ||
2230 | + request.url = url; | ||
2231 | + return request; | ||
2232 | +})(); | ||
2233 | + | ||
2234 | +/** @description response type for getOrderErpIndexChartData */ | ||
2235 | +export interface GetOrderErpIndexChartDataResponse { | ||
2236 | + /** | ||
2237 | + * @description | ||
2238 | + * OK | ||
2239 | + */ | ||
2240 | + 200: ServerResult; | ||
2241 | + /** | ||
2242 | + * @description | ||
2243 | + * Unauthorized | ||
2244 | + */ | ||
2245 | + 401: any; | ||
2246 | + /** | ||
2247 | + * @description | ||
2248 | + * Forbidden | ||
2249 | + */ | ||
2250 | + 403: any; | ||
2251 | + /** | ||
2252 | + * @description | ||
2253 | + * Not Found | ||
2254 | + */ | ||
2255 | + 404: any; | ||
2256 | +} | ||
2257 | + | ||
2258 | +export type GetOrderErpIndexChartDataResponseSuccess = | ||
2259 | + GetOrderErpIndexChartDataResponse[200]; | ||
2260 | +/** | ||
2261 | + * @description | ||
2262 | + * 首页订单趋势 | ||
2263 | + * @tags 首页 | ||
2264 | + * @produces * | ||
2265 | + */ | ||
2266 | +export const getOrderErpIndexChartData = /* #__PURE__ */ (() => { | ||
2267 | + const method = 'get'; | ||
2268 | + const url = '/order/erp/index/chartData'; | ||
2269 | + function request(): Promise<GetOrderErpIndexChartDataResponseSuccess> { | ||
2270 | + return requester(request.url, { | ||
2271 | + method: request.method, | ||
2272 | + }) as unknown as Promise<GetOrderErpIndexChartDataResponseSuccess>; | ||
2273 | + } | ||
2274 | + | ||
2275 | + /** http method */ | ||
2276 | + request.method = method; | ||
2277 | + /** request url */ | ||
2278 | + request.url = url; | ||
2279 | + return request; | ||
2280 | +})(); | ||
2281 | + | ||
2282 | +/** @description response type for getOrderErpIndexData */ | ||
2283 | +export interface GetOrderErpIndexDataResponse { | ||
2284 | + /** | ||
2285 | + * @description | ||
2286 | + * OK | ||
2287 | + */ | ||
2288 | + 200: ServerResult; | ||
2289 | + /** | ||
2290 | + * @description | ||
2291 | + * Unauthorized | ||
2292 | + */ | ||
2293 | + 401: any; | ||
2294 | + /** | ||
2295 | + * @description | ||
2296 | + * Forbidden | ||
2297 | + */ | ||
2298 | + 403: any; | ||
2299 | + /** | ||
2300 | + * @description | ||
2301 | + * Not Found | ||
2302 | + */ | ||
2303 | + 404: any; | ||
2304 | +} | ||
2305 | + | ||
2306 | +export type GetOrderErpIndexDataResponseSuccess = | ||
2307 | + GetOrderErpIndexDataResponse[200]; | ||
2308 | +/** | ||
2309 | + * @description | ||
2310 | + * 首页统计数据 | ||
2311 | + * @tags 首页 | ||
2312 | + * @produces * | ||
2313 | + */ | ||
2314 | +export const getOrderErpIndexData = /* #__PURE__ */ (() => { | ||
2315 | + const method = 'get'; | ||
2316 | + const url = '/order/erp/index/data'; | ||
2317 | + function request(): Promise<GetOrderErpIndexDataResponseSuccess> { | ||
2318 | + return requester(request.url, { | ||
2319 | + method: request.method, | ||
2320 | + }) as unknown as Promise<GetOrderErpIndexDataResponseSuccess>; | ||
2321 | + } | ||
2322 | + | ||
2323 | + /** http method */ | ||
2324 | + request.method = method; | ||
2325 | + /** request url */ | ||
2326 | + request.url = url; | ||
2327 | + return request; | ||
2328 | +})(); | ||
2329 | + | ||
2330 | +/** @description request parameter type for postOrderErpJobsAdd */ | ||
2331 | +export interface PostOrderErpJobsAddOption { | ||
2332 | + /** | ||
2333 | + * @description | ||
2334 | + * jobVO | ||
2335 | + */ | ||
2336 | + body: { | ||
2337 | + /** | ||
2338 | + @description | ||
2339 | + jobVO */ | ||
2340 | + jobVO: AdminJobVO; | ||
2341 | + }; | ||
2342 | +} | ||
2343 | + | ||
2344 | +/** @description response type for postOrderErpJobsAdd */ | ||
2345 | +export interface PostOrderErpJobsAddResponse { | ||
2346 | + /** | ||
2347 | + * @description | ||
2348 | + * OK | ||
2349 | + */ | ||
2350 | + 200: ServerResult; | ||
2351 | + /** | ||
2352 | + * @description | ||
2353 | + * Created | ||
2354 | + */ | ||
2355 | + 201: any; | ||
2356 | + /** | ||
2357 | + * @description | ||
2358 | + * Unauthorized | ||
2359 | + */ | ||
2360 | + 401: any; | ||
2361 | + /** | ||
2362 | + * @description | ||
2363 | + * Forbidden | ||
2364 | + */ | ||
2365 | + 403: any; | ||
2366 | + /** | ||
2367 | + * @description | ||
2368 | + * Not Found | ||
2369 | + */ | ||
2370 | + 404: any; | ||
2371 | +} | ||
2372 | + | ||
2373 | +export type PostOrderErpJobsAddResponseSuccess = | ||
2374 | + PostOrderErpJobsAddResponse[200]; | ||
2375 | +/** | ||
2376 | + * @description | ||
2377 | + * 新增岗位 | ||
2378 | + * @tags 系统:岗位管理 | ||
2379 | + * @produces * | ||
2380 | + * @consumes application/json | ||
2381 | + */ | ||
2382 | +export const postOrderErpJobsAdd = /* #__PURE__ */ (() => { | ||
2383 | + const method = 'post'; | ||
2384 | + const url = '/order/erp/jobs/add'; | ||
2385 | + function request( | ||
2386 | + option: PostOrderErpJobsAddOption, | ||
2387 | + ): Promise<PostOrderErpJobsAddResponseSuccess> { | ||
2388 | + return requester(request.url, { | ||
2389 | + method: request.method, | ||
2390 | + ...option, | ||
2391 | + }) as unknown as Promise<PostOrderErpJobsAddResponseSuccess>; | ||
2392 | + } | ||
2393 | + | ||
2394 | + /** http method */ | ||
2395 | + request.method = method; | ||
2396 | + /** request url */ | ||
2397 | + request.url = url; | ||
2398 | + return request; | ||
2399 | +})(); | ||
2400 | + | ||
2401 | +/** @description request parameter type for postOrderErpJobsDelete */ | ||
2402 | +export interface PostOrderErpJobsDeleteOption { | ||
2403 | + /** | ||
2404 | + * @description | ||
2405 | + * queryVO | ||
2406 | + */ | ||
2407 | + body: { | ||
2408 | + /** | ||
2409 | + @description | ||
2410 | + queryVO */ | ||
2411 | + queryVO: AdminJobQueryVO; | ||
2412 | + }; | ||
2413 | +} | ||
2414 | + | ||
2415 | +/** @description response type for postOrderErpJobsDelete */ | ||
2416 | +export interface PostOrderErpJobsDeleteResponse { | ||
2417 | + /** | ||
2418 | + * @description | ||
2419 | + * OK | ||
2420 | + */ | ||
2421 | + 200: ServerResult; | ||
2422 | + /** | ||
2423 | + * @description | ||
2424 | + * Created | ||
2425 | + */ | ||
2426 | + 201: any; | ||
2427 | + /** | ||
2428 | + * @description | ||
2429 | + * Unauthorized | ||
2430 | + */ | ||
2431 | + 401: any; | ||
2432 | + /** | ||
2433 | + * @description | ||
2434 | + * Forbidden | ||
2435 | + */ | ||
2436 | + 403: any; | ||
2437 | + /** | ||
2438 | + * @description | ||
2439 | + * Not Found | ||
2440 | + */ | ||
2441 | + 404: any; | ||
2442 | +} | ||
2443 | + | ||
2444 | +export type PostOrderErpJobsDeleteResponseSuccess = | ||
2445 | + PostOrderErpJobsDeleteResponse[200]; | ||
2446 | +/** | ||
2447 | + * @description | ||
2448 | + * 删除岗位 | ||
2449 | + * @tags 系统:岗位管理 | ||
2450 | + * @produces * | ||
2451 | + * @consumes application/json | ||
2452 | + */ | ||
2453 | +export const postOrderErpJobsDelete = /* #__PURE__ */ (() => { | ||
2454 | + const method = 'post'; | ||
2455 | + const url = '/order/erp/jobs/delete'; | ||
2456 | + function request( | ||
2457 | + option: PostOrderErpJobsDeleteOption, | ||
2458 | + ): Promise<PostOrderErpJobsDeleteResponseSuccess> { | ||
2459 | + return requester(request.url, { | ||
2460 | + method: request.method, | ||
2461 | + ...option, | ||
2462 | + }) as unknown as Promise<PostOrderErpJobsDeleteResponseSuccess>; | ||
2463 | + } | ||
2464 | + | ||
2465 | + /** http method */ | ||
2466 | + request.method = method; | ||
2467 | + /** request url */ | ||
2468 | + request.url = url; | ||
2469 | + return request; | ||
2470 | +})(); | ||
2471 | + | ||
2472 | +/** @description request parameter type for postOrderErpJobsEdit */ | ||
2473 | +export interface PostOrderErpJobsEditOption { | ||
2474 | + /** | ||
2475 | + * @description | ||
2476 | + * jobVO | ||
2477 | + */ | ||
2478 | + body: { | ||
2479 | + /** | ||
2480 | + @description | ||
2481 | + jobVO */ | ||
2482 | + jobVO: AdminJobVO; | ||
2483 | + }; | ||
2484 | +} | ||
2485 | + | ||
2486 | +/** @description response type for postOrderErpJobsEdit */ | ||
2487 | +export interface PostOrderErpJobsEditResponse { | ||
2488 | + /** | ||
2489 | + * @description | ||
2490 | + * OK | ||
2491 | + */ | ||
2492 | + 200: ServerResult; | ||
2493 | + /** | ||
2494 | + * @description | ||
2495 | + * Created | ||
2496 | + */ | ||
2497 | + 201: any; | ||
2498 | + /** | ||
2499 | + * @description | ||
2500 | + * Unauthorized | ||
2501 | + */ | ||
2502 | + 401: any; | ||
2503 | + /** | ||
2504 | + * @description | ||
2505 | + * Forbidden | ||
2506 | + */ | ||
2507 | + 403: any; | ||
2508 | + /** | ||
2509 | + * @description | ||
2510 | + * Not Found | ||
2511 | + */ | ||
2512 | + 404: any; | ||
2513 | +} | ||
2514 | + | ||
2515 | +export type PostOrderErpJobsEditResponseSuccess = | ||
2516 | + PostOrderErpJobsEditResponse[200]; | ||
2517 | +/** | ||
2518 | + * @description | ||
2519 | + * 修改岗位 | ||
2520 | + * @tags 系统:岗位管理 | ||
2521 | + * @produces * | ||
2522 | + * @consumes application/json | ||
2523 | + */ | ||
2524 | +export const postOrderErpJobsEdit = /* #__PURE__ */ (() => { | ||
2525 | + const method = 'post'; | ||
2526 | + const url = '/order/erp/jobs/edit'; | ||
2527 | + function request( | ||
2528 | + option: PostOrderErpJobsEditOption, | ||
2529 | + ): Promise<PostOrderErpJobsEditResponseSuccess> { | ||
2530 | + return requester(request.url, { | ||
2531 | + method: request.method, | ||
2532 | + ...option, | ||
2533 | + }) as unknown as Promise<PostOrderErpJobsEditResponseSuccess>; | ||
2534 | + } | ||
2535 | + | ||
2536 | + /** http method */ | ||
2537 | + request.method = method; | ||
2538 | + /** request url */ | ||
2539 | + request.url = url; | ||
2540 | + return request; | ||
2541 | +})(); | ||
2542 | + | ||
2543 | +/** @description request parameter type for postOrderErpJobsListByPage */ | ||
2544 | +export interface PostOrderErpJobsListByPageOption { | ||
2545 | + /** | ||
2546 | + * @description | ||
2547 | + * queryVO | ||
2548 | + */ | ||
2549 | + body: { | ||
2550 | + /** | ||
2551 | + @description | ||
2552 | + queryVO */ | ||
2553 | + queryVO: AdminJobQueryVO; | ||
2554 | + }; | ||
2555 | +} | ||
2556 | + | ||
2557 | +/** @description response type for postOrderErpJobsListByPage */ | ||
2558 | +export interface PostOrderErpJobsListByPageResponse { | ||
2559 | + /** | ||
2560 | + * @description | ||
2561 | + * OK | ||
2562 | + */ | ||
2563 | + 200: ServerResult; | ||
2564 | + /** | ||
2565 | + * @description | ||
2566 | + * Created | ||
2567 | + */ | ||
2568 | + 201: any; | ||
2569 | + /** | ||
2570 | + * @description | ||
2571 | + * Unauthorized | ||
2572 | + */ | ||
2573 | + 401: any; | ||
2574 | + /** | ||
2575 | + * @description | ||
2576 | + * Forbidden | ||
2577 | + */ | ||
2578 | + 403: any; | ||
2579 | + /** | ||
2580 | + * @description | ||
2581 | + * Not Found | ||
2582 | + */ | ||
2583 | + 404: any; | ||
2584 | +} | ||
2585 | + | ||
2586 | +export type PostOrderErpJobsListByPageResponseSuccess = | ||
2587 | + PostOrderErpJobsListByPageResponse[200]; | ||
2588 | +/** | ||
2589 | + * @description | ||
2590 | + * 查询岗位 | ||
2591 | + * @tags 系统:岗位管理 | ||
2592 | + * @produces * | ||
2593 | + * @consumes application/json | ||
2594 | + */ | ||
2595 | +export const postOrderErpJobsListByPage = /* #__PURE__ */ (() => { | ||
2596 | + const method = 'post'; | ||
2597 | + const url = '/order/erp/jobs/list_by_page'; | ||
2598 | + function request( | ||
2599 | + option: PostOrderErpJobsListByPageOption, | ||
2600 | + ): Promise<PostOrderErpJobsListByPageResponseSuccess> { | ||
2601 | + return requester(request.url, { | ||
2602 | + method: request.method, | ||
2603 | + ...option, | ||
2604 | + }) as unknown as Promise<PostOrderErpJobsListByPageResponseSuccess>; | ||
2605 | + } | ||
2606 | + | ||
2607 | + /** http method */ | ||
2608 | + request.method = method; | ||
2609 | + /** request url */ | ||
2610 | + request.url = url; | ||
2611 | + return request; | ||
2612 | +})(); | ||
2613 | + | ||
2614 | +/** @description request parameter type for postOrderErpLogsList */ | ||
2615 | +export interface PostOrderErpLogsListOption { | ||
2616 | + /** | ||
2617 | + * @description | ||
2618 | + * sysLogQueryVO | ||
2619 | + */ | ||
2620 | + body: { | ||
2621 | + /** | ||
2622 | + @description | ||
2623 | + sysLogQueryVO */ | ||
2624 | + sysLogQueryVO: SysLogQueryVO; | ||
2625 | + }; | ||
2626 | +} | ||
2627 | + | ||
2628 | +/** @description response type for postOrderErpLogsList */ | ||
2629 | +export interface PostOrderErpLogsListResponse { | ||
2630 | + /** | ||
2631 | + * @description | ||
2632 | + * OK | ||
2633 | + */ | ||
2634 | + 200: ServerResult; | ||
2635 | + /** | ||
2636 | + * @description | ||
2637 | + * Created | ||
2638 | + */ | ||
2639 | + 201: any; | ||
2640 | + /** | ||
2641 | + * @description | ||
2642 | + * Unauthorized | ||
2643 | + */ | ||
2644 | + 401: any; | ||
2645 | + /** | ||
2646 | + * @description | ||
2647 | + * Forbidden | ||
2648 | + */ | ||
2649 | + 403: any; | ||
2650 | + /** | ||
2651 | + * @description | ||
2652 | + * Not Found | ||
2653 | + */ | ||
2654 | + 404: any; | ||
2655 | +} | ||
2656 | + | ||
2657 | +export type PostOrderErpLogsListResponseSuccess = | ||
2658 | + PostOrderErpLogsListResponse[200]; | ||
2659 | +/** | ||
2660 | + * @description | ||
2661 | + * 分页查询 | ||
2662 | + * @tags 系统日志 | ||
2663 | + * @produces * | ||
2664 | + * @consumes application/json | ||
2665 | + */ | ||
2666 | +export const postOrderErpLogsList = /* #__PURE__ */ (() => { | ||
2667 | + const method = 'post'; | ||
2668 | + const url = '/order/erp/logs/list'; | ||
2669 | + function request( | ||
2670 | + option: PostOrderErpLogsListOption, | ||
2671 | + ): Promise<PostOrderErpLogsListResponseSuccess> { | ||
2672 | + return requester(request.url, { | ||
2673 | + method: request.method, | ||
2674 | + ...option, | ||
2675 | + }) as unknown as Promise<PostOrderErpLogsListResponseSuccess>; | ||
2676 | + } | ||
2677 | + | ||
2678 | + /** http method */ | ||
2679 | + request.method = method; | ||
2680 | + /** request url */ | ||
2681 | + request.url = url; | ||
2682 | + return request; | ||
2683 | +})(); | ||
2684 | + | ||
2685 | +/** @description request parameter type for postOrderErpMenusAdd */ | ||
2686 | +export interface PostOrderErpMenusAddOption { | ||
2687 | + /** | ||
2688 | + * @description | ||
2689 | + * menuVO | ||
2690 | + */ | ||
2691 | + body: { | ||
2692 | + /** | ||
2693 | + @description | ||
2694 | + menuVO */ | ||
2695 | + menuVO: AdminMenuVO; | ||
2696 | + }; | ||
2697 | +} | ||
2698 | + | ||
2699 | +/** @description response type for postOrderErpMenusAdd */ | ||
2700 | +export interface PostOrderErpMenusAddResponse { | ||
2701 | + /** | ||
2702 | + * @description | ||
2703 | + * OK | ||
2704 | + */ | ||
2705 | + 200: ServerResult; | ||
2706 | + /** | ||
2707 | + * @description | ||
2708 | + * Created | ||
2709 | + */ | ||
2710 | + 201: any; | ||
2711 | + /** | ||
2712 | + * @description | ||
2713 | + * Unauthorized | ||
2714 | + */ | ||
2715 | + 401: any; | ||
2716 | + /** | ||
2717 | + * @description | ||
2718 | + * Forbidden | ||
2719 | + */ | ||
2720 | + 403: any; | ||
2721 | + /** | ||
2722 | + * @description | ||
2723 | + * Not Found | ||
2724 | + */ | ||
2725 | + 404: any; | ||
2726 | +} | ||
2727 | + | ||
2728 | +export type PostOrderErpMenusAddResponseSuccess = | ||
2729 | + PostOrderErpMenusAddResponse[200]; | ||
2730 | +/** | ||
2731 | + * @description | ||
2732 | + * 新增菜单 | ||
2733 | + * @tags 系统:菜单管理 | ||
2734 | + * @produces * | ||
2735 | + * @consumes application/json | ||
2736 | + */ | ||
2737 | +export const postOrderErpMenusAdd = /* #__PURE__ */ (() => { | ||
2738 | + const method = 'post'; | ||
2739 | + const url = '/order/erp/menus/add'; | ||
2740 | + function request( | ||
2741 | + option: PostOrderErpMenusAddOption, | ||
2742 | + ): Promise<PostOrderErpMenusAddResponseSuccess> { | ||
2743 | + return requester(request.url, { | ||
2744 | + method: request.method, | ||
2745 | + ...option, | ||
2746 | + }) as unknown as Promise<PostOrderErpMenusAddResponseSuccess>; | ||
2747 | + } | ||
2748 | + | ||
2749 | + /** http method */ | ||
2750 | + request.method = method; | ||
2751 | + /** request url */ | ||
2752 | + request.url = url; | ||
2753 | + return request; | ||
2754 | +})(); | ||
2755 | + | ||
2756 | +/** @description request parameter type for postOrderErpMenusAll */ | ||
2757 | +export interface PostOrderErpMenusAllOption { | ||
2758 | + /** | ||
2759 | + * @description | ||
2760 | + * queryVO | ||
2761 | + */ | ||
2762 | + body: { | ||
2763 | + /** | ||
2764 | + @description | ||
2765 | + queryVO */ | ||
2766 | + queryVO: AdminMenuQueryVO; | ||
2767 | + }; | ||
2768 | +} | ||
2769 | + | ||
2770 | +/** @description response type for postOrderErpMenusAll */ | ||
2771 | +export interface PostOrderErpMenusAllResponse { | ||
2772 | + /** | ||
2773 | + * @description | ||
2774 | + * OK | ||
2775 | + */ | ||
2776 | + 200: ServerResult; | ||
2777 | + /** | ||
2778 | + * @description | ||
2779 | + * Created | ||
2780 | + */ | ||
2781 | + 201: any; | ||
2782 | + /** | ||
2783 | + * @description | ||
2784 | + * Unauthorized | ||
2785 | + */ | ||
2786 | + 401: any; | ||
2787 | + /** | ||
2788 | + * @description | ||
2789 | + * Forbidden | ||
2790 | + */ | ||
2791 | + 403: any; | ||
2792 | + /** | ||
2793 | + * @description | ||
2794 | + * Not Found | ||
2795 | + */ | ||
2796 | + 404: any; | ||
2797 | +} | ||
2798 | + | ||
2799 | +export type PostOrderErpMenusAllResponseSuccess = | ||
2800 | + PostOrderErpMenusAllResponse[200]; | ||
2801 | +/** | ||
2802 | + * @description | ||
2803 | + * 查询菜单 | ||
2804 | + * @tags 系统:菜单管理 | ||
2805 | + * @produces * | ||
2806 | + * @consumes application/json | ||
2807 | + */ | ||
2808 | +export const postOrderErpMenusAll = /* #__PURE__ */ (() => { | ||
2809 | + const method = 'post'; | ||
2810 | + const url = '/order/erp/menus/all'; | ||
2811 | + function request( | ||
2812 | + option: PostOrderErpMenusAllOption, | ||
2813 | + ): Promise<PostOrderErpMenusAllResponseSuccess> { | ||
2814 | + return requester(request.url, { | ||
2815 | + method: request.method, | ||
2816 | + ...option, | ||
2817 | + }) as unknown as Promise<PostOrderErpMenusAllResponseSuccess>; | ||
2818 | + } | ||
2819 | + | ||
2820 | + /** http method */ | ||
2821 | + request.method = method; | ||
2822 | + /** request url */ | ||
2823 | + request.url = url; | ||
2824 | + return request; | ||
2825 | +})(); | ||
2826 | + | ||
2827 | +/** @description response type for postOrderErpMenusBuild */ | ||
2828 | +export interface PostOrderErpMenusBuildResponse { | ||
2829 | + /** | ||
2830 | + * @description | ||
2831 | + * OK | ||
2832 | + */ | ||
2833 | + 200: ServerResult; | ||
2834 | + /** | ||
2835 | + * @description | ||
2836 | + * Created | ||
2837 | + */ | ||
2838 | + 201: any; | ||
2839 | + /** | ||
2840 | + * @description | ||
2841 | + * Unauthorized | ||
2842 | + */ | ||
2843 | + 401: any; | ||
2844 | + /** | ||
2845 | + * @description | ||
2846 | + * Forbidden | ||
2847 | + */ | ||
2848 | + 403: any; | ||
2849 | + /** | ||
2850 | + * @description | ||
2851 | + * Not Found | ||
2852 | + */ | ||
2853 | + 404: any; | ||
2854 | +} | ||
2855 | + | ||
2856 | +export type PostOrderErpMenusBuildResponseSuccess = | ||
2857 | + PostOrderErpMenusBuildResponse[200]; | ||
2858 | +/** | ||
2859 | + * @description | ||
2860 | + * 获取前端所需菜单 | ||
2861 | + * @tags 系统:菜单管理 | ||
2862 | + * @produces * | ||
2863 | + * @consumes application/json | ||
2864 | + */ | ||
2865 | +export const postOrderErpMenusBuild = /* #__PURE__ */ (() => { | ||
2866 | + const method = 'post'; | ||
2867 | + const url = '/order/erp/menus/build'; | ||
2868 | + function request(): Promise<PostOrderErpMenusBuildResponseSuccess> { | ||
2869 | + return requester(request.url, { | ||
2870 | + method: request.method, | ||
2871 | + }) as unknown as Promise<PostOrderErpMenusBuildResponseSuccess>; | ||
2872 | + } | ||
2873 | + | ||
2874 | + /** http method */ | ||
2875 | + request.method = method; | ||
2876 | + /** request url */ | ||
2877 | + request.url = url; | ||
2878 | + return request; | ||
2879 | +})(); | ||
2880 | + | ||
2881 | +/** @description request parameter type for postOrderErpMenusDelete */ | ||
2882 | +export interface PostOrderErpMenusDeleteOption { | ||
2883 | + /** | ||
2884 | + * @description | ||
2885 | + * queryVO | ||
2886 | + */ | ||
2887 | + body: { | ||
2888 | + /** | ||
2889 | + @description | ||
2890 | + queryVO */ | ||
2891 | + queryVO: AdminMenuQueryVO; | ||
2892 | + }; | ||
2893 | +} | ||
2894 | + | ||
2895 | +/** @description response type for postOrderErpMenusDelete */ | ||
2896 | +export interface PostOrderErpMenusDeleteResponse { | ||
2897 | + /** | ||
2898 | + * @description | ||
2899 | + * OK | ||
2900 | + */ | ||
2901 | + 200: ServerResult; | ||
2902 | + /** | ||
2903 | + * @description | ||
2904 | + * Created | ||
2905 | + */ | ||
2906 | + 201: any; | ||
2907 | + /** | ||
2908 | + * @description | ||
2909 | + * Unauthorized | ||
2910 | + */ | ||
2911 | + 401: any; | ||
2912 | + /** | ||
2913 | + * @description | ||
2914 | + * Forbidden | ||
2915 | + */ | ||
2916 | + 403: any; | ||
2917 | + /** | ||
2918 | + * @description | ||
2919 | + * Not Found | ||
2920 | + */ | ||
2921 | + 404: any; | ||
2922 | +} | ||
2923 | + | ||
2924 | +export type PostOrderErpMenusDeleteResponseSuccess = | ||
2925 | + PostOrderErpMenusDeleteResponse[200]; | ||
2926 | +/** | ||
2927 | + * @description | ||
2928 | + * 删除菜单 | ||
2929 | + * @tags 系统:菜单管理 | ||
2930 | + * @produces * | ||
2931 | + * @consumes application/json | ||
2932 | + */ | ||
2933 | +export const postOrderErpMenusDelete = /* #__PURE__ */ (() => { | ||
2934 | + const method = 'post'; | ||
2935 | + const url = '/order/erp/menus/delete'; | ||
2936 | + function request( | ||
2937 | + option: PostOrderErpMenusDeleteOption, | ||
2938 | + ): Promise<PostOrderErpMenusDeleteResponseSuccess> { | ||
2939 | + return requester(request.url, { | ||
2940 | + method: request.method, | ||
2941 | + ...option, | ||
2942 | + }) as unknown as Promise<PostOrderErpMenusDeleteResponseSuccess>; | ||
2943 | + } | ||
2944 | + | ||
2945 | + /** http method */ | ||
2946 | + request.method = method; | ||
2947 | + /** request url */ | ||
2948 | + request.url = url; | ||
2949 | + return request; | ||
2950 | +})(); | ||
2951 | + | ||
2952 | +/** @description request parameter type for postOrderErpMenusEdit */ | ||
2953 | +export interface PostOrderErpMenusEditOption { | ||
2954 | + /** | ||
2955 | + * @description | ||
2956 | + * menuVO | ||
2957 | + */ | ||
2958 | + body: { | ||
2959 | + /** | ||
2960 | + @description | ||
2961 | + menuVO */ | ||
2962 | + menuVO: AdminMenuVO; | ||
2963 | + }; | ||
2964 | +} | ||
2965 | + | ||
2966 | +/** @description response type for postOrderErpMenusEdit */ | ||
2967 | +export interface PostOrderErpMenusEditResponse { | ||
2968 | + /** | ||
2969 | + * @description | ||
2970 | + * OK | ||
2971 | + */ | ||
2972 | + 200: ServerResult; | ||
2973 | + /** | ||
2974 | + * @description | ||
2975 | + * Created | ||
2976 | + */ | ||
2977 | + 201: any; | ||
2978 | + /** | ||
2979 | + * @description | ||
2980 | + * Unauthorized | ||
2981 | + */ | ||
2982 | + 401: any; | ||
2983 | + /** | ||
2984 | + * @description | ||
2985 | + * Forbidden | ||
2986 | + */ | ||
2987 | + 403: any; | ||
2988 | + /** | ||
2989 | + * @description | ||
2990 | + * Not Found | ||
2991 | + */ | ||
2992 | + 404: any; | ||
2993 | +} | ||
2994 | + | ||
2995 | +export type PostOrderErpMenusEditResponseSuccess = | ||
2996 | + PostOrderErpMenusEditResponse[200]; | ||
2997 | +/** | ||
2998 | + * @description | ||
2999 | + * 修改菜单 | ||
3000 | + * @tags 系统:菜单管理 | ||
3001 | + * @produces * | ||
3002 | + * @consumes application/json | ||
3003 | + */ | ||
3004 | +export const postOrderErpMenusEdit = /* #__PURE__ */ (() => { | ||
3005 | + const method = 'post'; | ||
3006 | + const url = '/order/erp/menus/edit'; | ||
3007 | + function request( | ||
3008 | + option: PostOrderErpMenusEditOption, | ||
3009 | + ): Promise<PostOrderErpMenusEditResponseSuccess> { | ||
3010 | + return requester(request.url, { | ||
3011 | + method: request.method, | ||
3012 | + ...option, | ||
3013 | + }) as unknown as Promise<PostOrderErpMenusEditResponseSuccess>; | ||
3014 | + } | ||
3015 | + | ||
3016 | + /** http method */ | ||
3017 | + request.method = method; | ||
3018 | + /** request url */ | ||
3019 | + request.url = url; | ||
3020 | + return request; | ||
3021 | +})(); | ||
3022 | + | ||
3023 | +/** @description response type for postOrderErpMenusTree */ | ||
3024 | +export interface PostOrderErpMenusTreeResponse { | ||
3025 | + /** | ||
3026 | + * @description | ||
3027 | + * OK | ||
3028 | + */ | ||
3029 | + 200: ServerResult; | ||
3030 | + /** | ||
3031 | + * @description | ||
3032 | + * Created | ||
3033 | + */ | ||
3034 | + 201: any; | ||
3035 | + /** | ||
3036 | + * @description | ||
3037 | + * Unauthorized | ||
3038 | + */ | ||
3039 | + 401: any; | ||
3040 | + /** | ||
3041 | + * @description | ||
3042 | + * Forbidden | ||
3043 | + */ | ||
3044 | + 403: any; | ||
3045 | + /** | ||
3046 | + * @description | ||
3047 | + * Not Found | ||
3048 | + */ | ||
3049 | + 404: any; | ||
3050 | +} | ||
3051 | + | ||
3052 | +export type PostOrderErpMenusTreeResponseSuccess = | ||
3053 | + PostOrderErpMenusTreeResponse[200]; | ||
3054 | +/** | ||
3055 | + * @description | ||
3056 | + * 返回全部的菜单 | ||
3057 | + * @tags 系统:菜单管理 | ||
3058 | + * @produces * | ||
3059 | + * @consumes application/json | ||
3060 | + */ | ||
3061 | +export const postOrderErpMenusTree = /* #__PURE__ */ (() => { | ||
3062 | + const method = 'post'; | ||
3063 | + const url = '/order/erp/menus/tree'; | ||
3064 | + function request(): Promise<PostOrderErpMenusTreeResponseSuccess> { | ||
3065 | + return requester(request.url, { | ||
3066 | + method: request.method, | ||
3067 | + }) as unknown as Promise<PostOrderErpMenusTreeResponseSuccess>; | ||
3068 | + } | ||
3069 | + | ||
3070 | + /** http method */ | ||
3071 | + request.method = method; | ||
3072 | + /** request url */ | ||
3073 | + request.url = url; | ||
3074 | + return request; | ||
3075 | +})(); | ||
3076 | + | ||
3077 | +/** @description request parameter type for postOrderErpOptLogListByPage */ | ||
3078 | +export interface PostOrderErpOptLogListByPageOption { | ||
3079 | + /** | ||
3080 | + * @description | ||
3081 | + * queryVO | ||
3082 | + */ | ||
3083 | + body: { | ||
3084 | + /** | ||
3085 | + @description | ||
3086 | + queryVO */ | ||
3087 | + queryVO: OrderOptLogQueryVO; | ||
3088 | + }; | ||
3089 | +} | ||
3090 | + | ||
3091 | +/** @description response type for postOrderErpOptLogListByPage */ | ||
3092 | +export interface PostOrderErpOptLogListByPageResponse { | ||
3093 | + /** | ||
3094 | + * @description | ||
3095 | + * OK | ||
3096 | + */ | ||
3097 | + 200: ServerResult; | ||
3098 | + /** | ||
3099 | + * @description | ||
3100 | + * Created | ||
3101 | + */ | ||
3102 | + 201: any; | ||
3103 | + /** | ||
3104 | + * @description | ||
3105 | + * Unauthorized | ||
3106 | + */ | ||
3107 | + 401: any; | ||
3108 | + /** | ||
3109 | + * @description | ||
3110 | + * Forbidden | ||
3111 | + */ | ||
3112 | + 403: any; | ||
3113 | + /** | ||
3114 | + * @description | ||
3115 | + * Not Found | ||
3116 | + */ | ||
3117 | + 404: any; | ||
3118 | +} | ||
3119 | + | ||
3120 | +export type PostOrderErpOptLogListByPageResponseSuccess = | ||
3121 | + PostOrderErpOptLogListByPageResponse[200]; | ||
3122 | +/** | ||
3123 | + * @description | ||
3124 | + * 分页查询 | ||
3125 | + * @tags 订单操作日志 | ||
3126 | + * @produces * | ||
3127 | + * @consumes application/json | ||
3128 | + */ | ||
3129 | +export const postOrderErpOptLogListByPage = /* #__PURE__ */ (() => { | ||
3130 | + const method = 'post'; | ||
3131 | + const url = '/order/erp/opt/log/list_by_page'; | ||
3132 | + function request( | ||
3133 | + option: PostOrderErpOptLogListByPageOption, | ||
3134 | + ): Promise<PostOrderErpOptLogListByPageResponseSuccess> { | ||
3135 | + return requester(request.url, { | ||
3136 | + method: request.method, | ||
3137 | + ...option, | ||
3138 | + }) as unknown as Promise<PostOrderErpOptLogListByPageResponseSuccess>; | ||
3139 | + } | ||
3140 | + | ||
3141 | + /** http method */ | ||
3142 | + request.method = method; | ||
3143 | + /** request url */ | ||
3144 | + request.url = url; | ||
3145 | + return request; | ||
3146 | +})(); | ||
3147 | + | ||
3148 | +/** @description request parameter type for postOrderErpOrderAdd */ | ||
3149 | +export interface PostOrderErpOrderAddOption { | ||
3150 | + /** | ||
3151 | + * @description | ||
3152 | + * orderAddVO | ||
3153 | + */ | ||
3154 | + body: { | ||
3155 | + /** | ||
3156 | + @description | ||
3157 | + orderAddVO */ | ||
3158 | + orderAddVO: OrderAddVO; | ||
3159 | + }; | ||
3160 | +} | ||
3161 | + | ||
3162 | +/** @description response type for postOrderErpOrderAdd */ | ||
3163 | +export interface PostOrderErpOrderAddResponse { | ||
3164 | + /** | ||
3165 | + * @description | ||
3166 | + * OK | ||
3167 | + */ | ||
3168 | + 200: ServerResult; | ||
3169 | + /** | ||
3170 | + * @description | ||
3171 | + * Created | ||
3172 | + */ | ||
3173 | + 201: any; | ||
3174 | + /** | ||
3175 | + * @description | ||
3176 | + * Unauthorized | ||
3177 | + */ | ||
3178 | + 401: any; | ||
3179 | + /** | ||
3180 | + * @description | ||
3181 | + * Forbidden | ||
3182 | + */ | ||
3183 | + 403: any; | ||
3184 | + /** | ||
3185 | + * @description | ||
3186 | + * Not Found | ||
3187 | + */ | ||
3188 | + 404: any; | ||
3189 | +} | ||
3190 | + | ||
3191 | +export type PostOrderErpOrderAddResponseSuccess = | ||
3192 | + PostOrderErpOrderAddResponse[200]; | ||
3193 | +/** | ||
3194 | + * @description | ||
3195 | + * 新增数据 | ||
3196 | + * @tags 订单管理 | ||
3197 | + * @produces * | ||
3198 | + * @consumes application/json | ||
3199 | + */ | ||
3200 | +export const postOrderErpOrderAdd = /* #__PURE__ */ (() => { | ||
3201 | + const method = 'post'; | ||
3202 | + const url = '/order/erp/order/add'; | ||
3203 | + function request( | ||
3204 | + option: PostOrderErpOrderAddOption, | ||
3205 | + ): Promise<PostOrderErpOrderAddResponseSuccess> { | ||
3206 | + return requester(request.url, { | ||
3207 | + method: request.method, | ||
3208 | + ...option, | ||
3209 | + }) as unknown as Promise<PostOrderErpOrderAddResponseSuccess>; | ||
3210 | + } | ||
3211 | + | ||
3212 | + /** http method */ | ||
3213 | + request.method = method; | ||
3214 | + /** request url */ | ||
3215 | + request.url = url; | ||
3216 | + return request; | ||
3217 | +})(); | ||
3218 | + | ||
3219 | +/** @description request parameter type for postOrderErpOrderDeleteById */ | ||
3220 | +export interface PostOrderErpOrderDeleteByIdOption { | ||
3221 | + /** | ||
3222 | + * @description | ||
3223 | + * orderBaseInfoQueryVO | ||
3224 | + */ | ||
3225 | + body: { | ||
3226 | + /** | ||
3227 | + @description | ||
3228 | + orderBaseInfoQueryVO */ | ||
3229 | + orderBaseInfoQueryVO: OrderBaseInfoQueryVO; | ||
3230 | + }; | ||
3231 | +} | ||
3232 | + | ||
3233 | +/** @description response type for postOrderErpOrderDeleteById */ | ||
3234 | +export interface PostOrderErpOrderDeleteByIdResponse { | ||
3235 | + /** | ||
3236 | + * @description | ||
3237 | + * OK | ||
3238 | + */ | ||
3239 | + 200: ServerResult; | ||
3240 | + /** | ||
3241 | + * @description | ||
3242 | + * Created | ||
3243 | + */ | ||
3244 | + 201: any; | ||
3245 | + /** | ||
3246 | + * @description | ||
3247 | + * Unauthorized | ||
3248 | + */ | ||
3249 | + 401: any; | ||
3250 | + /** | ||
3251 | + * @description | ||
3252 | + * Forbidden | ||
3253 | + */ | ||
3254 | + 403: any; | ||
3255 | + /** | ||
3256 | + * @description | ||
3257 | + * Not Found | ||
3258 | + */ | ||
3259 | + 404: any; | ||
3260 | +} | ||
3261 | + | ||
3262 | +export type PostOrderErpOrderDeleteByIdResponseSuccess = | ||
3263 | + PostOrderErpOrderDeleteByIdResponse[200]; | ||
3264 | +/** | ||
3265 | + * @description | ||
3266 | + * 删除数据 | ||
3267 | + * @tags 订单管理 | ||
3268 | + * @produces * | ||
3269 | + * @consumes application/json | ||
3270 | + */ | ||
3271 | +export const postOrderErpOrderDeleteById = /* #__PURE__ */ (() => { | ||
3272 | + const method = 'post'; | ||
3273 | + const url = '/order/erp/order/delete_by_id'; | ||
3274 | + function request( | ||
3275 | + option: PostOrderErpOrderDeleteByIdOption, | ||
3276 | + ): Promise<PostOrderErpOrderDeleteByIdResponseSuccess> { | ||
3277 | + return requester(request.url, { | ||
3278 | + method: request.method, | ||
3279 | + ...option, | ||
3280 | + }) as unknown as Promise<PostOrderErpOrderDeleteByIdResponseSuccess>; | ||
3281 | + } | ||
3282 | + | ||
3283 | + /** http method */ | ||
3284 | + request.method = method; | ||
3285 | + /** request url */ | ||
3286 | + request.url = url; | ||
3287 | + return request; | ||
3288 | +})(); | ||
3289 | + | ||
3290 | +/** @description request parameter type for postOrderErpOrderEdit */ | ||
3291 | +export interface PostOrderErpOrderEditOption { | ||
3292 | + /** | ||
3293 | + * @description | ||
3294 | + * updateVO | ||
3295 | + */ | ||
3296 | + body: { | ||
3297 | + /** | ||
3298 | + @description | ||
3299 | + updateVO */ | ||
3300 | + updateVO: OrderUpdateVO; | ||
3301 | + }; | ||
3302 | +} | ||
3303 | + | ||
3304 | +/** @description response type for postOrderErpOrderEdit */ | ||
3305 | +export interface PostOrderErpOrderEditResponse { | ||
3306 | + /** | ||
3307 | + * @description | ||
3308 | + * OK | ||
3309 | + */ | ||
3310 | + 200: ServerResult; | ||
3311 | + /** | ||
3312 | + * @description | ||
3313 | + * Created | ||
3314 | + */ | ||
3315 | + 201: any; | ||
3316 | + /** | ||
3317 | + * @description | ||
3318 | + * Unauthorized | ||
3319 | + */ | ||
3320 | + 401: any; | ||
3321 | + /** | ||
3322 | + * @description | ||
3323 | + * Forbidden | ||
3324 | + */ | ||
3325 | + 403: any; | ||
3326 | + /** | ||
3327 | + * @description | ||
3328 | + * Not Found | ||
3329 | + */ | ||
3330 | + 404: any; | ||
3331 | +} | ||
3332 | + | ||
3333 | +export type PostOrderErpOrderEditResponseSuccess = | ||
3334 | + PostOrderErpOrderEditResponse[200]; | ||
3335 | +/** | ||
3336 | + * @description | ||
3337 | + * 编辑数据 | ||
3338 | + * @tags 订单管理 | ||
3339 | + * @produces * | ||
3340 | + * @consumes application/json | ||
3341 | + */ | ||
3342 | +export const postOrderErpOrderEdit = /* #__PURE__ */ (() => { | ||
3343 | + const method = 'post'; | ||
3344 | + const url = '/order/erp/order/edit'; | ||
3345 | + function request( | ||
3346 | + option: PostOrderErpOrderEditOption, | ||
3347 | + ): Promise<PostOrderErpOrderEditResponseSuccess> { | ||
3348 | + return requester(request.url, { | ||
3349 | + method: request.method, | ||
3350 | + ...option, | ||
3351 | + }) as unknown as Promise<PostOrderErpOrderEditResponseSuccess>; | ||
3352 | + } | ||
3353 | + | ||
3354 | + /** http method */ | ||
3355 | + request.method = method; | ||
3356 | + /** request url */ | ||
3357 | + request.url = url; | ||
3358 | + return request; | ||
3359 | +})(); | ||
3360 | + | ||
3361 | +/** @description request parameter type for postOrderErpOrderExport */ | ||
3362 | +export interface PostOrderErpOrderExportOption { | ||
3363 | + /** | ||
3364 | + * @description | ||
3365 | + * orderBaseInfoQueryVO | ||
3366 | + */ | ||
3367 | + body: { | ||
3368 | + /** | ||
3369 | + @description | ||
3370 | + orderBaseInfoQueryVO */ | ||
3371 | + orderBaseInfoQueryVO: OrderBaseInfoQueryVO; | ||
3372 | + }; | ||
3373 | +} | ||
3374 | + | ||
3375 | +/** @description response type for postOrderErpOrderExport */ | ||
3376 | +export interface PostOrderErpOrderExportResponse { | ||
3377 | + /** | ||
3378 | + * @description | ||
3379 | + * OK | ||
3380 | + */ | ||
3381 | + 200: ServerResult; | ||
3382 | + /** | ||
3383 | + * @description | ||
3384 | + * Created | ||
3385 | + */ | ||
3386 | + 201: any; | ||
3387 | + /** | ||
3388 | + * @description | ||
3389 | + * Unauthorized | ||
3390 | + */ | ||
3391 | + 401: any; | ||
3392 | + /** | ||
3393 | + * @description | ||
3394 | + * Forbidden | ||
3395 | + */ | ||
3396 | + 403: any; | ||
3397 | + /** | ||
3398 | + * @description | ||
3399 | + * Not Found | ||
3400 | + */ | ||
3401 | + 404: any; | ||
3402 | +} | ||
3403 | + | ||
3404 | +export type PostOrderErpOrderExportResponseSuccess = | ||
3405 | + PostOrderErpOrderExportResponse[200]; | ||
3406 | +/** | ||
3407 | + * @description | ||
3408 | + * 导出订单 | ||
3409 | + * @tags 订单管理 | ||
3410 | + * @produces * | ||
3411 | + * @consumes application/json | ||
3412 | + */ | ||
3413 | +export const postOrderErpOrderExport = /* #__PURE__ */ (() => { | ||
3414 | + const method = 'post'; | ||
3415 | + const url = '/order/erp/order/export'; | ||
3416 | + function request( | ||
3417 | + option: PostOrderErpOrderExportOption, | ||
3418 | + ): Promise<PostOrderErpOrderExportResponseSuccess> { | ||
3419 | + return requester(request.url, { | ||
3420 | + method: request.method, | ||
3421 | + ...option, | ||
3422 | + }) as unknown as Promise<PostOrderErpOrderExportResponseSuccess>; | ||
3423 | + } | ||
3424 | + | ||
3425 | + /** http method */ | ||
3426 | + request.method = method; | ||
3427 | + /** request url */ | ||
3428 | + request.url = url; | ||
3429 | + return request; | ||
3430 | +})(); | ||
3431 | + | ||
3432 | +/** @description request parameter type for postOrderErpOrderFieldUnlockApply */ | ||
3433 | +export interface PostOrderErpOrderFieldUnlockApplyOption { | ||
3434 | + /** | ||
3435 | + * @description | ||
3436 | + * fieldVO | ||
3437 | + */ | ||
3438 | + body: { | ||
3439 | + /** | ||
3440 | + @description | ||
3441 | + fieldVO */ | ||
3442 | + fieldVO: OrderUnlockFieldApplyVO; | ||
3443 | + }; | ||
3444 | +} | ||
3445 | + | ||
3446 | +/** @description response type for postOrderErpOrderFieldUnlockApply */ | ||
3447 | +export interface PostOrderErpOrderFieldUnlockApplyResponse { | ||
3448 | + /** | ||
3449 | + * @description | ||
3450 | + * OK | ||
3451 | + */ | ||
3452 | + 200: ServerResult; | ||
3453 | + /** | ||
3454 | + * @description | ||
3455 | + * Created | ||
3456 | + */ | ||
3457 | + 201: any; | ||
3458 | + /** | ||
3459 | + * @description | ||
3460 | + * Unauthorized | ||
3461 | + */ | ||
3462 | + 401: any; | ||
3463 | + /** | ||
3464 | + * @description | ||
3465 | + * Forbidden | ||
3466 | + */ | ||
3467 | + 403: any; | ||
3468 | + /** | ||
3469 | + * @description | ||
3470 | + * Not Found | ||
3471 | + */ | ||
3472 | + 404: any; | ||
3473 | +} | ||
3474 | + | ||
3475 | +export type PostOrderErpOrderFieldUnlockApplyResponseSuccess = | ||
3476 | + PostOrderErpOrderFieldUnlockApplyResponse[200]; | ||
3477 | +/** | ||
3478 | + * @description | ||
3479 | + * 字段解锁申请 | ||
3480 | + * @tags 订单管理 | ||
3481 | + * @produces * | ||
3482 | + * @consumes application/json | ||
3483 | + */ | ||
3484 | +export const postOrderErpOrderFieldUnlockApply = /* #__PURE__ */ (() => { | ||
3485 | + const method = 'post'; | ||
3486 | + const url = '/order/erp/order/field_unlock_apply'; | ||
3487 | + function request( | ||
3488 | + option: PostOrderErpOrderFieldUnlockApplyOption, | ||
3489 | + ): Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess> { | ||
3490 | + return requester(request.url, { | ||
3491 | + method: request.method, | ||
3492 | + ...option, | ||
3493 | + }) as unknown as Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess>; | ||
3494 | + } | ||
3495 | + | ||
3496 | + /** http method */ | ||
3497 | + request.method = method; | ||
3498 | + /** request url */ | ||
3499 | + request.url = url; | ||
3500 | + return request; | ||
3501 | +})(); | ||
3502 | + | ||
3503 | +/** @description request parameter type for postOrderErpOrderListByPage */ | ||
3504 | +export interface PostOrderErpOrderListByPageOption { | ||
3505 | + /** | ||
3506 | + * @description | ||
3507 | + * orderBaseInfoQueryVO | ||
3508 | + */ | ||
3509 | + body: { | ||
3510 | + /** | ||
3511 | + @description | ||
3512 | + orderBaseInfoQueryVO */ | ||
3513 | + orderBaseInfoQueryVO: OrderBaseInfoQueryVO; | ||
3514 | + }; | ||
3515 | +} | ||
3516 | + | ||
3517 | +/** @description response type for postOrderErpOrderListByPage */ | ||
3518 | +export interface PostOrderErpOrderListByPageResponse { | ||
3519 | + /** | ||
3520 | + * @description | ||
3521 | + * OK | ||
3522 | + */ | ||
3523 | + 200: ServerResult; | ||
3524 | + /** | ||
3525 | + * @description | ||
3526 | + * Created | ||
3527 | + */ | ||
3528 | + 201: any; | ||
3529 | + /** | ||
3530 | + * @description | ||
3531 | + * Unauthorized | ||
3532 | + */ | ||
3533 | + 401: any; | ||
3534 | + /** | ||
3535 | + * @description | ||
3536 | + * Forbidden | ||
3537 | + */ | ||
3538 | + 403: any; | ||
3539 | + /** | ||
3540 | + * @description | ||
3541 | + * Not Found | ||
3542 | + */ | ||
3543 | + 404: any; | ||
3544 | +} | ||
3545 | + | ||
3546 | +export type PostOrderErpOrderListByPageResponseSuccess = | ||
3547 | + PostOrderErpOrderListByPageResponse[200]; | ||
3548 | +/** | ||
3549 | + * @description | ||
3550 | + * 分页查询 | ||
3551 | + * @tags 订单管理 | ||
3552 | + * @produces * | ||
3553 | + * @consumes application/json | ||
3554 | + */ | ||
3555 | +export const postOrderErpOrderListByPage = /* #__PURE__ */ (() => { | ||
3556 | + const method = 'post'; | ||
3557 | + const url = '/order/erp/order/list_by_page'; | ||
3558 | + function request( | ||
3559 | + option: PostOrderErpOrderListByPageOption, | ||
3560 | + ): Promise<PostOrderErpOrderListByPageResponseSuccess> { | ||
3561 | + return requester(request.url, { | ||
3562 | + method: request.method, | ||
3563 | + ...option, | ||
3564 | + }) as unknown as Promise<PostOrderErpOrderListByPageResponseSuccess>; | ||
3565 | + } | ||
3566 | + | ||
3567 | + /** http method */ | ||
3568 | + request.method = method; | ||
3569 | + /** request url */ | ||
3570 | + request.url = url; | ||
3571 | + return request; | ||
3572 | +})(); | ||
3573 | + | ||
3574 | +/** @description request parameter type for postOrderErpOrderQueryById */ | ||
3575 | +export interface PostOrderErpOrderQueryByIdOption { | ||
3576 | + /** | ||
3577 | + * @description | ||
3578 | + * orderBaseInfoQueryVO | ||
3579 | + */ | ||
3580 | + body: { | ||
3581 | + /** | ||
3582 | + @description | ||
3583 | + orderBaseInfoQueryVO */ | ||
3584 | + orderBaseInfoQueryVO: OrderBaseInfoQueryVO; | ||
3585 | + }; | ||
3586 | +} | ||
3587 | + | ||
3588 | +/** @description response type for postOrderErpOrderQueryById */ | ||
3589 | +export interface PostOrderErpOrderQueryByIdResponse { | ||
3590 | + /** | ||
3591 | + * @description | ||
3592 | + * OK | ||
3593 | + */ | ||
3594 | + 200: ServerResult; | ||
3595 | + /** | ||
3596 | + * @description | ||
3597 | + * Created | ||
3598 | + */ | ||
3599 | + 201: any; | ||
3600 | + /** | ||
3601 | + * @description | ||
3602 | + * Unauthorized | ||
3603 | + */ | ||
3604 | + 401: any; | ||
3605 | + /** | ||
3606 | + * @description | ||
3607 | + * Forbidden | ||
3608 | + */ | ||
3609 | + 403: any; | ||
3610 | + /** | ||
3611 | + * @description | ||
3612 | + * Not Found | ||
3613 | + */ | ||
3614 | + 404: any; | ||
3615 | +} | ||
3616 | + | ||
3617 | +export type PostOrderErpOrderQueryByIdResponseSuccess = | ||
3618 | + PostOrderErpOrderQueryByIdResponse[200]; | ||
3619 | +/** | ||
3620 | + * @description | ||
3621 | + * queryById | ||
3622 | + * @tags 订单管理 | ||
3623 | + * @produces * | ||
3624 | + * @consumes application/json | ||
3625 | + */ | ||
3626 | +export const postOrderErpOrderQueryById = /* #__PURE__ */ (() => { | ||
3627 | + const method = 'post'; | ||
3628 | + const url = '/order/erp/order/query_by_id'; | ||
3629 | + function request( | ||
3630 | + option: PostOrderErpOrderQueryByIdOption, | ||
3631 | + ): Promise<PostOrderErpOrderQueryByIdResponseSuccess> { | ||
3632 | + return requester(request.url, { | ||
3633 | + method: request.method, | ||
3634 | + ...option, | ||
3635 | + }) as unknown as Promise<PostOrderErpOrderQueryByIdResponseSuccess>; | ||
3636 | + } | ||
3637 | + | ||
3638 | + /** http method */ | ||
3639 | + request.method = method; | ||
3640 | + /** request url */ | ||
3641 | + request.url = url; | ||
3642 | + return request; | ||
3643 | +})(); | ||
3644 | + | ||
3645 | +/** @description request parameter type for postOrderErpProfitAnalysis */ | ||
3646 | +export interface PostOrderErpProfitAnalysisOption { | ||
3647 | + /** | ||
3648 | + * @description | ||
3649 | + * orderProfitAnalysisVo | ||
3650 | + */ | ||
3651 | + body: { | ||
3652 | + /** | ||
3653 | + @description | ||
3654 | + orderProfitAnalysisVo */ | ||
3655 | + orderProfitAnalysisVo: OrderProfitAnalysisVo; | ||
3656 | + }; | ||
3657 | +} | ||
3658 | + | ||
3659 | +/** @description response type for postOrderErpProfitAnalysis */ | ||
3660 | +export interface PostOrderErpProfitAnalysisResponse { | ||
3661 | + /** | ||
3662 | + * @description | ||
3663 | + * OK | ||
3664 | + */ | ||
3665 | + 200: ServerResult; | ||
3666 | + /** | ||
3667 | + * @description | ||
3668 | + * Created | ||
3669 | + */ | ||
3670 | + 201: any; | ||
3671 | + /** | ||
3672 | + * @description | ||
3673 | + * Unauthorized | ||
3674 | + */ | ||
3675 | + 401: any; | ||
3676 | + /** | ||
3677 | + * @description | ||
3678 | + * Forbidden | ||
3679 | + */ | ||
3680 | + 403: any; | ||
3681 | + /** | ||
3682 | + * @description | ||
3683 | + * Not Found | ||
3684 | + */ | ||
3685 | + 404: any; | ||
3686 | +} | ||
3687 | + | ||
3688 | +export type PostOrderErpProfitAnalysisResponseSuccess = | ||
3689 | + PostOrderErpProfitAnalysisResponse[200]; | ||
3690 | +/** | ||
3691 | + * @description | ||
3692 | + * analysis | ||
3693 | + * @tags order-profit-controller | ||
3694 | + * @produces * | ||
3695 | + * @consumes application/json | ||
3696 | + */ | ||
3697 | +export const postOrderErpProfitAnalysis = /* #__PURE__ */ (() => { | ||
3698 | + const method = 'post'; | ||
3699 | + const url = '/order/erp/profit/analysis'; | ||
3700 | + function request( | ||
3701 | + option: PostOrderErpProfitAnalysisOption, | ||
3702 | + ): Promise<PostOrderErpProfitAnalysisResponseSuccess> { | ||
3703 | + return requester(request.url, { | ||
3704 | + method: request.method, | ||
3705 | + ...option, | ||
3706 | + }) as unknown as Promise<PostOrderErpProfitAnalysisResponseSuccess>; | ||
3707 | + } | ||
3708 | + | ||
3709 | + /** http method */ | ||
3710 | + request.method = method; | ||
3711 | + /** request url */ | ||
3712 | + request.url = url; | ||
3713 | + return request; | ||
3714 | +})(); | ||
3715 | + | ||
3716 | +/** @description request parameter type for postOrderErpRolesAdd */ | ||
3717 | +export interface PostOrderErpRolesAddOption { | ||
3718 | + /** | ||
3719 | + * @description | ||
3720 | + * roleVO | ||
3721 | + */ | ||
3722 | + body: { | ||
3723 | + /** | ||
3724 | + @description | ||
3725 | + roleVO */ | ||
3726 | + roleVO: AdminRoleVO; | ||
3727 | + }; | ||
3728 | +} | ||
3729 | + | ||
3730 | +/** @description response type for postOrderErpRolesAdd */ | ||
3731 | +export interface PostOrderErpRolesAddResponse { | ||
3732 | + /** | ||
3733 | + * @description | ||
3734 | + * OK | ||
3735 | + */ | ||
3736 | + 200: ServerResult; | ||
3737 | + /** | ||
3738 | + * @description | ||
3739 | + * Created | ||
3740 | + */ | ||
3741 | + 201: any; | ||
3742 | + /** | ||
3743 | + * @description | ||
3744 | + * Unauthorized | ||
3745 | + */ | ||
3746 | + 401: any; | ||
3747 | + /** | ||
3748 | + * @description | ||
3749 | + * Forbidden | ||
3750 | + */ | ||
3751 | + 403: any; | ||
3752 | + /** | ||
3753 | + * @description | ||
3754 | + * Not Found | ||
3755 | + */ | ||
3756 | + 404: any; | ||
3757 | +} | ||
3758 | + | ||
3759 | +export type PostOrderErpRolesAddResponseSuccess = | ||
3760 | + PostOrderErpRolesAddResponse[200]; | ||
3761 | +/** | ||
3762 | + * @description | ||
3763 | + * 新增角色 | ||
3764 | + * @tags 系统:角色管理 | ||
3765 | + * @produces * | ||
3766 | + * @consumes application/json | ||
3767 | + */ | ||
3768 | +export const postOrderErpRolesAdd = /* #__PURE__ */ (() => { | ||
3769 | + const method = 'post'; | ||
3770 | + const url = '/order/erp/roles/add'; | ||
3771 | + function request( | ||
3772 | + option: PostOrderErpRolesAddOption, | ||
3773 | + ): Promise<PostOrderErpRolesAddResponseSuccess> { | ||
3774 | + return requester(request.url, { | ||
3775 | + method: request.method, | ||
3776 | + ...option, | ||
3777 | + }) as unknown as Promise<PostOrderErpRolesAddResponseSuccess>; | ||
3778 | + } | ||
3779 | + | ||
3780 | + /** http method */ | ||
3781 | + request.method = method; | ||
3782 | + /** request url */ | ||
3783 | + request.url = url; | ||
3784 | + return request; | ||
3785 | +})(); | ||
3786 | + | ||
3787 | +/** @description request parameter type for postOrderErpRolesAll */ | ||
3788 | +export interface PostOrderErpRolesAllOption { | ||
3789 | + /** | ||
3790 | + * @description | ||
3791 | + * queryVO | ||
3792 | + */ | ||
3793 | + body: { | ||
3794 | + /** | ||
3795 | + @description | ||
3796 | + queryVO */ | ||
3797 | + queryVO: AdminRoleQueryVO; | ||
3798 | + }; | ||
3799 | +} | ||
3800 | + | ||
3801 | +/** @description response type for postOrderErpRolesAll */ | ||
3802 | +export interface PostOrderErpRolesAllResponse { | ||
3803 | + /** | ||
3804 | + * @description | ||
3805 | + * OK | ||
3806 | + */ | ||
3807 | + 200: ServerResult; | ||
3808 | + /** | ||
3809 | + * @description | ||
3810 | + * Created | ||
3811 | + */ | ||
3812 | + 201: any; | ||
3813 | + /** | ||
3814 | + * @description | ||
3815 | + * Unauthorized | ||
3816 | + */ | ||
3817 | + 401: any; | ||
3818 | + /** | ||
3819 | + * @description | ||
3820 | + * Forbidden | ||
3821 | + */ | ||
3822 | + 403: any; | ||
3823 | + /** | ||
3824 | + * @description | ||
3825 | + * Not Found | ||
3826 | + */ | ||
3827 | + 404: any; | ||
3828 | +} | ||
3829 | + | ||
3830 | +export type PostOrderErpRolesAllResponseSuccess = | ||
3831 | + PostOrderErpRolesAllResponse[200]; | ||
3832 | +/** | ||
3833 | + * @description | ||
3834 | + * 返回全部的角色 | ||
3835 | + * @tags 系统:角色管理 | ||
3836 | + * @produces * | ||
3837 | + * @consumes application/json | ||
3838 | + */ | ||
3839 | +export const postOrderErpRolesAll = /* #__PURE__ */ (() => { | ||
3840 | + const method = 'post'; | ||
3841 | + const url = '/order/erp/roles/all'; | ||
3842 | + function request( | ||
3843 | + option: PostOrderErpRolesAllOption, | ||
3844 | + ): Promise<PostOrderErpRolesAllResponseSuccess> { | ||
3845 | + return requester(request.url, { | ||
3846 | + method: request.method, | ||
3847 | + ...option, | ||
3848 | + }) as unknown as Promise<PostOrderErpRolesAllResponseSuccess>; | ||
3849 | + } | ||
3850 | + | ||
3851 | + /** http method */ | ||
3852 | + request.method = method; | ||
3853 | + /** request url */ | ||
3854 | + request.url = url; | ||
3855 | + return request; | ||
3856 | +})(); | ||
3857 | + | ||
3858 | +/** @description request parameter type for postOrderErpRolesAuthMenu */ | ||
3859 | +export interface PostOrderErpRolesAuthMenuOption { | ||
3860 | + /** | ||
3861 | + * @description | ||
3862 | + * roleVO | ||
3863 | + */ | ||
3864 | + body: { | ||
3865 | + /** | ||
3866 | + @description | ||
3867 | + roleVO */ | ||
3868 | + roleVO: AdminAuthRoleVO; | ||
3869 | + }; | ||
3870 | +} | ||
3871 | + | ||
3872 | +/** @description response type for postOrderErpRolesAuthMenu */ | ||
3873 | +export interface PostOrderErpRolesAuthMenuResponse { | ||
3874 | + /** | ||
3875 | + * @description | ||
3876 | + * OK | ||
3877 | + */ | ||
3878 | + 200: ServerResult; | ||
3879 | + /** | ||
3880 | + * @description | ||
3881 | + * Created | ||
3882 | + */ | ||
3883 | + 201: any; | ||
3884 | + /** | ||
3885 | + * @description | ||
3886 | + * Unauthorized | ||
3887 | + */ | ||
3888 | + 401: any; | ||
3889 | + /** | ||
3890 | + * @description | ||
3891 | + * Forbidden | ||
3892 | + */ | ||
3893 | + 403: any; | ||
3894 | + /** | ||
3895 | + * @description | ||
3896 | + * Not Found | ||
3897 | + */ | ||
3898 | + 404: any; | ||
3899 | +} | ||
3900 | + | ||
3901 | +export type PostOrderErpRolesAuthMenuResponseSuccess = | ||
3902 | + PostOrderErpRolesAuthMenuResponse[200]; | ||
3903 | +/** | ||
3904 | + * @description | ||
3905 | + * 授权角色菜单 | ||
3906 | + * @tags 系统:角色管理 | ||
3907 | + * @produces * | ||
3908 | + * @consumes application/json | ||
3909 | + */ | ||
3910 | +export const postOrderErpRolesAuthMenu = /* #__PURE__ */ (() => { | ||
3911 | + const method = 'post'; | ||
3912 | + const url = '/order/erp/roles/auth_menu'; | ||
3913 | + function request( | ||
3914 | + option: PostOrderErpRolesAuthMenuOption, | ||
3915 | + ): Promise<PostOrderErpRolesAuthMenuResponseSuccess> { | ||
3916 | + return requester(request.url, { | ||
3917 | + method: request.method, | ||
3918 | + ...option, | ||
3919 | + }) as unknown as Promise<PostOrderErpRolesAuthMenuResponseSuccess>; | ||
3920 | + } | ||
3921 | + | ||
3922 | + /** http method */ | ||
3923 | + request.method = method; | ||
3924 | + /** request url */ | ||
3925 | + request.url = url; | ||
3926 | + return request; | ||
3927 | +})(); | ||
3928 | + | ||
3929 | +/** @description request parameter type for postOrderErpRolesDelete */ | ||
3930 | +export interface PostOrderErpRolesDeleteOption { | ||
3931 | + /** | ||
3932 | + * @description | ||
3933 | + * queryVO | ||
3934 | + */ | ||
3935 | + body: { | ||
3936 | + /** | ||
3937 | + @description | ||
3938 | + queryVO */ | ||
3939 | + queryVO: AdminRoleQueryVO; | ||
3940 | + }; | ||
3941 | +} | ||
3942 | + | ||
3943 | +/** @description response type for postOrderErpRolesDelete */ | ||
3944 | +export interface PostOrderErpRolesDeleteResponse { | ||
3945 | + /** | ||
3946 | + * @description | ||
3947 | + * OK | ||
3948 | + */ | ||
3949 | + 200: ServerResult; | ||
3950 | + /** | ||
3951 | + * @description | ||
3952 | + * Created | ||
3953 | + */ | ||
3954 | + 201: any; | ||
3955 | + /** | ||
3956 | + * @description | ||
3957 | + * Unauthorized | ||
3958 | + */ | ||
3959 | + 401: any; | ||
3960 | + /** | ||
3961 | + * @description | ||
3962 | + * Forbidden | ||
3963 | + */ | ||
3964 | + 403: any; | ||
3965 | + /** | ||
3966 | + * @description | ||
3967 | + * Not Found | ||
3968 | + */ | ||
3969 | + 404: any; | ||
3970 | +} | ||
3971 | + | ||
3972 | +export type PostOrderErpRolesDeleteResponseSuccess = | ||
3973 | + PostOrderErpRolesDeleteResponse[200]; | ||
3974 | +/** | ||
3975 | + * @description | ||
3976 | + * 删除角色 | ||
3977 | + * @tags 系统:角色管理 | ||
3978 | + * @produces * | ||
3979 | + * @consumes application/json | ||
3980 | + */ | ||
3981 | +export const postOrderErpRolesDelete = /* #__PURE__ */ (() => { | ||
3982 | + const method = 'post'; | ||
3983 | + const url = '/order/erp/roles/delete'; | ||
3984 | + function request( | ||
3985 | + option: PostOrderErpRolesDeleteOption, | ||
3986 | + ): Promise<PostOrderErpRolesDeleteResponseSuccess> { | ||
3987 | + return requester(request.url, { | ||
3988 | + method: request.method, | ||
3989 | + ...option, | ||
3990 | + }) as unknown as Promise<PostOrderErpRolesDeleteResponseSuccess>; | ||
3991 | + } | ||
3992 | + | ||
3993 | + /** http method */ | ||
3994 | + request.method = method; | ||
3995 | + /** request url */ | ||
3996 | + request.url = url; | ||
3997 | + return request; | ||
3998 | +})(); | ||
3999 | + | ||
4000 | +/** @description request parameter type for postOrderErpRolesDetail */ | ||
4001 | +export interface PostOrderErpRolesDetailOption { | ||
4002 | + /** | ||
4003 | + * @description | ||
4004 | + * queryVO | ||
4005 | + */ | ||
4006 | + body: { | ||
4007 | + /** | ||
4008 | + @description | ||
4009 | + queryVO */ | ||
4010 | + queryVO: AdminRoleQueryVO; | ||
4011 | + }; | ||
4012 | +} | ||
4013 | + | ||
4014 | +/** @description response type for postOrderErpRolesDetail */ | ||
4015 | +export interface PostOrderErpRolesDetailResponse { | ||
4016 | + /** | ||
4017 | + * @description | ||
4018 | + * OK | ||
4019 | + */ | ||
4020 | + 200: ServerResult; | ||
4021 | + /** | ||
4022 | + * @description | ||
4023 | + * Created | ||
4024 | + */ | ||
4025 | + 201: any; | ||
4026 | + /** | ||
4027 | + * @description | ||
4028 | + * Unauthorized | ||
4029 | + */ | ||
4030 | + 401: any; | ||
4031 | + /** | ||
4032 | + * @description | ||
4033 | + * Forbidden | ||
4034 | + */ | ||
4035 | + 403: any; | ||
4036 | + /** | ||
4037 | + * @description | ||
4038 | + * Not Found | ||
4039 | + */ | ||
4040 | + 404: any; | ||
4041 | +} | ||
4042 | + | ||
4043 | +export type PostOrderErpRolesDetailResponseSuccess = | ||
4044 | + PostOrderErpRolesDetailResponse[200]; | ||
4045 | +/** | ||
4046 | + * @description | ||
4047 | + * 获取单个role | ||
4048 | + * @tags 系统:角色管理 | ||
4049 | + * @produces * | ||
4050 | + * @consumes application/json | ||
4051 | + */ | ||
4052 | +export const postOrderErpRolesDetail = /* #__PURE__ */ (() => { | ||
4053 | + const method = 'post'; | ||
4054 | + const url = '/order/erp/roles/detail'; | ||
4055 | + function request( | ||
4056 | + option: PostOrderErpRolesDetailOption, | ||
4057 | + ): Promise<PostOrderErpRolesDetailResponseSuccess> { | ||
4058 | + return requester(request.url, { | ||
4059 | + method: request.method, | ||
4060 | + ...option, | ||
4061 | + }) as unknown as Promise<PostOrderErpRolesDetailResponseSuccess>; | ||
4062 | + } | ||
4063 | + | ||
4064 | + /** http method */ | ||
4065 | + request.method = method; | ||
4066 | + /** request url */ | ||
4067 | + request.url = url; | ||
4068 | + return request; | ||
4069 | +})(); | ||
4070 | + | ||
4071 | +/** @description request parameter type for postOrderErpRolesEdit */ | ||
4072 | +export interface PostOrderErpRolesEditOption { | ||
4073 | + /** | ||
4074 | + * @description | ||
4075 | + * roleVO | ||
4076 | + */ | ||
4077 | + body: { | ||
4078 | + /** | ||
4079 | + @description | ||
4080 | + roleVO */ | ||
4081 | + roleVO: AdminRoleVO; | ||
4082 | + }; | ||
4083 | +} | ||
4084 | + | ||
4085 | +/** @description response type for postOrderErpRolesEdit */ | ||
4086 | +export interface PostOrderErpRolesEditResponse { | ||
4087 | + /** | ||
4088 | + * @description | ||
4089 | + * OK | ||
4090 | + */ | ||
4091 | + 200: ServerResult; | ||
4092 | + /** | ||
4093 | + * @description | ||
4094 | + * Created | ||
4095 | + */ | ||
4096 | + 201: any; | ||
4097 | + /** | ||
4098 | + * @description | ||
4099 | + * Unauthorized | ||
4100 | + */ | ||
4101 | + 401: any; | ||
4102 | + /** | ||
4103 | + * @description | ||
4104 | + * Forbidden | ||
4105 | + */ | ||
4106 | + 403: any; | ||
4107 | + /** | ||
4108 | + * @description | ||
4109 | + * Not Found | ||
4110 | + */ | ||
4111 | + 404: any; | ||
4112 | +} | ||
4113 | + | ||
4114 | +export type PostOrderErpRolesEditResponseSuccess = | ||
4115 | + PostOrderErpRolesEditResponse[200]; | ||
4116 | +/** | ||
4117 | + * @description | ||
4118 | + * 修改角色 | ||
4119 | + * @tags 系统:角色管理 | ||
4120 | + * @produces * | ||
4121 | + * @consumes application/json | ||
4122 | + */ | ||
4123 | +export const postOrderErpRolesEdit = /* #__PURE__ */ (() => { | ||
4124 | + const method = 'post'; | ||
4125 | + const url = '/order/erp/roles/edit'; | ||
4126 | + function request( | ||
4127 | + option: PostOrderErpRolesEditOption, | ||
4128 | + ): Promise<PostOrderErpRolesEditResponseSuccess> { | ||
4129 | + return requester(request.url, { | ||
4130 | + method: request.method, | ||
4131 | + ...option, | ||
4132 | + }) as unknown as Promise<PostOrderErpRolesEditResponseSuccess>; | ||
4133 | + } | ||
4134 | + | ||
4135 | + /** http method */ | ||
4136 | + request.method = method; | ||
4137 | + /** request url */ | ||
4138 | + request.url = url; | ||
4139 | + return request; | ||
4140 | +})(); | ||
4141 | + | ||
4142 | +/** @description request parameter type for postOrderErpRolesListByPage */ | ||
4143 | +export interface PostOrderErpRolesListByPageOption { | ||
4144 | + /** | ||
4145 | + * @description | ||
4146 | + * queryVO | ||
4147 | + */ | ||
4148 | + body: { | ||
4149 | + /** | ||
4150 | + @description | ||
4151 | + queryVO */ | ||
4152 | + queryVO: AdminRoleQueryVO; | ||
4153 | + }; | ||
4154 | +} | ||
4155 | + | ||
4156 | +/** @description response type for postOrderErpRolesListByPage */ | ||
4157 | +export interface PostOrderErpRolesListByPageResponse { | ||
4158 | + /** | ||
4159 | + * @description | ||
4160 | + * OK | ||
4161 | + */ | ||
4162 | + 200: ServerResult; | ||
4163 | + /** | ||
4164 | + * @description | ||
4165 | + * Created | ||
4166 | + */ | ||
4167 | + 201: any; | ||
4168 | + /** | ||
4169 | + * @description | ||
4170 | + * Unauthorized | ||
4171 | + */ | ||
4172 | + 401: any; | ||
4173 | + /** | ||
4174 | + * @description | ||
4175 | + * Forbidden | ||
4176 | + */ | ||
4177 | + 403: any; | ||
4178 | + /** | ||
4179 | + * @description | ||
4180 | + * Not Found | ||
4181 | + */ | ||
4182 | + 404: any; | ||
4183 | +} | ||
4184 | + | ||
4185 | +export type PostOrderErpRolesListByPageResponseSuccess = | ||
4186 | + PostOrderErpRolesListByPageResponse[200]; | ||
4187 | +/** | ||
4188 | + * @description | ||
4189 | + * 查询角色 | ||
4190 | + * @tags 系统:角色管理 | ||
4191 | + * @produces * | ||
4192 | + * @consumes application/json | ||
4193 | + */ | ||
4194 | +export const postOrderErpRolesListByPage = /* #__PURE__ */ (() => { | ||
4195 | + const method = 'post'; | ||
4196 | + const url = '/order/erp/roles/list_by_page'; | ||
4197 | + function request( | ||
4198 | + option: PostOrderErpRolesListByPageOption, | ||
4199 | + ): Promise<PostOrderErpRolesListByPageResponseSuccess> { | ||
4200 | + return requester(request.url, { | ||
4201 | + method: request.method, | ||
4202 | + ...option, | ||
4203 | + }) as unknown as Promise<PostOrderErpRolesListByPageResponseSuccess>; | ||
4204 | + } | ||
4205 | + | ||
4206 | + /** http method */ | ||
4207 | + request.method = method; | ||
4208 | + /** request url */ | ||
4209 | + request.url = url; | ||
4210 | + return request; | ||
4211 | +})(); | ||
4212 | + | ||
4213 | +/** @description request parameter type for postOrderErpUsersAdd */ | ||
4214 | +export interface PostOrderErpUsersAddOption { | ||
4215 | + /** | ||
4216 | + * @description | ||
4217 | + * userVO | ||
4218 | + */ | ||
4219 | + body: { | ||
4220 | + /** | ||
4221 | + @description | ||
4222 | + userVO */ | ||
4223 | + userVO: AdminUserVO; | ||
4224 | + }; | ||
4225 | +} | ||
4226 | + | ||
4227 | +/** @description response type for postOrderErpUsersAdd */ | ||
4228 | +export interface PostOrderErpUsersAddResponse { | ||
4229 | + /** | ||
4230 | + * @description | ||
4231 | + * OK | ||
4232 | + */ | ||
4233 | + 200: ServerResult; | ||
4234 | + /** | ||
4235 | + * @description | ||
4236 | + * Created | ||
4237 | + */ | ||
4238 | + 201: any; | ||
4239 | + /** | ||
4240 | + * @description | ||
4241 | + * Unauthorized | ||
4242 | + */ | ||
4243 | + 401: any; | ||
4244 | + /** | ||
4245 | + * @description | ||
4246 | + * Forbidden | ||
4247 | + */ | ||
4248 | + 403: any; | ||
4249 | + /** | ||
4250 | + * @description | ||
4251 | + * Not Found | ||
4252 | + */ | ||
4253 | + 404: any; | ||
4254 | +} | ||
4255 | + | ||
4256 | +export type PostOrderErpUsersAddResponseSuccess = | ||
4257 | + PostOrderErpUsersAddResponse[200]; | ||
4258 | +/** | ||
4259 | + * @description | ||
4260 | + * 新增用户 | ||
4261 | + * @tags 系统:用户管理 | ||
4262 | + * @produces * | ||
4263 | + * @consumes application/json | ||
4264 | + */ | ||
4265 | +export const postOrderErpUsersAdd = /* #__PURE__ */ (() => { | ||
4266 | + const method = 'post'; | ||
4267 | + const url = '/order/erp/users/add'; | ||
4268 | + function request( | ||
4269 | + option: PostOrderErpUsersAddOption, | ||
4270 | + ): Promise<PostOrderErpUsersAddResponseSuccess> { | ||
4271 | + return requester(request.url, { | ||
4272 | + method: request.method, | ||
4273 | + ...option, | ||
4274 | + }) as unknown as Promise<PostOrderErpUsersAddResponseSuccess>; | ||
4275 | + } | ||
4276 | + | ||
4277 | + /** http method */ | ||
4278 | + request.method = method; | ||
4279 | + /** request url */ | ||
4280 | + request.url = url; | ||
4281 | + return request; | ||
4282 | +})(); | ||
4283 | + | ||
4284 | +/** @description request parameter type for postOrderErpUsersAuthRole */ | ||
4285 | +export interface PostOrderErpUsersAuthRoleOption { | ||
4286 | + /** | ||
4287 | + * @description | ||
4288 | + * userVO | ||
4289 | + */ | ||
4290 | + body: { | ||
4291 | + /** | ||
4292 | + @description | ||
4293 | + userVO */ | ||
4294 | + userVO: AdminAuthUserVO; | ||
4295 | + }; | ||
4296 | +} | ||
4297 | + | ||
4298 | +/** @description response type for postOrderErpUsersAuthRole */ | ||
4299 | +export interface PostOrderErpUsersAuthRoleResponse { | ||
4300 | + /** | ||
4301 | + * @description | ||
4302 | + * OK | ||
4303 | + */ | ||
4304 | + 200: ServerResult; | ||
4305 | + /** | ||
4306 | + * @description | ||
4307 | + * Created | ||
4308 | + */ | ||
4309 | + 201: any; | ||
4310 | + /** | ||
4311 | + * @description | ||
4312 | + * Unauthorized | ||
4313 | + */ | ||
4314 | + 401: any; | ||
4315 | + /** | ||
4316 | + * @description | ||
4317 | + * Forbidden | ||
4318 | + */ | ||
4319 | + 403: any; | ||
4320 | + /** | ||
4321 | + * @description | ||
4322 | + * Not Found | ||
4323 | + */ | ||
4324 | + 404: any; | ||
4325 | +} | ||
4326 | + | ||
4327 | +export type PostOrderErpUsersAuthRoleResponseSuccess = | ||
4328 | + PostOrderErpUsersAuthRoleResponse[200]; | ||
4329 | +/** | ||
4330 | + * @description | ||
4331 | + * 授权角色 | ||
4332 | + * @tags 系统:用户管理 | ||
4333 | + * @produces * | ||
4334 | + * @consumes application/json | ||
4335 | + */ | ||
4336 | +export const postOrderErpUsersAuthRole = /* #__PURE__ */ (() => { | ||
4337 | + const method = 'post'; | ||
4338 | + const url = '/order/erp/users/auth_role'; | ||
4339 | + function request( | ||
4340 | + option: PostOrderErpUsersAuthRoleOption, | ||
4341 | + ): Promise<PostOrderErpUsersAuthRoleResponseSuccess> { | ||
4342 | + return requester(request.url, { | ||
4343 | + method: request.method, | ||
4344 | + ...option, | ||
4345 | + }) as unknown as Promise<PostOrderErpUsersAuthRoleResponseSuccess>; | ||
4346 | + } | ||
4347 | + | ||
4348 | + /** http method */ | ||
4349 | + request.method = method; | ||
4350 | + /** request url */ | ||
4351 | + request.url = url; | ||
4352 | + return request; | ||
4353 | +})(); | ||
4354 | + | ||
4355 | +/** @description request parameter type for postOrderErpUsersDelete */ | ||
4356 | +export interface PostOrderErpUsersDeleteOption { | ||
4357 | + /** | ||
4358 | + * @description | ||
4359 | + * queryVO | ||
4360 | + */ | ||
4361 | + body: { | ||
4362 | + /** | ||
4363 | + @description | ||
4364 | + queryVO */ | ||
4365 | + queryVO: AdminUserQueryVO; | ||
4366 | + }; | ||
4367 | +} | ||
4368 | + | ||
4369 | +/** @description response type for postOrderErpUsersDelete */ | ||
4370 | +export interface PostOrderErpUsersDeleteResponse { | ||
4371 | + /** | ||
4372 | + * @description | ||
4373 | + * OK | ||
4374 | + */ | ||
4375 | + 200: ServerResult; | ||
4376 | + /** | ||
4377 | + * @description | ||
4378 | + * Created | ||
4379 | + */ | ||
4380 | + 201: any; | ||
4381 | + /** | ||
4382 | + * @description | ||
4383 | + * Unauthorized | ||
4384 | + */ | ||
4385 | + 401: any; | ||
4386 | + /** | ||
4387 | + * @description | ||
4388 | + * Forbidden | ||
4389 | + */ | ||
4390 | + 403: any; | ||
4391 | + /** | ||
4392 | + * @description | ||
4393 | + * Not Found | ||
4394 | + */ | ||
4395 | + 404: any; | ||
4396 | +} | ||
4397 | + | ||
4398 | +export type PostOrderErpUsersDeleteResponseSuccess = | ||
4399 | + PostOrderErpUsersDeleteResponse[200]; | ||
4400 | +/** | ||
4401 | + * @description | ||
4402 | + * 删除用户 | ||
4403 | + * @tags 系统:用户管理 | ||
4404 | + * @produces * | ||
4405 | + * @consumes application/json | ||
4406 | + */ | ||
4407 | +export const postOrderErpUsersDelete = /* #__PURE__ */ (() => { | ||
4408 | + const method = 'post'; | ||
4409 | + const url = '/order/erp/users/delete'; | ||
4410 | + function request( | ||
4411 | + option: PostOrderErpUsersDeleteOption, | ||
4412 | + ): Promise<PostOrderErpUsersDeleteResponseSuccess> { | ||
4413 | + return requester(request.url, { | ||
4414 | + method: request.method, | ||
4415 | + ...option, | ||
4416 | + }) as unknown as Promise<PostOrderErpUsersDeleteResponseSuccess>; | ||
4417 | + } | ||
4418 | + | ||
4419 | + /** http method */ | ||
4420 | + request.method = method; | ||
4421 | + /** request url */ | ||
4422 | + request.url = url; | ||
4423 | + return request; | ||
4424 | +})(); | ||
4425 | + | ||
4426 | +/** @description request parameter type for postOrderErpUsersEdit */ | ||
4427 | +export interface PostOrderErpUsersEditOption { | ||
4428 | + /** | ||
4429 | + * @description | ||
4430 | + * userVO | ||
4431 | + */ | ||
4432 | + body: { | ||
4433 | + /** | ||
4434 | + @description | ||
4435 | + userVO */ | ||
4436 | + userVO: AdminUserVO; | ||
4437 | + }; | ||
4438 | +} | ||
4439 | + | ||
4440 | +/** @description response type for postOrderErpUsersEdit */ | ||
4441 | +export interface PostOrderErpUsersEditResponse { | ||
4442 | + /** | ||
4443 | + * @description | ||
4444 | + * OK | ||
4445 | + */ | ||
4446 | + 200: ServerResult; | ||
4447 | + /** | ||
4448 | + * @description | ||
4449 | + * Created | ||
4450 | + */ | ||
4451 | + 201: any; | ||
4452 | + /** | ||
4453 | + * @description | ||
4454 | + * Unauthorized | ||
4455 | + */ | ||
4456 | + 401: any; | ||
4457 | + /** | ||
4458 | + * @description | ||
4459 | + * Forbidden | ||
4460 | + */ | ||
4461 | + 403: any; | ||
4462 | + /** | ||
4463 | + * @description | ||
4464 | + * Not Found | ||
4465 | + */ | ||
4466 | + 404: any; | ||
4467 | +} | ||
4468 | + | ||
4469 | +export type PostOrderErpUsersEditResponseSuccess = | ||
4470 | + PostOrderErpUsersEditResponse[200]; | ||
4471 | +/** | ||
4472 | + * @description | ||
4473 | + * 修改用户 | ||
4474 | + * @tags 系统:用户管理 | ||
4475 | + * @produces * | ||
4476 | + * @consumes application/json | ||
4477 | + */ | ||
4478 | +export const postOrderErpUsersEdit = /* #__PURE__ */ (() => { | ||
4479 | + const method = 'post'; | ||
4480 | + const url = '/order/erp/users/edit'; | ||
4481 | + function request( | ||
4482 | + option: PostOrderErpUsersEditOption, | ||
4483 | + ): Promise<PostOrderErpUsersEditResponseSuccess> { | ||
4484 | + return requester(request.url, { | ||
4485 | + method: request.method, | ||
4486 | + ...option, | ||
4487 | + }) as unknown as Promise<PostOrderErpUsersEditResponseSuccess>; | ||
4488 | + } | ||
4489 | + | ||
4490 | + /** http method */ | ||
4491 | + request.method = method; | ||
4492 | + /** request url */ | ||
4493 | + request.url = url; | ||
4494 | + return request; | ||
4495 | +})(); | ||
4496 | + | ||
4497 | +/** @description request parameter type for postOrderErpUsersListByPage */ | ||
4498 | +export interface PostOrderErpUsersListByPageOption { | ||
4499 | + /** | ||
4500 | + * @description | ||
4501 | + * queryVO | ||
4502 | + */ | ||
4503 | + body: { | ||
4504 | + /** | ||
4505 | + @description | ||
4506 | + queryVO */ | ||
4507 | + queryVO: AdminUserQueryVO; | ||
4508 | + }; | ||
4509 | +} | ||
4510 | + | ||
4511 | +/** @description response type for postOrderErpUsersListByPage */ | ||
4512 | +export interface PostOrderErpUsersListByPageResponse { | ||
4513 | + /** | ||
4514 | + * @description | ||
4515 | + * OK | ||
4516 | + */ | ||
4517 | + 200: ServerResult; | ||
4518 | + /** | ||
4519 | + * @description | ||
4520 | + * Created | ||
4521 | + */ | ||
4522 | + 201: any; | ||
4523 | + /** | ||
4524 | + * @description | ||
4525 | + * Unauthorized | ||
4526 | + */ | ||
4527 | + 401: any; | ||
4528 | + /** | ||
4529 | + * @description | ||
4530 | + * Forbidden | ||
4531 | + */ | ||
4532 | + 403: any; | ||
4533 | + /** | ||
4534 | + * @description | ||
4535 | + * Not Found | ||
4536 | + */ | ||
4537 | + 404: any; | ||
4538 | +} | ||
4539 | + | ||
4540 | +export type PostOrderErpUsersListByPageResponseSuccess = | ||
4541 | + PostOrderErpUsersListByPageResponse[200]; | ||
4542 | +/** | ||
4543 | + * @description | ||
4544 | + * 查询用户 | ||
4545 | + * @tags 系统:用户管理 | ||
4546 | + * @produces * | ||
4547 | + * @consumes application/json | ||
4548 | + */ | ||
4549 | +export const postOrderErpUsersListByPage = /* #__PURE__ */ (() => { | ||
4550 | + const method = 'post'; | ||
4551 | + const url = '/order/erp/users/list_by_page'; | ||
4552 | + function request( | ||
4553 | + option: PostOrderErpUsersListByPageOption, | ||
4554 | + ): Promise<PostOrderErpUsersListByPageResponseSuccess> { | ||
4555 | + return requester(request.url, { | ||
4556 | + method: request.method, | ||
4557 | + ...option, | ||
4558 | + }) as unknown as Promise<PostOrderErpUsersListByPageResponseSuccess>; | ||
4559 | + } | ||
4560 | + | ||
4561 | + /** http method */ | ||
4562 | + request.method = method; | ||
4563 | + /** request url */ | ||
4564 | + request.url = url; | ||
4565 | + return request; | ||
4566 | +})(); | ||
4567 | + | ||
4568 | +/** @description request parameter type for postOrderErpUsersReset */ | ||
4569 | +export interface PostOrderErpUsersResetOption { | ||
4570 | + /** | ||
4571 | + * @description | ||
4572 | + * resetPwdVO | ||
4573 | + */ | ||
4574 | + body: { | ||
4575 | + /** | ||
4576 | + @description | ||
4577 | + resetPwdVO */ | ||
4578 | + resetPwdVO: ResetPwdVO; | ||
4579 | + }; | ||
4580 | +} | ||
4581 | + | ||
4582 | +/** @description response type for postOrderErpUsersReset */ | ||
4583 | +export interface PostOrderErpUsersResetResponse { | ||
4584 | + /** | ||
4585 | + * @description | ||
4586 | + * OK | ||
4587 | + */ | ||
4588 | + 200: ServerResult; | ||
4589 | + /** | ||
4590 | + * @description | ||
4591 | + * Created | ||
4592 | + */ | ||
4593 | + 201: any; | ||
4594 | + /** | ||
4595 | + * @description | ||
4596 | + * Unauthorized | ||
4597 | + */ | ||
4598 | + 401: any; | ||
4599 | + /** | ||
4600 | + * @description | ||
4601 | + * Forbidden | ||
4602 | + */ | ||
4603 | + 403: any; | ||
4604 | + /** | ||
4605 | + * @description | ||
4606 | + * Not Found | ||
4607 | + */ | ||
4608 | + 404: any; | ||
4609 | +} | ||
4610 | + | ||
4611 | +export type PostOrderErpUsersResetResponseSuccess = | ||
4612 | + PostOrderErpUsersResetResponse[200]; | ||
4613 | +/** | ||
4614 | + * @description | ||
4615 | + * 重置密码 | ||
4616 | + * @tags 系统:用户管理 | ||
4617 | + * @produces * | ||
4618 | + * @consumes application/json | ||
4619 | + */ | ||
4620 | +export const postOrderErpUsersReset = /* #__PURE__ */ (() => { | ||
4621 | + const method = 'post'; | ||
4622 | + const url = '/order/erp/users/reset'; | ||
4623 | + function request( | ||
4624 | + option: PostOrderErpUsersResetOption, | ||
4625 | + ): Promise<PostOrderErpUsersResetResponseSuccess> { | ||
4626 | + return requester(request.url, { | ||
4627 | + method: request.method, | ||
4628 | + ...option, | ||
4629 | + }) as unknown as Promise<PostOrderErpUsersResetResponseSuccess>; | ||
4630 | + } | ||
4631 | + | ||
4632 | + /** http method */ | ||
4633 | + request.method = method; | ||
4634 | + /** request url */ | ||
4635 | + request.url = url; | ||
4636 | + return request; | ||
4637 | +})(); | ||
4638 | + | ||
4639 | +/** @description request parameter type for postOrderErpUsersUpdatePass */ | ||
4640 | +export interface PostOrderErpUsersUpdatePassOption { | ||
4641 | + /** | ||
4642 | + * @description | ||
4643 | + * pwdVO | ||
4644 | + */ | ||
4645 | + body: { | ||
4646 | + /** | ||
4647 | + @description | ||
4648 | + pwdVO */ | ||
4649 | + pwdVO: UpdatePwdVO; | ||
4650 | + }; | ||
4651 | +} | ||
4652 | + | ||
4653 | +/** @description response type for postOrderErpUsersUpdatePass */ | ||
4654 | +export interface PostOrderErpUsersUpdatePassResponse { | ||
4655 | + /** | ||
4656 | + * @description | ||
4657 | + * OK | ||
4658 | + */ | ||
4659 | + 200: ServerResult; | ||
4660 | + /** | ||
4661 | + * @description | ||
4662 | + * Created | ||
4663 | + */ | ||
4664 | + 201: any; | ||
4665 | + /** | ||
4666 | + * @description | ||
4667 | + * Unauthorized | ||
4668 | + */ | ||
4669 | + 401: any; | ||
4670 | + /** | ||
4671 | + * @description | ||
4672 | + * Forbidden | ||
4673 | + */ | ||
4674 | + 403: any; | ||
4675 | + /** | ||
4676 | + * @description | ||
4677 | + * Not Found | ||
4678 | + */ | ||
4679 | + 404: any; | ||
4680 | +} | ||
4681 | + | ||
4682 | +export type PostOrderErpUsersUpdatePassResponseSuccess = | ||
4683 | + PostOrderErpUsersUpdatePassResponse[200]; | ||
4684 | +/** | ||
4685 | + * @description | ||
4686 | + * 修改密码 | ||
4687 | + * @tags 系统:用户管理 | ||
4688 | + * @produces * | ||
4689 | + * @consumes application/json | ||
4690 | + */ | ||
4691 | +export const postOrderErpUsersUpdatePass = /* #__PURE__ */ (() => { | ||
4692 | + const method = 'post'; | ||
4693 | + const url = '/order/erp/users/update_pass'; | ||
4694 | + function request( | ||
4695 | + option: PostOrderErpUsersUpdatePassOption, | ||
4696 | + ): Promise<PostOrderErpUsersUpdatePassResponseSuccess> { | ||
4697 | + return requester(request.url, { | ||
4698 | + method: request.method, | ||
4699 | + ...option, | ||
4700 | + }) as unknown as Promise<PostOrderErpUsersUpdatePassResponseSuccess>; | ||
4701 | + } | ||
4702 | + | ||
4703 | + /** http method */ | ||
4704 | + request.method = method; | ||
4705 | + /** request url */ | ||
4706 | + request.url = url; | ||
4707 | + return request; | ||
4708 | +})(); | ||
4709 | + | ||
4710 | +/** @description request parameter type for getServiceOrderOrderCancelId */ | ||
4711 | +export interface GetServiceOrderOrderCancelIdOption { | ||
4712 | + /** | ||
4713 | + * @description | ||
4714 | + * id | ||
4715 | + * @format int64 | ||
4716 | + */ | ||
4717 | + path: { | ||
4718 | + /** | ||
4719 | + @description | ||
4720 | + id | ||
4721 | + @format int64 */ | ||
4722 | + id: number; | ||
4723 | + }; | ||
4724 | +} | ||
4725 | + | ||
4726 | +/** @description response type for getServiceOrderOrderCancelId */ | ||
4727 | +export interface GetServiceOrderOrderCancelIdResponse { | ||
4728 | + /** | ||
4729 | + * @description | ||
4730 | + * OK | ||
4731 | + */ | ||
4732 | + 200: ServerResult; | ||
4733 | + /** | ||
4734 | + * @description | ||
4735 | + * Unauthorized | ||
4736 | + */ | ||
4737 | + 401: any; | ||
4738 | + /** | ||
4739 | + * @description | ||
4740 | + * Forbidden | ||
4741 | + */ | ||
4742 | + 403: any; | ||
4743 | + /** | ||
4744 | + * @description | ||
4745 | + * Not Found | ||
4746 | + */ | ||
4747 | + 404: any; | ||
4748 | +} | ||
4749 | + | ||
4750 | +export type GetServiceOrderOrderCancelIdResponseSuccess = | ||
4751 | + GetServiceOrderOrderCancelIdResponse[200]; | ||
4752 | +/** | ||
4753 | + * @description | ||
4754 | + * 订单作废 | ||
4755 | + * @tags 内部订单 | ||
4756 | + * @produces * | ||
4757 | + */ | ||
4758 | +export const getServiceOrderOrderCancelId = /* #__PURE__ */ (() => { | ||
4759 | + const method = 'get'; | ||
4760 | + const url = '/service/order/OrderCancel/:id'; | ||
4761 | + function request( | ||
4762 | + option: GetServiceOrderOrderCancelIdOption, | ||
4763 | + ): Promise<GetServiceOrderOrderCancelIdResponseSuccess> { | ||
4764 | + return requester(request.url, { | ||
4765 | + method: request.method, | ||
4766 | + ...option, | ||
4767 | + }) as unknown as Promise<GetServiceOrderOrderCancelIdResponseSuccess>; | ||
4768 | + } | ||
4769 | + | ||
4770 | + /** http method */ | ||
4771 | + request.method = method; | ||
4772 | + /** request url */ | ||
4773 | + request.url = url; | ||
4774 | + return request; | ||
4775 | +})(); | ||
4776 | + | ||
4777 | +/** @description request parameter type for postServiceOrderAddOrder */ | ||
4778 | +export interface PostServiceOrderAddOrderOption { | ||
4779 | + /** | ||
4780 | + * @description | ||
4781 | + * dto | ||
4782 | + */ | ||
4783 | + body: { | ||
4784 | + /** | ||
4785 | + @description | ||
4786 | + dto */ | ||
4787 | + dto: Dto; | ||
4788 | + }; | ||
4789 | +} | ||
4790 | + | ||
4791 | +/** @description response type for postServiceOrderAddOrder */ | ||
4792 | +export interface PostServiceOrderAddOrderResponse { | ||
4793 | + /** | ||
4794 | + * @description | ||
4795 | + * OK | ||
4796 | + */ | ||
4797 | + 200: ServerResult; | ||
4798 | + /** | ||
4799 | + * @description | ||
4800 | + * Created | ||
4801 | + */ | ||
4802 | + 201: any; | ||
4803 | + /** | ||
4804 | + * @description | ||
4805 | + * Unauthorized | ||
4806 | + */ | ||
4807 | + 401: any; | ||
4808 | + /** | ||
4809 | + * @description | ||
4810 | + * Forbidden | ||
4811 | + */ | ||
4812 | + 403: any; | ||
4813 | + /** | ||
4814 | + * @description | ||
4815 | + * Not Found | ||
4816 | + */ | ||
4817 | + 404: any; | ||
4818 | +} | ||
4819 | + | ||
4820 | +export type PostServiceOrderAddOrderResponseSuccess = | ||
4821 | + PostServiceOrderAddOrderResponse[200]; | ||
4822 | +/** | ||
4823 | + * @description | ||
4824 | + * 新增订单 | ||
4825 | + * @tags 内部订单 | ||
4826 | + * @produces * | ||
4827 | + * @consumes application/json | ||
4828 | + */ | ||
4829 | +export const postServiceOrderAddOrder = /* #__PURE__ */ (() => { | ||
4830 | + const method = 'post'; | ||
4831 | + const url = '/service/order/addOrder'; | ||
4832 | + function request( | ||
4833 | + option: PostServiceOrderAddOrderOption, | ||
4834 | + ): Promise<PostServiceOrderAddOrderResponseSuccess> { | ||
4835 | + return requester(request.url, { | ||
4836 | + method: request.method, | ||
4837 | + ...option, | ||
4838 | + }) as unknown as Promise<PostServiceOrderAddOrderResponseSuccess>; | ||
4839 | + } | ||
4840 | + | ||
4841 | + /** http method */ | ||
4842 | + request.method = method; | ||
4843 | + /** request url */ | ||
4844 | + request.url = url; | ||
4845 | + return request; | ||
4846 | +})(); | ||
4847 | + | ||
4848 | +/** @description request parameter type for postServiceOrderCheckOrder */ | ||
4849 | +export interface PostServiceOrderCheckOrderOption { | ||
4850 | + /** | ||
4851 | + * @description | ||
4852 | + * dto | ||
4853 | + */ | ||
4854 | + body: { | ||
4855 | + /** | ||
4856 | + @description | ||
4857 | + dto */ | ||
4858 | + dto: Dto; | ||
4859 | + }; | ||
4860 | +} | ||
4861 | + | ||
4862 | +/** @description response type for postServiceOrderCheckOrder */ | ||
4863 | +export interface PostServiceOrderCheckOrderResponse { | ||
4864 | + /** | ||
4865 | + * @description | ||
4866 | + * OK | ||
4867 | + */ | ||
4868 | + 200: ServerResult; | ||
4869 | + /** | ||
4870 | + * @description | ||
4871 | + * Created | ||
4872 | + */ | ||
4873 | + 201: any; | ||
4874 | + /** | ||
4875 | + * @description | ||
4876 | + * Unauthorized | ||
4877 | + */ | ||
4878 | + 401: any; | ||
4879 | + /** | ||
4880 | + * @description | ||
4881 | + * Forbidden | ||
4882 | + */ | ||
4883 | + 403: any; | ||
4884 | + /** | ||
4885 | + * @description | ||
4886 | + * Not Found | ||
4887 | + */ | ||
4888 | + 404: any; | ||
4889 | +} | ||
4890 | + | ||
4891 | +export type PostServiceOrderCheckOrderResponseSuccess = | ||
4892 | + PostServiceOrderCheckOrderResponse[200]; | ||
4893 | +/** | ||
4894 | + * @description | ||
4895 | + * 审核订单 | ||
4896 | + * @tags 内部订单 | ||
4897 | + * @produces * | ||
4898 | + * @consumes application/json | ||
4899 | + */ | ||
4900 | +export const postServiceOrderCheckOrder = /* #__PURE__ */ (() => { | ||
4901 | + const method = 'post'; | ||
4902 | + const url = '/service/order/checkOrder'; | ||
4903 | + function request( | ||
4904 | + option: PostServiceOrderCheckOrderOption, | ||
4905 | + ): Promise<PostServiceOrderCheckOrderResponseSuccess> { | ||
4906 | + return requester(request.url, { | ||
4907 | + method: request.method, | ||
4908 | + ...option, | ||
4909 | + }) as unknown as Promise<PostServiceOrderCheckOrderResponseSuccess>; | ||
4910 | + } | ||
4911 | + | ||
4912 | + /** http method */ | ||
4913 | + request.method = method; | ||
4914 | + /** request url */ | ||
4915 | + request.url = url; | ||
4916 | + return request; | ||
4917 | +})(); | ||
4918 | + | ||
4919 | +/** @description request parameter type for getServiceOrderConfirmReceipt */ | ||
4920 | +export interface GetServiceOrderConfirmReceiptOption { | ||
4921 | + /** | ||
4922 | + * @description | ||
4923 | + * id | ||
4924 | + * @format int64 | ||
4925 | + */ | ||
4926 | + path: { | ||
4927 | + /** | ||
4928 | + @description | ||
4929 | + id | ||
4930 | + @format int64 */ | ||
4931 | + id: number; | ||
4932 | + }; | ||
4933 | +} | ||
4934 | + | ||
4935 | +/** @description response type for getServiceOrderConfirmReceipt */ | ||
4936 | +export interface GetServiceOrderConfirmReceiptResponse { | ||
4937 | + /** | ||
4938 | + * @description | ||
4939 | + * OK | ||
4940 | + */ | ||
4941 | + 200: ServerResult; | ||
4942 | + /** | ||
4943 | + * @description | ||
4944 | + * Unauthorized | ||
4945 | + */ | ||
4946 | + 401: any; | ||
4947 | + /** | ||
4948 | + * @description | ||
4949 | + * Forbidden | ||
4950 | + */ | ||
4951 | + 403: any; | ||
4952 | + /** | ||
4953 | + * @description | ||
4954 | + * Not Found | ||
4955 | + */ | ||
4956 | + 404: any; | ||
4957 | +} | ||
4958 | + | ||
4959 | +export type GetServiceOrderConfirmReceiptResponseSuccess = | ||
4960 | + GetServiceOrderConfirmReceiptResponse[200]; | ||
4961 | +/** | ||
4962 | + * @description | ||
4963 | + * 确认收货 | ||
4964 | + * @tags 内部订单 | ||
4965 | + * @produces * | ||
4966 | + */ | ||
4967 | +export const getServiceOrderConfirmReceipt = /* #__PURE__ */ (() => { | ||
4968 | + const method = 'get'; | ||
4969 | + const url = '/service/order/confirmReceipt'; | ||
4970 | + function request( | ||
4971 | + option: GetServiceOrderConfirmReceiptOption, | ||
4972 | + ): Promise<GetServiceOrderConfirmReceiptResponseSuccess> { | ||
4973 | + return requester(request.url, { | ||
4974 | + method: request.method, | ||
4975 | + ...option, | ||
4976 | + }) as unknown as Promise<GetServiceOrderConfirmReceiptResponseSuccess>; | ||
4977 | + } | ||
4978 | + | ||
4979 | + /** http method */ | ||
4980 | + request.method = method; | ||
4981 | + /** request url */ | ||
4982 | + request.url = url; | ||
4983 | + return request; | ||
4984 | +})(); | ||
4985 | + | ||
4986 | +/** @description request parameter type for postServiceOrderExport */ | ||
4987 | +export interface PostServiceOrderExportOption { | ||
4988 | + /** | ||
4989 | + * @description | ||
4990 | + * dto | ||
4991 | + */ | ||
4992 | + body: { | ||
4993 | + /** | ||
4994 | + @description | ||
4995 | + dto */ | ||
4996 | + dto: Dto; | ||
4997 | + }; | ||
4998 | +} | ||
4999 | + | ||
5000 | +/** @description response type for postServiceOrderExport */ | ||
5001 | +export interface PostServiceOrderExportResponse { | ||
5002 | + /** | ||
5003 | + * @description | ||
5004 | + * OK | ||
5005 | + */ | ||
5006 | + 200: ServerResult; | ||
5007 | + /** | ||
5008 | + * @description | ||
5009 | + * Created | ||
5010 | + */ | ||
5011 | + 201: any; | ||
5012 | + /** | ||
5013 | + * @description | ||
5014 | + * Unauthorized | ||
5015 | + */ | ||
5016 | + 401: any; | ||
5017 | + /** | ||
5018 | + * @description | ||
5019 | + * Forbidden | ||
5020 | + */ | ||
5021 | + 403: any; | ||
5022 | + /** | ||
5023 | + * @description | ||
5024 | + * Not Found | ||
5025 | + */ | ||
5026 | + 404: any; | ||
5027 | +} | ||
5028 | + | ||
5029 | +export type PostServiceOrderExportResponseSuccess = | ||
5030 | + PostServiceOrderExportResponse[200]; | ||
5031 | +/** | ||
5032 | + * @description | ||
5033 | + * 导出订单表格 | ||
5034 | + * @tags 内部订单 | ||
5035 | + * @produces * | ||
5036 | + * @consumes application/json | ||
5037 | + */ | ||
5038 | +export const postServiceOrderExport = /* #__PURE__ */ (() => { | ||
5039 | + const method = 'post'; | ||
5040 | + const url = '/service/order/export'; | ||
5041 | + function request( | ||
5042 | + option: PostServiceOrderExportOption, | ||
5043 | + ): Promise<PostServiceOrderExportResponseSuccess> { | ||
5044 | + return requester(request.url, { | ||
5045 | + method: request.method, | ||
5046 | + ...option, | ||
5047 | + }) as unknown as Promise<PostServiceOrderExportResponseSuccess>; | ||
5048 | + } | ||
5049 | + | ||
5050 | + /** http method */ | ||
5051 | + request.method = method; | ||
5052 | + /** request url */ | ||
5053 | + request.url = url; | ||
5054 | + return request; | ||
5055 | +})(); | ||
5056 | + | ||
5057 | +/** @description response type for postServiceOrderInvoicing */ | ||
5058 | +export interface PostServiceOrderInvoicingResponse { | ||
5059 | + /** | ||
5060 | + * @description | ||
5061 | + * OK | ||
5062 | + */ | ||
5063 | + 200: ServerResult; | ||
5064 | + /** | ||
5065 | + * @description | ||
5066 | + * Created | ||
5067 | + */ | ||
5068 | + 201: any; | ||
5069 | + /** | ||
5070 | + * @description | ||
5071 | + * Unauthorized | ||
5072 | + */ | ||
5073 | + 401: any; | ||
5074 | + /** | ||
5075 | + * @description | ||
5076 | + * Forbidden | ||
5077 | + */ | ||
5078 | + 403: any; | ||
5079 | + /** | ||
5080 | + * @description | ||
5081 | + * Not Found | ||
5082 | + */ | ||
5083 | + 404: any; | ||
5084 | +} | ||
5085 | + | ||
5086 | +export type PostServiceOrderInvoicingResponseSuccess = | ||
5087 | + PostServiceOrderInvoicingResponse[200]; | ||
5088 | +/** | ||
5089 | + * @description | ||
5090 | + * 开票 | ||
5091 | + * @tags 内部订单 | ||
5092 | + * @produces * | ||
5093 | + * @consumes application/json | ||
5094 | + */ | ||
5095 | +export const postServiceOrderInvoicing = /* #__PURE__ */ (() => { | ||
5096 | + const method = 'post'; | ||
5097 | + const url = '/service/order/invoicing'; | ||
5098 | + function request(): Promise<PostServiceOrderInvoicingResponseSuccess> { | ||
5099 | + return requester(request.url, { | ||
5100 | + method: request.method, | ||
5101 | + }) as unknown as Promise<PostServiceOrderInvoicingResponseSuccess>; | ||
5102 | + } | ||
5103 | + | ||
5104 | + /** http method */ | ||
5105 | + request.method = method; | ||
5106 | + /** request url */ | ||
5107 | + request.url = url; | ||
5108 | + return request; | ||
5109 | +})(); | ||
5110 | + | ||
5111 | +/** @description response type for postServiceOrderPrintOrder */ | ||
5112 | +export interface PostServiceOrderPrintOrderResponse { | ||
5113 | + /** | ||
5114 | + * @description | ||
5115 | + * OK | ||
5116 | + */ | ||
5117 | + 200: ServerResult; | ||
5118 | + /** | ||
5119 | + * @description | ||
5120 | + * Created | ||
5121 | + */ | ||
5122 | + 201: any; | ||
5123 | + /** | ||
5124 | + * @description | ||
5125 | + * Unauthorized | ||
5126 | + */ | ||
5127 | + 401: any; | ||
5128 | + /** | ||
5129 | + * @description | ||
5130 | + * Forbidden | ||
5131 | + */ | ||
5132 | + 403: any; | ||
5133 | + /** | ||
5134 | + * @description | ||
5135 | + * Not Found | ||
5136 | + */ | ||
5137 | + 404: any; | ||
5138 | +} | ||
5139 | + | ||
5140 | +export type PostServiceOrderPrintOrderResponseSuccess = | ||
5141 | + PostServiceOrderPrintOrderResponse[200]; | ||
5142 | +/** | ||
5143 | + * @description | ||
5144 | + * 打印订单 | ||
5145 | + * @tags 内部订单 | ||
5146 | + * @produces * | ||
5147 | + * @consumes application/json | ||
5148 | + */ | ||
5149 | +export const postServiceOrderPrintOrder = /* #__PURE__ */ (() => { | ||
5150 | + const method = 'post'; | ||
5151 | + const url = '/service/order/printOrder'; | ||
5152 | + function request(): Promise<PostServiceOrderPrintOrderResponseSuccess> { | ||
5153 | + return requester(request.url, { | ||
5154 | + method: request.method, | ||
5155 | + }) as unknown as Promise<PostServiceOrderPrintOrderResponseSuccess>; | ||
5156 | + } | ||
5157 | + | ||
5158 | + /** http method */ | ||
5159 | + request.method = method; | ||
5160 | + /** request url */ | ||
5161 | + request.url = url; | ||
5162 | + return request; | ||
5163 | +})(); | ||
5164 | + | ||
5165 | +/** @description response type for getServiceOrderProvideInvoicingStatus */ | ||
5166 | +export interface GetServiceOrderProvideInvoicingStatusResponse { | ||
5167 | + /** | ||
5168 | + * @description | ||
5169 | + * OK | ||
5170 | + */ | ||
5171 | + 200: ServerResult; | ||
5172 | + /** | ||
5173 | + * @description | ||
5174 | + * Unauthorized | ||
5175 | + */ | ||
5176 | + 401: any; | ||
5177 | + /** | ||
5178 | + * @description | ||
5179 | + * Forbidden | ||
5180 | + */ | ||
5181 | + 403: any; | ||
5182 | + /** | ||
5183 | + * @description | ||
5184 | + * Not Found | ||
5185 | + */ | ||
5186 | + 404: any; | ||
5187 | +} | ||
5188 | + | ||
5189 | +export type GetServiceOrderProvideInvoicingStatusResponseSuccess = | ||
5190 | + GetServiceOrderProvideInvoicingStatusResponse[200]; | ||
5191 | +/** | ||
5192 | + * @description | ||
5193 | + * 提供开票状态 | ||
5194 | + * @tags 内部订单 | ||
5195 | + * @produces * | ||
5196 | + */ | ||
5197 | +export const getServiceOrderProvideInvoicingStatus = /* #__PURE__ */ (() => { | ||
5198 | + const method = 'get'; | ||
5199 | + const url = '/service/order/provideInvoicingStatus'; | ||
5200 | + function request(): Promise<GetServiceOrderProvideInvoicingStatusResponseSuccess> { | ||
5201 | + return requester(request.url, { | ||
5202 | + method: request.method, | ||
5203 | + }) as unknown as Promise<GetServiceOrderProvideInvoicingStatusResponseSuccess>; | ||
5204 | + } | ||
5205 | + | ||
5206 | + /** http method */ | ||
5207 | + request.method = method; | ||
5208 | + /** request url */ | ||
5209 | + request.url = url; | ||
5210 | + return request; | ||
5211 | +})(); | ||
5212 | + | ||
5213 | +/** @description response type for getServiceOrderProvideLogisticsStatus */ | ||
5214 | +export interface GetServiceOrderProvideLogisticsStatusResponse { | ||
5215 | + /** | ||
5216 | + * @description | ||
5217 | + * OK | ||
5218 | + */ | ||
5219 | + 200: ServerResult; | ||
5220 | + /** | ||
5221 | + * @description | ||
5222 | + * Unauthorized | ||
5223 | + */ | ||
5224 | + 401: any; | ||
5225 | + /** | ||
5226 | + * @description | ||
5227 | + * Forbidden | ||
5228 | + */ | ||
5229 | + 403: any; | ||
5230 | + /** | ||
5231 | + * @description | ||
5232 | + * Not Found | ||
5233 | + */ | ||
5234 | + 404: any; | ||
5235 | +} | ||
5236 | + | ||
5237 | +export type GetServiceOrderProvideLogisticsStatusResponseSuccess = | ||
5238 | + GetServiceOrderProvideLogisticsStatusResponse[200]; | ||
5239 | +/** | ||
5240 | + * @description | ||
5241 | + * 提供物流方式 | ||
5242 | + * @tags 内部订单 | ||
5243 | + * @produces * | ||
5244 | + */ | ||
5245 | +export const getServiceOrderProvideLogisticsStatus = /* #__PURE__ */ (() => { | ||
5246 | + const method = 'get'; | ||
5247 | + const url = '/service/order/provideLogisticsStatus'; | ||
5248 | + function request(): Promise<GetServiceOrderProvideLogisticsStatusResponseSuccess> { | ||
5249 | + return requester(request.url, { | ||
5250 | + method: request.method, | ||
5251 | + }) as unknown as Promise<GetServiceOrderProvideLogisticsStatusResponseSuccess>; | ||
5252 | + } | ||
5253 | + | ||
5254 | + /** http method */ | ||
5255 | + request.method = method; | ||
5256 | + /** request url */ | ||
5257 | + request.url = url; | ||
5258 | + return request; | ||
5259 | +})(); | ||
5260 | + | ||
5261 | +/** @description response type for getServiceOrderProvideOrderStatus */ | ||
5262 | +export interface GetServiceOrderProvideOrderStatusResponse { | ||
5263 | + /** | ||
5264 | + * @description | ||
5265 | + * OK | ||
5266 | + */ | ||
5267 | + 200: ServerResult; | ||
5268 | + /** | ||
5269 | + * @description | ||
5270 | + * Unauthorized | ||
5271 | + */ | ||
5272 | + 401: any; | ||
5273 | + /** | ||
5274 | + * @description | ||
5275 | + * Forbidden | ||
5276 | + */ | ||
5277 | + 403: any; | ||
5278 | + /** | ||
5279 | + * @description | ||
5280 | + * Not Found | ||
5281 | + */ | ||
5282 | + 404: any; | ||
5283 | +} | ||
5284 | + | ||
5285 | +export type GetServiceOrderProvideOrderStatusResponseSuccess = | ||
5286 | + GetServiceOrderProvideOrderStatusResponse[200]; | ||
5287 | +/** | ||
5288 | + * @description | ||
5289 | + * 提供订单状态 | ||
5290 | + * @tags 内部订单 | ||
5291 | + * @produces * | ||
5292 | + */ | ||
5293 | +export const getServiceOrderProvideOrderStatus = /* #__PURE__ */ (() => { | ||
5294 | + const method = 'get'; | ||
5295 | + const url = '/service/order/provideOrderStatus'; | ||
5296 | + function request(): Promise<GetServiceOrderProvideOrderStatusResponseSuccess> { | ||
5297 | + return requester(request.url, { | ||
5298 | + method: request.method, | ||
5299 | + }) as unknown as Promise<GetServiceOrderProvideOrderStatusResponseSuccess>; | ||
5300 | + } | ||
5301 | + | ||
5302 | + /** http method */ | ||
5303 | + request.method = method; | ||
5304 | + /** request url */ | ||
5305 | + request.url = url; | ||
5306 | + return request; | ||
5307 | +})(); | ||
5308 | + | ||
5309 | +/** @description response type for getServiceOrderProvidePaymentChannel */ | ||
5310 | +export interface GetServiceOrderProvidePaymentChannelResponse { | ||
5311 | + /** | ||
5312 | + * @description | ||
5313 | + * OK | ||
5314 | + */ | ||
5315 | + 200: ServerResult; | ||
5316 | + /** | ||
5317 | + * @description | ||
5318 | + * Unauthorized | ||
5319 | + */ | ||
5320 | + 401: any; | ||
5321 | + /** | ||
5322 | + * @description | ||
5323 | + * Forbidden | ||
5324 | + */ | ||
5325 | + 403: any; | ||
5326 | + /** | ||
5327 | + * @description | ||
5328 | + * Not Found | ||
5329 | + */ | ||
5330 | + 404: any; | ||
5331 | +} | ||
5332 | + | ||
5333 | +export type GetServiceOrderProvidePaymentChannelResponseSuccess = | ||
5334 | + GetServiceOrderProvidePaymentChannelResponse[200]; | ||
5335 | +/** | ||
5336 | + * @description | ||
5337 | + * 提供支付渠道 | ||
5338 | + * @tags 内部订单 | ||
5339 | + * @produces * | ||
5340 | + */ | ||
5341 | +export const getServiceOrderProvidePaymentChannel = /* #__PURE__ */ (() => { | ||
5342 | + const method = 'get'; | ||
5343 | + const url = '/service/order/providePaymentChannel'; | ||
5344 | + function request(): Promise<GetServiceOrderProvidePaymentChannelResponseSuccess> { | ||
5345 | + return requester(request.url, { | ||
5346 | + method: request.method, | ||
5347 | + }) as unknown as Promise<GetServiceOrderProvidePaymentChannelResponseSuccess>; | ||
5348 | + } | ||
5349 | + | ||
5350 | + /** http method */ | ||
5351 | + request.method = method; | ||
5352 | + /** request url */ | ||
5353 | + request.url = url; | ||
5354 | + return request; | ||
5355 | +})(); | ||
5356 | + | ||
5357 | +/** @description response type for getServiceOrderProvidePaymentMethod */ | ||
5358 | +export interface GetServiceOrderProvidePaymentMethodResponse { | ||
5359 | + /** | ||
5360 | + * @description | ||
5361 | + * OK | ||
5362 | + */ | ||
5363 | + 200: ServerResult; | ||
5364 | + /** | ||
5365 | + * @description | ||
5366 | + * Unauthorized | ||
5367 | + */ | ||
5368 | + 401: any; | ||
5369 | + /** | ||
5370 | + * @description | ||
5371 | + * Forbidden | ||
5372 | + */ | ||
5373 | + 403: any; | ||
5374 | + /** | ||
5375 | + * @description | ||
5376 | + * Not Found | ||
5377 | + */ | ||
5378 | + 404: any; | ||
5379 | +} | ||
5380 | + | ||
5381 | +export type GetServiceOrderProvidePaymentMethodResponseSuccess = | ||
5382 | + GetServiceOrderProvidePaymentMethodResponse[200]; | ||
5383 | +/** | ||
5384 | + * @description | ||
5385 | + * 提供支付方式 | ||
5386 | + * @tags 内部订单 | ||
5387 | + * @produces * | ||
5388 | + */ | ||
5389 | +export const getServiceOrderProvidePaymentMethod = /* #__PURE__ */ (() => { | ||
5390 | + const method = 'get'; | ||
5391 | + const url = '/service/order/providePaymentMethod'; | ||
5392 | + function request(): Promise<GetServiceOrderProvidePaymentMethodResponseSuccess> { | ||
5393 | + return requester(request.url, { | ||
5394 | + method: request.method, | ||
5395 | + }) as unknown as Promise<GetServiceOrderProvidePaymentMethodResponseSuccess>; | ||
5396 | + } | ||
5397 | + | ||
5398 | + /** http method */ | ||
5399 | + request.method = method; | ||
5400 | + /** request url */ | ||
5401 | + request.url = url; | ||
5402 | + return request; | ||
5403 | +})(); | ||
5404 | + | ||
5405 | +/** @description response type for getServiceOrderProvideProductBelongDepartment */ | ||
5406 | +export interface GetServiceOrderProvideProductBelongDepartmentResponse { | ||
5407 | + /** | ||
5408 | + * @description | ||
5409 | + * OK | ||
5410 | + */ | ||
5411 | + 200: ServerResult; | ||
5412 | + /** | ||
5413 | + * @description | ||
5414 | + * Unauthorized | ||
5415 | + */ | ||
5416 | + 401: any; | ||
5417 | + /** | ||
5418 | + * @description | ||
5419 | + * Forbidden | ||
5420 | + */ | ||
5421 | + 403: any; | ||
5422 | + /** | ||
5423 | + * @description | ||
5424 | + * Not Found | ||
5425 | + */ | ||
5426 | + 404: any; | ||
5427 | +} | ||
5428 | + | ||
5429 | +export type GetServiceOrderProvideProductBelongDepartmentResponseSuccess = | ||
5430 | + GetServiceOrderProvideProductBelongDepartmentResponse[200]; | ||
5431 | +/** | ||
5432 | + * @description | ||
5433 | + * 提供商品所属事业部门 | ||
5434 | + * @tags 内部订单 | ||
5435 | + * @produces * | ||
5436 | + */ | ||
5437 | +export const getServiceOrderProvideProductBelongDepartment = | ||
5438 | + /* #__PURE__ */ (() => { | ||
5439 | + const method = 'get'; | ||
5440 | + const url = '/service/order/provideProductBelongDepartment'; | ||
5441 | + function request(): Promise<GetServiceOrderProvideProductBelongDepartmentResponseSuccess> { | ||
5442 | + return requester(request.url, { | ||
5443 | + method: request.method, | ||
5444 | + }) as unknown as Promise<GetServiceOrderProvideProductBelongDepartmentResponseSuccess>; | ||
5445 | + } | ||
5446 | + | ||
5447 | + /** http method */ | ||
5448 | + request.method = method; | ||
5449 | + /** request url */ | ||
5450 | + request.url = url; | ||
5451 | + return request; | ||
5452 | + })(); | ||
5453 | + | ||
5454 | +/** @description response type for getServiceOrderProvideProductUnit */ | ||
5455 | +export interface GetServiceOrderProvideProductUnitResponse { | ||
5456 | + /** | ||
5457 | + * @description | ||
5458 | + * OK | ||
5459 | + */ | ||
5460 | + 200: ServerResult; | ||
5461 | + /** | ||
5462 | + * @description | ||
5463 | + * Unauthorized | ||
5464 | + */ | ||
5465 | + 401: any; | ||
5466 | + /** | ||
5467 | + * @description | ||
5468 | + * Forbidden | ||
5469 | + */ | ||
5470 | + 403: any; | ||
5471 | + /** | ||
5472 | + * @description | ||
5473 | + * Not Found | ||
5474 | + */ | ||
5475 | + 404: any; | ||
5476 | +} | ||
5477 | + | ||
5478 | +export type GetServiceOrderProvideProductUnitResponseSuccess = | ||
5479 | + GetServiceOrderProvideProductUnitResponse[200]; | ||
5480 | +/** | ||
5481 | + * @description | ||
5482 | + * 提供商品单位 | ||
5483 | + * @tags 内部订单 | ||
5484 | + * @produces * | ||
5485 | + */ | ||
5486 | +export const getServiceOrderProvideProductUnit = /* #__PURE__ */ (() => { | ||
5487 | + const method = 'get'; | ||
5488 | + const url = '/service/order/provideProductUnit'; | ||
5489 | + function request(): Promise<GetServiceOrderProvideProductUnitResponseSuccess> { | ||
5490 | + return requester(request.url, { | ||
5491 | + method: request.method, | ||
5492 | + }) as unknown as Promise<GetServiceOrderProvideProductUnitResponseSuccess>; | ||
5493 | + } | ||
5494 | + | ||
5495 | + /** http method */ | ||
5496 | + request.method = method; | ||
5497 | + /** request url */ | ||
5498 | + request.url = url; | ||
5499 | + return request; | ||
5500 | +})(); | ||
5501 | + | ||
5502 | +/** @description response type for getServiceOrderProvideToken */ | ||
5503 | +export interface GetServiceOrderProvideTokenResponse { | ||
5504 | + /** | ||
5505 | + * @description | ||
5506 | + * OK | ||
5507 | + */ | ||
5508 | + 200: ServerResult; | ||
5509 | + /** | ||
5510 | + * @description | ||
5511 | + * Unauthorized | ||
5512 | + */ | ||
5513 | + 401: any; | ||
5514 | + /** | ||
5515 | + * @description | ||
5516 | + * Forbidden | ||
5517 | + */ | ||
5518 | + 403: any; | ||
5519 | + /** | ||
5520 | + * @description | ||
5521 | + * Not Found | ||
5522 | + */ | ||
5523 | + 404: any; | ||
5524 | +} | ||
5525 | + | ||
5526 | +export type GetServiceOrderProvideTokenResponseSuccess = | ||
5527 | + GetServiceOrderProvideTokenResponse[200]; | ||
5528 | +/** | ||
5529 | + * @description | ||
5530 | + * 新增订单的时候提供一个token值 | ||
5531 | + * @tags 内部订单 | ||
5532 | + * @produces * | ||
5533 | + */ | ||
5534 | +export const getServiceOrderProvideToken = /* #__PURE__ */ (() => { | ||
5535 | + const method = 'get'; | ||
5536 | + const url = '/service/order/provideToken'; | ||
5537 | + function request(): Promise<GetServiceOrderProvideTokenResponseSuccess> { | ||
5538 | + return requester(request.url, { | ||
5539 | + method: request.method, | ||
5540 | + }) as unknown as Promise<GetServiceOrderProvideTokenResponseSuccess>; | ||
5541 | + } | ||
5542 | + | ||
5543 | + /** http method */ | ||
5544 | + request.method = method; | ||
5545 | + /** request url */ | ||
5546 | + request.url = url; | ||
5547 | + return request; | ||
5548 | +})(); | ||
5549 | + | ||
5550 | +/** @description request parameter type for postServiceOrderQueryServiceOrder */ | ||
5551 | +export interface PostServiceOrderQueryServiceOrderOption { | ||
5552 | + /** | ||
5553 | + * @description | ||
5554 | + * dto | ||
5555 | + */ | ||
5556 | + body: { | ||
5557 | + /** | ||
5558 | + @description | ||
5559 | + dto */ | ||
5560 | + dto: Dto; | ||
5561 | + }; | ||
5562 | +} | ||
5563 | + | ||
5564 | +/** @description response type for postServiceOrderQueryServiceOrder */ | ||
5565 | +export interface PostServiceOrderQueryServiceOrderResponse { | ||
5566 | + /** | ||
5567 | + * @description | ||
5568 | + * OK | ||
5569 | + */ | ||
5570 | + 200: ServerResult; | ||
5571 | + /** | ||
5572 | + * @description | ||
5573 | + * Created | ||
5574 | + */ | ||
5575 | + 201: any; | ||
5576 | + /** | ||
5577 | + * @description | ||
5578 | + * Unauthorized | ||
5579 | + */ | ||
5580 | + 401: any; | ||
5581 | + /** | ||
5582 | + * @description | ||
5583 | + * Forbidden | ||
5584 | + */ | ||
5585 | + 403: any; | ||
5586 | + /** | ||
5587 | + * @description | ||
5588 | + * Not Found | ||
5589 | + */ | ||
5590 | + 404: any; | ||
5591 | +} | ||
5592 | + | ||
5593 | +export type PostServiceOrderQueryServiceOrderResponseSuccess = | ||
5594 | + PostServiceOrderQueryServiceOrderResponse[200]; | ||
5595 | +/** | ||
5596 | + * @description | ||
5597 | + * 订单页查询 | ||
5598 | + * @tags 内部订单 | ||
5599 | + * @produces * | ||
5600 | + * @consumes application/json | ||
5601 | + */ | ||
5602 | +export const postServiceOrderQueryServiceOrder = /* #__PURE__ */ (() => { | ||
5603 | + const method = 'post'; | ||
5604 | + const url = '/service/order/queryServiceOrder'; | ||
5605 | + function request( | ||
5606 | + option: PostServiceOrderQueryServiceOrderOption, | ||
5607 | + ): Promise<PostServiceOrderQueryServiceOrderResponseSuccess> { | ||
5608 | + return requester(request.url, { | ||
5609 | + method: request.method, | ||
5610 | + ...option, | ||
5611 | + }) as unknown as Promise<PostServiceOrderQueryServiceOrderResponseSuccess>; | ||
5612 | + } | ||
5613 | + | ||
5614 | + /** http method */ | ||
5615 | + request.method = method; | ||
5616 | + /** request url */ | ||
5617 | + request.url = url; | ||
5618 | + return request; | ||
5619 | +})(); | ||
5620 | + | ||
5621 | +/** @description request parameter type for postServiceOrderSendProduct */ | ||
5622 | +export interface PostServiceOrderSendProductOption { | ||
5623 | + /** | ||
5624 | + * @description | ||
5625 | + * dto | ||
5626 | + */ | ||
5627 | + body: { | ||
5628 | + /** | ||
5629 | + @description | ||
5630 | + dto */ | ||
5631 | + dto: Dto; | ||
5632 | + }; | ||
5633 | +} | ||
5634 | + | ||
5635 | +/** @description response type for postServiceOrderSendProduct */ | ||
5636 | +export interface PostServiceOrderSendProductResponse { | ||
5637 | + /** | ||
5638 | + * @description | ||
5639 | + * OK | ||
5640 | + */ | ||
5641 | + 200: ServerResult; | ||
5642 | + /** | ||
5643 | + * @description | ||
5644 | + * Created | ||
5645 | + */ | ||
5646 | + 201: any; | ||
5647 | + /** | ||
5648 | + * @description | ||
5649 | + * Unauthorized | ||
5650 | + */ | ||
5651 | + 401: any; | ||
5652 | + /** | ||
5653 | + * @description | ||
5654 | + * Forbidden | ||
5655 | + */ | ||
5656 | + 403: any; | ||
5657 | + /** | ||
5658 | + * @description | ||
5659 | + * Not Found | ||
5660 | + */ | ||
5661 | + 404: any; | ||
5662 | +} | ||
5663 | + | ||
5664 | +export type PostServiceOrderSendProductResponseSuccess = | ||
5665 | + PostServiceOrderSendProductResponse[200]; | ||
5666 | +/** | ||
5667 | + * @description | ||
5668 | + * 发货 | ||
5669 | + * @tags 内部订单 | ||
5670 | + * @produces * | ||
5671 | + * @consumes application/json | ||
5672 | + */ | ||
5673 | +export const postServiceOrderSendProduct = /* #__PURE__ */ (() => { | ||
5674 | + const method = 'post'; | ||
5675 | + const url = '/service/order/sendProduct'; | ||
5676 | + function request( | ||
5677 | + option: PostServiceOrderSendProductOption, | ||
5678 | + ): Promise<PostServiceOrderSendProductResponseSuccess> { | ||
5679 | + return requester(request.url, { | ||
5680 | + method: request.method, | ||
5681 | + ...option, | ||
5682 | + }) as unknown as Promise<PostServiceOrderSendProductResponseSuccess>; | ||
5683 | + } | ||
5684 | + | ||
5685 | + /** http method */ | ||
5686 | + request.method = method; | ||
5687 | + /** request url */ | ||
5688 | + request.url = url; | ||
5689 | + return request; | ||
5690 | +})(); | ||
5691 | + | ||
5692 | +/** @description request parameter type for postServiceOrderUpdateOrder */ | ||
5693 | +export interface PostServiceOrderUpdateOrderOption { | ||
5694 | + /** | ||
5695 | + * @description | ||
5696 | + * dto | ||
5697 | + */ | ||
5698 | + body: { | ||
5699 | + /** | ||
5700 | + @description | ||
5701 | + dto */ | ||
5702 | + dto: Dto; | ||
5703 | + }; | ||
5704 | +} | ||
5705 | + | ||
5706 | +/** @description response type for postServiceOrderUpdateOrder */ | ||
5707 | +export interface PostServiceOrderUpdateOrderResponse { | ||
5708 | + /** | ||
5709 | + * @description | ||
5710 | + * OK | ||
5711 | + */ | ||
5712 | + 200: ServerResult; | ||
5713 | + /** | ||
5714 | + * @description | ||
5715 | + * Created | ||
5716 | + */ | ||
5717 | + 201: any; | ||
5718 | + /** | ||
5719 | + * @description | ||
5720 | + * Unauthorized | ||
5721 | + */ | ||
5722 | + 401: any; | ||
5723 | + /** | ||
5724 | + * @description | ||
5725 | + * Forbidden | ||
5726 | + */ | ||
5727 | + 403: any; | ||
5728 | + /** | ||
5729 | + * @description | ||
5730 | + * Not Found | ||
5731 | + */ | ||
5732 | + 404: any; | ||
248 | } | 5733 | } |
249 | 5734 | ||
250 | -export type PostErpOrderUpdateResponseSuccess = PostErpOrderUpdateResponse[200]; | 5735 | +export type PostServiceOrderUpdateOrderResponseSuccess = |
5736 | + PostServiceOrderUpdateOrderResponse[200]; | ||
251 | /** | 5737 | /** |
252 | * @description | 5738 | * @description |
253 | - * 订单编辑 | ||
254 | - * @tags 公共分类 | 5739 | + * 编辑订单 |
5740 | + * @tags 内部订单 | ||
5741 | + * @produces * | ||
255 | * @consumes application/json | 5742 | * @consumes application/json |
256 | */ | 5743 | */ |
257 | -export const postErpOrderUpdate = /* #__PURE__ */ (() => { | 5744 | +export const postServiceOrderUpdateOrder = /* #__PURE__ */ (() => { |
258 | const method = 'post'; | 5745 | const method = 'post'; |
259 | - const url = '/erp/order/update'; | 5746 | + const url = '/service/order/updateOrder'; |
260 | function request( | 5747 | function request( |
261 | - option?: PostErpOrderUpdateOption, | ||
262 | - ): Promise<PostErpOrderUpdateResponseSuccess> { | 5748 | + option: PostServiceOrderUpdateOrderOption, |
5749 | + ): Promise<PostServiceOrderUpdateOrderResponseSuccess> { | ||
263 | return requester(request.url, { | 5750 | return requester(request.url, { |
264 | method: request.method, | 5751 | method: request.method, |
265 | ...option, | 5752 | ...option, |
266 | - }) as unknown as Promise<PostErpOrderUpdateResponseSuccess>; | 5753 | + }) as unknown as Promise<PostServiceOrderUpdateOrderResponseSuccess>; |
267 | } | 5754 | } |
268 | 5755 | ||
269 | /** http method */ | 5756 | /** http method */ |
src/tsg.config.ts
@@ -33,7 +33,7 @@ const projects: Project[] = [ | @@ -33,7 +33,7 @@ const projects: Project[] = [ | ||
33 | * openapi 文档地址,可以是远程的json文件,也可以是本地的json文件 | 33 | * openapi 文档地址,可以是远程的json文件,也可以是本地的json文件 |
34 | * 如果使用本地文件,相对路径以当前'tsg.config.ts'为基准 | 34 | * 如果使用本地文件,相对路径以当前'tsg.config.ts'为基准 |
35 | * */ | 35 | * */ |
36 | - source: 'http://localhost:8000/request.json', | 36 | + source: 'http://39.108.227.113:8085/v2/api-docs', |
37 | 37 | ||
38 | // source: 'https://petstore3.swagger.io/api/v3/openapi.json', | 38 | // source: 'https://petstore3.swagger.io/api/v3/openapi.json', |
39 | // source: './fixture/pet.json', | 39 | // source: './fixture/pet.json', |
src/utils/index.ts
1 | import customMessage from './message'; | 1 | import customMessage from './message'; |
2 | 2 | ||
3 | -export { customMessage }; | 3 | +//将enum转换为{label:"",value:""}形式 |
4 | +function enumToSelect(data: any) { | ||
5 | + const keys = Object.keys(data); | ||
6 | + return keys.map((value) => { | ||
7 | + return { label: data[value], value: value }; | ||
8 | + }); | ||
9 | +} | ||
10 | + | ||
11 | +//将枚举的value值转换为label | ||
12 | +function enumValueToLabel(value: any, enumObj: any) { | ||
13 | + if (enumObj !== undefined) { | ||
14 | + return enumObj[value]; | ||
15 | + } | ||
16 | + return ''; | ||
17 | +} | ||
18 | + | ||
19 | +export { customMessage, enumToSelect, enumValueToLabel }; |