Commit 59a2a0454dcd2d0526ef284a107868ad03608639
1 parent
2505974c
feat: update 回款功能
Showing
12 changed files
with
1999 additions
and
760 deletions
src/pages/Order/components/CheckModal.tsx
... | ... | @@ -8,7 +8,7 @@ import { |
8 | 8 | postServiceOrderToProcureAudit, |
9 | 9 | } from '@/services'; |
10 | 10 | import { ModalForm, ProFormTextArea } from '@ant-design/pro-components'; |
11 | -import { Button, Col, Form, Modal, Row, UploadFile, message } from 'antd'; | |
11 | +import { Button, Col, Form, Modal, Row, UploadFile, message, Image, Divider } from 'antd'; | |
12 | 12 | import Upload, { RcFile, UploadProps } from 'antd/es/upload'; |
13 | 13 | import { useEffect, useRef, useState } from 'react'; |
14 | 14 | import { |
... | ... | @@ -35,6 +35,7 @@ export default ({ |
35 | 35 | const [previewOpen, setPreviewOpen] = useState(false); |
36 | 36 | const [previewImage, setPreviewImage] = useState(''); |
37 | 37 | const [previewTitle, setPreviewTitle] = useState(''); |
38 | + const [paymentReceiptsImages, setPymentReceiptsImages] = useState<any[]>([]); | |
38 | 39 | const fileListObj = useRef<UploadFile[]>([]); //使用引用类型,使得在useEffect里面设置监听事件后,不用更新监听事件也能保持obj与外界一致 |
39 | 40 | const getBase64 = (file: RcFile): Promise<string> => |
40 | 41 | new Promise((resolve, reject) => { |
... | ... | @@ -106,6 +107,16 @@ export default ({ |
106 | 107 | |
107 | 108 | useEffect(() => { |
108 | 109 | getOrderAfterSalesInfo(); |
110 | + | |
111 | + let paymentReceiptsImagesList: any[] = []; | |
112 | + subOrders?.forEach((item: any) => { | |
113 | + if (item.paymentReceiptAnnexList) { | |
114 | + paymentReceiptsImagesList.push(...item.paymentReceiptAnnexList); | |
115 | + } | |
116 | + }) | |
117 | + //去重 | |
118 | + paymentReceiptsImagesList = [...new Set(paymentReceiptsImagesList)]; | |
119 | + setPymentReceiptsImages(paymentReceiptsImagesList); | |
109 | 120 | }, []); |
110 | 121 | |
111 | 122 | const handleChange: UploadProps['onChange'] = ({ fileList: newFileList }) => { |
... | ... | @@ -194,8 +205,8 @@ export default ({ |
194 | 205 | setPreviewOpen(true); |
195 | 206 | setPreviewTitle( |
196 | 207 | file.name || |
197 | - file.originFileObj?.name || | |
198 | - file.url!.substring(file.url!.lastIndexOf('/') + 1), | |
208 | + file.originFileObj?.name || | |
209 | + file.url!.substring(file.url!.lastIndexOf('/') + 1), | |
199 | 210 | ); |
200 | 211 | }; |
201 | 212 | |
... | ... | @@ -405,6 +416,9 @@ export default ({ |
405 | 416 | if (checkType(CHECK_TYPE.URGENT_INVOICE_AUDITING)) { |
406 | 417 | type = 'urgent_invoice_audit'; |
407 | 418 | } |
419 | + if (checkType(CHECK_TYPE.PAYMENT_RECEIPTS_AUDIT)) { | |
420 | + type = 'payment_receipt_audit'; | |
421 | + } | |
408 | 422 | doCheck({ |
409 | 423 | pass: false, |
410 | 424 | subOrderIds: subOrderIds, |
... | ... | @@ -499,6 +513,9 @@ export default ({ |
499 | 513 | if (checkType(CHECK_TYPE.URGENT_INVOICE_AUDITING)) { |
500 | 514 | type = 'urgent_invoice_audit'; |
501 | 515 | } |
516 | + if (checkType(CHECK_TYPE.PAYMENT_RECEIPTS_AUDIT)) { | |
517 | + type = 'payment_receipt_audit'; | |
518 | + } | |
502 | 519 | doCheck({ |
503 | 520 | pass: true, |
504 | 521 | subOrderIds: subOrderIds, |
... | ... | @@ -526,6 +543,29 @@ export default ({ |
526 | 543 | '' |
527 | 544 | )} |
528 | 545 | |
546 | + { | |
547 | + checkType(CHECK_TYPE.PAYMENT_RECEIPTS_AUDIT) ? ( | |
548 | + <> | |
549 | + <Divider orientation="center"><span className='text-sm'>回款凭证</span></Divider> | |
550 | + <Image.PreviewGroup | |
551 | + className="mr-10" | |
552 | + preview={{ | |
553 | + onChange: (current, prev) => | |
554 | + console.log(`current index: ${current}, prev index: ${prev}`), | |
555 | + }} | |
556 | + > | |
557 | + {paymentReceiptsImages.map((url) => ( | |
558 | + <> | |
559 | + <Image width={120} src={url} /> <Divider type="vertical" /> | |
560 | + </> | |
561 | + ))} | |
562 | + </Image.PreviewGroup> | |
563 | + <Divider></Divider> | |
564 | + </> | |
565 | + ) | |
566 | + : "" | |
567 | + } | |
568 | + | |
529 | 569 | <div>请特别注意订单总金额与订单金额。</div> |
530 | 570 | <ProFormTextArea |
531 | 571 | width="lg" | ... | ... |
src/pages/Order/components/SubOrderComfirmReceiptImagesModal.tsx renamed to src/pages/Order/components/ImagesViewerModal.tsx
1 | 1 | import { postServiceOrderViewImages } from '@/services'; |
2 | 2 | import { Button, Divider, Image, Modal } from 'antd'; |
3 | 3 | import { useEffect, useState } from 'react'; |
4 | -export default ({ setVisible, onClose, orderRow }) => { | |
5 | - const [images, setImages] = useState([]); | |
4 | +export default ({ setVisible, optType, onClose, orderRow }) => { | |
5 | + const [images, setImages] = useState<any[]>([]); | |
6 | + const [title, setTitle] = useState("收货凭证"); | |
6 | 7 | const handleOk = () => { |
7 | 8 | onClose(); |
8 | 9 | setVisible(false); |
... | ... | @@ -21,13 +22,25 @@ export default ({ setVisible, onClose, orderRow }) => { |
21 | 22 | setImages(images); |
22 | 23 | } |
23 | 24 | useEffect(() => { |
24 | - getImages(); | |
25 | + if (optType === 'shippingReceipt') { | |
26 | + setTitle("收货凭证"); | |
27 | + getImages(); | |
28 | + } else if (optType === 'paymentReceipt') { | |
29 | + let paymentReceiptsImagesList: any[] = []; | |
30 | + if (orderRow.paymentReceiptAnnexList) { | |
31 | + paymentReceiptsImagesList.push(...orderRow.paymentReceiptAnnexList); | |
32 | + } | |
33 | + //去重 | |
34 | + paymentReceiptsImagesList = [...new Set(paymentReceiptsImagesList)]; | |
35 | + setImages(paymentReceiptsImagesList); | |
36 | + } | |
37 | + | |
25 | 38 | }, []); |
26 | 39 | |
27 | 40 | return ( |
28 | 41 | <> |
29 | 42 | <Modal |
30 | - title="收货凭证" | |
43 | + title={title} | |
31 | 44 | open |
32 | 45 | onOk={handleOk} |
33 | 46 | onCancel={handleCancel} | ... | ... |
src/pages/Order/components/MessageListDrawer.tsx
... | ... | @@ -57,8 +57,8 @@ export default ({ setVisible }) => { |
57 | 57 | /** |
58 | 58 | * 跳转到订单列表 |
59 | 59 | */ |
60 | - function toOrderList(mainOrderId: any) { | |
61 | - window.open('/order?id=' + mainOrderId, '_blank'); | |
60 | + function toOrderList(mainOrderIds: any) { | |
61 | + window.open('/order?id=' + mainOrderIds.join(","), '_blank'); | |
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
... | ... | @@ -171,9 +171,9 @@ export default ({ setVisible }) => { |
171 | 171 | /> |
172 | 172 | <Flex |
173 | 173 | vertical |
174 | - className="hover:cursor-pointer" | |
174 | + className="w-full hover:cursor-pointer" | |
175 | 175 | onClick={async () => { |
176 | - toOrderList(item.mainOrderId); | |
176 | + toOrderList(item.mainOrderIds); | |
177 | 177 | |
178 | 178 | let readSuccess = await read([item.mesUsrRelId]); |
179 | 179 | if (readSuccess) { | ... | ... |
src/pages/Order/components/ModifiedDiffModal.tsx
... | ... | @@ -4,7 +4,7 @@ import { |
4 | 4 | getAliYunOSSFileNameFromUrl, |
5 | 5 | getUserInfo, |
6 | 6 | } from '@/utils'; |
7 | -import { getReceivingCompanyOptions } from '@/utils/order'; | |
7 | +import { getReceivingCompanyOptions, isSupplier } from '@/utils/order'; | |
8 | 8 | import { Button, Divider, Modal, Space, Table, TableProps } from 'antd'; |
9 | 9 | import Base64 from 'base-64'; |
10 | 10 | import { useEffect, useState } from 'react'; |
... | ... | @@ -48,7 +48,7 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { |
48 | 48 | ], |
49 | 49 | ); |
50 | 50 | |
51 | - return userInfo?.username === '首能' && unvisibleFields.includes(field); | |
51 | + return isSupplier() && unvisibleFields.includes(field); | |
52 | 52 | } |
53 | 53 | |
54 | 54 | async function loadData() { |
... | ... | @@ -234,6 +234,7 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { |
234 | 234 | ['institutionContactName', '单位联系人'], |
235 | 235 | ['institution', '单位'], |
236 | 236 | ['totalPayment', '支付总金额'], |
237 | + ['paymentChannel', '支付渠道'], | |
237 | 238 | ['notes', '备注'], |
238 | 239 | ['bank', '开户银行'], |
239 | 240 | ['bankAccountNumber', '银行账号'], | ... | ... |
src/pages/Order/components/OrderDrawer.tsx
... | ... | @@ -32,7 +32,7 @@ import { |
32 | 32 | ProFormTextArea, |
33 | 33 | ProFormUploadDragger, |
34 | 34 | } from '@ant-design/pro-components'; |
35 | -import { Button, Form, message } from 'antd'; | |
35 | +import { Button, Form, Modal, message } from 'antd'; | |
36 | 36 | import { cloneDeep } from 'lodash'; |
37 | 37 | import { useEffect, useRef, useState } from 'react'; |
38 | 38 | import { |
... | ... | @@ -52,7 +52,9 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
52 | 52 | const [salesCodeOptions, setSalesCodeOptions] = useState([]); |
53 | 53 | const [submitBtnLoading, setSubmitBtnLoading] = useState(false); |
54 | 54 | const [drawerTitle, setDrawerTitle] = useState(''); |
55 | + const [hasLocalData, setHasLocalData] = useState(false); | |
55 | 56 | const [customer, setCustomer] = useState({}); |
57 | + const [localSaveLoading, setLocalSaveLoading] = useState(false); | |
56 | 58 | const [kingdeeCstomerModalVisible, setKingdeeCstomerModalVisible] = |
57 | 59 | useState(false); |
58 | 60 | const [ |
... | ... | @@ -66,6 +68,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
66 | 68 | const [productCustomerContactOptions, setProductCustomerContactOptions] = |
67 | 69 | useState([]); //客户的收货人选项 |
68 | 70 | const [form] = Form.useForm<{ |
71 | + isLocalData: boolean; | |
69 | 72 | salesCode: ''; |
70 | 73 | customerName: ''; |
71 | 74 | customerContactNumber: ''; |
... | ... | @@ -567,7 +570,68 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
567 | 570 | return true; |
568 | 571 | }; |
569 | 572 | |
573 | + /** | |
574 | + * 是否有草稿 | |
575 | + */ | |
576 | + function checkHasLocalData() { | |
577 | + let preOrderData = localStorage.getItem('preOrderData'); | |
578 | + let hasLocalData = preOrderData !== null && preOrderData !== undefined && preOrderData !== ''; | |
579 | + setHasLocalData(hasLocalData); | |
580 | + return hasLocalData; | |
581 | + } | |
582 | + | |
583 | + /** | |
584 | + * 保存表单数据到本地 | |
585 | + */ | |
586 | + function saveFormDataToLocal() { | |
587 | + let preOrderData = localStorage.getItem('preOrderData'); | |
588 | + let values = form.getFieldsValue(); | |
589 | + values.isLocalData = true;//标识为本地草稿数据 | |
590 | + let formData = JSON.stringify(values); | |
591 | + | |
592 | + //检查本地是否已有数据 | |
593 | + if (preOrderData) { | |
594 | + Modal.confirm({ | |
595 | + title: "提示", | |
596 | + content: "检测到本地有订单数据,是否覆盖?", | |
597 | + onOk: () => { | |
598 | + localStorage.setItem("preOrderData", formData); | |
599 | + message.success("本地保存成功"); | |
600 | + }, | |
601 | + onCancel: () => { | |
602 | + message.info("取消保存"); | |
603 | + } | |
604 | + }) | |
605 | + } else { | |
606 | + localStorage.setItem("preOrderData", formData); | |
607 | + message.success("本地保存成功"); | |
608 | + } | |
609 | + | |
610 | + checkHasLocalData(); | |
611 | + setLocalSaveLoading(false); | |
612 | + } | |
613 | + | |
614 | + /** | |
615 | + * 使用草稿数据 | |
616 | + */ | |
617 | + function useLocalFormData() { | |
618 | + let preOrderData = localStorage.getItem('preOrderData'); | |
619 | + if (preOrderData) { | |
620 | + let formData = JSON.parse(preOrderData); | |
621 | + form.setFieldsValue(formData); | |
622 | + } | |
623 | + } | |
624 | + | |
625 | + /** | |
626 | + * 刪除草稿数据 | |
627 | + */ | |
628 | + function removeLocalFormData(){ | |
629 | + localStorage.removeItem("preOrderData"); | |
630 | + } | |
631 | + | |
632 | + | |
570 | 633 | useEffect(() => { |
634 | + checkHasLocalData(); | |
571 | 635 | getSalesCodeOptions(); |
572 | 636 | if (optType('after-sales-check')) { |
573 | 637 | getOldOrderData(data.id); |
... | ... | @@ -579,6 +643,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
579 | 643 | return ( |
580 | 644 | <> |
581 | 645 | <DrawerForm<{ |
646 | + isLocalData: any; | |
582 | 647 | deleteSubOrderLists: any; |
583 | 648 | name: string; |
584 | 649 | company: string; |
... | ... | @@ -593,6 +658,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
593 | 658 | maxWidth: window.innerWidth * 0.8, |
594 | 659 | minWidth: 400, |
595 | 660 | }} |
661 | + onFinishFailed={() => { | |
662 | + message.error("表单项存在错误,请检查"); | |
663 | + setSubmitBtnLoading(false); | |
664 | + }} | |
596 | 665 | submitter={{ |
597 | 666 | render: (props) => { |
598 | 667 | return [ |
... | ... | @@ -605,6 +674,17 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
605 | 674 | 取消 |
606 | 675 | </Button>, |
607 | 676 | <Button |
677 | + key="localSave" | |
678 | + loading={localSaveLoading} | |
679 | + hidden={!optType('add') && !optType("copy")} | |
680 | + onClick={() => { | |
681 | + setLocalSaveLoading(true); | |
682 | + saveFormDataToLocal(); | |
683 | + }} | |
684 | + > | |
685 | + 本地保存 | |
686 | + </Button>, | |
687 | + <Button | |
608 | 688 | key="ok" |
609 | 689 | type="primary" |
610 | 690 | loading={submitBtnLoading} |
... | ... | @@ -612,10 +692,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
612 | 692 | onClick={() => { |
613 | 693 | setSubmitBtnLoading(true); |
614 | 694 | props.submit(); |
615 | - setSubmitBtnLoading(false); | |
695 | + | |
616 | 696 | }} |
617 | 697 | > |
618 | - 确定 | |
698 | + 提交 | |
619 | 699 | </Button>, |
620 | 700 | ]; |
621 | 701 | }, |
... | ... | @@ -625,6 +705,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
625 | 705 | drawerProps={{ |
626 | 706 | destroyOnClose: true, |
627 | 707 | maskClosable: false, |
708 | + extra: [<Button key="useLocalData" hidden={!hasLocalData} type='link' onClick={() => { useLocalFormData() }}>使用草稿</Button>] | |
628 | 709 | }} |
629 | 710 | submitTimeout={2000} |
630 | 711 | onFinish={async (values) => { |
... | ... | @@ -696,6 +777,14 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
696 | 777 | message.success(res.message); |
697 | 778 | // 不返回不会关闭弹框 |
698 | 779 | onClose(true); |
780 | + | |
781 | + //判断保存的数据是否是本地草稿,是的话将草稿删除 | |
782 | + let isLocalData = form.getFieldValue("isLocalData"); | |
783 | + if(isLocalData){ | |
784 | + removeLocalFormData(); | |
785 | + checkHasLocalData(); | |
786 | + } | |
787 | + | |
699 | 788 | return true; |
700 | 789 | } |
701 | 790 | |
... | ... | @@ -866,7 +955,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
866 | 955 | }, |
867 | 956 | }} |
868 | 957 | debounceTime={1000} |
869 | - request={async (value, {}) => { | |
958 | + request={async (value, { }) => { | |
870 | 959 | const keywords = value.keyWords; |
871 | 960 | const res = await postKingdeeRepCustomer({ |
872 | 961 | data: { search: keywords }, |
... | ... | @@ -1275,7 +1364,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1275 | 1364 | rules={[{ required: true, message: '商品参数必填' }]} |
1276 | 1365 | disabled={ |
1277 | 1366 | productParametersDisabledFlagList[listMeta.index] !== |
1278 | - false || optType('after-sales-check') | |
1367 | + false || optType('after-sales-check') | |
1279 | 1368 | } |
1280 | 1369 | />, |
1281 | 1370 | <ProFormDigit |
... | ... | @@ -1316,7 +1405,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1316 | 1405 | placeholder="请输入商品单位" |
1317 | 1406 | disabled={ |
1318 | 1407 | productParametersDisabledFlagList[listMeta.index] !== |
1319 | - false || optType('after-sales-check') | |
1408 | + false || optType('after-sales-check') | |
1320 | 1409 | } |
1321 | 1410 | rules={[{ required: true, message: '商品单位必填' }]} |
1322 | 1411 | />, | ... | ... |
src/pages/Order/components/UploadPayBillModal.tsx
0 → 100644
1 | +import { ModalForm } from '@ant-design/pro-components'; | |
2 | +import { Form, Modal, Upload, UploadFile, UploadProps, message } from 'antd'; | |
3 | +import { RcFile } from 'antd/lib/upload'; | |
4 | +import { cloneDeep } from 'lodash'; | |
5 | +import { useEffect, useRef, useState } from 'react'; | |
6 | +import { COMFIR_RECEIPT_IMAGES_NUMBER } from '../constant'; | |
7 | +import { PlusOutlined } from '@ant-design/icons'; | |
8 | +import { transImageFile } from '@/utils'; | |
9 | +import { postServiceOrderFileProcess, postServiceOrderUploadPaymentReceipt } from '@/services'; | |
10 | +import { RESPONSE_CODE } from '@/constants/enum'; | |
11 | + | |
12 | +// import { cloneDeep } from 'lodash'; | |
13 | +export default ({ setVisible, subOrders, mainOrder, onClose }) => { | |
14 | + const [form] = Form.useForm(); | |
15 | + const [previewOpen, setPreviewOpen] = useState(false); | |
16 | + const [previewImage, setPreviewImage] = useState(''); | |
17 | + const [previewTitle, setPreviewTitle] = useState(''); | |
18 | + const handleCancel = () => setPreviewOpen(false); | |
19 | + const [fileList, setFileList] = useState<UploadFile[]>([]); | |
20 | + const getBase64 = (file: RcFile): Promise<string> => | |
21 | + new Promise((resolve, reject) => { | |
22 | + const reader = new FileReader(); | |
23 | + reader.readAsDataURL(file); | |
24 | + reader.onload = () => resolve(reader.result as string); | |
25 | + reader.onerror = (error) => reject(error); | |
26 | + }); | |
27 | + | |
28 | + const subOrderIds = subOrders?.map((item: any) => { return item.id }); | |
29 | + const fileListObj = useRef<UploadFile[]>([]); //使用引用类型,使得在useEffect里面设置监听事件后,不用更新监听事件也能保持obj与外界一致 | |
30 | + const handleBeforeUpload = (file: any) => { | |
31 | + setFileList([...fileList, file]); | |
32 | + return false; | |
33 | + }; | |
34 | + const uploadButton = ( | |
35 | + <div> | |
36 | + <PlusOutlined /> | |
37 | + <div style={{ marginTop: 8 }}>上传凭证</div> | |
38 | + </div> | |
39 | + ); | |
40 | + /** 粘贴快捷键的回调 */ | |
41 | + const onPaste = async (e: any) => { | |
42 | + /** 获取剪切板的数据clipboardData */ | |
43 | + let clipboardData = e.clipboardData, | |
44 | + i = 0, | |
45 | + items, | |
46 | + item, | |
47 | + types; | |
48 | + | |
49 | + /** 为空判断 */ | |
50 | + if (clipboardData) { | |
51 | + items = clipboardData.items; | |
52 | + if (!items) { | |
53 | + message.info('您的剪贴板中没有照片'); | |
54 | + return; | |
55 | + } | |
56 | + | |
57 | + item = items[0]; | |
58 | + types = clipboardData.types || []; | |
59 | + /** 遍历剪切板的数据 */ | |
60 | + for (; i < types.length; i++) { | |
61 | + if (types[i] === 'Files') { | |
62 | + item = items[i]; | |
63 | + break; | |
64 | + } | |
65 | + } | |
66 | + | |
67 | + /** 判断文件是否为图片 */ | |
68 | + if (item && item.kind === 'file' && item.type.match(/^image\//i)) { | |
69 | + const imgItem = item.getAsFile(); | |
70 | + const newFileList = cloneDeep(fileListObj.current); | |
71 | + let filteredArray = newFileList.filter( | |
72 | + (obj) => obj.status !== 'removed', | |
73 | + ); //过滤掉状态为已删除的照片 | |
74 | + const listItem = { | |
75 | + ...imgItem, | |
76 | + status: 'done', | |
77 | + url: await getBase64(imgItem), | |
78 | + originFileObj: imgItem, | |
79 | + }; | |
80 | + | |
81 | + if (filteredArray.length >= COMFIR_RECEIPT_IMAGES_NUMBER) { | |
82 | + message.info('发货照片数量不能超过3'); | |
83 | + return; | |
84 | + } | |
85 | + fileListObj.current = filteredArray; | |
86 | + filteredArray.push(listItem); | |
87 | + setFileList(filteredArray); | |
88 | + return; | |
89 | + } | |
90 | + } | |
91 | + | |
92 | + message.info('您的剪贴板中没有照片'); | |
93 | + }; | |
94 | + const handleChange: UploadProps['onChange'] = ({ fileList: newFileList }) => { | |
95 | + //fileListObj得在change里变化,change的参数是已经处理过的file数组 | |
96 | + //beforeUpload中的参数file是未处理过,还需要Base64拿到文件数据处理 | |
97 | + fileListObj.current = newFileList; | |
98 | + setFileList(newFileList); | |
99 | + }; | |
100 | + const handlePreview = async (file: UploadFile) => { | |
101 | + if (!file.url && !file.preview) { | |
102 | + file.preview = await getBase64(file.originFileObj as RcFile); | |
103 | + } | |
104 | + setPreviewImage(file.url || (file.preview as string)); | |
105 | + setPreviewOpen(true); | |
106 | + setPreviewTitle( | |
107 | + file.name || | |
108 | + file.originFileObj?.name || | |
109 | + file.url!.substring(file.url!.lastIndexOf('/') + 1), | |
110 | + ); | |
111 | + }; | |
112 | + const props: UploadProps = { | |
113 | + onRemove: (file) => { | |
114 | + const index = fileList.indexOf(file); | |
115 | + const newFileList = fileList.slice(); | |
116 | + newFileList.splice(index, 1); | |
117 | + setFileList(newFileList); | |
118 | + }, | |
119 | + beforeUpload: handleBeforeUpload, | |
120 | + listType: 'picture-card', | |
121 | + onPreview: handlePreview, | |
122 | + fileList, | |
123 | + onChange: handleChange, | |
124 | + accept: 'image/png, image/jpeg, image/png', | |
125 | + // action: '/api/service/order/fileProcess', | |
126 | + name: 'files', | |
127 | + headers: { Authorization: localStorage.getItem('token') }, | |
128 | + }; | |
129 | + | |
130 | + useEffect(() => { | |
131 | + | |
132 | + document.addEventListener('paste', onPaste); | |
133 | + return () => { | |
134 | + document.removeEventListener('paste', onPaste); | |
135 | + }; | |
136 | + }, []); | |
137 | + return ( | |
138 | + <> | |
139 | + <ModalForm<{ | |
140 | + filePaths: any; | |
141 | + }> | |
142 | + width={500} | |
143 | + open | |
144 | + title="回款凭证上传" | |
145 | + form={form} | |
146 | + autoFocusFirstInput | |
147 | + modalProps={{ | |
148 | + okText: '提交', | |
149 | + cancelText: '取消', | |
150 | + destroyOnClose: true, | |
151 | + onCancel: () => { | |
152 | + setVisible(false); | |
153 | + }, | |
154 | + }} | |
155 | + onFinish={async () => { | |
156 | + if (fileList.length <= 0) { | |
157 | + message.error('请上传至少一张凭证'); | |
158 | + return; | |
159 | + } | |
160 | + message.open({ | |
161 | + type: 'loading', | |
162 | + content: '正在上传凭证...', | |
163 | + duration: 0, | |
164 | + }); | |
165 | + //附件处理 | |
166 | + let formData = new FormData(); | |
167 | + //附件处理 | |
168 | + for (let file of fileList) { | |
169 | + if (file.originFileObj) { | |
170 | + formData.append('files', file.originFileObj as RcFile); | |
171 | + } else { | |
172 | + //有url的话取url(源文件),没url取thumbUrl。有url的时候thumbUrl是略缩图 | |
173 | + if (file?.url === undefined || file?.url === null) { | |
174 | + formData.append( | |
175 | + 'files', | |
176 | + transImageFile(file?.thumbUrl), | |
177 | + file?.originFileObj?.name, | |
178 | + ); | |
179 | + } else { | |
180 | + formData.append( | |
181 | + 'files', | |
182 | + transImageFile(file?.url), | |
183 | + file?.originFileObj?.name, | |
184 | + ); | |
185 | + } | |
186 | + } | |
187 | + } | |
188 | + let res = await postServiceOrderFileProcess({ | |
189 | + data: formData, | |
190 | + }); | |
191 | + message.destroy(); | |
192 | + if (res.result === RESPONSE_CODE.SUCCESS) { | |
193 | + let fileUrls = res?.data?.map((item) => { | |
194 | + return { url: item }; | |
195 | + }); | |
196 | + //财务审核 | |
197 | + const data = await postServiceOrderUploadPaymentReceipt({ | |
198 | + data: { | |
199 | + subOrderIds: subOrderIds, | |
200 | + filePaths: fileUrls, | |
201 | + }, | |
202 | + }); | |
203 | + if (data.result === RESPONSE_CODE.SUCCESS) { | |
204 | + message.success(data.message); | |
205 | + onClose(); | |
206 | + } | |
207 | + } else { | |
208 | + message.success('上传失败'); | |
209 | + } | |
210 | + onClose(); | |
211 | + }} | |
212 | + onOpenChange={setVisible} | |
213 | + > | |
214 | + | |
215 | + <div className="pb-4 text-xs decoration-gray-50"> | |
216 | + 可复制照片粘贴 | |
217 | + </div> | |
218 | + <Upload {...props}> | |
219 | + {fileList.length < COMFIR_RECEIPT_IMAGES_NUMBER | |
220 | + ? uploadButton | |
221 | + : ''} | |
222 | + </Upload> | |
223 | + </ModalForm> | |
224 | + | |
225 | + <Modal | |
226 | + open={previewOpen} | |
227 | + title={previewTitle} | |
228 | + footer={null} | |
229 | + onCancel={handleCancel} | |
230 | + > | |
231 | + <img alt="图片预览" style={{ width: '100%' }} src={previewImage} /> | |
232 | + </Modal> | |
233 | + </> | |
234 | + ); | |
235 | +}; | ... | ... |
src/pages/Order/constant.ts
1 | 1 | import { postServiceOrderQueryCustomerInformation } from '@/services'; |
2 | 2 | import { enumToProTableEnumValue, getUserInfo } from '@/utils'; |
3 | -import { getReceivingCompanyOptions } from '@/utils/order'; | |
3 | +import { getReceivingCompanyOptions, isSupplier } from '@/utils/order'; | |
4 | 4 | export const COMFIR_RECEIPT_IMAGES_NUMBER = 3; |
5 | 5 | |
6 | 6 | export const PAYMENT_CHANNEL_OPTIONS = { |
... | ... | @@ -25,6 +25,7 @@ export const PAYMENT_METHOD_OPTIONS = { |
25 | 25 | PLATFORM_SETTLEMENT: '平台结算', |
26 | 26 | CASH_ON_DELIVERY: '货到付款', |
27 | 27 | HIRE_PURCHASE: '分期付款', |
28 | + PAYMENT_RECEIPT:'已回款' | |
28 | 29 | }; |
29 | 30 | |
30 | 31 | export const PRODUCT_BELONG_DEPARTMENT_OPTIONS = { |
... | ... | @@ -100,6 +101,7 @@ export const CHECK_TYPE = { |
100 | 101 | NODE_OPERATING_AUDIT: 'NODE_OPERATING_AUDIT', |
101 | 102 | MODIFY_LEADER_AUDIT: 'MODIFY_LEADER_AUDIT', |
102 | 103 | URGENT_INVOICE_AUDITING: 'URGENT_INVOICE_AUDITING', |
104 | + PAYMENT_RECEIPTS_AUDIT: 'PAYMENT_RECEIPTS_AUDIT', | |
103 | 105 | }; |
104 | 106 | |
105 | 107 | /** |
... | ... | @@ -148,6 +150,12 @@ export const POST_AUDIT_OPTIONS = { |
148 | 150 | POST_AUDIT_FAIL: '后置审核失败', |
149 | 151 | }; |
150 | 152 | |
153 | +export const PAYMENT_RECEIPTS_STATUS_OPTIONS = { | |
154 | + WAIT_AUDIT: '回款待审核', | |
155 | + AUDIT_PASS: '回款已审核', | |
156 | + AUDIT_NOTPASS: '回款审核失败' | |
157 | +}; | |
158 | + | |
151 | 159 | export const ORDER_STATUS_OPTIONS = { |
152 | 160 | UNAUDITED: '未审核', |
153 | 161 | LEADER_PROCESS: '领导待审核', |
... | ... | @@ -158,8 +166,7 @@ export const ORDER_STATUS_OPTIONS = { |
158 | 166 | PROCURE_UN_PROCESS: '采购待审核', |
159 | 167 | PROCURE_PROCESS: '采购已审核', |
160 | 168 | PROCURE_PROCESS_FOR_MINE: '采购待打印', |
161 | - PROCURE_WAIT_SHIP: | |
162 | - getUserInfo()?.username === '首能' ? '待发货' : '采购待发货', | |
169 | + PROCURE_WAIT_SHIP: isSupplier() ? '待发货' : '采购待发货', | |
163 | 170 | SUPPLIER_WAIT_SHIP: '供应商待发货', |
164 | 171 | WAIT_SHIP: '待发货', |
165 | 172 | SHIPPED: '已发货', |
... | ... | @@ -183,8 +190,8 @@ export const MODIFIED_AUDIT_STATUS_OPTIONS = { |
183 | 190 | * 采购筛选订单的主要订单状态 |
184 | 191 | */ |
185 | 192 | export const PROCURE_PRIMARY_ORDER_STATUS_OPTIONS = { |
186 | - PROCURE_UN_PROCESS: '采购未审核', | |
187 | - PROCURE_WAIT_SHIP: '采购待发货', | |
193 | + PROCURE_UN_PROCESS: isSupplier()?'未审核':'采购未审核', | |
194 | + PROCURE_WAIT_SHIP: isSupplier()?'待发货':'采购待发货', | |
188 | 195 | SHIPPED: '已发货', |
189 | 196 | }; |
190 | 197 | |
... | ... | @@ -246,6 +253,10 @@ export const TAGS_COLOR = new Map<string, string>([ |
246 | 253 | ['PARTIAL_INVOICING', 'processing'], |
247 | 254 | ['URGENT_INVOICE_AUDITING', 'warning'], |
248 | 255 | ['APPLY_FOR_INVOICING', 'processing'], |
256 | + ['AUDIT_FAILURE','error'], | |
257 | + ['WAIT_AUDIT','warning'], | |
258 | + ['AUDIT_PASS','success'], | |
259 | + ['AUDIT_NOTPASS','error'] | |
249 | 260 | ]); |
250 | 261 | export const SALES_CODE_OPTIONS = [ |
251 | 262 | { label: 'D-Linda', value: 'D-Linda' }, |
... | ... | @@ -511,6 +522,13 @@ export const MAIN_ORDER_COLUMNS = [ |
511 | 522 | valueEnum: enumToProTableEnumValue(PAYMENT_METHOD_OPTIONS), |
512 | 523 | }, |
513 | 524 | { |
525 | + title: '回款审核状态', | |
526 | + dataIndex: 'paymentReceiptStatus', | |
527 | + valueType: 'select', | |
528 | + hideInTable: true, | |
529 | + valueEnum: enumToProTableEnumValue(PAYMENT_RECEIPTS_STATUS_OPTIONS), | |
530 | + }, | |
531 | + { | |
514 | 532 | title: '物流方式', |
515 | 533 | dataIndex: 'logisticsMethod', |
516 | 534 | valueType: 'select', |
... | ... | @@ -601,6 +619,20 @@ export const MAIN_ORDER_COLUMNS = [ |
601 | 619 | }, |
602 | 620 | }, |
603 | 621 | { |
622 | + title: '申请开票时间', | |
623 | + dataIndex: 'applyTime', | |
624 | + valueType: 'dateTimeRange', | |
625 | + hideInTable: true, | |
626 | + search: { | |
627 | + transform: (value) => { | |
628 | + return { | |
629 | + applyBeginTime: value[0], | |
630 | + applyEndTime: value[1], | |
631 | + }; | |
632 | + }, | |
633 | + }, | |
634 | + }, | |
635 | + { | |
604 | 636 | title: '生产开始时间', |
605 | 637 | dataIndex: 'productionStartTime', |
606 | 638 | valueType: 'dateRange', | ... | ... |
src/pages/Order/index.tsx
... | ... | @@ -24,7 +24,7 @@ import { |
24 | 24 | getAliYunOSSFileNameFromUrl, |
25 | 25 | isImageName, |
26 | 26 | } from '@/utils'; |
27 | -import { getReceivingCompanyOptions } from '@/utils/order'; | |
27 | +import { getReceivingCompanyOptions, isSupplier } from '@/utils/order'; | |
28 | 28 | import { getUserInfo } from '@/utils/user'; |
29 | 29 | import { |
30 | 30 | BellOutlined, |
... | ... | @@ -88,7 +88,6 @@ import ProcureCheckModal from './components/ProcureCheckModal'; |
88 | 88 | import ProcureConvertModal from './components/ProcureConvertModal'; |
89 | 89 | import ProductionTimeModal from './components/ProductionTimeModal'; |
90 | 90 | import ShippingWarehouseChangeModal from './components/ShippingWarehouseChangeModal'; |
91 | -import SubOrderComfirmReceiptImagesModal from './components/SubOrderComfirmReceiptImagesModal'; | |
92 | 91 | import { |
93 | 92 | AFTER_INVOICING_STATUS, |
94 | 93 | CHECK_TYPE, |
... | ... | @@ -98,7 +97,7 @@ import { |
98 | 97 | ORDER_STATUS_OPTIONS, |
99 | 98 | PAYEE_OPTIONS, |
100 | 99 | PAYMENT_CHANNEL_OPTIONS, |
101 | - PAYMENT_METHOD_OPTIONS, | |
100 | + PAYMENT_RECEIPTS_STATUS_OPTIONS, | |
102 | 101 | POST_AUDIT_OPTIONS, |
103 | 102 | PROCURE_ORDER_STATUS, |
104 | 103 | PROCURE_PRIMARY_ORDER_STATUS_OPTIONS, |
... | ... | @@ -110,6 +109,8 @@ import { |
110 | 109 | } from './constant'; |
111 | 110 | import './index.less'; |
112 | 111 | import { OrderListItemType, OrderType } from './type.d'; |
112 | +import UploadPayBillModal from './components/UploadPayBillModal'; | |
113 | +import ImagesViewerModal from './components/ImagesViewerModal'; | |
113 | 114 | |
114 | 115 | const OrderPage = () => { |
115 | 116 | const [orderDrawerVisible, setOrderDrawerVisible] = useState<boolean>(false); |
... | ... | @@ -117,8 +118,8 @@ const OrderPage = () => { |
117 | 118 | const [orderPrintVisible, setOrderPrintVisible] = useState<boolean>(false); |
118 | 119 | const [allMainChecked, setAllMainChecked] = useState(false); |
119 | 120 | const [ |
120 | - subOrderConfirmReceiptImagesVisible, | |
121 | - setSubOrderConfirmReceiptImagesVisible, | |
121 | + imagesViewerModalVisible, | |
122 | + setImagesViewerModalVisible, | |
122 | 123 | ] = useState<boolean>(false); |
123 | 124 | const [data, setData] = useState([]); //列表数据 |
124 | 125 | const [notesEditVisible, setNotesEditVisible] = useState<boolean>(false); |
... | ... | @@ -126,6 +127,8 @@ const OrderPage = () => { |
126 | 127 | useState<boolean>(false); |
127 | 128 | const [attachmentModalVisible, setAttachmentModalVisible] = |
128 | 129 | useState<boolean>(false); |
130 | + const [uploadPayBillModalVisible, setUploadPayBillModalVisible] = | |
131 | + useState<boolean>(false); | |
129 | 132 | const [modifiedDiffModalVisible, setModifiedDiffModalVisible] = |
130 | 133 | useState<boolean>(false); |
131 | 134 | const [financialReceiptsModalVisible, setFinancialReceiptsModalVisible] = |
... | ... | @@ -171,6 +174,7 @@ const OrderPage = () => { |
171 | 174 | const [pageSize, setPageSize] = useState(10); |
172 | 175 | const [currentPage, setCurrentPage] = useState(1); |
173 | 176 | const [orderCheckType, setOrderCheckType] = useState(''); |
177 | + const [imagesViewerOptType,setImagesViewerOptType] = useState(''); | |
174 | 178 | const [filterCondifion, setFilterCondition] = useState(0); |
175 | 179 | const [mainOrderSelectedMap] = useState(new Map()); //选中的主订单Map key:主订单id value:主订单数据 |
176 | 180 | const [subOrderSelectedMap] = useState(new Map()); //选中的子订单Map key:主订单id value:选中的子订单数据集合 |
... | ... | @@ -223,7 +227,7 @@ const OrderPage = () => { |
223 | 227 | |
224 | 228 | text += ',' + record?.customerShippingAddress; |
225 | 229 | |
226 | - if (userInfo.username !== '首能') { | |
230 | + if (!isSupplier()) { | |
227 | 231 | text += ',' + record?.institutionContactName; |
228 | 232 | text += ',' + record?.institution; |
229 | 233 | } |
... | ... | @@ -233,7 +237,7 @@ const OrderPage = () => { |
233 | 237 | text += ' ' + item?.parameters; |
234 | 238 | text += ' ' + item?.quantity; |
235 | 239 | text += ' ' + item?.unit; |
236 | - if (userInfo.username !== '首能') { | |
240 | + if (!isSupplier()) { | |
237 | 241 | text += ' ¥' + item?.subOrderPayment; |
238 | 242 | } |
239 | 243 | text += ' ' + item?.id; |
... | ... | @@ -591,7 +595,7 @@ const OrderPage = () => { |
591 | 595 | <span className="font-medium">交易金额</span> |
592 | 596 | </Flex> |
593 | 597 | |
594 | - {userInfo.username !== '首能' ? ( | |
598 | + {!isSupplier() ? ( | |
595 | 599 | <> |
596 | 600 | <Flex className="w-[10%]"> |
597 | 601 | <span className="font-medium">支付</span> |
... | ... | @@ -760,7 +764,7 @@ const OrderPage = () => { |
760 | 764 | onConfirm={() => { |
761 | 765 | window.open( |
762 | 766 | '/previewApi/onlinePreview?url=' + |
763 | - encodeURIComponent(Base64.encode(item.url)), | |
767 | + encodeURIComponent(Base64.encode(item.url)), | |
764 | 768 | ); |
765 | 769 | }} |
766 | 770 | onCancel={() => { |
... | ... | @@ -832,7 +836,7 @@ const OrderPage = () => { |
832 | 836 | </span> |
833 | 837 | {(roleCode === 'salesRepresentative' || |
834 | 838 | roleCode === 'salesManager') && |
835 | - !optRecord.isCurrentUserOrder ? ( | |
839 | + !optRecord.isCurrentUserOrder ? ( | |
836 | 840 | <span className="text-[#f44e4e]">(非本账号订单)</span> |
837 | 841 | ) : ( |
838 | 842 | '' |
... | ... | @@ -896,7 +900,7 @@ const OrderPage = () => { |
896 | 900 | {optRecord.notes === null ? '暂无备注' : optRecord.notes} |
897 | 901 | </span> |
898 | 902 | </div> |
899 | - {userInfo.username !== '首能' ? ( | |
903 | + {!isSupplier() ? ( | |
900 | 904 | <EditTwoTone |
901 | 905 | className="pl-1 hover:curcor-pointer" |
902 | 906 | onClick={() => { |
... | ... | @@ -914,7 +918,7 @@ const OrderPage = () => { |
914 | 918 | {(roleCode === 'procure' || |
915 | 919 | roleCode === 'warehouseKeeper' || |
916 | 920 | roleCode === 'admin') && |
917 | - userInfo.username !== '首能' ? ( | |
921 | + !isSupplier() ? ( | |
918 | 922 | <> |
919 | 923 | <Flex title={optRecord.supplierName}> |
920 | 924 | <div className="max-w-[90%] whitespace-no-wrap overflow-hidden overflow-ellipsis"> |
... | ... | @@ -988,7 +992,7 @@ const OrderPage = () => { |
988 | 992 | )} */} |
989 | 993 | </Flex> |
990 | 994 | <Flex className="w-[13%]" vertical gap="small"> |
991 | - {userInfo.username !== '首能' ? ( | |
995 | + {!isSupplier() ? ( | |
992 | 996 | <> |
993 | 997 | <div |
994 | 998 | className="overflow-hidden whitespace-no-wrap overflow-ellipsis" |
... | ... | @@ -1015,7 +1019,7 @@ const OrderPage = () => { |
1015 | 1019 | <span className="text-[#8C8C8C]">{optRecord.unit}</span> |
1016 | 1020 | </div> |
1017 | 1021 | |
1018 | - {userInfo.username !== '首能' ? ( | |
1022 | + {!isSupplier() ? ( | |
1019 | 1023 | <div |
1020 | 1024 | className="overflow-hidden whitespace-no-wrap overflow-ellipsis" |
1021 | 1025 | title={optRecord.subOrderPayment} |
... | ... | @@ -1031,15 +1035,12 @@ const OrderPage = () => { |
1031 | 1035 | </Flex> |
1032 | 1036 | |
1033 | 1037 | <Flex className="w-[10%]" vertical gap="small"> |
1034 | - {userInfo.username !== '首能' ? ( | |
1038 | + {!isSupplier() ? ( | |
1035 | 1039 | <> |
1036 | 1040 | {/* 支付方式 */} |
1037 | 1041 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1038 | 1042 | <span className="text-slate-700"> |
1039 | - {enumValueToLabel( | |
1040 | - optRecord.paymentMethod, | |
1041 | - PAYMENT_METHOD_OPTIONS, | |
1042 | - )} | |
1043 | + {optRecord.paymentMethodText} | |
1043 | 1044 | </span> |
1044 | 1045 | </div> |
1045 | 1046 | {/* 支付渠道 */} |
... | ... | @@ -1051,13 +1052,35 @@ const OrderPage = () => { |
1051 | 1052 | )} |
1052 | 1053 | </span> |
1053 | 1054 | </div> |
1055 | + {/* 回款审核状态 */} | |
1056 | + {optRecord.paymentReceiptStatus !== null ? ( | |
1057 | + <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> | |
1058 | + <Tag className='hover:cursor-pointer' | |
1059 | + onMouseEnter={(e: any) => { | |
1060 | + e.target.innerText = "点击查看回款凭证" | |
1061 | + }} | |
1062 | + onMouseLeave={(e: any) => { | |
1063 | + e.target.innerText = enumValueToLabel(optRecord.paymentReceiptStatus, PAYMENT_RECEIPTS_STATUS_OPTIONS); | |
1064 | + }} | |
1065 | + onClick={()=>{ | |
1066 | + createOptObject(optRecord.id,record.id); | |
1067 | + setImagesViewerOptType("paymentReceipt"); | |
1068 | + setImagesViewerModalVisible(true); | |
1069 | + }} | |
1070 | + key="key" color={TAGS_COLOR.get(optRecord.paymentReceiptStatus)}> | |
1071 | + {enumValueToLabel(optRecord.paymentReceiptStatus, PAYMENT_RECEIPTS_STATUS_OPTIONS)} | |
1072 | + </Tag> | |
1073 | + </div> | |
1074 | + ) : ( | |
1075 | + '' | |
1076 | + )} | |
1054 | 1077 | </> |
1055 | 1078 | ) : ( |
1056 | 1079 | '' |
1057 | 1080 | )} |
1058 | 1081 | </Flex> |
1059 | 1082 | <Flex className="w-[13%]" vertical gap="small"> |
1060 | - {userInfo.username !== '首能' ? ( | |
1083 | + {!isSupplier() ? ( | |
1061 | 1084 | <> |
1062 | 1085 | {/* 所属部门 */} |
1063 | 1086 | <div |
... | ... | @@ -1087,27 +1110,30 @@ const OrderPage = () => { |
1087 | 1110 | )} |
1088 | 1111 | |
1089 | 1112 | {/* 开票状态 */} |
1090 | - <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> | |
1091 | - <Tooltip | |
1092 | - title={ | |
1093 | - optRecord.invoicingUrgentCause !== null && | |
1094 | - optRecord.afterInvoicingStatus === | |
1095 | - 'URGENT_INVOICE_AUDITING' | |
1096 | - ? optRecord.invoicingUrgentCause | |
1097 | - : enumValueToLabel( | |
1113 | + {optRecord.afterInvoicingStatus !== null ? | |
1114 | + <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> | |
1115 | + <Tooltip | |
1116 | + title={ | |
1117 | + optRecord.invoicingUrgentCause !== null && | |
1118 | + optRecord.afterInvoicingStatus === | |
1119 | + 'URGENT_INVOICE_AUDITING' | |
1120 | + ? optRecord.invoicingUrgentCause | |
1121 | + : enumValueToLabel( | |
1098 | 1122 | optRecord.afterInvoicingStatus, |
1099 | 1123 | AFTER_INVOICING_STATUS, |
1100 | 1124 | ) |
1101 | - } | |
1102 | - > | |
1103 | - <Tag color={TAGS_COLOR.get(optRecord.afterInvoicingStatus)}> | |
1104 | - {enumValueToLabel( | |
1105 | - optRecord.afterInvoicingStatus, | |
1106 | - AFTER_INVOICING_STATUS, | |
1107 | - )} | |
1108 | - </Tag> | |
1109 | - </Tooltip> | |
1110 | - </div> | |
1125 | + } | |
1126 | + > | |
1127 | + <Tag color={TAGS_COLOR.get(optRecord.afterInvoicingStatus)}> | |
1128 | + {enumValueToLabel( | |
1129 | + optRecord.afterInvoicingStatus, | |
1130 | + AFTER_INVOICING_STATUS, | |
1131 | + )} | |
1132 | + </Tag> | |
1133 | + </Tooltip> | |
1134 | + </div> | |
1135 | + : "" | |
1136 | + } | |
1111 | 1137 | |
1112 | 1138 | {/* 是否加急图标显示 */} |
1113 | 1139 | {optRecord.isUrgent ? ( |
... | ... | @@ -1123,7 +1149,7 @@ const OrderPage = () => { |
1123 | 1149 | )} |
1124 | 1150 | |
1125 | 1151 | {(roleCode === 'warehouseKeeper' || roleCode === 'admin') && |
1126 | - optRecord.shippingWarehouse !== null ? ( | |
1152 | + optRecord.shippingWarehouse !== null ? ( | |
1127 | 1153 | <div |
1128 | 1154 | className="overflow-hidden whitespace-no-wrap overflow-ellipsis" |
1129 | 1155 | title={enumValueToLabel( |
... | ... | @@ -1145,7 +1171,7 @@ const OrderPage = () => { |
1145 | 1171 | {/* 生产时间 */} |
1146 | 1172 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1147 | 1173 | {optRecord.productionStartTime !== null || |
1148 | - optRecord.productionEndTime !== null ? ( | |
1174 | + optRecord.productionEndTime !== null ? ( | |
1149 | 1175 | <MyToolTip |
1150 | 1176 | title={ |
1151 | 1177 | formatdate(optRecord.productionStartTime) + |
... | ... | @@ -1170,12 +1196,12 @@ const OrderPage = () => { |
1170 | 1196 | |
1171 | 1197 | <Flex className="w-[10%]" vertical gap="small"> |
1172 | 1198 | {/* 开票状态 */} |
1173 | - {userInfo.username !== '首能' ? ( | |
1199 | + {!isSupplier() ? ( | |
1174 | 1200 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1175 | 1201 | <Tag |
1176 | 1202 | color={ |
1177 | 1203 | optRecord.invoicingTime === null || |
1178 | - optRecord.invoicingTime === undefined | |
1204 | + optRecord.invoicingTime === undefined | |
1179 | 1205 | ? TAGS_COLOR.get(optRecord.invoicingStatus) |
1180 | 1206 | : 'success' |
1181 | 1207 | } |
... | ... | @@ -1203,7 +1229,7 @@ const OrderPage = () => { |
1203 | 1229 | |
1204 | 1230 | {/**采购是否已下单状态 */} |
1205 | 1231 | {optRecord.procureOrderStatus !== null && |
1206 | - optRecord.procureOrderStatus !== undefined ? ( | |
1232 | + optRecord.procureOrderStatus !== undefined ? ( | |
1207 | 1233 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1208 | 1234 | <Tag color="success"> |
1209 | 1235 | {enumValueToLabel( |
... | ... | @@ -1219,21 +1245,21 @@ const OrderPage = () => { |
1219 | 1245 | {/* 物流信息 */} |
1220 | 1246 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1221 | 1247 | {optRecord.orderStatus === 'CONFIRM_RECEIPT' || |
1222 | - optRecord.orderStatus === 'AFTER_SALES_COMPLETION' || | |
1223 | - optRecord.orderStatus === 'IN_AFTER_SALES' || | |
1224 | - optRecord.orderStatus === 'SHIPPED' ? ( | |
1248 | + optRecord.orderStatus === 'AFTER_SALES_COMPLETION' || | |
1249 | + optRecord.orderStatus === 'IN_AFTER_SALES' || | |
1250 | + optRecord.orderStatus === 'SHIPPED' ? ( | |
1225 | 1251 | <MyToolTip |
1226 | 1252 | title={ |
1227 | 1253 | optRecord.serialNumber === undefined |
1228 | 1254 | ? '暂无物流信息' |
1229 | 1255 | : enumValueToLabel( |
1230 | - optRecord.logisticsMethod, | |
1231 | - LOGISTICS_STATUS_OPTIONS, | |
1232 | - ) + | |
1233 | - ' ' + | |
1234 | - optRecord.serialNumber + | |
1235 | - ' ' + | |
1236 | - optRecord.logisticsNotes | |
1256 | + optRecord.logisticsMethod, | |
1257 | + LOGISTICS_STATUS_OPTIONS, | |
1258 | + ) + | |
1259 | + ' ' + | |
1260 | + optRecord.serialNumber + | |
1261 | + ' ' + | |
1262 | + optRecord.logisticsNotes | |
1237 | 1263 | } |
1238 | 1264 | content={ |
1239 | 1265 | <Button type="link" size="small" style={{ padding: 0 }}> |
... | ... | @@ -1247,7 +1273,7 @@ const OrderPage = () => { |
1247 | 1273 | |
1248 | 1274 | {/* 修改审核状态 */} |
1249 | 1275 | {optRecord.modifiedAuditStatus !== null && |
1250 | - optRecord.modifiedAuditStatus !== 'AUDIT_FAILURE' ? ( | |
1276 | + optRecord.modifiedAuditStatus !== 'AUDIT_FAILURE' ? ( | |
1251 | 1277 | <div className="overflow-hidden whitespace-no-wrap overflow-ellipsis"> |
1252 | 1278 | <Tooltip |
1253 | 1279 | title={enumValueToLabel( |
... | ... | @@ -1292,6 +1318,23 @@ const OrderPage = () => { |
1292 | 1318 | </div> |
1293 | 1319 | </Flex> |
1294 | 1320 | <Flex className="w-[18%]" wrap="wrap" gap="small"> |
1321 | + | |
1322 | + {optRecord.subPath?.includes('uploadPaymentReceiptBill') ? ( | |
1323 | + <Button | |
1324 | + className="p-0" | |
1325 | + type="link" | |
1326 | + onClick={() => { | |
1327 | + createOptObject(optRecord.id, record.id); | |
1328 | + setUploadPayBillModalVisible(true); | |
1329 | + }} | |
1330 | + > | |
1331 | + 回款 | |
1332 | + </Button> | |
1333 | + ) : ( | |
1334 | + '' | |
1335 | + )} | |
1336 | + | |
1337 | + | |
1295 | 1338 | {optRecord.subPath?.includes('leaderAudit') ? ( |
1296 | 1339 | <Button |
1297 | 1340 | className="p-0" |
... | ... | @@ -1310,6 +1353,22 @@ const OrderPage = () => { |
1310 | 1353 | '' |
1311 | 1354 | )} |
1312 | 1355 | |
1356 | + {optRecord.subPath?.includes('auditPaymentReceipt') ? ( | |
1357 | + <Button | |
1358 | + className="p-0" | |
1359 | + type="link" | |
1360 | + onClick={() => { | |
1361 | + createOptObject(optRecord.id, record.id); | |
1362 | + setCheckVisible(true); | |
1363 | + setOrderCheckType(CHECK_TYPE.PAYMENT_RECEIPTS_AUDIT); | |
1364 | + }} | |
1365 | + > | |
1366 | + 回款审核 | |
1367 | + </Button> | |
1368 | + ) : ( | |
1369 | + '' | |
1370 | + )} | |
1371 | + | |
1313 | 1372 | {/* 加急审核 */} |
1314 | 1373 | {optRecord.subPath?.includes('URGENT_INVOICE_AUDITING') ? ( |
1315 | 1374 | <Button |
... | ... | @@ -1491,7 +1550,7 @@ const OrderPage = () => { |
1491 | 1550 | setOrderCheckType(CHECK_TYPE.PROCURE); |
1492 | 1551 | }} |
1493 | 1552 | > |
1494 | - {userInfo.username === '首能' ? '发货' : '采购发货'} | |
1553 | + {isSupplier() ? '发货' : '采购发货'} | |
1495 | 1554 | </Button> |
1496 | 1555 | ) : ( |
1497 | 1556 | '' |
... | ... | @@ -1513,7 +1572,7 @@ const OrderPage = () => { |
1513 | 1572 | )} |
1514 | 1573 | |
1515 | 1574 | {optRecord.subPath?.includes('queryAnnex') && |
1516 | - optRecord.listAnnex?.length > 0 ? ( | |
1575 | + optRecord.listAnnex?.length > 0 ? ( | |
1517 | 1576 | <Button |
1518 | 1577 | className="p-0" |
1519 | 1578 | type="link" |
... | ... | @@ -1855,7 +1914,8 @@ const OrderPage = () => { |
1855 | 1914 | type="link" |
1856 | 1915 | onClick={() => { |
1857 | 1916 | createOptObject(optRecord.id, record.id); |
1858 | - setSubOrderConfirmReceiptImagesVisible(true); | |
1917 | + setImagesViewerOptType("shippingReceipt"); | |
1918 | + setImagesViewerModalVisible(true); | |
1859 | 1919 | }} |
1860 | 1920 | > |
1861 | 1921 | 查看收货凭证 |
... | ... | @@ -1887,9 +1947,9 @@ const OrderPage = () => { |
1887 | 1947 | </Flex> |
1888 | 1948 | |
1889 | 1949 | {roleCode === 'admin' || |
1890 | - roleCode === 'salesManager' || | |
1891 | - roleCode === 'salesRepresentative' || | |
1892 | - roleCode === 'finance' ? ( | |
1950 | + roleCode === 'salesManager' || | |
1951 | + roleCode === 'salesRepresentative' || | |
1952 | + roleCode === 'finance' ? ( | |
1893 | 1953 | <Flex title={optRecord.notes}> |
1894 | 1954 | <div className="flex items-center"> |
1895 | 1955 | <div className="flex items-center max-w-[500px]"> |
... | ... | @@ -1901,7 +1961,7 @@ const OrderPage = () => { |
1901 | 1961 | <span className="text-[#8C8C8C]"> |
1902 | 1962 | 申请开票备注: |
1903 | 1963 | {optRecord.applyInvoicingNotes === undefined || |
1904 | - optRecord.applyInvoicingNotes === null | |
1964 | + optRecord.applyInvoicingNotes === null | |
1905 | 1965 | ? '暂无备注' |
1906 | 1966 | : optRecord.applyInvoicingNotes} |
1907 | 1967 | </span> |
... | ... | @@ -1929,7 +1989,7 @@ const OrderPage = () => { |
1929 | 1989 | <span className="text-[#8C8C8C] mr-3"> |
1930 | 1990 | 财务审核备注: |
1931 | 1991 | {optRecord.checkNotes === undefined || |
1932 | - optRecord.checkNotes === null | |
1992 | + optRecord.checkNotes === null | |
1933 | 1993 | ? '暂无备注' |
1934 | 1994 | : optRecord.checkNotes} |
1935 | 1995 | </span> |
... | ... | @@ -2118,7 +2178,7 @@ const OrderPage = () => { |
2118 | 2178 | <span className="text-[#8C8C8C]">代表:</span> |
2119 | 2179 | <span className="text-slate-700">{record.salesCode}</span> |
2120 | 2180 | </div> |
2121 | - {userInfo?.username !== '首能' ? ( | |
2181 | + {!isSupplier() ? ( | |
2122 | 2182 | <> |
2123 | 2183 | <div |
2124 | 2184 | title={record.institution} |
... | ... | @@ -2150,7 +2210,7 @@ const OrderPage = () => { |
2150 | 2210 | <span className="text-slate-700"> |
2151 | 2211 | {record.customerName + ' '} |
2152 | 2212 | |
2153 | - {userInfo?.username !== '首能' ? ( | |
2213 | + {!isSupplier() ? ( | |
2154 | 2214 | <Tooltip className="order-tooltip" title="详情"> |
2155 | 2215 | <ContainerTwoTone |
2156 | 2216 | className="hover:curcor-pointer" |
... | ... | @@ -2165,7 +2225,7 @@ const OrderPage = () => { |
2165 | 2225 | )} |
2166 | 2226 | </span> |
2167 | 2227 | </span> |
2168 | - {userInfo?.username === '首能' ? ( | |
2228 | + {isSupplier() ? ( | |
2169 | 2229 | <div |
2170 | 2230 | title={record.customerShippingAddress} |
2171 | 2231 | className="whitespace-no-wrap overflow-hidden overflow-ellipsis max-w-[500px] hover:cursor-pointer" |
... | ... | @@ -2188,7 +2248,7 @@ const OrderPage = () => { |
2188 | 2248 | </Flex> |
2189 | 2249 | </Flex> |
2190 | 2250 | |
2191 | - {userInfo.username === '首能' ? ( | |
2251 | + {isSupplier() ? ( | |
2192 | 2252 | <Flex className="pl-6" align="center"> |
2193 | 2253 | <Flex |
2194 | 2254 | className="hover:cursor-pointer" |
... | ... | @@ -2222,9 +2282,9 @@ const OrderPage = () => { |
2222 | 2282 | <span className="text-slate-700"> |
2223 | 2283 | {record.receivingCompany !== null |
2224 | 2284 | ? enumValueToLabel( |
2225 | - record.receivingCompany, | |
2226 | - getReceivingCompanyOptions(PAYEE_OPTIONS), | |
2227 | - ) | |
2285 | + record.receivingCompany, | |
2286 | + getReceivingCompanyOptions(PAYEE_OPTIONS), | |
2287 | + ) | |
2228 | 2288 | : '暂无'} |
2229 | 2289 | </span> |
2230 | 2290 | </div> |
... | ... | @@ -2249,7 +2309,7 @@ const OrderPage = () => { |
2249 | 2309 | </div> |
2250 | 2310 | </div> |
2251 | 2311 | |
2252 | - {userInfo.username !== '首能' ? ( | |
2312 | + {!isSupplier() ? ( | |
2253 | 2313 | <Tooltip title="编辑"> |
2254 | 2314 | <EditTwoTone |
2255 | 2315 | className="pl-1 hover:curcor-pointer" |
... | ... | @@ -2264,12 +2324,51 @@ const OrderPage = () => { |
2264 | 2324 | ) : ( |
2265 | 2325 | '' |
2266 | 2326 | )} |
2327 | + | |
2328 | + { | |
2329 | + record.goodsWeight !== null ? | |
2330 | + <div title={record.goodsWeight + "kg"} className='pl-3'> | |
2331 | + <div | |
2332 | + className="max-w-md overflow-hidden whitespace-no-wrap overflow-ellipsis hover:cursor-pointer" | |
2333 | + onClick={() => { | |
2334 | + copyToClipboard(record.goodsWeight + "kg"); | |
2335 | + message.info('包裹重量复制成功:' + record.goodsWeight + "kg"); | |
2336 | + }} | |
2337 | + > | |
2338 | + <span className="text-[#8C8C8C]">包裹重量:</span> | |
2339 | + <span className="ml-2"> | |
2340 | + {record.goodsWeight + "kg"} | |
2341 | + </span> | |
2342 | + </div> | |
2343 | + </div> | |
2344 | + : "" | |
2345 | + } | |
2346 | + | |
2347 | + { | |
2348 | + record.goodsVolume !== null ? | |
2349 | + <div title={record.goodsVolume + "m³"} className='pl-3'> | |
2350 | + <div | |
2351 | + className="max-w-md overflow-hidden whitespace-no-wrap overflow-ellipsis hover:cursor-pointer" | |
2352 | + onClick={() => { | |
2353 | + copyToClipboard(record.goodsVolume + "m³"); | |
2354 | + message.info('包裹体积复制成功:' + record.goodsVolume + "m³"); | |
2355 | + }} | |
2356 | + > | |
2357 | + <span className="text-[#8C8C8C]">包裹体积:</span> | |
2358 | + <span className="ml-2"> | |
2359 | + {record.goodsVolume + "m³"} | |
2360 | + </span> | |
2361 | + </div> | |
2362 | + </div> | |
2363 | + : "" | |
2364 | + } | |
2365 | + | |
2267 | 2366 | </Flex> |
2268 | 2367 | </Flex> |
2269 | 2368 | <Flex wrap="wrap" gap="middle" vertical> |
2270 | 2369 | <Flex justify="flex-end"> |
2271 | 2370 | <Flex wrap="wrap" gap="middle" align="center"> |
2272 | - {userInfo.username !== '首能' ? ( | |
2371 | + {!isSupplier() ? ( | |
2273 | 2372 | <div> |
2274 | 2373 | <span className="text-[#8C8C8C]">总金额:¥</span> |
2275 | 2374 | <span className="text-lg font-medium"> |
... | ... | @@ -2302,7 +2401,7 @@ const OrderPage = () => { |
2302 | 2401 | /> |
2303 | 2402 | </Tooltip> |
2304 | 2403 | )} |
2305 | - {userInfo.username !== '首能' ? ( | |
2404 | + {!isSupplier() ? ( | |
2306 | 2405 | <Tooltip title="历史"> |
2307 | 2406 | <ClockCircleTwoTone |
2308 | 2407 | className="hover:cursor-pointer" |
... | ... | @@ -2324,6 +2423,21 @@ const OrderPage = () => { |
2324 | 2423 | <Flex justify="flex-end"> |
2325 | 2424 | <Space.Compact direction="vertical" align="end"> |
2326 | 2425 | <Space wrap> |
2426 | + {record.mainPath?.includes('uploadPaymentReceiptBill') ? ( | |
2427 | + <Button | |
2428 | + className="p-0" | |
2429 | + type="link" | |
2430 | + onClick={() => { | |
2431 | + createOptObject(null, record.id); | |
2432 | + setUploadPayBillModalVisible(true); | |
2433 | + }} | |
2434 | + > | |
2435 | + 回款 | |
2436 | + </Button> | |
2437 | + ) : ( | |
2438 | + '' | |
2439 | + )} | |
2440 | + | |
2327 | 2441 | {record.mainPath?.includes('modifiedAuditRequest') ? ( |
2328 | 2442 | <Button |
2329 | 2443 | className="p-0" |
... | ... | @@ -2356,6 +2470,22 @@ const OrderPage = () => { |
2356 | 2470 | '' |
2357 | 2471 | )} |
2358 | 2472 | |
2473 | + {record.mainPath?.includes('auditPaymentReceipt') ? ( | |
2474 | + <Button | |
2475 | + className="p-0" | |
2476 | + type="link" | |
2477 | + onClick={() => { | |
2478 | + createOptObject(null, record.id); | |
2479 | + setCheckVisible(true); | |
2480 | + setOrderCheckType(CHECK_TYPE.PAYMENT_RECEIPTS_AUDIT); | |
2481 | + }} | |
2482 | + > | |
2483 | + 回款审核 | |
2484 | + </Button> | |
2485 | + ) : ( | |
2486 | + '' | |
2487 | + )} | |
2488 | + | |
2359 | 2489 | {record.mainPath?.includes('modifiedLeaderAuditRequest') ? ( |
2360 | 2490 | <Button |
2361 | 2491 | className="p-0" |
... | ... | @@ -2653,7 +2783,7 @@ const OrderPage = () => { |
2653 | 2783 | setOrderCheckType(CHECK_TYPE.PROCURE); |
2654 | 2784 | }} |
2655 | 2785 | > |
2656 | - {userInfo.username === '首能' ? '发货' : '采购发货'} | |
2786 | + {isSupplier() ? '发货' : '采购发货'} | |
2657 | 2787 | </Button> |
2658 | 2788 | ) : ( |
2659 | 2789 | '' |
... | ... | @@ -2800,9 +2930,9 @@ const OrderPage = () => { |
2800 | 2930 | for (let i = 0; i < selectedSubOrders.length; i++) { |
2801 | 2931 | if ( |
2802 | 2932 | selectedSubOrders[i].invoicingStatus === |
2803 | - 'UN_INVOICE' || | |
2933 | + 'UN_INVOICE' || | |
2804 | 2934 | selectedSubOrders[i].afterInvoicingStatus === |
2805 | - 'APPLY_FOR_INVOICING' | |
2935 | + 'APPLY_FOR_INVOICING' | |
2806 | 2936 | ) { |
2807 | 2937 | message.error( |
2808 | 2938 | '请选择需要开票且未申请开票的子订单进行申请', |
... | ... | @@ -2991,13 +3121,13 @@ const OrderPage = () => { |
2991 | 3121 | if ( |
2992 | 3122 | selectedSubOrders[i].orderStatus !== 'AUDITED' && |
2993 | 3123 | selectedSubOrders[i].orderStatus !== |
2994 | - 'PROCURE_PROCESS' && | |
3124 | + 'PROCURE_PROCESS' && | |
2995 | 3125 | selectedSubOrders[i].orderStatus !== |
2996 | - 'PROCURE_PROCESS_FOR_MINE' && | |
3126 | + 'PROCURE_PROCESS_FOR_MINE' && | |
2997 | 3127 | selectedSubOrders[i].orderStatus !== |
2998 | - 'PROCURE_WAIT_SHIP' && | |
3128 | + 'PROCURE_WAIT_SHIP' && | |
2999 | 3129 | selectedSubOrders[i].orderStatus !== |
3000 | - 'SUPPLIER_WAIT_SHIP' && | |
3130 | + 'SUPPLIER_WAIT_SHIP' && | |
3001 | 3131 | selectedSubOrders[i].orderStatus !== 'WAIT_SHIP' |
3002 | 3132 | ) { |
3003 | 3133 | message.error( |
... | ... | @@ -3084,9 +3214,9 @@ const OrderPage = () => { |
3084 | 3214 | if ( |
3085 | 3215 | selectedSubOrders[i].orderStatus !== 'UNAUDITED' && |
3086 | 3216 | selectedSubOrders[i].orderStatus !== |
3087 | - 'FINANCE_PROCESS' && | |
3217 | + 'FINANCE_PROCESS' && | |
3088 | 3218 | selectedSubOrders[i].orderStatus !== |
3089 | - 'LEADER_AUDITED' | |
3219 | + 'LEADER_AUDITED' | |
3090 | 3220 | ) { |
3091 | 3221 | message.error( |
3092 | 3222 | '请选择[未审核]、[财务待审核]、[领导已审核]的子订单进行审核', |
... | ... | @@ -3154,9 +3284,9 @@ const OrderPage = () => { |
3154 | 3284 | for (let i = 0; i < selectedSubOrders.length; i++) { |
3155 | 3285 | if ( |
3156 | 3286 | selectedSubOrders[i].orderStatus !== |
3157 | - 'CONFIRM_RECEIPT' && | |
3287 | + 'CONFIRM_RECEIPT' && | |
3158 | 3288 | selectedSubOrders[i].orderStatus !== |
3159 | - 'AFTER_SALES_FAILURE' | |
3289 | + 'AFTER_SALES_FAILURE' | |
3160 | 3290 | ) { |
3161 | 3291 | message.error('请选择确认收货状态的子订单进行售后'); |
3162 | 3292 | return; |
... | ... | @@ -3361,7 +3491,7 @@ const OrderPage = () => { |
3361 | 3491 | //首能账号只能搜索订单编号 |
3362 | 3492 | let canSearchIndex = ['id', 'salesCode', 'subNotes', 'orderStatus']; |
3363 | 3493 | if ( |
3364 | - userInfo.username === '首能' && | |
3494 | + isSupplier() && | |
3365 | 3495 | !canSearchIndex.includes(item.dataIndex) |
3366 | 3496 | ) { |
3367 | 3497 | item.search = false; |
... | ... | @@ -3393,7 +3523,7 @@ const OrderPage = () => { |
3393 | 3523 | */ |
3394 | 3524 | if ( |
3395 | 3525 | (roleCode === 'procure' || roleCode === 'admin') && |
3396 | - userInfo.username !== '首能' | |
3526 | + !isSupplier() | |
3397 | 3527 | ) { |
3398 | 3528 | mainOrdersColumns.push({ |
3399 | 3529 | title: '供应商备注', |
... | ... | @@ -3409,7 +3539,7 @@ const OrderPage = () => { |
3409 | 3539 | */ |
3410 | 3540 | if ( |
3411 | 3541 | (roleCode === 'procure' || roleCode === 'admin') && |
3412 | - userInfo.username !== '首能' | |
3542 | + !isSupplier() | |
3413 | 3543 | ) { |
3414 | 3544 | mainOrdersColumns.push({ |
3415 | 3545 | title: '采购名称', |
... | ... | @@ -3444,7 +3574,7 @@ const OrderPage = () => { |
3444 | 3574 | //判断是否是采购,是的话新增一个筛选条件 |
3445 | 3575 | if (roleCode === 'procure' || roleCode === 'admin') { |
3446 | 3576 | mainOrdersColumns.push({ |
3447 | - title: '采购下单状态', | |
3577 | + title: isSupplier() ? '下单状态' : '采购下单状态', | |
3448 | 3578 | dataIndex: 'procureOrderStatus', |
3449 | 3579 | valueType: 'select', |
3450 | 3580 | hideInTable: true, |
... | ... | @@ -3471,7 +3601,7 @@ const OrderPage = () => { |
3471 | 3601 | } |
3472 | 3602 | |
3473 | 3603 | //采购可以筛选出需要处理的订单 |
3474 | - if (roleCode === 'procure' && userInfo.username !== '首能') { | |
3604 | + if (roleCode === 'procure' && !isSupplier()) { | |
3475 | 3605 | radios.push(<Radio value={60}>其他采购</Radio>); |
3476 | 3606 | radios.push(<Radio value={10}>待处理</Radio>); |
3477 | 3607 | } |
... | ... | @@ -3557,7 +3687,7 @@ const OrderPage = () => { |
3557 | 3687 | |
3558 | 3688 | const exportMenuProps = { |
3559 | 3689 | items: exportItems, |
3560 | - onClick: () => {}, | |
3690 | + onClick: () => { }, | |
3561 | 3691 | }; |
3562 | 3692 | |
3563 | 3693 | //导出按钮配置 |
... | ... | @@ -3593,7 +3723,7 @@ const OrderPage = () => { |
3593 | 3723 | |
3594 | 3724 | const auditProps = { |
3595 | 3725 | items: auditItems, |
3596 | - onClick: () => {}, | |
3726 | + onClick: () => { }, | |
3597 | 3727 | }; |
3598 | 3728 | |
3599 | 3729 | if (rolePath?.includes('leaderMergeAudit')) { |
... | ... | @@ -3701,8 +3831,8 @@ const OrderPage = () => { |
3701 | 3831 | if (errorIds.size > 0) { |
3702 | 3832 | message.error( |
3703 | 3833 | '订单号为:' + |
3704 | - [...errorIds.values()].join(',') + | |
3705 | - '的订单存在不是[申请开票]或者[部分开票]状态的子订单,请检查!', | |
3834 | + [...errorIds.values()].join(',') + | |
3835 | + '的订单存在不是[申请开票]或者[部分开票]状态的子订单,请检查!', | |
3706 | 3836 | ); |
3707 | 3837 | return; |
3708 | 3838 | } |
... | ... | @@ -4139,16 +4269,17 @@ const OrderPage = () => { |
4139 | 4269 | /> |
4140 | 4270 | )} |
4141 | 4271 | |
4142 | - {subOrderConfirmReceiptImagesVisible && ( | |
4143 | - <SubOrderComfirmReceiptImagesModal | |
4272 | + {imagesViewerModalVisible && ( | |
4273 | + <ImagesViewerModal | |
4274 | + optType={imagesViewerOptType} | |
4144 | 4275 | setVisible={(val: boolean) => { |
4145 | - setSubOrderConfirmReceiptImagesVisible(val); | |
4276 | + setImagesViewerModalVisible(val); | |
4146 | 4277 | if (!val) { |
4147 | 4278 | clearOptObject(); |
4148 | 4279 | } |
4149 | 4280 | }} |
4150 | 4281 | onClose={() => { |
4151 | - setSubOrderConfirmReceiptImagesVisible(false); | |
4282 | + setImagesViewerModalVisible(false); | |
4152 | 4283 | }} |
4153 | 4284 | orderRow={buildSubOrders()[0]} |
4154 | 4285 | /> |
... | ... | @@ -4355,6 +4486,24 @@ const OrderPage = () => { |
4355 | 4486 | /> |
4356 | 4487 | )} |
4357 | 4488 | |
4489 | + {uploadPayBillModalVisible && ( | |
4490 | + <UploadPayBillModal | |
4491 | + setVisible={(val: boolean) => { | |
4492 | + setUploadPayBillModalVisible(val); | |
4493 | + if (!val) { | |
4494 | + clearOptObject(); | |
4495 | + } | |
4496 | + }} | |
4497 | + subOrders={buildSubOrders()} | |
4498 | + mainOrder={buildMainOrder()} | |
4499 | + onClose={() => { | |
4500 | + setUploadPayBillModalVisible(false); | |
4501 | + clearOptObject(); | |
4502 | + refreshTable(); | |
4503 | + }} | |
4504 | + /> | |
4505 | + )} | |
4506 | + | |
4358 | 4507 | {messageListDrawerVisible && ( |
4359 | 4508 | <MessageListDrawer |
4360 | 4509 | setVisible={(val: any) => { | ... | ... |
src/pages/Order/type.d.ts
src/services/definition.ts
... | ... | @@ -3,74 +3,74 @@ |
3 | 3 | /** Do not modify manually. |
4 | 4 | content is generated automatically by `ts-gear`. */ |
5 | 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'; | |
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 | 74 | export interface AdminAuthRoleVO { |
75 | 75 | menuIds?: Array<number>; |
76 | 76 | /** @format int64 */ |
... | ... | @@ -311,6 +311,75 @@ export interface AdminUserVO { |
311 | 311 | userName?: string; |
312 | 312 | } |
313 | 313 | |
314 | +export interface ApiApplyAddressModifyRequest { | |
315 | + address?: string; | |
316 | + /** | |
317 | + * @description | |
318 | + * 收货联系人手机号 | |
319 | + */ | |
320 | + customerContactNumber?: string; | |
321 | + orderId?: string; | |
322 | + phone?: string; | |
323 | + realName?: string; | |
324 | + /** | |
325 | + * @description | |
326 | + * 账号id | |
327 | + * @format int32 | |
328 | + */ | |
329 | + uid?: number; | |
330 | +} | |
331 | + | |
332 | +export interface ApiApplyAfterSalesRequest { | |
333 | + applyReason?: string; | |
334 | + applyType?: string; | |
335 | + /** | |
336 | + * @description | |
337 | + * 收货联系人手机号 | |
338 | + */ | |
339 | + customerContactNumber?: string; | |
340 | + filePaths?: Array<FilePathDto>; | |
341 | + subOrderIds?: Array<string>; | |
342 | + /** | |
343 | + * @description | |
344 | + * 账号id | |
345 | + * @format int32 | |
346 | + */ | |
347 | + uid?: number; | |
348 | +} | |
349 | + | |
350 | +export interface ApiQueryOrderDetailRequest { | |
351 | + /** | |
352 | + * @description | |
353 | + * 收货联系人手机号 | |
354 | + */ | |
355 | + customerContactNumber?: string; | |
356 | + /** | |
357 | + * @description | |
358 | + * 订单编号 | |
359 | + */ | |
360 | + orderId?: string; | |
361 | + /** | |
362 | + * @description | |
363 | + * 账号id | |
364 | + * @format int32 | |
365 | + */ | |
366 | + uid?: number; | |
367 | +} | |
368 | + | |
369 | +export interface ApiQueryOrderStatusCountsRequest { | |
370 | + /** | |
371 | + * @description | |
372 | + * 收货联系人手机号 | |
373 | + */ | |
374 | + customerContactNumber?: string; | |
375 | + /** | |
376 | + * @description | |
377 | + * 账号id | |
378 | + * @format int32 | |
379 | + */ | |
380 | + uid?: number; | |
381 | +} | |
382 | + | |
314 | 383 | export interface AuditDto { |
315 | 384 | notes?: string; |
316 | 385 | /** |
... | ... | @@ -321,7 +390,7 @@ export interface AuditDto { |
321 | 390 | subOrderIds?: Array<number>; |
322 | 391 | /** |
323 | 392 | * @description |
324 | - * 审核类型:post_audit 后置审核、node_operating_audit 节点操作人审核、warehouse_audit 仓库审核 | |
393 | + * 审核类型:urgent_invoice_audit 加急开票审核、post_audit 后置审核、node_operating_audit 节点操作人审核、warehouse_audit 仓库审核 | |
325 | 394 | */ |
326 | 395 | type?: string; |
327 | 396 | } |
... | ... | @@ -1531,6 +1600,7 @@ export interface ToProcureAuditDto { |
1531 | 1600 | } |
1532 | 1601 | |
1533 | 1602 | export interface TokenApiDto { |
1603 | + clientId?: string; | |
1534 | 1604 | password?: string; |
1535 | 1605 | username?: string; |
1536 | 1606 | } |
... | ... | @@ -1647,6 +1717,19 @@ export interface View { |
1647 | 1717 | contentType?: string; |
1648 | 1718 | } |
1649 | 1719 | |
1720 | +export interface UploadPaymentReceiptDTO { | |
1721 | + /** | |
1722 | + * @description | |
1723 | + * 回款单 | |
1724 | + */ | |
1725 | + filePaths?: Array<FilePathDto>; | |
1726 | + /** | |
1727 | + * @description | |
1728 | + * 子订单id | |
1729 | + */ | |
1730 | + subOrderIds?: Array<number>; | |
1731 | +} | |
1732 | + | |
1650 | 1733 | export interface Dto { |
1651 | 1734 | /** |
1652 | 1735 | * @description | ... | ... |
src/services/request.ts
... | ... | @@ -2,86 +2,175 @@ |
2 | 2 | /* tslint:disable */ |
3 | 3 | /** Do not modify manually. |
4 | 4 | content is generated automatically by `ts-gear`. */ |
5 | -import { request as requester } from 'umi'; | |
5 | +import { request as requester } from "umi"; | |
6 | 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 | - AuditDto, | |
25 | - AuditVO, | |
26 | - CancelInvoiceAndBankStatementDto, | |
27 | - CancelSendOrderDto, | |
28 | - CaptchaMessageVO, | |
29 | - CustomFieldRes, | |
7 | + ServerResult, | |
8 | + ApiApplyAddressModifyRequest, | |
9 | + ApiApplyAfterSalesRequest, | |
10 | + ApiQueryOrderDetailRequest, | |
11 | + ApiQueryOrderStatusCountsRequest, | |
12 | + Dto, | |
30 | 13 | CustomerCustomerListReq, |
14 | + CustomerListRes, | |
31 | 15 | CustomerDetailDto, |
32 | 16 | CustomerDetailRes, |
33 | - CustomerListRes, | |
34 | 17 | CustomerSaveReq, |
35 | - DictionaryQueryVO, | |
36 | - DictionaryVO, | |
37 | - Dto, | |
38 | - InventoryMaterialStockReq, | |
39 | - MaterialListReply, | |
18 | + SaveReply, | |
40 | 19 | MaterialMaterialListReq, |
20 | + MaterialListReply, | |
21 | + InventoryMaterialStockReq, | |
41 | 22 | MaterialStockRes, |
23 | + UnitMaterialUnitListReq, | |
42 | 24 | MaterialUnitListRes, |
25 | + UnitMeasureUnitListReq, | |
43 | 26 | MeasureUnitListRes, |
27 | + SalOrderSaveDto, | |
28 | + SystemCustomFieldReq, | |
29 | + CustomFieldRes, | |
30 | + OrderFieldLockApplyQueryVO, | |
31 | + AuditVO, | |
32 | + OrderAuditLogQueryVO, | |
33 | + AdminUserLoginByPhoneVO, | |
34 | + AdminUserLoginByPwdVO, | |
35 | + AdminUserModifyPwdVO, | |
36 | + AdminUserRegisterVO, | |
37 | + AdminUserPasswordRecoverEmailVO, | |
38 | + TokenApiDto, | |
39 | + CaptchaMessageVO, | |
40 | + AdminDeptVO, | |
41 | + AdminDeptQueryVO, | |
42 | + DictionaryVO, | |
43 | + DictionaryQueryVO, | |
44 | + AdminJobVO, | |
45 | + AdminJobQueryVO, | |
46 | + SysLogQueryVO, | |
47 | + AdminMenuVO, | |
48 | + AdminMenuQueryVO, | |
44 | 49 | MessageQueryDTO, |
45 | - ModelAndView, | |
50 | + OrderOptLogQueryVO, | |
46 | 51 | OrderAddVO, |
47 | - OrderAuditLogQueryVO, | |
48 | 52 | OrderBaseInfoQueryVO, |
49 | - OrderFieldLockApplyQueryVO, | |
50 | - OrderOptLogQueryVO, | |
51 | - OrderProfitAnalysisVo, | |
52 | - OrderUnlockFieldApplyVO, | |
53 | 53 | OrderUpdateVO, |
54 | + OrderUnlockFieldApplyVO, | |
55 | + OrderProfitAnalysisVo, | |
56 | + AdminRoleVO, | |
57 | + AdminRoleQueryVO, | |
58 | + AdminAuthRoleVO, | |
59 | + AdminUserVO, | |
60 | + AdminAuthUserVO, | |
61 | + AdminUserQueryVO, | |
62 | + ResetPwdVO, | |
63 | + UpdatePwdVO, | |
64 | + QueryBankStatementDto, | |
65 | + CancelInvoiceAndBankStatementDto, | |
66 | + QueryInvoiceDetailDto, | |
67 | + AuditDto, | |
68 | + CancelSendOrderDto, | |
54 | 69 | ProcureConvertProcureDto, |
55 | 70 | ProcureOrderDto, |
56 | 71 | ProcurePrintDto, |
57 | - ProductInformationDto, | |
58 | 72 | QueryAfterSalesInfoSnapshotDto, |
59 | - QueryAnnexDto, | |
60 | - QueryBankStatementDto, | |
61 | 73 | QueryCustomerInformationDto, |
62 | - QueryHistoryRecordDto, | |
63 | - QueryInvoiceDetailDto, | |
64 | 74 | QueryMainOrderDto, |
75 | + QueryHistoryRecordDto, | |
76 | + ProductInformationDto, | |
65 | 77 | QueryReportFormsDto, |
66 | - ResetPwdVO, | |
67 | - SalOrderSaveDto, | |
68 | - SaveReply, | |
69 | - ServerResult, | |
70 | 78 | ShippingWarehouseChangeDto, |
71 | - SysLogQueryVO, | |
72 | - SystemCustomFieldReq, | |
73 | 79 | ToProcureAuditDto, |
74 | - TokenApiDto, | |
75 | - UnitMaterialUnitListReq, | |
76 | - UnitMeasureUnitListReq, | |
80 | + QueryAnnexDto, | |
77 | 81 | UpdateHirePurchaseDto, |
78 | - UpdatePwdVO, | |
79 | -} from './definition'; | |
82 | + UploadPaymentReceiptDTO, | |
83 | +} from "./definition"; | |
84 | + | |
85 | +/** @description request parameter type for postApiLocalStorageUpload */ | |
86 | +export interface PostApiLocalStorageUploadOption { | |
87 | + /** | |
88 | + * @description | |
89 | + * file | |
90 | + */ | |
91 | + formData: { | |
92 | + /** | |
93 | + @description | |
94 | + file */ | |
95 | + file: File; | |
96 | + }; | |
97 | +} | |
80 | 98 | |
81 | 99 | /** @description request parameter type for postApiLocalStorageUpload */ |
82 | 100 | export interface PostApiLocalStorageUploadOption { |
83 | 101 | /** |
84 | 102 | * @description |
103 | + * name | |
104 | + */ | |
105 | + query: { | |
106 | + /** | |
107 | + @description | |
108 | + name */ | |
109 | + name: string; | |
110 | + }; | |
111 | +} | |
112 | + | |
113 | +/** @description response type for postApiLocalStorageUpload */ | |
114 | +export interface PostApiLocalStorageUploadResponse { | |
115 | + /** | |
116 | + * @description | |
117 | + * OK | |
118 | + */ | |
119 | + 200: ServerResult; | |
120 | + /** | |
121 | + * @description | |
122 | + * Created | |
123 | + */ | |
124 | + 201: any; | |
125 | + /** | |
126 | + * @description | |
127 | + * Unauthorized | |
128 | + */ | |
129 | + 401: any; | |
130 | + /** | |
131 | + * @description | |
132 | + * Forbidden | |
133 | + */ | |
134 | + 403: any; | |
135 | + /** | |
136 | + * @description | |
137 | + * Not Found | |
138 | + */ | |
139 | + 404: any; | |
140 | +} | |
141 | + | |
142 | +export type PostApiLocalStorageUploadResponseSuccess = | |
143 | + PostApiLocalStorageUploadResponse[200]; | |
144 | +/** | |
145 | + * @description | |
146 | + * 上传文件 | |
147 | + * @tags 文件上传 | |
148 | + * @produces * | |
149 | + * @consumes multipart/form-data | |
150 | + */ | |
151 | +export const postApiLocalStorageUpload = /* #__PURE__ */ (() => { | |
152 | + const method = "post"; | |
153 | + const url = "/api/localStorage/upload"; | |
154 | + function request( | |
155 | + option: PostApiLocalStorageUploadOption | |
156 | + ): Promise<PostApiLocalStorageUploadResponseSuccess> { | |
157 | + return requester(request.url, { | |
158 | + method: request.method, | |
159 | + ...option, | |
160 | + }) as unknown as Promise<PostApiLocalStorageUploadResponseSuccess>; | |
161 | + } | |
162 | + | |
163 | + /** http method */ | |
164 | + request.method = method; | |
165 | + /** request url */ | |
166 | + request.url = url; | |
167 | + return request; | |
168 | +})(); | |
169 | + | |
170 | +/** @description request parameter type for postApiLocalStorageUploadOss */ | |
171 | +export interface PostApiLocalStorageUploadOssOption { | |
172 | + /** | |
173 | + * @description | |
85 | 174 | * file |
86 | 175 | */ |
87 | 176 | formData: { |
... | ... | @@ -92,22 +181,306 @@ export interface PostApiLocalStorageUploadOption { |
92 | 181 | }; |
93 | 182 | } |
94 | 183 | |
95 | -/** @description request parameter type for postApiLocalStorageUpload */ | |
96 | -export interface PostApiLocalStorageUploadOption { | |
184 | +/** @description request parameter type for postApiLocalStorageUploadOss */ | |
185 | +export interface PostApiLocalStorageUploadOssOption { | |
186 | + /** | |
187 | + * @description | |
188 | + * name | |
189 | + */ | |
190 | + query: { | |
191 | + /** | |
192 | + @description | |
193 | + name */ | |
194 | + name: string; | |
195 | + }; | |
196 | +} | |
197 | + | |
198 | +/** @description response type for postApiLocalStorageUploadOss */ | |
199 | +export interface PostApiLocalStorageUploadOssResponse { | |
200 | + /** | |
201 | + * @description | |
202 | + * OK | |
203 | + */ | |
204 | + 200: ServerResult; | |
205 | + /** | |
206 | + * @description | |
207 | + * Created | |
208 | + */ | |
209 | + 201: any; | |
210 | + /** | |
211 | + * @description | |
212 | + * Unauthorized | |
213 | + */ | |
214 | + 401: any; | |
215 | + /** | |
216 | + * @description | |
217 | + * Forbidden | |
218 | + */ | |
219 | + 403: any; | |
220 | + /** | |
221 | + * @description | |
222 | + * Not Found | |
223 | + */ | |
224 | + 404: any; | |
225 | +} | |
226 | + | |
227 | +export type PostApiLocalStorageUploadOssResponseSuccess = | |
228 | + PostApiLocalStorageUploadOssResponse[200]; | |
229 | +/** | |
230 | + * @description | |
231 | + * 上传文件到oss服务 | |
232 | + * @tags 文件上传 | |
233 | + * @produces * | |
234 | + * @consumes multipart/form-data | |
235 | + */ | |
236 | +export const postApiLocalStorageUploadOss = /* #__PURE__ */ (() => { | |
237 | + const method = "post"; | |
238 | + const url = "/api/localStorage/upload_oss"; | |
239 | + function request( | |
240 | + option: PostApiLocalStorageUploadOssOption | |
241 | + ): Promise<PostApiLocalStorageUploadOssResponseSuccess> { | |
242 | + return requester(request.url, { | |
243 | + method: request.method, | |
244 | + ...option, | |
245 | + }) as unknown as Promise<PostApiLocalStorageUploadOssResponseSuccess>; | |
246 | + } | |
247 | + | |
248 | + /** http method */ | |
249 | + request.method = method; | |
250 | + /** request url */ | |
251 | + request.url = url; | |
252 | + return request; | |
253 | +})(); | |
254 | + | |
255 | +/** @description request parameter type for postApiOrderApplyAddressModify */ | |
256 | +export interface PostApiOrderApplyAddressModifyOption { | |
257 | + /** | |
258 | + * @description | |
259 | + * request | |
260 | + */ | |
261 | + body: { | |
262 | + /** | |
263 | + @description | |
264 | + request */ | |
265 | + request: ApiApplyAddressModifyRequest; | |
266 | + }; | |
267 | +} | |
268 | + | |
269 | +/** @description response type for postApiOrderApplyAddressModify */ | |
270 | +export interface PostApiOrderApplyAddressModifyResponse { | |
271 | + /** | |
272 | + * @description | |
273 | + * OK | |
274 | + */ | |
275 | + 200: ServerResult; | |
276 | + /** | |
277 | + * @description | |
278 | + * Created | |
279 | + */ | |
280 | + 201: any; | |
281 | + /** | |
282 | + * @description | |
283 | + * Unauthorized | |
284 | + */ | |
285 | + 401: any; | |
286 | + /** | |
287 | + * @description | |
288 | + * Forbidden | |
289 | + */ | |
290 | + 403: any; | |
291 | + /** | |
292 | + * @description | |
293 | + * Not Found | |
294 | + */ | |
295 | + 404: any; | |
296 | +} | |
297 | + | |
298 | +export type PostApiOrderApplyAddressModifyResponseSuccess = | |
299 | + PostApiOrderApplyAddressModifyResponse[200]; | |
300 | +/** | |
301 | + * @description | |
302 | + * 申请修改收货地址 | |
303 | + * @tags 内部订单 | |
304 | + * @produces * | |
305 | + * @consumes application/json | |
306 | + */ | |
307 | +export const postApiOrderApplyAddressModify = /* #__PURE__ */ (() => { | |
308 | + const method = "post"; | |
309 | + const url = "/api/order/applyAddressModify"; | |
310 | + function request( | |
311 | + option: PostApiOrderApplyAddressModifyOption | |
312 | + ): Promise<PostApiOrderApplyAddressModifyResponseSuccess> { | |
313 | + return requester(request.url, { | |
314 | + method: request.method, | |
315 | + ...option, | |
316 | + }) as unknown as Promise<PostApiOrderApplyAddressModifyResponseSuccess>; | |
317 | + } | |
318 | + | |
319 | + /** http method */ | |
320 | + request.method = method; | |
321 | + /** request url */ | |
322 | + request.url = url; | |
323 | + return request; | |
324 | +})(); | |
325 | + | |
326 | +/** @description request parameter type for postApiOrderApplyAfterSales */ | |
327 | +export interface PostApiOrderApplyAfterSalesOption { | |
328 | + /** | |
329 | + * @description | |
330 | + * request | |
331 | + */ | |
332 | + body: { | |
333 | + /** | |
334 | + @description | |
335 | + request */ | |
336 | + request: ApiApplyAfterSalesRequest; | |
337 | + }; | |
338 | +} | |
339 | + | |
340 | +/** @description response type for postApiOrderApplyAfterSales */ | |
341 | +export interface PostApiOrderApplyAfterSalesResponse { | |
342 | + /** | |
343 | + * @description | |
344 | + * OK | |
345 | + */ | |
346 | + 200: ServerResult; | |
347 | + /** | |
348 | + * @description | |
349 | + * Created | |
350 | + */ | |
351 | + 201: any; | |
352 | + /** | |
353 | + * @description | |
354 | + * Unauthorized | |
355 | + */ | |
356 | + 401: any; | |
357 | + /** | |
358 | + * @description | |
359 | + * Forbidden | |
360 | + */ | |
361 | + 403: any; | |
362 | + /** | |
363 | + * @description | |
364 | + * Not Found | |
365 | + */ | |
366 | + 404: any; | |
367 | +} | |
368 | + | |
369 | +export type PostApiOrderApplyAfterSalesResponseSuccess = | |
370 | + PostApiOrderApplyAfterSalesResponse[200]; | |
371 | +/** | |
372 | + * @description | |
373 | + * 申请售后 | |
374 | + * @tags 内部订单 | |
375 | + * @produces * | |
376 | + * @consumes application/json | |
377 | + */ | |
378 | +export const postApiOrderApplyAfterSales = /* #__PURE__ */ (() => { | |
379 | + const method = "post"; | |
380 | + const url = "/api/order/applyAfterSales"; | |
381 | + function request( | |
382 | + option: PostApiOrderApplyAfterSalesOption | |
383 | + ): Promise<PostApiOrderApplyAfterSalesResponseSuccess> { | |
384 | + return requester(request.url, { | |
385 | + method: request.method, | |
386 | + ...option, | |
387 | + }) as unknown as Promise<PostApiOrderApplyAfterSalesResponseSuccess>; | |
388 | + } | |
389 | + | |
390 | + /** http method */ | |
391 | + request.method = method; | |
392 | + /** request url */ | |
393 | + request.url = url; | |
394 | + return request; | |
395 | +})(); | |
396 | + | |
397 | +/** @description request parameter type for postApiOrderQueryOrderDetail */ | |
398 | +export interface PostApiOrderQueryOrderDetailOption { | |
399 | + /** | |
400 | + * @description | |
401 | + * request | |
402 | + */ | |
403 | + body: { | |
404 | + /** | |
405 | + @description | |
406 | + request */ | |
407 | + request: ApiQueryOrderDetailRequest; | |
408 | + }; | |
409 | +} | |
410 | + | |
411 | +/** @description response type for postApiOrderQueryOrderDetail */ | |
412 | +export interface PostApiOrderQueryOrderDetailResponse { | |
413 | + /** | |
414 | + * @description | |
415 | + * OK | |
416 | + */ | |
417 | + 200: ServerResult; | |
418 | + /** | |
419 | + * @description | |
420 | + * Created | |
421 | + */ | |
422 | + 201: any; | |
423 | + /** | |
424 | + * @description | |
425 | + * Unauthorized | |
426 | + */ | |
427 | + 401: any; | |
428 | + /** | |
429 | + * @description | |
430 | + * Forbidden | |
431 | + */ | |
432 | + 403: any; | |
433 | + /** | |
434 | + * @description | |
435 | + * Not Found | |
436 | + */ | |
437 | + 404: any; | |
438 | +} | |
439 | + | |
440 | +export type PostApiOrderQueryOrderDetailResponseSuccess = | |
441 | + PostApiOrderQueryOrderDetailResponse[200]; | |
442 | +/** | |
443 | + * @description | |
444 | + * 订单详情 | |
445 | + * @tags 内部订单 | |
446 | + * @produces * | |
447 | + * @consumes application/json | |
448 | + */ | |
449 | +export const postApiOrderQueryOrderDetail = /* #__PURE__ */ (() => { | |
450 | + const method = "post"; | |
451 | + const url = "/api/order/queryOrderDetail"; | |
452 | + function request( | |
453 | + option: PostApiOrderQueryOrderDetailOption | |
454 | + ): Promise<PostApiOrderQueryOrderDetailResponseSuccess> { | |
455 | + return requester(request.url, { | |
456 | + method: request.method, | |
457 | + ...option, | |
458 | + }) as unknown as Promise<PostApiOrderQueryOrderDetailResponseSuccess>; | |
459 | + } | |
460 | + | |
461 | + /** http method */ | |
462 | + request.method = method; | |
463 | + /** request url */ | |
464 | + request.url = url; | |
465 | + return request; | |
466 | +})(); | |
467 | + | |
468 | +/** @description request parameter type for postApiOrderQueryOrderStatusCounts */ | |
469 | +export interface PostApiOrderQueryOrderStatusCountsOption { | |
97 | 470 | /** |
98 | 471 | * @description |
99 | - * name | |
472 | + * request | |
100 | 473 | */ |
101 | - query: { | |
474 | + body: { | |
102 | 475 | /** |
103 | 476 | @description |
104 | - name */ | |
105 | - name: string; | |
477 | + request */ | |
478 | + request: ApiQueryOrderStatusCountsRequest; | |
106 | 479 | }; |
107 | 480 | } |
108 | 481 | |
109 | -/** @description response type for postApiLocalStorageUpload */ | |
110 | -export interface PostApiLocalStorageUploadResponse { | |
482 | +/** @description response type for postApiOrderQueryOrderStatusCounts */ | |
483 | +export interface PostApiOrderQueryOrderStatusCountsResponse { | |
111 | 484 | /** |
112 | 485 | * @description |
113 | 486 | * OK |
... | ... | @@ -135,25 +508,25 @@ export interface PostApiLocalStorageUploadResponse { |
135 | 508 | 404: any; |
136 | 509 | } |
137 | 510 | |
138 | -export type PostApiLocalStorageUploadResponseSuccess = | |
139 | - PostApiLocalStorageUploadResponse[200]; | |
511 | +export type PostApiOrderQueryOrderStatusCountsResponseSuccess = | |
512 | + PostApiOrderQueryOrderStatusCountsResponse[200]; | |
140 | 513 | /** |
141 | 514 | * @description |
142 | - * 上传文件 | |
143 | - * @tags 文件上传 | |
515 | + * 获取各个订单状态数量 | |
516 | + * @tags 内部订单 | |
144 | 517 | * @produces * |
145 | - * @consumes multipart/form-data | |
518 | + * @consumes application/json | |
146 | 519 | */ |
147 | -export const postApiLocalStorageUpload = /* #__PURE__ */ (() => { | |
148 | - const method = 'post'; | |
149 | - const url = '/api/localStorage/upload'; | |
520 | +export const postApiOrderQueryOrderStatusCounts = /* #__PURE__ */ (() => { | |
521 | + const method = "post"; | |
522 | + const url = "/api/order/queryOrderStatusCounts"; | |
150 | 523 | function request( |
151 | - option: PostApiLocalStorageUploadOption, | |
152 | - ): Promise<PostApiLocalStorageUploadResponseSuccess> { | |
524 | + option: PostApiOrderQueryOrderStatusCountsOption | |
525 | + ): Promise<PostApiOrderQueryOrderStatusCountsResponseSuccess> { | |
153 | 526 | return requester(request.url, { |
154 | 527 | method: request.method, |
155 | 528 | ...option, |
156 | - }) as unknown as Promise<PostApiLocalStorageUploadResponseSuccess>; | |
529 | + }) as unknown as Promise<PostApiOrderQueryOrderStatusCountsResponseSuccess>; | |
157 | 530 | } |
158 | 531 | |
159 | 532 | /** http method */ |
... | ... | @@ -163,36 +536,22 @@ export const postApiLocalStorageUpload = /* #__PURE__ */ (() => { |
163 | 536 | return request; |
164 | 537 | })(); |
165 | 538 | |
166 | -/** @description request parameter type for postApiLocalStorageUploadOss */ | |
167 | -export interface PostApiLocalStorageUploadOssOption { | |
168 | - /** | |
169 | - * @description | |
170 | - * file | |
171 | - */ | |
172 | - formData: { | |
173 | - /** | |
174 | - @description | |
175 | - file */ | |
176 | - file: File; | |
177 | - }; | |
178 | -} | |
179 | - | |
180 | -/** @description request parameter type for postApiLocalStorageUploadOss */ | |
181 | -export interface PostApiLocalStorageUploadOssOption { | |
539 | +/** @description request parameter type for postApiOrderQueryServiceOrder */ | |
540 | +export interface PostApiOrderQueryServiceOrderOption { | |
182 | 541 | /** |
183 | 542 | * @description |
184 | - * name | |
543 | + * request | |
185 | 544 | */ |
186 | - query: { | |
545 | + body: { | |
187 | 546 | /** |
188 | 547 | @description |
189 | - name */ | |
190 | - name: string; | |
548 | + request */ | |
549 | + request: Dto; | |
191 | 550 | }; |
192 | 551 | } |
193 | 552 | |
194 | -/** @description response type for postApiLocalStorageUploadOss */ | |
195 | -export interface PostApiLocalStorageUploadOssResponse { | |
553 | +/** @description response type for postApiOrderQueryServiceOrder */ | |
554 | +export interface PostApiOrderQueryServiceOrderResponse { | |
196 | 555 | /** |
197 | 556 | * @description |
198 | 557 | * OK |
... | ... | @@ -220,25 +579,25 @@ export interface PostApiLocalStorageUploadOssResponse { |
220 | 579 | 404: any; |
221 | 580 | } |
222 | 581 | |
223 | -export type PostApiLocalStorageUploadOssResponseSuccess = | |
224 | - PostApiLocalStorageUploadOssResponse[200]; | |
582 | +export type PostApiOrderQueryServiceOrderResponseSuccess = | |
583 | + PostApiOrderQueryServiceOrderResponse[200]; | |
225 | 584 | /** |
226 | 585 | * @description |
227 | - * 上传文件到oss服务 | |
228 | - * @tags 文件上传 | |
586 | + * 查询订单列表 | |
587 | + * @tags 内部订单 | |
229 | 588 | * @produces * |
230 | - * @consumes multipart/form-data | |
589 | + * @consumes application/json | |
231 | 590 | */ |
232 | -export const postApiLocalStorageUploadOss = /* #__PURE__ */ (() => { | |
233 | - const method = 'post'; | |
234 | - const url = '/api/localStorage/upload_oss'; | |
591 | +export const postApiOrderQueryServiceOrder = /* #__PURE__ */ (() => { | |
592 | + const method = "post"; | |
593 | + const url = "/api/order/queryServiceOrder"; | |
235 | 594 | function request( |
236 | - option: PostApiLocalStorageUploadOssOption, | |
237 | - ): Promise<PostApiLocalStorageUploadOssResponseSuccess> { | |
595 | + option: PostApiOrderQueryServiceOrderOption | |
596 | + ): Promise<PostApiOrderQueryServiceOrderResponseSuccess> { | |
238 | 597 | return requester(request.url, { |
239 | 598 | method: request.method, |
240 | 599 | ...option, |
241 | - }) as unknown as Promise<PostApiLocalStorageUploadOssResponseSuccess>; | |
600 | + }) as unknown as Promise<PostApiOrderQueryServiceOrderResponseSuccess>; | |
242 | 601 | } |
243 | 602 | |
244 | 603 | /** http method */ |
... | ... | @@ -254,7 +613,9 @@ export interface GetErrorResponse { |
254 | 613 | * @description |
255 | 614 | * OK |
256 | 615 | */ |
257 | - 200: ModelAndView; | |
616 | + 200: { | |
617 | + [propertyName: string]: any; | |
618 | + }; | |
258 | 619 | /** |
259 | 620 | * @description |
260 | 621 | * Unauthorized |
... | ... | @@ -275,13 +636,13 @@ export interface GetErrorResponse { |
275 | 636 | export type GetErrorResponseSuccess = GetErrorResponse[200]; |
276 | 637 | /** |
277 | 638 | * @description |
278 | - * errorHtml | |
639 | + * error | |
279 | 640 | * @tags basic-error-controller |
280 | - * @produces text/html | |
641 | + * @produces * | |
281 | 642 | */ |
282 | 643 | export const getError = /* #__PURE__ */ (() => { |
283 | - const method = 'get'; | |
284 | - const url = '/error'; | |
644 | + const method = "get"; | |
645 | + const url = "/error"; | |
285 | 646 | function request(): Promise<GetErrorResponseSuccess> { |
286 | 647 | return requester(request.url, { |
287 | 648 | method: request.method, |
... | ... | @@ -301,7 +662,9 @@ export interface PutErrorResponse { |
301 | 662 | * @description |
302 | 663 | * OK |
303 | 664 | */ |
304 | - 200: ModelAndView; | |
665 | + 200: { | |
666 | + [propertyName: string]: any; | |
667 | + }; | |
305 | 668 | /** |
306 | 669 | * @description |
307 | 670 | * Created |
... | ... | @@ -327,14 +690,14 @@ export interface PutErrorResponse { |
327 | 690 | export type PutErrorResponseSuccess = PutErrorResponse[200]; |
328 | 691 | /** |
329 | 692 | * @description |
330 | - * errorHtml | |
693 | + * error | |
331 | 694 | * @tags basic-error-controller |
332 | - * @produces text/html | |
695 | + * @produces * | |
333 | 696 | * @consumes application/json |
334 | 697 | */ |
335 | 698 | export const putError = /* #__PURE__ */ (() => { |
336 | - const method = 'put'; | |
337 | - const url = '/error'; | |
699 | + const method = "put"; | |
700 | + const url = "/error"; | |
338 | 701 | function request(): Promise<PutErrorResponseSuccess> { |
339 | 702 | return requester(request.url, { |
340 | 703 | method: request.method, |
... | ... | @@ -354,7 +717,9 @@ export interface PostErrorResponse { |
354 | 717 | * @description |
355 | 718 | * OK |
356 | 719 | */ |
357 | - 200: ModelAndView; | |
720 | + 200: { | |
721 | + [propertyName: string]: any; | |
722 | + }; | |
358 | 723 | /** |
359 | 724 | * @description |
360 | 725 | * Created |
... | ... | @@ -380,14 +745,14 @@ export interface PostErrorResponse { |
380 | 745 | export type PostErrorResponseSuccess = PostErrorResponse[200]; |
381 | 746 | /** |
382 | 747 | * @description |
383 | - * errorHtml | |
748 | + * error | |
384 | 749 | * @tags basic-error-controller |
385 | - * @produces text/html | |
750 | + * @produces * | |
386 | 751 | * @consumes application/json |
387 | 752 | */ |
388 | 753 | export const postError = /* #__PURE__ */ (() => { |
389 | - const method = 'post'; | |
390 | - const url = '/error'; | |
754 | + const method = "post"; | |
755 | + const url = "/error"; | |
391 | 756 | function request(): Promise<PostErrorResponseSuccess> { |
392 | 757 | return requester(request.url, { |
393 | 758 | method: request.method, |
... | ... | @@ -407,7 +772,9 @@ export interface DeleteErrorResponse { |
407 | 772 | * @description |
408 | 773 | * OK |
409 | 774 | */ |
410 | - 200: ModelAndView; | |
775 | + 200: { | |
776 | + [propertyName: string]: any; | |
777 | + }; | |
411 | 778 | /** |
412 | 779 | * @description |
413 | 780 | * No Content |
... | ... | @@ -428,13 +795,13 @@ export interface DeleteErrorResponse { |
428 | 795 | export type DeleteErrorResponseSuccess = DeleteErrorResponse[200]; |
429 | 796 | /** |
430 | 797 | * @description |
431 | - * errorHtml | |
798 | + * error | |
432 | 799 | * @tags basic-error-controller |
433 | - * @produces text/html | |
800 | + * @produces * | |
434 | 801 | */ |
435 | 802 | export const deleteError = /* #__PURE__ */ (() => { |
436 | - const method = 'delete'; | |
437 | - const url = '/error'; | |
803 | + const method = "delete"; | |
804 | + const url = "/error"; | |
438 | 805 | function request(): Promise<DeleteErrorResponseSuccess> { |
439 | 806 | return requester(request.url, { |
440 | 807 | method: request.method, |
... | ... | @@ -454,7 +821,9 @@ export interface OptionsErrorResponse { |
454 | 821 | * @description |
455 | 822 | * OK |
456 | 823 | */ |
457 | - 200: ModelAndView; | |
824 | + 200: { | |
825 | + [propertyName: string]: any; | |
826 | + }; | |
458 | 827 | /** |
459 | 828 | * @description |
460 | 829 | * No Content |
... | ... | @@ -475,14 +844,14 @@ export interface OptionsErrorResponse { |
475 | 844 | export type OptionsErrorResponseSuccess = OptionsErrorResponse[200]; |
476 | 845 | /** |
477 | 846 | * @description |
478 | - * errorHtml | |
847 | + * error | |
479 | 848 | * @tags basic-error-controller |
480 | - * @produces text/html | |
849 | + * @produces * | |
481 | 850 | * @consumes application/json |
482 | 851 | */ |
483 | 852 | export const optionsError = /* #__PURE__ */ (() => { |
484 | - const method = 'options'; | |
485 | - const url = '/error'; | |
853 | + const method = "options"; | |
854 | + const url = "/error"; | |
486 | 855 | function request(): Promise<OptionsErrorResponseSuccess> { |
487 | 856 | return requester(request.url, { |
488 | 857 | method: request.method, |
... | ... | @@ -502,7 +871,9 @@ export interface HeadErrorResponse { |
502 | 871 | * @description |
503 | 872 | * OK |
504 | 873 | */ |
505 | - 200: ModelAndView; | |
874 | + 200: { | |
875 | + [propertyName: string]: any; | |
876 | + }; | |
506 | 877 | /** |
507 | 878 | * @description |
508 | 879 | * No Content |
... | ... | @@ -523,14 +894,14 @@ export interface HeadErrorResponse { |
523 | 894 | export type HeadErrorResponseSuccess = HeadErrorResponse[200]; |
524 | 895 | /** |
525 | 896 | * @description |
526 | - * errorHtml | |
897 | + * error | |
527 | 898 | * @tags basic-error-controller |
528 | - * @produces text/html | |
899 | + * @produces * | |
529 | 900 | * @consumes application/json |
530 | 901 | */ |
531 | 902 | export const headError = /* #__PURE__ */ (() => { |
532 | - const method = 'head'; | |
533 | - const url = '/error'; | |
903 | + const method = "head"; | |
904 | + const url = "/error"; | |
534 | 905 | function request(): Promise<HeadErrorResponseSuccess> { |
535 | 906 | return requester(request.url, { |
536 | 907 | method: request.method, |
... | ... | @@ -550,7 +921,9 @@ export interface PatchErrorResponse { |
550 | 921 | * @description |
551 | 922 | * OK |
552 | 923 | */ |
553 | - 200: ModelAndView; | |
924 | + 200: { | |
925 | + [propertyName: string]: any; | |
926 | + }; | |
554 | 927 | /** |
555 | 928 | * @description |
556 | 929 | * No Content |
... | ... | @@ -571,14 +944,14 @@ export interface PatchErrorResponse { |
571 | 944 | export type PatchErrorResponseSuccess = PatchErrorResponse[200]; |
572 | 945 | /** |
573 | 946 | * @description |
574 | - * errorHtml | |
947 | + * error | |
575 | 948 | * @tags basic-error-controller |
576 | - * @produces text/html | |
949 | + * @produces * | |
577 | 950 | * @consumes application/json |
578 | 951 | */ |
579 | 952 | export const patchError = /* #__PURE__ */ (() => { |
580 | - const method = 'patch'; | |
581 | - const url = '/error'; | |
953 | + const method = "patch"; | |
954 | + const url = "/error"; | |
582 | 955 | function request(): Promise<PatchErrorResponseSuccess> { |
583 | 956 | return requester(request.url, { |
584 | 957 | method: request.method, |
... | ... | @@ -645,10 +1018,10 @@ export type PostKingdeeRepCustomerResponseSuccess = |
645 | 1018 | * @consumes application/json |
646 | 1019 | */ |
647 | 1020 | export const postKingdeeRepCustomer = /* #__PURE__ */ (() => { |
648 | - const method = 'post'; | |
649 | - const url = '/kingdee/rep/customer'; | |
1021 | + const method = "post"; | |
1022 | + const url = "/kingdee/rep/customer"; | |
650 | 1023 | function request( |
651 | - option: PostKingdeeRepCustomerOption, | |
1024 | + option: PostKingdeeRepCustomerOption | |
652 | 1025 | ): Promise<PostKingdeeRepCustomerResponseSuccess> { |
653 | 1026 | return requester(request.url, { |
654 | 1027 | method: request.method, |
... | ... | @@ -716,10 +1089,10 @@ export type PostKingdeeRepCustomerDetailResponseSuccess = |
716 | 1089 | * @consumes application/json |
717 | 1090 | */ |
718 | 1091 | export const postKingdeeRepCustomerDetail = /* #__PURE__ */ (() => { |
719 | - const method = 'post'; | |
720 | - const url = '/kingdee/rep/customerDetail'; | |
1092 | + const method = "post"; | |
1093 | + const url = "/kingdee/rep/customerDetail"; | |
721 | 1094 | function request( |
722 | - option: PostKingdeeRepCustomerDetailOption, | |
1095 | + option: PostKingdeeRepCustomerDetailOption | |
723 | 1096 | ): Promise<PostKingdeeRepCustomerDetailResponseSuccess> { |
724 | 1097 | return requester(request.url, { |
725 | 1098 | method: request.method, |
... | ... | @@ -781,16 +1154,16 @@ export type PostKingdeeRepCustomerSaveResponseSuccess = |
781 | 1154 | PostKingdeeRepCustomerSaveResponse[200]; |
782 | 1155 | /** |
783 | 1156 | * @description |
784 | - * getCustomerDetail | |
1157 | + * customerSave | |
785 | 1158 | * @tags kingdee-erp-controller |
786 | 1159 | * @produces * |
787 | 1160 | * @consumes application/json |
788 | 1161 | */ |
789 | 1162 | export const postKingdeeRepCustomerSave = /* #__PURE__ */ (() => { |
790 | - const method = 'post'; | |
791 | - const url = '/kingdee/rep/customerSave'; | |
1163 | + const method = "post"; | |
1164 | + const url = "/kingdee/rep/customerSave"; | |
792 | 1165 | function request( |
793 | - option: PostKingdeeRepCustomerSaveOption, | |
1166 | + option: PostKingdeeRepCustomerSaveOption | |
794 | 1167 | ): Promise<PostKingdeeRepCustomerSaveResponseSuccess> { |
795 | 1168 | return requester(request.url, { |
796 | 1169 | method: request.method, |
... | ... | @@ -858,10 +1231,10 @@ export type PostKingdeeRepMaterialResponseSuccess = |
858 | 1231 | * @consumes application/json |
859 | 1232 | */ |
860 | 1233 | export const postKingdeeRepMaterial = /* #__PURE__ */ (() => { |
861 | - const method = 'post'; | |
862 | - const url = '/kingdee/rep/material'; | |
1234 | + const method = "post"; | |
1235 | + const url = "/kingdee/rep/material"; | |
863 | 1236 | function request( |
864 | - option: PostKingdeeRepMaterialOption, | |
1237 | + option: PostKingdeeRepMaterialOption | |
865 | 1238 | ): Promise<PostKingdeeRepMaterialResponseSuccess> { |
866 | 1239 | return requester(request.url, { |
867 | 1240 | method: request.method, |
... | ... | @@ -929,10 +1302,10 @@ export type PostKingdeeRepMaterialStockResponseSuccess = |
929 | 1302 | * @consumes application/json |
930 | 1303 | */ |
931 | 1304 | export const postKingdeeRepMaterialStock = /* #__PURE__ */ (() => { |
932 | - const method = 'post'; | |
933 | - const url = '/kingdee/rep/materialStock'; | |
1305 | + const method = "post"; | |
1306 | + const url = "/kingdee/rep/materialStock"; | |
934 | 1307 | function request( |
935 | - option: PostKingdeeRepMaterialStockOption, | |
1308 | + option: PostKingdeeRepMaterialStockOption | |
936 | 1309 | ): Promise<PostKingdeeRepMaterialStockResponseSuccess> { |
937 | 1310 | return requester(request.url, { |
938 | 1311 | method: request.method, |
... | ... | @@ -1000,10 +1373,10 @@ export type PostKingdeeRepMaterialUnitResponseSuccess = |
1000 | 1373 | * @consumes application/json |
1001 | 1374 | */ |
1002 | 1375 | export const postKingdeeRepMaterialUnit = /* #__PURE__ */ (() => { |
1003 | - const method = 'post'; | |
1004 | - const url = '/kingdee/rep/materialUnit'; | |
1376 | + const method = "post"; | |
1377 | + const url = "/kingdee/rep/materialUnit"; | |
1005 | 1378 | function request( |
1006 | - option: PostKingdeeRepMaterialUnitOption, | |
1379 | + option: PostKingdeeRepMaterialUnitOption | |
1007 | 1380 | ): Promise<PostKingdeeRepMaterialUnitResponseSuccess> { |
1008 | 1381 | return requester(request.url, { |
1009 | 1382 | method: request.method, |
... | ... | @@ -1071,10 +1444,10 @@ export type PostKingdeeRepMeasureUnitResponseSuccess = |
1071 | 1444 | * @consumes application/json |
1072 | 1445 | */ |
1073 | 1446 | export const postKingdeeRepMeasureUnit = /* #__PURE__ */ (() => { |
1074 | - const method = 'post'; | |
1075 | - const url = '/kingdee/rep/measureUnit'; | |
1447 | + const method = "post"; | |
1448 | + const url = "/kingdee/rep/measureUnit"; | |
1076 | 1449 | function request( |
1077 | - option: PostKingdeeRepMeasureUnitOption, | |
1450 | + option: PostKingdeeRepMeasureUnitOption | |
1078 | 1451 | ): Promise<PostKingdeeRepMeasureUnitResponseSuccess> { |
1079 | 1452 | return requester(request.url, { |
1080 | 1453 | method: request.method, |
... | ... | @@ -1142,10 +1515,10 @@ export type PostKingdeeRepSalBillOutboundResponseSuccess = |
1142 | 1515 | * @consumes application/json |
1143 | 1516 | */ |
1144 | 1517 | export const postKingdeeRepSalBillOutbound = /* #__PURE__ */ (() => { |
1145 | - const method = 'post'; | |
1146 | - const url = '/kingdee/rep/salBillOutbound'; | |
1518 | + const method = "post"; | |
1519 | + const url = "/kingdee/rep/salBillOutbound"; | |
1147 | 1520 | function request( |
1148 | - option: PostKingdeeRepSalBillOutboundOption, | |
1521 | + option: PostKingdeeRepSalBillOutboundOption | |
1149 | 1522 | ): Promise<PostKingdeeRepSalBillOutboundResponseSuccess> { |
1150 | 1523 | return requester(request.url, { |
1151 | 1524 | method: request.method, |
... | ... | @@ -1213,10 +1586,10 @@ export type PostKingdeeRepSalOrderSaveResponseSuccess = |
1213 | 1586 | * @consumes application/json |
1214 | 1587 | */ |
1215 | 1588 | export const postKingdeeRepSalOrderSave = /* #__PURE__ */ (() => { |
1216 | - const method = 'post'; | |
1217 | - const url = '/kingdee/rep/salOrderSave'; | |
1589 | + const method = "post"; | |
1590 | + const url = "/kingdee/rep/salOrderSave"; | |
1218 | 1591 | function request( |
1219 | - option: PostKingdeeRepSalOrderSaveOption, | |
1592 | + option: PostKingdeeRepSalOrderSaveOption | |
1220 | 1593 | ): Promise<PostKingdeeRepSalOrderSaveResponseSuccess> { |
1221 | 1594 | return requester(request.url, { |
1222 | 1595 | method: request.method, |
... | ... | @@ -1284,10 +1657,10 @@ export type PostKingdeeRepSystemCustomFieldResponseSuccess = |
1284 | 1657 | * @consumes application/json |
1285 | 1658 | */ |
1286 | 1659 | export const postKingdeeRepSystemCustomField = /* #__PURE__ */ (() => { |
1287 | - const method = 'post'; | |
1288 | - const url = '/kingdee/rep/systemCustomField'; | |
1660 | + const method = "post"; | |
1661 | + const url = "/kingdee/rep/systemCustomField"; | |
1289 | 1662 | function request( |
1290 | - option: PostKingdeeRepSystemCustomFieldOption, | |
1663 | + option: PostKingdeeRepSystemCustomFieldOption | |
1291 | 1664 | ): Promise<PostKingdeeRepSystemCustomFieldResponseSuccess> { |
1292 | 1665 | return requester(request.url, { |
1293 | 1666 | method: request.method, |
... | ... | @@ -1355,10 +1728,10 @@ export type PostOfficialWebsiteUploadAliOssResponseSuccess = |
1355 | 1728 | * @consumes application/json |
1356 | 1729 | */ |
1357 | 1730 | export const postOfficialWebsiteUploadAliOss = /* #__PURE__ */ (() => { |
1358 | - const method = 'post'; | |
1359 | - const url = '/official/website/uploadAliOss'; | |
1731 | + const method = "post"; | |
1732 | + const url = "/official/website/uploadAliOss"; | |
1360 | 1733 | function request( |
1361 | - option: PostOfficialWebsiteUploadAliOssOption, | |
1734 | + option: PostOfficialWebsiteUploadAliOssOption | |
1362 | 1735 | ): Promise<PostOfficialWebsiteUploadAliOssResponseSuccess> { |
1363 | 1736 | return requester(request.url, { |
1364 | 1737 | method: request.method, |
... | ... | @@ -1426,10 +1799,10 @@ export type PostOrderErpApplyListResponseSuccess = |
1426 | 1799 | * @consumes application/json |
1427 | 1800 | */ |
1428 | 1801 | export const postOrderErpApplyList = /* #__PURE__ */ (() => { |
1429 | - const method = 'post'; | |
1430 | - const url = '/order/erp/apply/list'; | |
1802 | + const method = "post"; | |
1803 | + const url = "/order/erp/apply/list"; | |
1431 | 1804 | function request( |
1432 | - option: PostOrderErpApplyListOption, | |
1805 | + option: PostOrderErpApplyListOption | |
1433 | 1806 | ): Promise<PostOrderErpApplyListResponseSuccess> { |
1434 | 1807 | return requester(request.url, { |
1435 | 1808 | method: request.method, |
... | ... | @@ -1497,10 +1870,10 @@ export type PostOrderErpAuditAuditListResponseSuccess = |
1497 | 1870 | * @consumes application/json |
1498 | 1871 | */ |
1499 | 1872 | export const postOrderErpAuditAuditList = /* #__PURE__ */ (() => { |
1500 | - const method = 'post'; | |
1501 | - const url = '/order/erp/audit/audit_list'; | |
1873 | + const method = "post"; | |
1874 | + const url = "/order/erp/audit/audit_list"; | |
1502 | 1875 | function request( |
1503 | - option: PostOrderErpAuditAuditListOption, | |
1876 | + option: PostOrderErpAuditAuditListOption | |
1504 | 1877 | ): Promise<PostOrderErpAuditAuditListResponseSuccess> { |
1505 | 1878 | return requester(request.url, { |
1506 | 1879 | method: request.method, |
... | ... | @@ -1568,10 +1941,10 @@ export type PostOrderErpAuditDoAuditResponseSuccess = |
1568 | 1941 | * @consumes application/json |
1569 | 1942 | */ |
1570 | 1943 | export const postOrderErpAuditDoAudit = /* #__PURE__ */ (() => { |
1571 | - const method = 'post'; | |
1572 | - const url = '/order/erp/audit/do_audit'; | |
1944 | + const method = "post"; | |
1945 | + const url = "/order/erp/audit/do_audit"; | |
1573 | 1946 | function request( |
1574 | - option: PostOrderErpAuditDoAuditOption, | |
1947 | + option: PostOrderErpAuditDoAuditOption | |
1575 | 1948 | ): Promise<PostOrderErpAuditDoAuditResponseSuccess> { |
1576 | 1949 | return requester(request.url, { |
1577 | 1950 | method: request.method, |
... | ... | @@ -1639,10 +2012,10 @@ export type PostOrderErpAuditListByPageResponseSuccess = |
1639 | 2012 | * @consumes application/json |
1640 | 2013 | */ |
1641 | 2014 | export const postOrderErpAuditListByPage = /* #__PURE__ */ (() => { |
1642 | - const method = 'post'; | |
1643 | - const url = '/order/erp/audit/list_by_page'; | |
2015 | + const method = "post"; | |
2016 | + const url = "/order/erp/audit/list_by_page"; | |
1644 | 2017 | function request( |
1645 | - option: PostOrderErpAuditListByPageOption, | |
2018 | + option: PostOrderErpAuditListByPageOption | |
1646 | 2019 | ): Promise<PostOrderErpAuditListByPageResponseSuccess> { |
1647 | 2020 | return requester(request.url, { |
1648 | 2021 | method: request.method, |
... | ... | @@ -1710,10 +2083,10 @@ export type PostOrderErpAuditLogListByPageResponseSuccess = |
1710 | 2083 | * @consumes application/json |
1711 | 2084 | */ |
1712 | 2085 | export const postOrderErpAuditLogListByPage = /* #__PURE__ */ (() => { |
1713 | - const method = 'post'; | |
1714 | - const url = '/order/erp/audit/log/list_by_page'; | |
2086 | + const method = "post"; | |
2087 | + const url = "/order/erp/audit/log/list_by_page"; | |
1715 | 2088 | function request( |
1716 | - option: PostOrderErpAuditLogListByPageOption, | |
2089 | + option: PostOrderErpAuditLogListByPageOption | |
1717 | 2090 | ): Promise<PostOrderErpAuditLogListByPageResponseSuccess> { |
1718 | 2091 | return requester(request.url, { |
1719 | 2092 | method: request.method, |
... | ... | @@ -1781,10 +2154,10 @@ export type PostOrderErpAuditLogQueryByIdResponseSuccess = |
1781 | 2154 | * @consumes application/json |
1782 | 2155 | */ |
1783 | 2156 | export const postOrderErpAuditLogQueryById = /* #__PURE__ */ (() => { |
1784 | - const method = 'post'; | |
1785 | - const url = '/order/erp/audit/log/query_by_id'; | |
2157 | + const method = "post"; | |
2158 | + const url = "/order/erp/audit/log/query_by_id"; | |
1786 | 2159 | function request( |
1787 | - option: PostOrderErpAuditLogQueryByIdOption, | |
2160 | + option: PostOrderErpAuditLogQueryByIdOption | |
1788 | 2161 | ): Promise<PostOrderErpAuditLogQueryByIdResponseSuccess> { |
1789 | 2162 | return requester(request.url, { |
1790 | 2163 | method: request.method, |
... | ... | @@ -1852,10 +2225,10 @@ export type PostOrderErpAuditWaitAuditListResponseSuccess = |
1852 | 2225 | * @consumes application/json |
1853 | 2226 | */ |
1854 | 2227 | export const postOrderErpAuditWaitAuditList = /* #__PURE__ */ (() => { |
1855 | - const method = 'post'; | |
1856 | - const url = '/order/erp/audit/wait_audit_list'; | |
2228 | + const method = "post"; | |
2229 | + const url = "/order/erp/audit/wait_audit_list"; | |
1857 | 2230 | function request( |
1858 | - option: PostOrderErpAuditWaitAuditListOption, | |
2231 | + option: PostOrderErpAuditWaitAuditListOption | |
1859 | 2232 | ): Promise<PostOrderErpAuditWaitAuditListResponseSuccess> { |
1860 | 2233 | return requester(request.url, { |
1861 | 2234 | method: request.method, |
... | ... | @@ -1923,10 +2296,10 @@ export type PostOrderErpAuthLoginByPhoneResponseSuccess = |
1923 | 2296 | * @consumes application/json |
1924 | 2297 | */ |
1925 | 2298 | export const postOrderErpAuthLoginByPhone = /* #__PURE__ */ (() => { |
1926 | - const method = 'post'; | |
1927 | - const url = '/order/erp/auth/login_by_phone'; | |
2299 | + const method = "post"; | |
2300 | + const url = "/order/erp/auth/login_by_phone"; | |
1928 | 2301 | function request( |
1929 | - option: PostOrderErpAuthLoginByPhoneOption, | |
2302 | + option: PostOrderErpAuthLoginByPhoneOption | |
1930 | 2303 | ): Promise<PostOrderErpAuthLoginByPhoneResponseSuccess> { |
1931 | 2304 | return requester(request.url, { |
1932 | 2305 | method: request.method, |
... | ... | @@ -1994,10 +2367,10 @@ export type PostOrderErpAuthLoginByPwdResponseSuccess = |
1994 | 2367 | * @consumes application/json |
1995 | 2368 | */ |
1996 | 2369 | export const postOrderErpAuthLoginByPwd = /* #__PURE__ */ (() => { |
1997 | - const method = 'post'; | |
1998 | - const url = '/order/erp/auth/login_by_pwd'; | |
2370 | + const method = "post"; | |
2371 | + const url = "/order/erp/auth/login_by_pwd"; | |
1999 | 2372 | function request( |
2000 | - option: PostOrderErpAuthLoginByPwdOption, | |
2373 | + option: PostOrderErpAuthLoginByPwdOption | |
2001 | 2374 | ): Promise<PostOrderErpAuthLoginByPwdResponseSuccess> { |
2002 | 2375 | return requester(request.url, { |
2003 | 2376 | method: request.method, |
... | ... | @@ -2051,8 +2424,8 @@ export type PostOrderErpAuthLoginOutResponseSuccess = |
2051 | 2424 | * @consumes application/json |
2052 | 2425 | */ |
2053 | 2426 | export const postOrderErpAuthLoginOut = /* #__PURE__ */ (() => { |
2054 | - const method = 'post'; | |
2055 | - const url = '/order/erp/auth/login_out'; | |
2427 | + const method = "post"; | |
2428 | + const url = "/order/erp/auth/login_out"; | |
2056 | 2429 | function request(): Promise<PostOrderErpAuthLoginOutResponseSuccess> { |
2057 | 2430 | return requester(request.url, { |
2058 | 2431 | method: request.method, |
... | ... | @@ -2119,10 +2492,10 @@ export type PostOrderErpAuthPasswordModifyResponseSuccess = |
2119 | 2492 | * @consumes application/json |
2120 | 2493 | */ |
2121 | 2494 | export const postOrderErpAuthPasswordModify = /* #__PURE__ */ (() => { |
2122 | - const method = 'post'; | |
2123 | - const url = '/order/erp/auth/password_modify'; | |
2495 | + const method = "post"; | |
2496 | + const url = "/order/erp/auth/password_modify"; | |
2124 | 2497 | function request( |
2125 | - option: PostOrderErpAuthPasswordModifyOption, | |
2498 | + option: PostOrderErpAuthPasswordModifyOption | |
2126 | 2499 | ): Promise<PostOrderErpAuthPasswordModifyResponseSuccess> { |
2127 | 2500 | return requester(request.url, { |
2128 | 2501 | method: request.method, |
... | ... | @@ -2190,10 +2563,10 @@ export type PostOrderErpAuthPhoneRegisterResponseSuccess = |
2190 | 2563 | * @consumes application/json |
2191 | 2564 | */ |
2192 | 2565 | export const postOrderErpAuthPhoneRegister = /* #__PURE__ */ (() => { |
2193 | - const method = 'post'; | |
2194 | - const url = '/order/erp/auth/phone_register'; | |
2566 | + const method = "post"; | |
2567 | + const url = "/order/erp/auth/phone_register"; | |
2195 | 2568 | function request( |
2196 | - option: PostOrderErpAuthPhoneRegisterOption, | |
2569 | + option: PostOrderErpAuthPhoneRegisterOption | |
2197 | 2570 | ): Promise<PostOrderErpAuthPhoneRegisterResponseSuccess> { |
2198 | 2571 | return requester(request.url, { |
2199 | 2572 | method: request.method, |
... | ... | @@ -2261,10 +2634,10 @@ export type PostOrderErpAuthSendPasswordRecoverMailResponseSuccess = |
2261 | 2634 | * @consumes application/json |
2262 | 2635 | */ |
2263 | 2636 | export const postOrderErpAuthSendPasswordRecoverMail = /* #__PURE__ */ (() => { |
2264 | - const method = 'post'; | |
2265 | - const url = '/order/erp/auth/send_password_recover_mail'; | |
2637 | + const method = "post"; | |
2638 | + const url = "/order/erp/auth/send_password_recover_mail"; | |
2266 | 2639 | function request( |
2267 | - option: PostOrderErpAuthSendPasswordRecoverMailOption, | |
2640 | + option: PostOrderErpAuthSendPasswordRecoverMailOption | |
2268 | 2641 | ): Promise<PostOrderErpAuthSendPasswordRecoverMailResponseSuccess> { |
2269 | 2642 | return requester(request.url, { |
2270 | 2643 | method: request.method, |
... | ... | @@ -2332,10 +2705,10 @@ export type PostOrderErpAuthTokenResponseSuccess = |
2332 | 2705 | * @consumes application/json |
2333 | 2706 | */ |
2334 | 2707 | export const postOrderErpAuthToken = /* #__PURE__ */ (() => { |
2335 | - const method = 'post'; | |
2336 | - const url = '/order/erp/auth/token'; | |
2708 | + const method = "post"; | |
2709 | + const url = "/order/erp/auth/token"; | |
2337 | 2710 | function request( |
2338 | - option: PostOrderErpAuthTokenOption, | |
2711 | + option: PostOrderErpAuthTokenOption | |
2339 | 2712 | ): Promise<PostOrderErpAuthTokenResponseSuccess> { |
2340 | 2713 | return requester(request.url, { |
2341 | 2714 | method: request.method, |
... | ... | @@ -2389,8 +2762,8 @@ export type PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess = |
2389 | 2762 | * @consumes application/json |
2390 | 2763 | */ |
2391 | 2764 | export const postOrderErpCaptchaGetImgCaptchaCode = /* #__PURE__ */ (() => { |
2392 | - const method = 'post'; | |
2393 | - const url = '/order/erp/captcha/get_img_captcha_code'; | |
2765 | + const method = "post"; | |
2766 | + const url = "/order/erp/captcha/get_img_captcha_code"; | |
2394 | 2767 | function request(): Promise<PostOrderErpCaptchaGetImgCaptchaCodeResponseSuccess> { |
2395 | 2768 | return requester(request.url, { |
2396 | 2769 | method: request.method, |
... | ... | @@ -2457,10 +2830,10 @@ export type PostOrderErpCaptchaSendCaptchaCodeResponseSuccess = |
2457 | 2830 | * @consumes application/json |
2458 | 2831 | */ |
2459 | 2832 | export const postOrderErpCaptchaSendCaptchaCode = /* #__PURE__ */ (() => { |
2460 | - const method = 'post'; | |
2461 | - const url = '/order/erp/captcha/send_captcha_code'; | |
2833 | + const method = "post"; | |
2834 | + const url = "/order/erp/captcha/send_captcha_code"; | |
2462 | 2835 | function request( |
2463 | - option: PostOrderErpCaptchaSendCaptchaCodeOption, | |
2836 | + option: PostOrderErpCaptchaSendCaptchaCodeOption | |
2464 | 2837 | ): Promise<PostOrderErpCaptchaSendCaptchaCodeResponseSuccess> { |
2465 | 2838 | return requester(request.url, { |
2466 | 2839 | method: request.method, |
... | ... | @@ -2527,10 +2900,10 @@ export type PutOrderErpDeptsResponseSuccess = PutOrderErpDeptsResponse[200]; |
2527 | 2900 | * @consumes application/json |
2528 | 2901 | */ |
2529 | 2902 | export const putOrderErpDepts = /* #__PURE__ */ (() => { |
2530 | - const method = 'put'; | |
2531 | - const url = '/order/erp/depts'; | |
2903 | + const method = "put"; | |
2904 | + const url = "/order/erp/depts"; | |
2532 | 2905 | function request( |
2533 | - option: PutOrderErpDeptsOption, | |
2906 | + option: PutOrderErpDeptsOption | |
2534 | 2907 | ): Promise<PutOrderErpDeptsResponseSuccess> { |
2535 | 2908 | return requester(request.url, { |
2536 | 2909 | method: request.method, |
... | ... | @@ -2592,10 +2965,10 @@ export type DeleteOrderErpDeptsResponseSuccess = |
2592 | 2965 | * @produces * |
2593 | 2966 | */ |
2594 | 2967 | export const deleteOrderErpDepts = /* #__PURE__ */ (() => { |
2595 | - const method = 'delete'; | |
2596 | - const url = '/order/erp/depts'; | |
2968 | + const method = "delete"; | |
2969 | + const url = "/order/erp/depts"; | |
2597 | 2970 | function request( |
2598 | - option: DeleteOrderErpDeptsOption, | |
2971 | + option: DeleteOrderErpDeptsOption | |
2599 | 2972 | ): Promise<DeleteOrderErpDeptsResponseSuccess> { |
2600 | 2973 | return requester(request.url, { |
2601 | 2974 | method: request.method, |
... | ... | @@ -2663,10 +3036,10 @@ export type PostOrderErpDeptsAddResponseSuccess = |
2663 | 3036 | * @consumes application/json |
2664 | 3037 | */ |
2665 | 3038 | export const postOrderErpDeptsAdd = /* #__PURE__ */ (() => { |
2666 | - const method = 'post'; | |
2667 | - const url = '/order/erp/depts/add'; | |
3039 | + const method = "post"; | |
3040 | + const url = "/order/erp/depts/add"; | |
2668 | 3041 | function request( |
2669 | - option: PostOrderErpDeptsAddOption, | |
3042 | + option: PostOrderErpDeptsAddOption | |
2670 | 3043 | ): Promise<PostOrderErpDeptsAddResponseSuccess> { |
2671 | 3044 | return requester(request.url, { |
2672 | 3045 | method: request.method, |
... | ... | @@ -2734,10 +3107,10 @@ export type PostOrderErpDeptsListByPageResponseSuccess = |
2734 | 3107 | * @consumes application/json |
2735 | 3108 | */ |
2736 | 3109 | export const postOrderErpDeptsListByPage = /* #__PURE__ */ (() => { |
2737 | - const method = 'post'; | |
2738 | - const url = '/order/erp/depts/list_by_page'; | |
3110 | + const method = "post"; | |
3111 | + const url = "/order/erp/depts/list_by_page"; | |
2739 | 3112 | function request( |
2740 | - option: PostOrderErpDeptsListByPageOption, | |
3113 | + option: PostOrderErpDeptsListByPageOption | |
2741 | 3114 | ): Promise<PostOrderErpDeptsListByPageResponseSuccess> { |
2742 | 3115 | return requester(request.url, { |
2743 | 3116 | method: request.method, |
... | ... | @@ -2805,10 +3178,10 @@ export type PostOrderErpDictionaryAddResponseSuccess = |
2805 | 3178 | * @consumes application/json |
2806 | 3179 | */ |
2807 | 3180 | export const postOrderErpDictionaryAdd = /* #__PURE__ */ (() => { |
2808 | - const method = 'post'; | |
2809 | - const url = '/order/erp/dictionary/add'; | |
3181 | + const method = "post"; | |
3182 | + const url = "/order/erp/dictionary/add"; | |
2810 | 3183 | function request( |
2811 | - option: PostOrderErpDictionaryAddOption, | |
3184 | + option: PostOrderErpDictionaryAddOption | |
2812 | 3185 | ): Promise<PostOrderErpDictionaryAddResponseSuccess> { |
2813 | 3186 | return requester(request.url, { |
2814 | 3187 | method: request.method, |
... | ... | @@ -2876,10 +3249,10 @@ export type PostOrderErpDictionaryDeleteResponseSuccess = |
2876 | 3249 | * @consumes application/json |
2877 | 3250 | */ |
2878 | 3251 | export const postOrderErpDictionaryDelete = /* #__PURE__ */ (() => { |
2879 | - const method = 'post'; | |
2880 | - const url = '/order/erp/dictionary/delete'; | |
3252 | + const method = "post"; | |
3253 | + const url = "/order/erp/dictionary/delete"; | |
2881 | 3254 | function request( |
2882 | - option: PostOrderErpDictionaryDeleteOption, | |
3255 | + option: PostOrderErpDictionaryDeleteOption | |
2883 | 3256 | ): Promise<PostOrderErpDictionaryDeleteResponseSuccess> { |
2884 | 3257 | return requester(request.url, { |
2885 | 3258 | method: request.method, |
... | ... | @@ -2947,10 +3320,10 @@ export type PostOrderErpDictionaryEditResponseSuccess = |
2947 | 3320 | * @consumes application/json |
2948 | 3321 | */ |
2949 | 3322 | export const postOrderErpDictionaryEdit = /* #__PURE__ */ (() => { |
2950 | - const method = 'post'; | |
2951 | - const url = '/order/erp/dictionary/edit'; | |
3323 | + const method = "post"; | |
3324 | + const url = "/order/erp/dictionary/edit"; | |
2952 | 3325 | function request( |
2953 | - option: PostOrderErpDictionaryEditOption, | |
3326 | + option: PostOrderErpDictionaryEditOption | |
2954 | 3327 | ): Promise<PostOrderErpDictionaryEditResponseSuccess> { |
2955 | 3328 | return requester(request.url, { |
2956 | 3329 | method: request.method, |
... | ... | @@ -3018,10 +3391,10 @@ export type PostOrderErpDictionaryGetAllResponseSuccess = |
3018 | 3391 | * @consumes application/json |
3019 | 3392 | */ |
3020 | 3393 | export const postOrderErpDictionaryGetAll = /* #__PURE__ */ (() => { |
3021 | - const method = 'post'; | |
3022 | - const url = '/order/erp/dictionary/get_all'; | |
3394 | + const method = "post"; | |
3395 | + const url = "/order/erp/dictionary/get_all"; | |
3023 | 3396 | function request( |
3024 | - option: PostOrderErpDictionaryGetAllOption, | |
3397 | + option: PostOrderErpDictionaryGetAllOption | |
3025 | 3398 | ): Promise<PostOrderErpDictionaryGetAllResponseSuccess> { |
3026 | 3399 | return requester(request.url, { |
3027 | 3400 | method: request.method, |
... | ... | @@ -3089,10 +3462,10 @@ export type PostOrderErpDictionaryListByPageResponseSuccess = |
3089 | 3462 | * @consumes application/json |
3090 | 3463 | */ |
3091 | 3464 | export const postOrderErpDictionaryListByPage = /* #__PURE__ */ (() => { |
3092 | - const method = 'post'; | |
3093 | - const url = '/order/erp/dictionary/list_by_page'; | |
3465 | + const method = "post"; | |
3466 | + const url = "/order/erp/dictionary/list_by_page"; | |
3094 | 3467 | function request( |
3095 | - option: PostOrderErpDictionaryListByPageOption, | |
3468 | + option: PostOrderErpDictionaryListByPageOption | |
3096 | 3469 | ): Promise<PostOrderErpDictionaryListByPageResponseSuccess> { |
3097 | 3470 | return requester(request.url, { |
3098 | 3471 | method: request.method, |
... | ... | @@ -3140,8 +3513,8 @@ export type GetOrderErpIndexChartDataResponseSuccess = |
3140 | 3513 | * @produces * |
3141 | 3514 | */ |
3142 | 3515 | export const getOrderErpIndexChartData = /* #__PURE__ */ (() => { |
3143 | - const method = 'get'; | |
3144 | - const url = '/order/erp/index/chartData'; | |
3516 | + const method = "get"; | |
3517 | + const url = "/order/erp/index/chartData"; | |
3145 | 3518 | function request(): Promise<GetOrderErpIndexChartDataResponseSuccess> { |
3146 | 3519 | return requester(request.url, { |
3147 | 3520 | method: request.method, |
... | ... | @@ -3188,8 +3561,8 @@ export type GetOrderErpIndexDataResponseSuccess = |
3188 | 3561 | * @produces * |
3189 | 3562 | */ |
3190 | 3563 | export const getOrderErpIndexData = /* #__PURE__ */ (() => { |
3191 | - const method = 'get'; | |
3192 | - const url = '/order/erp/index/data'; | |
3564 | + const method = "get"; | |
3565 | + const url = "/order/erp/index/data"; | |
3193 | 3566 | function request(): Promise<GetOrderErpIndexDataResponseSuccess> { |
3194 | 3567 | return requester(request.url, { |
3195 | 3568 | method: request.method, |
... | ... | @@ -3256,10 +3629,10 @@ export type PostOrderErpJobsAddResponseSuccess = |
3256 | 3629 | * @consumes application/json |
3257 | 3630 | */ |
3258 | 3631 | export const postOrderErpJobsAdd = /* #__PURE__ */ (() => { |
3259 | - const method = 'post'; | |
3260 | - const url = '/order/erp/jobs/add'; | |
3632 | + const method = "post"; | |
3633 | + const url = "/order/erp/jobs/add"; | |
3261 | 3634 | function request( |
3262 | - option: PostOrderErpJobsAddOption, | |
3635 | + option: PostOrderErpJobsAddOption | |
3263 | 3636 | ): Promise<PostOrderErpJobsAddResponseSuccess> { |
3264 | 3637 | return requester(request.url, { |
3265 | 3638 | method: request.method, |
... | ... | @@ -3327,10 +3700,10 @@ export type PostOrderErpJobsDeleteResponseSuccess = |
3327 | 3700 | * @consumes application/json |
3328 | 3701 | */ |
3329 | 3702 | export const postOrderErpJobsDelete = /* #__PURE__ */ (() => { |
3330 | - const method = 'post'; | |
3331 | - const url = '/order/erp/jobs/delete'; | |
3703 | + const method = "post"; | |
3704 | + const url = "/order/erp/jobs/delete"; | |
3332 | 3705 | function request( |
3333 | - option: PostOrderErpJobsDeleteOption, | |
3706 | + option: PostOrderErpJobsDeleteOption | |
3334 | 3707 | ): Promise<PostOrderErpJobsDeleteResponseSuccess> { |
3335 | 3708 | return requester(request.url, { |
3336 | 3709 | method: request.method, |
... | ... | @@ -3398,10 +3771,10 @@ export type PostOrderErpJobsEditResponseSuccess = |
3398 | 3771 | * @consumes application/json |
3399 | 3772 | */ |
3400 | 3773 | export const postOrderErpJobsEdit = /* #__PURE__ */ (() => { |
3401 | - const method = 'post'; | |
3402 | - const url = '/order/erp/jobs/edit'; | |
3774 | + const method = "post"; | |
3775 | + const url = "/order/erp/jobs/edit"; | |
3403 | 3776 | function request( |
3404 | - option: PostOrderErpJobsEditOption, | |
3777 | + option: PostOrderErpJobsEditOption | |
3405 | 3778 | ): Promise<PostOrderErpJobsEditResponseSuccess> { |
3406 | 3779 | return requester(request.url, { |
3407 | 3780 | method: request.method, |
... | ... | @@ -3469,10 +3842,10 @@ export type PostOrderErpJobsListByPageResponseSuccess = |
3469 | 3842 | * @consumes application/json |
3470 | 3843 | */ |
3471 | 3844 | export const postOrderErpJobsListByPage = /* #__PURE__ */ (() => { |
3472 | - const method = 'post'; | |
3473 | - const url = '/order/erp/jobs/list_by_page'; | |
3845 | + const method = "post"; | |
3846 | + const url = "/order/erp/jobs/list_by_page"; | |
3474 | 3847 | function request( |
3475 | - option: PostOrderErpJobsListByPageOption, | |
3848 | + option: PostOrderErpJobsListByPageOption | |
3476 | 3849 | ): Promise<PostOrderErpJobsListByPageResponseSuccess> { |
3477 | 3850 | return requester(request.url, { |
3478 | 3851 | method: request.method, |
... | ... | @@ -3540,10 +3913,10 @@ export type PostOrderErpLogsListResponseSuccess = |
3540 | 3913 | * @consumes application/json |
3541 | 3914 | */ |
3542 | 3915 | export const postOrderErpLogsList = /* #__PURE__ */ (() => { |
3543 | - const method = 'post'; | |
3544 | - const url = '/order/erp/logs/list'; | |
3916 | + const method = "post"; | |
3917 | + const url = "/order/erp/logs/list"; | |
3545 | 3918 | function request( |
3546 | - option: PostOrderErpLogsListOption, | |
3919 | + option: PostOrderErpLogsListOption | |
3547 | 3920 | ): Promise<PostOrderErpLogsListResponseSuccess> { |
3548 | 3921 | return requester(request.url, { |
3549 | 3922 | method: request.method, |
... | ... | @@ -3611,10 +3984,10 @@ export type PostOrderErpMenusAddResponseSuccess = |
3611 | 3984 | * @consumes application/json |
3612 | 3985 | */ |
3613 | 3986 | export const postOrderErpMenusAdd = /* #__PURE__ */ (() => { |
3614 | - const method = 'post'; | |
3615 | - const url = '/order/erp/menus/add'; | |
3987 | + const method = "post"; | |
3988 | + const url = "/order/erp/menus/add"; | |
3616 | 3989 | function request( |
3617 | - option: PostOrderErpMenusAddOption, | |
3990 | + option: PostOrderErpMenusAddOption | |
3618 | 3991 | ): Promise<PostOrderErpMenusAddResponseSuccess> { |
3619 | 3992 | return requester(request.url, { |
3620 | 3993 | method: request.method, |
... | ... | @@ -3682,10 +4055,10 @@ export type PostOrderErpMenusAllResponseSuccess = |
3682 | 4055 | * @consumes application/json |
3683 | 4056 | */ |
3684 | 4057 | export const postOrderErpMenusAll = /* #__PURE__ */ (() => { |
3685 | - const method = 'post'; | |
3686 | - const url = '/order/erp/menus/all'; | |
4058 | + const method = "post"; | |
4059 | + const url = "/order/erp/menus/all"; | |
3687 | 4060 | function request( |
3688 | - option: PostOrderErpMenusAllOption, | |
4061 | + option: PostOrderErpMenusAllOption | |
3689 | 4062 | ): Promise<PostOrderErpMenusAllResponseSuccess> { |
3690 | 4063 | return requester(request.url, { |
3691 | 4064 | method: request.method, |
... | ... | @@ -3739,8 +4112,8 @@ export type PostOrderErpMenusBuildResponseSuccess = |
3739 | 4112 | * @consumes application/json |
3740 | 4113 | */ |
3741 | 4114 | export const postOrderErpMenusBuild = /* #__PURE__ */ (() => { |
3742 | - const method = 'post'; | |
3743 | - const url = '/order/erp/menus/build'; | |
4115 | + const method = "post"; | |
4116 | + const url = "/order/erp/menus/build"; | |
3744 | 4117 | function request(): Promise<PostOrderErpMenusBuildResponseSuccess> { |
3745 | 4118 | return requester(request.url, { |
3746 | 4119 | method: request.method, |
... | ... | @@ -3807,10 +4180,10 @@ export type PostOrderErpMenusDeleteResponseSuccess = |
3807 | 4180 | * @consumes application/json |
3808 | 4181 | */ |
3809 | 4182 | export const postOrderErpMenusDelete = /* #__PURE__ */ (() => { |
3810 | - const method = 'post'; | |
3811 | - const url = '/order/erp/menus/delete'; | |
4183 | + const method = "post"; | |
4184 | + const url = "/order/erp/menus/delete"; | |
3812 | 4185 | function request( |
3813 | - option: PostOrderErpMenusDeleteOption, | |
4186 | + option: PostOrderErpMenusDeleteOption | |
3814 | 4187 | ): Promise<PostOrderErpMenusDeleteResponseSuccess> { |
3815 | 4188 | return requester(request.url, { |
3816 | 4189 | method: request.method, |
... | ... | @@ -3878,10 +4251,10 @@ export type PostOrderErpMenusEditResponseSuccess = |
3878 | 4251 | * @consumes application/json |
3879 | 4252 | */ |
3880 | 4253 | export const postOrderErpMenusEdit = /* #__PURE__ */ (() => { |
3881 | - const method = 'post'; | |
3882 | - const url = '/order/erp/menus/edit'; | |
4254 | + const method = "post"; | |
4255 | + const url = "/order/erp/menus/edit"; | |
3883 | 4256 | function request( |
3884 | - option: PostOrderErpMenusEditOption, | |
4257 | + option: PostOrderErpMenusEditOption | |
3885 | 4258 | ): Promise<PostOrderErpMenusEditResponseSuccess> { |
3886 | 4259 | return requester(request.url, { |
3887 | 4260 | method: request.method, |
... | ... | @@ -3935,8 +4308,8 @@ export type PostOrderErpMenusTreeResponseSuccess = |
3935 | 4308 | * @consumes application/json |
3936 | 4309 | */ |
3937 | 4310 | export const postOrderErpMenusTree = /* #__PURE__ */ (() => { |
3938 | - const method = 'post'; | |
3939 | - const url = '/order/erp/menus/tree'; | |
4311 | + const method = "post"; | |
4312 | + const url = "/order/erp/menus/tree"; | |
3940 | 4313 | function request(): Promise<PostOrderErpMenusTreeResponseSuccess> { |
3941 | 4314 | return requester(request.url, { |
3942 | 4315 | method: request.method, |
... | ... | @@ -3989,8 +4362,8 @@ export type PostOrderErpMessageGetUnreadNumResponseSuccess = |
3989 | 4362 | * @consumes application/json |
3990 | 4363 | */ |
3991 | 4364 | export const postOrderErpMessageGetUnreadNum = /* #__PURE__ */ (() => { |
3992 | - const method = 'post'; | |
3993 | - const url = '/order/erp/message/getUnreadNum'; | |
4365 | + const method = "post"; | |
4366 | + const url = "/order/erp/message/getUnreadNum"; | |
3994 | 4367 | function request(): Promise<PostOrderErpMessageGetUnreadNumResponseSuccess> { |
3995 | 4368 | return requester(request.url, { |
3996 | 4369 | method: request.method, |
... | ... | @@ -4057,10 +4430,10 @@ export type PostOrderErpMessageQueryMyMessageResponseSuccess = |
4057 | 4430 | * @consumes application/json |
4058 | 4431 | */ |
4059 | 4432 | export const postOrderErpMessageQueryMyMessage = /* #__PURE__ */ (() => { |
4060 | - const method = 'post'; | |
4061 | - const url = '/order/erp/message/queryMyMessage'; | |
4433 | + const method = "post"; | |
4434 | + const url = "/order/erp/message/queryMyMessage"; | |
4062 | 4435 | function request( |
4063 | - option: PostOrderErpMessageQueryMyMessageOption, | |
4436 | + option: PostOrderErpMessageQueryMyMessageOption | |
4064 | 4437 | ): Promise<PostOrderErpMessageQueryMyMessageResponseSuccess> { |
4065 | 4438 | return requester(request.url, { |
4066 | 4439 | method: request.method, |
... | ... | @@ -4122,16 +4495,16 @@ export type PostOrderErpMessageReadResponseSuccess = |
4122 | 4495 | PostOrderErpMessageReadResponse[200]; |
4123 | 4496 | /** |
4124 | 4497 | * @description |
4125 | - * queryMyMessage | |
4498 | + * read | |
4126 | 4499 | * @tags message-controller |
4127 | 4500 | * @produces * |
4128 | 4501 | * @consumes application/json |
4129 | 4502 | */ |
4130 | 4503 | export const postOrderErpMessageRead = /* #__PURE__ */ (() => { |
4131 | - const method = 'post'; | |
4132 | - const url = '/order/erp/message/read'; | |
4504 | + const method = "post"; | |
4505 | + const url = "/order/erp/message/read"; | |
4133 | 4506 | function request( |
4134 | - option: PostOrderErpMessageReadOption, | |
4507 | + option: PostOrderErpMessageReadOption | |
4135 | 4508 | ): Promise<PostOrderErpMessageReadResponseSuccess> { |
4136 | 4509 | return requester(request.url, { |
4137 | 4510 | method: request.method, |
... | ... | @@ -4179,14 +4552,14 @@ export type PostOrderErpMessageReadAllResponseSuccess = |
4179 | 4552 | PostOrderErpMessageReadAllResponse[200]; |
4180 | 4553 | /** |
4181 | 4554 | * @description |
4182 | - * queryMyMessage | |
4555 | + * readAll | |
4183 | 4556 | * @tags message-controller |
4184 | 4557 | * @produces * |
4185 | 4558 | * @consumes application/json |
4186 | 4559 | */ |
4187 | 4560 | export const postOrderErpMessageReadAll = /* #__PURE__ */ (() => { |
4188 | - const method = 'post'; | |
4189 | - const url = '/order/erp/message/readAll'; | |
4561 | + const method = "post"; | |
4562 | + const url = "/order/erp/message/readAll"; | |
4190 | 4563 | function request(): Promise<PostOrderErpMessageReadAllResponseSuccess> { |
4191 | 4564 | return requester(request.url, { |
4192 | 4565 | method: request.method, |
... | ... | @@ -4253,10 +4626,10 @@ export type PostOrderErpOptLogListByPageResponseSuccess = |
4253 | 4626 | * @consumes application/json |
4254 | 4627 | */ |
4255 | 4628 | export const postOrderErpOptLogListByPage = /* #__PURE__ */ (() => { |
4256 | - const method = 'post'; | |
4257 | - const url = '/order/erp/opt/log/list_by_page'; | |
4629 | + const method = "post"; | |
4630 | + const url = "/order/erp/opt/log/list_by_page"; | |
4258 | 4631 | function request( |
4259 | - option: PostOrderErpOptLogListByPageOption, | |
4632 | + option: PostOrderErpOptLogListByPageOption | |
4260 | 4633 | ): Promise<PostOrderErpOptLogListByPageResponseSuccess> { |
4261 | 4634 | return requester(request.url, { |
4262 | 4635 | method: request.method, |
... | ... | @@ -4324,10 +4697,10 @@ export type PostOrderErpOrderAddResponseSuccess = |
4324 | 4697 | * @consumes application/json |
4325 | 4698 | */ |
4326 | 4699 | export const postOrderErpOrderAdd = /* #__PURE__ */ (() => { |
4327 | - const method = 'post'; | |
4328 | - const url = '/order/erp/order/add'; | |
4700 | + const method = "post"; | |
4701 | + const url = "/order/erp/order/add"; | |
4329 | 4702 | function request( |
4330 | - option: PostOrderErpOrderAddOption, | |
4703 | + option: PostOrderErpOrderAddOption | |
4331 | 4704 | ): Promise<PostOrderErpOrderAddResponseSuccess> { |
4332 | 4705 | return requester(request.url, { |
4333 | 4706 | method: request.method, |
... | ... | @@ -4395,10 +4768,10 @@ export type PostOrderErpOrderDeleteByIdResponseSuccess = |
4395 | 4768 | * @consumes application/json |
4396 | 4769 | */ |
4397 | 4770 | export const postOrderErpOrderDeleteById = /* #__PURE__ */ (() => { |
4398 | - const method = 'post'; | |
4399 | - const url = '/order/erp/order/delete_by_id'; | |
4771 | + const method = "post"; | |
4772 | + const url = "/order/erp/order/delete_by_id"; | |
4400 | 4773 | function request( |
4401 | - option: PostOrderErpOrderDeleteByIdOption, | |
4774 | + option: PostOrderErpOrderDeleteByIdOption | |
4402 | 4775 | ): Promise<PostOrderErpOrderDeleteByIdResponseSuccess> { |
4403 | 4776 | return requester(request.url, { |
4404 | 4777 | method: request.method, |
... | ... | @@ -4466,10 +4839,10 @@ export type PostOrderErpOrderEditResponseSuccess = |
4466 | 4839 | * @consumes application/json |
4467 | 4840 | */ |
4468 | 4841 | export const postOrderErpOrderEdit = /* #__PURE__ */ (() => { |
4469 | - const method = 'post'; | |
4470 | - const url = '/order/erp/order/edit'; | |
4842 | + const method = "post"; | |
4843 | + const url = "/order/erp/order/edit"; | |
4471 | 4844 | function request( |
4472 | - option: PostOrderErpOrderEditOption, | |
4845 | + option: PostOrderErpOrderEditOption | |
4473 | 4846 | ): Promise<PostOrderErpOrderEditResponseSuccess> { |
4474 | 4847 | return requester(request.url, { |
4475 | 4848 | method: request.method, |
... | ... | @@ -4537,10 +4910,10 @@ export type PostOrderErpOrderExportResponseSuccess = |
4537 | 4910 | * @consumes application/json |
4538 | 4911 | */ |
4539 | 4912 | export const postOrderErpOrderExport = /* #__PURE__ */ (() => { |
4540 | - const method = 'post'; | |
4541 | - const url = '/order/erp/order/export'; | |
4913 | + const method = "post"; | |
4914 | + const url = "/order/erp/order/export"; | |
4542 | 4915 | function request( |
4543 | - option: PostOrderErpOrderExportOption, | |
4916 | + option: PostOrderErpOrderExportOption | |
4544 | 4917 | ): Promise<PostOrderErpOrderExportResponseSuccess> { |
4545 | 4918 | return requester(request.url, { |
4546 | 4919 | method: request.method, |
... | ... | @@ -4608,10 +4981,10 @@ export type PostOrderErpOrderFieldUnlockApplyResponseSuccess = |
4608 | 4981 | * @consumes application/json |
4609 | 4982 | */ |
4610 | 4983 | export const postOrderErpOrderFieldUnlockApply = /* #__PURE__ */ (() => { |
4611 | - const method = 'post'; | |
4612 | - const url = '/order/erp/order/field_unlock_apply'; | |
4984 | + const method = "post"; | |
4985 | + const url = "/order/erp/order/field_unlock_apply"; | |
4613 | 4986 | function request( |
4614 | - option: PostOrderErpOrderFieldUnlockApplyOption, | |
4987 | + option: PostOrderErpOrderFieldUnlockApplyOption | |
4615 | 4988 | ): Promise<PostOrderErpOrderFieldUnlockApplyResponseSuccess> { |
4616 | 4989 | return requester(request.url, { |
4617 | 4990 | method: request.method, |
... | ... | @@ -4679,10 +5052,10 @@ export type PostOrderErpOrderListByPageResponseSuccess = |
4679 | 5052 | * @consumes application/json |
4680 | 5053 | */ |
4681 | 5054 | export const postOrderErpOrderListByPage = /* #__PURE__ */ (() => { |
4682 | - const method = 'post'; | |
4683 | - const url = '/order/erp/order/list_by_page'; | |
5055 | + const method = "post"; | |
5056 | + const url = "/order/erp/order/list_by_page"; | |
4684 | 5057 | function request( |
4685 | - option: PostOrderErpOrderListByPageOption, | |
5058 | + option: PostOrderErpOrderListByPageOption | |
4686 | 5059 | ): Promise<PostOrderErpOrderListByPageResponseSuccess> { |
4687 | 5060 | return requester(request.url, { |
4688 | 5061 | method: request.method, |
... | ... | @@ -4750,10 +5123,10 @@ export type PostOrderErpOrderQueryByIdResponseSuccess = |
4750 | 5123 | * @consumes application/json |
4751 | 5124 | */ |
4752 | 5125 | export const postOrderErpOrderQueryById = /* #__PURE__ */ (() => { |
4753 | - const method = 'post'; | |
4754 | - const url = '/order/erp/order/query_by_id'; | |
5126 | + const method = "post"; | |
5127 | + const url = "/order/erp/order/query_by_id"; | |
4755 | 5128 | function request( |
4756 | - option: PostOrderErpOrderQueryByIdOption, | |
5129 | + option: PostOrderErpOrderQueryByIdOption | |
4757 | 5130 | ): Promise<PostOrderErpOrderQueryByIdResponseSuccess> { |
4758 | 5131 | return requester(request.url, { |
4759 | 5132 | method: request.method, |
... | ... | @@ -4821,10 +5194,10 @@ export type PostOrderErpProfitAnalysisResponseSuccess = |
4821 | 5194 | * @consumes application/json |
4822 | 5195 | */ |
4823 | 5196 | export const postOrderErpProfitAnalysis = /* #__PURE__ */ (() => { |
4824 | - const method = 'post'; | |
4825 | - const url = '/order/erp/profit/analysis'; | |
5197 | + const method = "post"; | |
5198 | + const url = "/order/erp/profit/analysis"; | |
4826 | 5199 | function request( |
4827 | - option: PostOrderErpProfitAnalysisOption, | |
5200 | + option: PostOrderErpProfitAnalysisOption | |
4828 | 5201 | ): Promise<PostOrderErpProfitAnalysisResponseSuccess> { |
4829 | 5202 | return requester(request.url, { |
4830 | 5203 | method: request.method, |
... | ... | @@ -4892,10 +5265,10 @@ export type PostOrderErpRolesAddResponseSuccess = |
4892 | 5265 | * @consumes application/json |
4893 | 5266 | */ |
4894 | 5267 | export const postOrderErpRolesAdd = /* #__PURE__ */ (() => { |
4895 | - const method = 'post'; | |
4896 | - const url = '/order/erp/roles/add'; | |
5268 | + const method = "post"; | |
5269 | + const url = "/order/erp/roles/add"; | |
4897 | 5270 | function request( |
4898 | - option: PostOrderErpRolesAddOption, | |
5271 | + option: PostOrderErpRolesAddOption | |
4899 | 5272 | ): Promise<PostOrderErpRolesAddResponseSuccess> { |
4900 | 5273 | return requester(request.url, { |
4901 | 5274 | method: request.method, |
... | ... | @@ -4963,10 +5336,10 @@ export type PostOrderErpRolesAllResponseSuccess = |
4963 | 5336 | * @consumes application/json |
4964 | 5337 | */ |
4965 | 5338 | export const postOrderErpRolesAll = /* #__PURE__ */ (() => { |
4966 | - const method = 'post'; | |
4967 | - const url = '/order/erp/roles/all'; | |
5339 | + const method = "post"; | |
5340 | + const url = "/order/erp/roles/all"; | |
4968 | 5341 | function request( |
4969 | - option: PostOrderErpRolesAllOption, | |
5342 | + option: PostOrderErpRolesAllOption | |
4970 | 5343 | ): Promise<PostOrderErpRolesAllResponseSuccess> { |
4971 | 5344 | return requester(request.url, { |
4972 | 5345 | method: request.method, |
... | ... | @@ -5034,10 +5407,10 @@ export type PostOrderErpRolesAuthMenuResponseSuccess = |
5034 | 5407 | * @consumes application/json |
5035 | 5408 | */ |
5036 | 5409 | export const postOrderErpRolesAuthMenu = /* #__PURE__ */ (() => { |
5037 | - const method = 'post'; | |
5038 | - const url = '/order/erp/roles/auth_menu'; | |
5410 | + const method = "post"; | |
5411 | + const url = "/order/erp/roles/auth_menu"; | |
5039 | 5412 | function request( |
5040 | - option: PostOrderErpRolesAuthMenuOption, | |
5413 | + option: PostOrderErpRolesAuthMenuOption | |
5041 | 5414 | ): Promise<PostOrderErpRolesAuthMenuResponseSuccess> { |
5042 | 5415 | return requester(request.url, { |
5043 | 5416 | method: request.method, |
... | ... | @@ -5105,10 +5478,10 @@ export type PostOrderErpRolesDeleteResponseSuccess = |
5105 | 5478 | * @consumes application/json |
5106 | 5479 | */ |
5107 | 5480 | export const postOrderErpRolesDelete = /* #__PURE__ */ (() => { |
5108 | - const method = 'post'; | |
5109 | - const url = '/order/erp/roles/delete'; | |
5481 | + const method = "post"; | |
5482 | + const url = "/order/erp/roles/delete"; | |
5110 | 5483 | function request( |
5111 | - option: PostOrderErpRolesDeleteOption, | |
5484 | + option: PostOrderErpRolesDeleteOption | |
5112 | 5485 | ): Promise<PostOrderErpRolesDeleteResponseSuccess> { |
5113 | 5486 | return requester(request.url, { |
5114 | 5487 | method: request.method, |
... | ... | @@ -5176,10 +5549,10 @@ export type PostOrderErpRolesDetailResponseSuccess = |
5176 | 5549 | * @consumes application/json |
5177 | 5550 | */ |
5178 | 5551 | export const postOrderErpRolesDetail = /* #__PURE__ */ (() => { |
5179 | - const method = 'post'; | |
5180 | - const url = '/order/erp/roles/detail'; | |
5552 | + const method = "post"; | |
5553 | + const url = "/order/erp/roles/detail"; | |
5181 | 5554 | function request( |
5182 | - option: PostOrderErpRolesDetailOption, | |
5555 | + option: PostOrderErpRolesDetailOption | |
5183 | 5556 | ): Promise<PostOrderErpRolesDetailResponseSuccess> { |
5184 | 5557 | return requester(request.url, { |
5185 | 5558 | method: request.method, |
... | ... | @@ -5247,10 +5620,10 @@ export type PostOrderErpRolesEditResponseSuccess = |
5247 | 5620 | * @consumes application/json |
5248 | 5621 | */ |
5249 | 5622 | export const postOrderErpRolesEdit = /* #__PURE__ */ (() => { |
5250 | - const method = 'post'; | |
5251 | - const url = '/order/erp/roles/edit'; | |
5623 | + const method = "post"; | |
5624 | + const url = "/order/erp/roles/edit"; | |
5252 | 5625 | function request( |
5253 | - option: PostOrderErpRolesEditOption, | |
5626 | + option: PostOrderErpRolesEditOption | |
5254 | 5627 | ): Promise<PostOrderErpRolesEditResponseSuccess> { |
5255 | 5628 | return requester(request.url, { |
5256 | 5629 | method: request.method, |
... | ... | @@ -5318,10 +5691,10 @@ export type PostOrderErpRolesListByPageResponseSuccess = |
5318 | 5691 | * @consumes application/json |
5319 | 5692 | */ |
5320 | 5693 | export const postOrderErpRolesListByPage = /* #__PURE__ */ (() => { |
5321 | - const method = 'post'; | |
5322 | - const url = '/order/erp/roles/list_by_page'; | |
5694 | + const method = "post"; | |
5695 | + const url = "/order/erp/roles/list_by_page"; | |
5323 | 5696 | function request( |
5324 | - option: PostOrderErpRolesListByPageOption, | |
5697 | + option: PostOrderErpRolesListByPageOption | |
5325 | 5698 | ): Promise<PostOrderErpRolesListByPageResponseSuccess> { |
5326 | 5699 | return requester(request.url, { |
5327 | 5700 | method: request.method, |
... | ... | @@ -5389,10 +5762,10 @@ export type PostOrderErpUsersAddResponseSuccess = |
5389 | 5762 | * @consumes application/json |
5390 | 5763 | */ |
5391 | 5764 | export const postOrderErpUsersAdd = /* #__PURE__ */ (() => { |
5392 | - const method = 'post'; | |
5393 | - const url = '/order/erp/users/add'; | |
5765 | + const method = "post"; | |
5766 | + const url = "/order/erp/users/add"; | |
5394 | 5767 | function request( |
5395 | - option: PostOrderErpUsersAddOption, | |
5768 | + option: PostOrderErpUsersAddOption | |
5396 | 5769 | ): Promise<PostOrderErpUsersAddResponseSuccess> { |
5397 | 5770 | return requester(request.url, { |
5398 | 5771 | method: request.method, |
... | ... | @@ -5460,10 +5833,10 @@ export type PostOrderErpUsersAuthRoleResponseSuccess = |
5460 | 5833 | * @consumes application/json |
5461 | 5834 | */ |
5462 | 5835 | export const postOrderErpUsersAuthRole = /* #__PURE__ */ (() => { |
5463 | - const method = 'post'; | |
5464 | - const url = '/order/erp/users/auth_role'; | |
5836 | + const method = "post"; | |
5837 | + const url = "/order/erp/users/auth_role"; | |
5465 | 5838 | function request( |
5466 | - option: PostOrderErpUsersAuthRoleOption, | |
5839 | + option: PostOrderErpUsersAuthRoleOption | |
5467 | 5840 | ): Promise<PostOrderErpUsersAuthRoleResponseSuccess> { |
5468 | 5841 | return requester(request.url, { |
5469 | 5842 | method: request.method, |
... | ... | @@ -5531,10 +5904,10 @@ export type PostOrderErpUsersDeleteResponseSuccess = |
5531 | 5904 | * @consumes application/json |
5532 | 5905 | */ |
5533 | 5906 | export const postOrderErpUsersDelete = /* #__PURE__ */ (() => { |
5534 | - const method = 'post'; | |
5535 | - const url = '/order/erp/users/delete'; | |
5907 | + const method = "post"; | |
5908 | + const url = "/order/erp/users/delete"; | |
5536 | 5909 | function request( |
5537 | - option: PostOrderErpUsersDeleteOption, | |
5910 | + option: PostOrderErpUsersDeleteOption | |
5538 | 5911 | ): Promise<PostOrderErpUsersDeleteResponseSuccess> { |
5539 | 5912 | return requester(request.url, { |
5540 | 5913 | method: request.method, |
... | ... | @@ -5602,10 +5975,10 @@ export type PostOrderErpUsersEditResponseSuccess = |
5602 | 5975 | * @consumes application/json |
5603 | 5976 | */ |
5604 | 5977 | export const postOrderErpUsersEdit = /* #__PURE__ */ (() => { |
5605 | - const method = 'post'; | |
5606 | - const url = '/order/erp/users/edit'; | |
5978 | + const method = "post"; | |
5979 | + const url = "/order/erp/users/edit"; | |
5607 | 5980 | function request( |
5608 | - option: PostOrderErpUsersEditOption, | |
5981 | + option: PostOrderErpUsersEditOption | |
5609 | 5982 | ): Promise<PostOrderErpUsersEditResponseSuccess> { |
5610 | 5983 | return requester(request.url, { |
5611 | 5984 | method: request.method, |
... | ... | @@ -5673,10 +6046,10 @@ export type PostOrderErpUsersListByPageResponseSuccess = |
5673 | 6046 | * @consumes application/json |
5674 | 6047 | */ |
5675 | 6048 | export const postOrderErpUsersListByPage = /* #__PURE__ */ (() => { |
5676 | - const method = 'post'; | |
5677 | - const url = '/order/erp/users/list_by_page'; | |
6049 | + const method = "post"; | |
6050 | + const url = "/order/erp/users/list_by_page"; | |
5678 | 6051 | function request( |
5679 | - option: PostOrderErpUsersListByPageOption, | |
6052 | + option: PostOrderErpUsersListByPageOption | |
5680 | 6053 | ): Promise<PostOrderErpUsersListByPageResponseSuccess> { |
5681 | 6054 | return requester(request.url, { |
5682 | 6055 | method: request.method, |
... | ... | @@ -5744,10 +6117,10 @@ export type PostOrderErpUsersResetResponseSuccess = |
5744 | 6117 | * @consumes application/json |
5745 | 6118 | */ |
5746 | 6119 | export const postOrderErpUsersReset = /* #__PURE__ */ (() => { |
5747 | - const method = 'post'; | |
5748 | - const url = '/order/erp/users/reset'; | |
6120 | + const method = "post"; | |
6121 | + const url = "/order/erp/users/reset"; | |
5749 | 6122 | function request( |
5750 | - option: PostOrderErpUsersResetOption, | |
6123 | + option: PostOrderErpUsersResetOption | |
5751 | 6124 | ): Promise<PostOrderErpUsersResetResponseSuccess> { |
5752 | 6125 | return requester(request.url, { |
5753 | 6126 | method: request.method, |
... | ... | @@ -5815,10 +6188,10 @@ export type PostOrderErpUsersUpdatePassResponseSuccess = |
5815 | 6188 | * @consumes application/json |
5816 | 6189 | */ |
5817 | 6190 | export const postOrderErpUsersUpdatePass = /* #__PURE__ */ (() => { |
5818 | - const method = 'post'; | |
5819 | - const url = '/order/erp/users/update_pass'; | |
6191 | + const method = "post"; | |
6192 | + const url = "/order/erp/users/update_pass"; | |
5820 | 6193 | function request( |
5821 | - option: PostOrderErpUsersUpdatePassOption, | |
6194 | + option: PostOrderErpUsersUpdatePassOption | |
5822 | 6195 | ): Promise<PostOrderErpUsersUpdatePassResponseSuccess> { |
5823 | 6196 | return requester(request.url, { |
5824 | 6197 | method: request.method, |
... | ... | @@ -5887,10 +6260,10 @@ export type PostServiceBankStatementDeleteBankStatementResponseSuccess = |
5887 | 6260 | */ |
5888 | 6261 | export const postServiceBankStatementDeleteBankStatement = |
5889 | 6262 | /* #__PURE__ */ (() => { |
5890 | - const method = 'post'; | |
5891 | - const url = '/service/bankStatement/deleteBankStatement'; | |
6263 | + const method = "post"; | |
6264 | + const url = "/service/bankStatement/deleteBankStatement"; | |
5892 | 6265 | function request( |
5893 | - option: PostServiceBankStatementDeleteBankStatementOption, | |
6266 | + option: PostServiceBankStatementDeleteBankStatementOption | |
5894 | 6267 | ): Promise<PostServiceBankStatementDeleteBankStatementResponseSuccess> { |
5895 | 6268 | return requester(request.url, { |
5896 | 6269 | method: request.method, |
... | ... | @@ -5959,10 +6332,10 @@ export type PostServiceBankStatementEditBankStatementResponseSuccess = |
5959 | 6332 | */ |
5960 | 6333 | export const postServiceBankStatementEditBankStatement = |
5961 | 6334 | /* #__PURE__ */ (() => { |
5962 | - const method = 'post'; | |
5963 | - const url = '/service/bankStatement/editBankStatement'; | |
6335 | + const method = "post"; | |
6336 | + const url = "/service/bankStatement/editBankStatement"; | |
5964 | 6337 | function request( |
5965 | - option: PostServiceBankStatementEditBankStatementOption, | |
6338 | + option: PostServiceBankStatementEditBankStatementOption | |
5966 | 6339 | ): Promise<PostServiceBankStatementEditBankStatementResponseSuccess> { |
5967 | 6340 | return requester(request.url, { |
5968 | 6341 | method: request.method, |
... | ... | @@ -6016,8 +6389,8 @@ export type PostServiceBankStatementExportTemplateResponseSuccess = |
6016 | 6389 | * @consumes application/json |
6017 | 6390 | */ |
6018 | 6391 | export const postServiceBankStatementExportTemplate = /* #__PURE__ */ (() => { |
6019 | - const method = 'post'; | |
6020 | - const url = '/service/bankStatement/exportTemplate'; | |
6392 | + const method = "post"; | |
6393 | + const url = "/service/bankStatement/exportTemplate"; | |
6021 | 6394 | function request(): Promise<PostServiceBankStatementExportTemplateResponseSuccess> { |
6022 | 6395 | return requester(request.url, { |
6023 | 6396 | method: request.method, |
... | ... | @@ -6085,10 +6458,10 @@ export type PostServiceBankStatementImportBankStatementFormResponseSuccess = |
6085 | 6458 | */ |
6086 | 6459 | export const postServiceBankStatementImportBankStatementForm = |
6087 | 6460 | /* #__PURE__ */ (() => { |
6088 | - const method = 'post'; | |
6089 | - const url = '/service/bankStatement/importBankStatementForm'; | |
6461 | + const method = "post"; | |
6462 | + const url = "/service/bankStatement/importBankStatementForm"; | |
6090 | 6463 | function request( |
6091 | - option: PostServiceBankStatementImportBankStatementFormOption, | |
6464 | + option: PostServiceBankStatementImportBankStatementFormOption | |
6092 | 6465 | ): Promise<PostServiceBankStatementImportBankStatementFormResponseSuccess> { |
6093 | 6466 | return requester(request.url, { |
6094 | 6467 | method: request.method, |
... | ... | @@ -6157,10 +6530,10 @@ export type PostServiceBankStatementQueryBankStatementResponseSuccess = |
6157 | 6530 | */ |
6158 | 6531 | export const postServiceBankStatementQueryBankStatement = |
6159 | 6532 | /* #__PURE__ */ (() => { |
6160 | - const method = 'post'; | |
6161 | - const url = '/service/bankStatement/queryBankStatement'; | |
6533 | + const method = "post"; | |
6534 | + const url = "/service/bankStatement/queryBankStatement"; | |
6162 | 6535 | function request( |
6163 | - option: PostServiceBankStatementQueryBankStatementOption, | |
6536 | + option: PostServiceBankStatementQueryBankStatementOption | |
6164 | 6537 | ): Promise<PostServiceBankStatementQueryBankStatementResponseSuccess> { |
6165 | 6538 | return requester(request.url, { |
6166 | 6539 | method: request.method, |
... | ... | @@ -6229,10 +6602,10 @@ export type PostServiceInvoiceCancelInvoiceAndBankStatementResponseSuccess = |
6229 | 6602 | */ |
6230 | 6603 | export const postServiceInvoiceCancelInvoiceAndBankStatement = |
6231 | 6604 | /* #__PURE__ */ (() => { |
6232 | - const method = 'post'; | |
6233 | - const url = '/service/invoice/cancelInvoiceAndBankStatement'; | |
6605 | + const method = "post"; | |
6606 | + const url = "/service/invoice/cancelInvoiceAndBankStatement"; | |
6234 | 6607 | function request( |
6235 | - option: PostServiceInvoiceCancelInvoiceAndBankStatementOption, | |
6608 | + option: PostServiceInvoiceCancelInvoiceAndBankStatementOption | |
6236 | 6609 | ): Promise<PostServiceInvoiceCancelInvoiceAndBankStatementResponseSuccess> { |
6237 | 6610 | return requester(request.url, { |
6238 | 6611 | method: request.method, |
... | ... | @@ -6300,10 +6673,10 @@ export type PostServiceInvoiceDeleteInvoiceResponseSuccess = |
6300 | 6673 | * @consumes application/json |
6301 | 6674 | */ |
6302 | 6675 | export const postServiceInvoiceDeleteInvoice = /* #__PURE__ */ (() => { |
6303 | - const method = 'post'; | |
6304 | - const url = '/service/invoice/deleteInvoice'; | |
6676 | + const method = "post"; | |
6677 | + const url = "/service/invoice/deleteInvoice"; | |
6305 | 6678 | function request( |
6306 | - option: PostServiceInvoiceDeleteInvoiceOption, | |
6679 | + option: PostServiceInvoiceDeleteInvoiceOption | |
6307 | 6680 | ): Promise<PostServiceInvoiceDeleteInvoiceResponseSuccess> { |
6308 | 6681 | return requester(request.url, { |
6309 | 6682 | method: request.method, |
... | ... | @@ -6371,10 +6744,10 @@ export type PostServiceInvoiceInvoiceWriteOffResponseSuccess = |
6371 | 6744 | * @consumes application/json |
6372 | 6745 | */ |
6373 | 6746 | export const postServiceInvoiceInvoiceWriteOff = /* #__PURE__ */ (() => { |
6374 | - const method = 'post'; | |
6375 | - const url = '/service/invoice/invoiceWriteOff'; | |
6747 | + const method = "post"; | |
6748 | + const url = "/service/invoice/invoiceWriteOff"; | |
6376 | 6749 | function request( |
6377 | - option: PostServiceInvoiceInvoiceWriteOffOption, | |
6750 | + option: PostServiceInvoiceInvoiceWriteOffOption | |
6378 | 6751 | ): Promise<PostServiceInvoiceInvoiceWriteOffResponseSuccess> { |
6379 | 6752 | return requester(request.url, { |
6380 | 6753 | method: request.method, |
... | ... | @@ -6442,10 +6815,10 @@ export type PostServiceInvoiceQueryInvoiceResponseSuccess = |
6442 | 6815 | * @consumes application/json |
6443 | 6816 | */ |
6444 | 6817 | export const postServiceInvoiceQueryInvoice = /* #__PURE__ */ (() => { |
6445 | - const method = 'post'; | |
6446 | - const url = '/service/invoice/queryInvoice'; | |
6818 | + const method = "post"; | |
6819 | + const url = "/service/invoice/queryInvoice"; | |
6447 | 6820 | function request( |
6448 | - option: PostServiceInvoiceQueryInvoiceOption, | |
6821 | + option: PostServiceInvoiceQueryInvoiceOption | |
6449 | 6822 | ): Promise<PostServiceInvoiceQueryInvoiceResponseSuccess> { |
6450 | 6823 | return requester(request.url, { |
6451 | 6824 | method: request.method, |
... | ... | @@ -6513,10 +6886,10 @@ export type PostServiceInvoiceQueryInvoiceDetailResponseSuccess = |
6513 | 6886 | * @consumes application/json |
6514 | 6887 | */ |
6515 | 6888 | export const postServiceInvoiceQueryInvoiceDetail = /* #__PURE__ */ (() => { |
6516 | - const method = 'post'; | |
6517 | - const url = '/service/invoice/queryInvoiceDetail'; | |
6889 | + const method = "post"; | |
6890 | + const url = "/service/invoice/queryInvoiceDetail"; | |
6518 | 6891 | function request( |
6519 | - option: PostServiceInvoiceQueryInvoiceDetailOption, | |
6892 | + option: PostServiceInvoiceQueryInvoiceDetailOption | |
6520 | 6893 | ): Promise<PostServiceInvoiceQueryInvoiceDetailResponseSuccess> { |
6521 | 6894 | return requester(request.url, { |
6522 | 6895 | method: request.method, |
... | ... | @@ -6584,10 +6957,10 @@ export type PostServiceOrderAddOrderResponseSuccess = |
6584 | 6957 | * @consumes application/json |
6585 | 6958 | */ |
6586 | 6959 | export const postServiceOrderAddOrder = /* #__PURE__ */ (() => { |
6587 | - const method = 'post'; | |
6588 | - const url = '/service/order/addOrder'; | |
6960 | + const method = "post"; | |
6961 | + const url = "/service/order/addOrder"; | |
6589 | 6962 | function request( |
6590 | - option: PostServiceOrderAddOrderOption, | |
6963 | + option: PostServiceOrderAddOrderOption | |
6591 | 6964 | ): Promise<PostServiceOrderAddOrderResponseSuccess> { |
6592 | 6965 | return requester(request.url, { |
6593 | 6966 | method: request.method, |
... | ... | @@ -6655,10 +7028,10 @@ export type PostServiceOrderAfterSalesCheckResponseSuccess = |
6655 | 7028 | * @consumes application/json |
6656 | 7029 | */ |
6657 | 7030 | export const postServiceOrderAfterSalesCheck = /* #__PURE__ */ (() => { |
6658 | - const method = 'post'; | |
6659 | - const url = '/service/order/afterSalesCheck'; | |
7031 | + const method = "post"; | |
7032 | + const url = "/service/order/afterSalesCheck"; | |
6660 | 7033 | function request( |
6661 | - option: PostServiceOrderAfterSalesCheckOption, | |
7034 | + option: PostServiceOrderAfterSalesCheckOption | |
6662 | 7035 | ): Promise<PostServiceOrderAfterSalesCheckResponseSuccess> { |
6663 | 7036 | return requester(request.url, { |
6664 | 7037 | method: request.method, |
... | ... | @@ -6727,10 +7100,10 @@ export type PostServiceOrderAfterSalesQuerySnapshotOrderResponseSuccess = |
6727 | 7100 | */ |
6728 | 7101 | export const postServiceOrderAfterSalesQuerySnapshotOrder = |
6729 | 7102 | /* #__PURE__ */ (() => { |
6730 | - const method = 'post'; | |
6731 | - const url = '/service/order/afterSalesQuerySnapshotOrder'; | |
7103 | + const method = "post"; | |
7104 | + const url = "/service/order/afterSalesQuerySnapshotOrder"; | |
6732 | 7105 | function request( |
6733 | - option: PostServiceOrderAfterSalesQuerySnapshotOrderOption, | |
7106 | + option: PostServiceOrderAfterSalesQuerySnapshotOrderOption | |
6734 | 7107 | ): Promise<PostServiceOrderAfterSalesQuerySnapshotOrderResponseSuccess> { |
6735 | 7108 | return requester(request.url, { |
6736 | 7109 | method: request.method, |
... | ... | @@ -6792,16 +7165,16 @@ export type PostServiceOrderApplyAfterSalesResponseSuccess = |
6792 | 7165 | PostServiceOrderApplyAfterSalesResponse[200]; |
6793 | 7166 | /** |
6794 | 7167 | * @description |
6795 | - * 申请修改订单 | |
7168 | + * 申请售后 | |
6796 | 7169 | * @tags 内部订单 |
6797 | 7170 | * @produces * |
6798 | 7171 | * @consumes application/json |
6799 | 7172 | */ |
6800 | 7173 | export const postServiceOrderApplyAfterSales = /* #__PURE__ */ (() => { |
6801 | - const method = 'post'; | |
6802 | - const url = '/service/order/applyAfterSales'; | |
7174 | + const method = "post"; | |
7175 | + const url = "/service/order/applyAfterSales"; | |
6803 | 7176 | function request( |
6804 | - option: PostServiceOrderApplyAfterSalesOption, | |
7177 | + option: PostServiceOrderApplyAfterSalesOption | |
6805 | 7178 | ): Promise<PostServiceOrderApplyAfterSalesResponseSuccess> { |
6806 | 7179 | return requester(request.url, { |
6807 | 7180 | method: request.method, |
... | ... | @@ -6869,10 +7242,10 @@ export type PostServiceOrderApplyInvoicingResponseSuccess = |
6869 | 7242 | * @consumes application/json |
6870 | 7243 | */ |
6871 | 7244 | export const postServiceOrderApplyInvoicing = /* #__PURE__ */ (() => { |
6872 | - const method = 'post'; | |
6873 | - const url = '/service/order/applyInvoicing'; | |
7245 | + const method = "post"; | |
7246 | + const url = "/service/order/applyInvoicing"; | |
6874 | 7247 | function request( |
6875 | - option: PostServiceOrderApplyInvoicingOption, | |
7248 | + option: PostServiceOrderApplyInvoicingOption | |
6876 | 7249 | ): Promise<PostServiceOrderApplyInvoicingResponseSuccess> { |
6877 | 7250 | return requester(request.url, { |
6878 | 7251 | method: request.method, |
... | ... | @@ -6940,10 +7313,10 @@ export type PostServiceOrderApplyModifyResponseSuccess = |
6940 | 7313 | * @consumes application/json |
6941 | 7314 | */ |
6942 | 7315 | export const postServiceOrderApplyModify = /* #__PURE__ */ (() => { |
6943 | - const method = 'post'; | |
6944 | - const url = '/service/order/applyModify'; | |
7316 | + const method = "post"; | |
7317 | + const url = "/service/order/applyModify"; | |
6945 | 7318 | function request( |
6946 | - option: PostServiceOrderApplyModifyOption, | |
7319 | + option: PostServiceOrderApplyModifyOption | |
6947 | 7320 | ): Promise<PostServiceOrderApplyModifyResponseSuccess> { |
6948 | 7321 | return requester(request.url, { |
6949 | 7322 | method: request.method, |
... | ... | @@ -7011,10 +7384,10 @@ export type PostServiceOrderAuditResponseSuccess = |
7011 | 7384 | * @consumes application/json |
7012 | 7385 | */ |
7013 | 7386 | export const postServiceOrderAudit = /* #__PURE__ */ (() => { |
7014 | - const method = 'post'; | |
7015 | - const url = '/service/order/audit'; | |
7387 | + const method = "post"; | |
7388 | + const url = "/service/order/audit"; | |
7016 | 7389 | function request( |
7017 | - option: PostServiceOrderAuditOption, | |
7390 | + option: PostServiceOrderAuditOption | |
7018 | 7391 | ): Promise<PostServiceOrderAuditResponseSuccess> { |
7019 | 7392 | return requester(request.url, { |
7020 | 7393 | method: request.method, |
... | ... | @@ -7029,6 +7402,77 @@ export const postServiceOrderAudit = /* #__PURE__ */ (() => { |
7029 | 7402 | return request; |
7030 | 7403 | })(); |
7031 | 7404 | |
7405 | +/** @description request parameter type for postServiceOrderAuditPaymentReceipt */ | |
7406 | +export interface PostServiceOrderAuditPaymentReceiptOption { | |
7407 | + /** | |
7408 | + * @description | |
7409 | + * ids | |
7410 | + */ | |
7411 | + body: { | |
7412 | + /** | |
7413 | + @description | |
7414 | + ids */ | |
7415 | + ids: Array<number>; | |
7416 | + }; | |
7417 | +} | |
7418 | + | |
7419 | +/** @description response type for postServiceOrderAuditPaymentReceipt */ | |
7420 | +export interface PostServiceOrderAuditPaymentReceiptResponse { | |
7421 | + /** | |
7422 | + * @description | |
7423 | + * OK | |
7424 | + */ | |
7425 | + 200: ServerResult; | |
7426 | + /** | |
7427 | + * @description | |
7428 | + * Created | |
7429 | + */ | |
7430 | + 201: any; | |
7431 | + /** | |
7432 | + * @description | |
7433 | + * Unauthorized | |
7434 | + */ | |
7435 | + 401: any; | |
7436 | + /** | |
7437 | + * @description | |
7438 | + * Forbidden | |
7439 | + */ | |
7440 | + 403: any; | |
7441 | + /** | |
7442 | + * @description | |
7443 | + * Not Found | |
7444 | + */ | |
7445 | + 404: any; | |
7446 | +} | |
7447 | + | |
7448 | +export type PostServiceOrderAuditPaymentReceiptResponseSuccess = | |
7449 | + PostServiceOrderAuditPaymentReceiptResponse[200]; | |
7450 | +/** | |
7451 | + * @description | |
7452 | + * 财务审核回款状况 | |
7453 | + * @tags 内部订单 | |
7454 | + * @produces * | |
7455 | + * @consumes application/json | |
7456 | + */ | |
7457 | +export const postServiceOrderAuditPaymentReceipt = /* #__PURE__ */ (() => { | |
7458 | + const method = "post"; | |
7459 | + const url = "/service/order/auditPaymentReceipt"; | |
7460 | + function request( | |
7461 | + option: PostServiceOrderAuditPaymentReceiptOption | |
7462 | + ): Promise<PostServiceOrderAuditPaymentReceiptResponseSuccess> { | |
7463 | + return requester(request.url, { | |
7464 | + method: request.method, | |
7465 | + ...option, | |
7466 | + }) as unknown as Promise<PostServiceOrderAuditPaymentReceiptResponseSuccess>; | |
7467 | + } | |
7468 | + | |
7469 | + /** http method */ | |
7470 | + request.method = method; | |
7471 | + /** request url */ | |
7472 | + request.url = url; | |
7473 | + return request; | |
7474 | +})(); | |
7475 | + | |
7032 | 7476 | /** @description request parameter type for postServiceOrderCancelSend */ |
7033 | 7477 | export interface PostServiceOrderCancelSendOption { |
7034 | 7478 | /** |
... | ... | @@ -7082,10 +7526,10 @@ export type PostServiceOrderCancelSendResponseSuccess = |
7082 | 7526 | * @consumes application/json |
7083 | 7527 | */ |
7084 | 7528 | export const postServiceOrderCancelSend = /* #__PURE__ */ (() => { |
7085 | - const method = 'post'; | |
7086 | - const url = '/service/order/cancelSend'; | |
7529 | + const method = "post"; | |
7530 | + const url = "/service/order/cancelSend"; | |
7087 | 7531 | function request( |
7088 | - option: PostServiceOrderCancelSendOption, | |
7532 | + option: PostServiceOrderCancelSendOption | |
7089 | 7533 | ): Promise<PostServiceOrderCancelSendResponseSuccess> { |
7090 | 7534 | return requester(request.url, { |
7091 | 7535 | method: request.method, |
... | ... | @@ -7167,10 +7611,10 @@ export type PostServiceOrderConfirmReceiptResponseSuccess = |
7167 | 7611 | * @consumes application/json |
7168 | 7612 | */ |
7169 | 7613 | export const postServiceOrderConfirmReceipt = /* #__PURE__ */ (() => { |
7170 | - const method = 'post'; | |
7171 | - const url = '/service/order/confirmReceipt'; | |
7614 | + const method = "post"; | |
7615 | + const url = "/service/order/confirmReceipt"; | |
7172 | 7616 | function request( |
7173 | - option: PostServiceOrderConfirmReceiptOption, | |
7617 | + option: PostServiceOrderConfirmReceiptOption | |
7174 | 7618 | ): Promise<PostServiceOrderConfirmReceiptResponseSuccess> { |
7175 | 7619 | return requester(request.url, { |
7176 | 7620 | method: request.method, |
... | ... | @@ -7238,10 +7682,10 @@ export type PostServiceOrderEditOrderResponseSuccess = |
7238 | 7682 | * @consumes application/json |
7239 | 7683 | */ |
7240 | 7684 | export const postServiceOrderEditOrder = /* #__PURE__ */ (() => { |
7241 | - const method = 'post'; | |
7242 | - const url = '/service/order/editOrder'; | |
7685 | + const method = "post"; | |
7686 | + const url = "/service/order/editOrder"; | |
7243 | 7687 | function request( |
7244 | - option: PostServiceOrderEditOrderOption, | |
7688 | + option: PostServiceOrderEditOrderOption | |
7245 | 7689 | ): Promise<PostServiceOrderEditOrderResponseSuccess> { |
7246 | 7690 | return requester(request.url, { |
7247 | 7691 | method: request.method, |
... | ... | @@ -7309,10 +7753,10 @@ export type PostServiceOrderEditProductionTimeResponseSuccess = |
7309 | 7753 | * @consumes application/json |
7310 | 7754 | */ |
7311 | 7755 | export const postServiceOrderEditProductionTime = /* #__PURE__ */ (() => { |
7312 | - const method = 'post'; | |
7313 | - const url = '/service/order/editProductionTime'; | |
7756 | + const method = "post"; | |
7757 | + const url = "/service/order/editProductionTime"; | |
7314 | 7758 | function request( |
7315 | - option: PostServiceOrderEditProductionTimeOption, | |
7759 | + option: PostServiceOrderEditProductionTimeOption | |
7316 | 7760 | ): Promise<PostServiceOrderEditProductionTimeResponseSuccess> { |
7317 | 7761 | return requester(request.url, { |
7318 | 7762 | method: request.method, |
... | ... | @@ -7380,10 +7824,10 @@ export type PostServiceOrderErrorExcelInformationResponseSuccess = |
7380 | 7824 | * @consumes multipart/form-data |
7381 | 7825 | */ |
7382 | 7826 | export const postServiceOrderErrorExcelInformation = /* #__PURE__ */ (() => { |
7383 | - const method = 'post'; | |
7384 | - const url = '/service/order/errorExcelInformation'; | |
7827 | + const method = "post"; | |
7828 | + const url = "/service/order/errorExcelInformation"; | |
7385 | 7829 | function request( |
7386 | - option: PostServiceOrderErrorExcelInformationOption, | |
7830 | + option: PostServiceOrderErrorExcelInformationOption | |
7387 | 7831 | ): Promise<PostServiceOrderErrorExcelInformationResponseSuccess> { |
7388 | 7832 | return requester(request.url, { |
7389 | 7833 | method: request.method, |
... | ... | @@ -7451,10 +7895,10 @@ export type PostServiceOrderExportResponseSuccess = |
7451 | 7895 | * @consumes application/json |
7452 | 7896 | */ |
7453 | 7897 | export const postServiceOrderExport = /* #__PURE__ */ (() => { |
7454 | - const method = 'post'; | |
7455 | - const url = '/service/order/export'; | |
7898 | + const method = "post"; | |
7899 | + const url = "/service/order/export"; | |
7456 | 7900 | function request( |
7457 | - option: PostServiceOrderExportOption, | |
7901 | + option: PostServiceOrderExportOption | |
7458 | 7902 | ): Promise<PostServiceOrderExportResponseSuccess> { |
7459 | 7903 | return requester(request.url, { |
7460 | 7904 | method: request.method, |
... | ... | @@ -7508,8 +7952,8 @@ export type PostServiceOrderExportTemplateResponseSuccess = |
7508 | 7952 | * @consumes application/json |
7509 | 7953 | */ |
7510 | 7954 | export const postServiceOrderExportTemplate = /* #__PURE__ */ (() => { |
7511 | - const method = 'post'; | |
7512 | - const url = '/service/order/exportTemplate'; | |
7955 | + const method = "post"; | |
7956 | + const url = "/service/order/exportTemplate"; | |
7513 | 7957 | function request(): Promise<PostServiceOrderExportTemplateResponseSuccess> { |
7514 | 7958 | return requester(request.url, { |
7515 | 7959 | method: request.method, |
... | ... | @@ -7576,10 +8020,10 @@ export type PostServiceOrderFileProcessResponseSuccess = |
7576 | 8020 | * @consumes application/json |
7577 | 8021 | */ |
7578 | 8022 | export const postServiceOrderFileProcess = /* #__PURE__ */ (() => { |
7579 | - const method = 'post'; | |
7580 | - const url = '/service/order/fileProcess'; | |
8023 | + const method = "post"; | |
8024 | + const url = "/service/order/fileProcess"; | |
7581 | 8025 | function request( |
7582 | - option: PostServiceOrderFileProcessOption, | |
8026 | + option: PostServiceOrderFileProcessOption | |
7583 | 8027 | ): Promise<PostServiceOrderFileProcessResponseSuccess> { |
7584 | 8028 | return requester(request.url, { |
7585 | 8029 | method: request.method, |
... | ... | @@ -7647,10 +8091,10 @@ export type PostServiceOrderFinanceCheckOrderResponseSuccess = |
7647 | 8091 | * @consumes application/json |
7648 | 8092 | */ |
7649 | 8093 | export const postServiceOrderFinanceCheckOrder = /* #__PURE__ */ (() => { |
7650 | - const method = 'post'; | |
7651 | - const url = '/service/order/financeCheckOrder'; | |
8094 | + const method = "post"; | |
8095 | + const url = "/service/order/financeCheckOrder"; | |
7652 | 8096 | function request( |
7653 | - option: PostServiceOrderFinanceCheckOrderOption, | |
8097 | + option: PostServiceOrderFinanceCheckOrderOption | |
7654 | 8098 | ): Promise<PostServiceOrderFinanceCheckOrderResponseSuccess> { |
7655 | 8099 | return requester(request.url, { |
7656 | 8100 | method: request.method, |
... | ... | @@ -7718,10 +8162,10 @@ export type PostServiceOrderImportExcelResponseSuccess = |
7718 | 8162 | * @consumes multipart/form-data |
7719 | 8163 | */ |
7720 | 8164 | export const postServiceOrderImportExcel = /* #__PURE__ */ (() => { |
7721 | - const method = 'post'; | |
7722 | - const url = '/service/order/importExcel'; | |
8165 | + const method = "post"; | |
8166 | + const url = "/service/order/importExcel"; | |
7723 | 8167 | function request( |
7724 | - option: PostServiceOrderImportExcelOption, | |
8168 | + option: PostServiceOrderImportExcelOption | |
7725 | 8169 | ): Promise<PostServiceOrderImportExcelResponseSuccess> { |
7726 | 8170 | return requester(request.url, { |
7727 | 8171 | method: request.method, |
... | ... | @@ -7789,10 +8233,10 @@ export type PostServiceOrderInvoicingResponseSuccess = |
7789 | 8233 | * @consumes application/json |
7790 | 8234 | */ |
7791 | 8235 | export const postServiceOrderInvoicing = /* #__PURE__ */ (() => { |
7792 | - const method = 'post'; | |
7793 | - const url = '/service/order/invoicing'; | |
8236 | + const method = "post"; | |
8237 | + const url = "/service/order/invoicing"; | |
7794 | 8238 | function request( |
7795 | - option: PostServiceOrderInvoicingOption, | |
8239 | + option: PostServiceOrderInvoicingOption | |
7796 | 8240 | ): Promise<PostServiceOrderInvoicingResponseSuccess> { |
7797 | 8241 | return requester(request.url, { |
7798 | 8242 | method: request.method, |
... | ... | @@ -7860,10 +8304,10 @@ export type PostServiceOrderLeaderAuditResponseSuccess = |
7860 | 8304 | * @consumes application/json |
7861 | 8305 | */ |
7862 | 8306 | export const postServiceOrderLeaderAudit = /* #__PURE__ */ (() => { |
7863 | - const method = 'post'; | |
7864 | - const url = '/service/order/leaderAudit'; | |
8307 | + const method = "post"; | |
8308 | + const url = "/service/order/leaderAudit"; | |
7865 | 8309 | function request( |
7866 | - option: PostServiceOrderLeaderAuditOption, | |
8310 | + option: PostServiceOrderLeaderAuditOption | |
7867 | 8311 | ): Promise<PostServiceOrderLeaderAuditResponseSuccess> { |
7868 | 8312 | return requester(request.url, { |
7869 | 8313 | method: request.method, |
... | ... | @@ -7931,10 +8375,10 @@ export type PostServiceOrderMergeApplyInvoicingResponseSuccess = |
7931 | 8375 | * @consumes application/json |
7932 | 8376 | */ |
7933 | 8377 | export const postServiceOrderMergeApplyInvoicing = /* #__PURE__ */ (() => { |
7934 | - const method = 'post'; | |
7935 | - const url = '/service/order/mergeApplyInvoicing'; | |
8378 | + const method = "post"; | |
8379 | + const url = "/service/order/mergeApplyInvoicing"; | |
7936 | 8380 | function request( |
7937 | - option: PostServiceOrderMergeApplyInvoicingOption, | |
8381 | + option: PostServiceOrderMergeApplyInvoicingOption | |
7938 | 8382 | ): Promise<PostServiceOrderMergeApplyInvoicingResponseSuccess> { |
7939 | 8383 | return requester(request.url, { |
7940 | 8384 | method: request.method, |
... | ... | @@ -8002,10 +8446,10 @@ export type PostServiceOrderMergeInvoicingResponseSuccess = |
8002 | 8446 | * @consumes application/json |
8003 | 8447 | */ |
8004 | 8448 | export const postServiceOrderMergeInvoicing = /* #__PURE__ */ (() => { |
8005 | - const method = 'post'; | |
8006 | - const url = '/service/order/mergeInvoicing'; | |
8449 | + const method = "post"; | |
8450 | + const url = "/service/order/mergeInvoicing"; | |
8007 | 8451 | function request( |
8008 | - option: PostServiceOrderMergeInvoicingOption, | |
8452 | + option: PostServiceOrderMergeInvoicingOption | |
8009 | 8453 | ): Promise<PostServiceOrderMergeInvoicingResponseSuccess> { |
8010 | 8454 | return requester(request.url, { |
8011 | 8455 | method: request.method, |
... | ... | @@ -8073,10 +8517,10 @@ export type PostServiceOrderModifiedDiffResponseSuccess = |
8073 | 8517 | * @consumes application/json |
8074 | 8518 | */ |
8075 | 8519 | export const postServiceOrderModifiedDiff = /* #__PURE__ */ (() => { |
8076 | - const method = 'post'; | |
8077 | - const url = '/service/order/modifiedDiff'; | |
8520 | + const method = "post"; | |
8521 | + const url = "/service/order/modifiedDiff"; | |
8078 | 8522 | function request( |
8079 | - option: PostServiceOrderModifiedDiffOption, | |
8523 | + option: PostServiceOrderModifiedDiffOption | |
8080 | 8524 | ): Promise<PostServiceOrderModifiedDiffResponseSuccess> { |
8081 | 8525 | return requester(request.url, { |
8082 | 8526 | method: request.method, |
... | ... | @@ -8144,10 +8588,10 @@ export type PostServiceOrderNoNeedInvoicingEditResponseSuccess = |
8144 | 8588 | * @consumes application/json |
8145 | 8589 | */ |
8146 | 8590 | export const postServiceOrderNoNeedInvoicingEdit = /* #__PURE__ */ (() => { |
8147 | - const method = 'post'; | |
8148 | - const url = '/service/order/noNeedInvoicingEdit'; | |
8591 | + const method = "post"; | |
8592 | + const url = "/service/order/noNeedInvoicingEdit"; | |
8149 | 8593 | function request( |
8150 | - option: PostServiceOrderNoNeedInvoicingEditOption, | |
8594 | + option: PostServiceOrderNoNeedInvoicingEditOption | |
8151 | 8595 | ): Promise<PostServiceOrderNoNeedInvoicingEditResponseSuccess> { |
8152 | 8596 | return requester(request.url, { |
8153 | 8597 | method: request.method, |
... | ... | @@ -8215,10 +8659,10 @@ export type PostServiceOrderNoNeedSendResponseSuccess = |
8215 | 8659 | * @consumes application/json |
8216 | 8660 | */ |
8217 | 8661 | export const postServiceOrderNoNeedSend = /* #__PURE__ */ (() => { |
8218 | - const method = 'post'; | |
8219 | - const url = '/service/order/noNeedSend'; | |
8662 | + const method = "post"; | |
8663 | + const url = "/service/order/noNeedSend"; | |
8220 | 8664 | function request( |
8221 | - option: PostServiceOrderNoNeedSendOption, | |
8665 | + option: PostServiceOrderNoNeedSendOption | |
8222 | 8666 | ): Promise<PostServiceOrderNoNeedSendResponseSuccess> { |
8223 | 8667 | return requester(request.url, { |
8224 | 8668 | method: request.method, |
... | ... | @@ -8286,10 +8730,10 @@ export type PostServiceOrderNotesEditResponseSuccess = |
8286 | 8730 | * @consumes application/json |
8287 | 8731 | */ |
8288 | 8732 | export const postServiceOrderNotesEdit = /* #__PURE__ */ (() => { |
8289 | - const method = 'post'; | |
8290 | - const url = '/service/order/notesEdit'; | |
8733 | + const method = "post"; | |
8734 | + const url = "/service/order/notesEdit"; | |
8291 | 8735 | function request( |
8292 | - option: PostServiceOrderNotesEditOption, | |
8736 | + option: PostServiceOrderNotesEditOption | |
8293 | 8737 | ): Promise<PostServiceOrderNotesEditResponseSuccess> { |
8294 | 8738 | return requester(request.url, { |
8295 | 8739 | method: request.method, |
... | ... | @@ -8357,10 +8801,10 @@ export type PostServiceOrderOrderCancelResponseSuccess = |
8357 | 8801 | * @consumes application/json |
8358 | 8802 | */ |
8359 | 8803 | export const postServiceOrderOrderCancel = /* #__PURE__ */ (() => { |
8360 | - const method = 'post'; | |
8361 | - const url = '/service/order/orderCancel'; | |
8804 | + const method = "post"; | |
8805 | + const url = "/service/order/orderCancel"; | |
8362 | 8806 | function request( |
8363 | - option: PostServiceOrderOrderCancelOption, | |
8807 | + option: PostServiceOrderOrderCancelOption | |
8364 | 8808 | ): Promise<PostServiceOrderOrderCancelResponseSuccess> { |
8365 | 8809 | return requester(request.url, { |
8366 | 8810 | method: request.method, |
... | ... | @@ -8428,10 +8872,10 @@ export type PostServiceOrderPrintOrderResponseSuccess = |
8428 | 8872 | * @consumes application/json |
8429 | 8873 | */ |
8430 | 8874 | export const postServiceOrderPrintOrder = /* #__PURE__ */ (() => { |
8431 | - const method = 'post'; | |
8432 | - const url = '/service/order/printOrder'; | |
8875 | + const method = "post"; | |
8876 | + const url = "/service/order/printOrder"; | |
8433 | 8877 | function request( |
8434 | - option: PostServiceOrderPrintOrderOption, | |
8878 | + option: PostServiceOrderPrintOrderOption | |
8435 | 8879 | ): Promise<PostServiceOrderPrintOrderResponseSuccess> { |
8436 | 8880 | return requester(request.url, { |
8437 | 8881 | method: request.method, |
... | ... | @@ -8499,10 +8943,10 @@ export type PostServiceOrderProcureCheckOrderResponseSuccess = |
8499 | 8943 | * @consumes application/json |
8500 | 8944 | */ |
8501 | 8945 | export const postServiceOrderProcureCheckOrder = /* #__PURE__ */ (() => { |
8502 | - const method = 'post'; | |
8503 | - const url = '/service/order/procureCheckOrder'; | |
8946 | + const method = "post"; | |
8947 | + const url = "/service/order/procureCheckOrder"; | |
8504 | 8948 | function request( |
8505 | - option: PostServiceOrderProcureCheckOrderOption, | |
8949 | + option: PostServiceOrderProcureCheckOrderOption | |
8506 | 8950 | ): Promise<PostServiceOrderProcureCheckOrderResponseSuccess> { |
8507 | 8951 | return requester(request.url, { |
8508 | 8952 | method: request.method, |
... | ... | @@ -8570,10 +9014,10 @@ export type PostServiceOrderProcureConvertProcureResponseSuccess = |
8570 | 9014 | * @consumes application/json |
8571 | 9015 | */ |
8572 | 9016 | export const postServiceOrderProcureConvertProcure = /* #__PURE__ */ (() => { |
8573 | - const method = 'post'; | |
8574 | - const url = '/service/order/procureConvertProcure'; | |
9017 | + const method = "post"; | |
9018 | + const url = "/service/order/procureConvertProcure"; | |
8575 | 9019 | function request( |
8576 | - option: PostServiceOrderProcureConvertProcureOption, | |
9020 | + option: PostServiceOrderProcureConvertProcureOption | |
8577 | 9021 | ): Promise<PostServiceOrderProcureConvertProcureResponseSuccess> { |
8578 | 9022 | return requester(request.url, { |
8579 | 9023 | method: request.method, |
... | ... | @@ -8642,10 +9086,10 @@ export type PostServiceOrderProcureConvertWarehouseKeeperResponseSuccess = |
8642 | 9086 | */ |
8643 | 9087 | export const postServiceOrderProcureConvertWarehouseKeeper = |
8644 | 9088 | /* #__PURE__ */ (() => { |
8645 | - const method = 'post'; | |
8646 | - const url = '/service/order/procureConvertWarehouseKeeper'; | |
9089 | + const method = "post"; | |
9090 | + const url = "/service/order/procureConvertWarehouseKeeper"; | |
8647 | 9091 | function request( |
8648 | - option: PostServiceOrderProcureConvertWarehouseKeeperOption, | |
9092 | + option: PostServiceOrderProcureConvertWarehouseKeeperOption | |
8649 | 9093 | ): Promise<PostServiceOrderProcureConvertWarehouseKeeperResponseSuccess> { |
8650 | 9094 | return requester(request.url, { |
8651 | 9095 | method: request.method, |
... | ... | @@ -8713,10 +9157,10 @@ export type PostServiceOrderProcureOrderResponseSuccess = |
8713 | 9157 | * @consumes application/json |
8714 | 9158 | */ |
8715 | 9159 | export const postServiceOrderProcureOrder = /* #__PURE__ */ (() => { |
8716 | - const method = 'post'; | |
8717 | - const url = '/service/order/procureOrder'; | |
9160 | + const method = "post"; | |
9161 | + const url = "/service/order/procureOrder"; | |
8718 | 9162 | function request( |
8719 | - option: PostServiceOrderProcureOrderOption, | |
9163 | + option: PostServiceOrderProcureOrderOption | |
8720 | 9164 | ): Promise<PostServiceOrderProcureOrderResponseSuccess> { |
8721 | 9165 | return requester(request.url, { |
8722 | 9166 | method: request.method, |
... | ... | @@ -8784,10 +9228,10 @@ export type PostServiceOrderProcurePrintResponseSuccess = |
8784 | 9228 | * @consumes application/json |
8785 | 9229 | */ |
8786 | 9230 | export const postServiceOrderProcurePrint = /* #__PURE__ */ (() => { |
8787 | - const method = 'post'; | |
8788 | - const url = '/service/order/procurePrint'; | |
9231 | + const method = "post"; | |
9232 | + const url = "/service/order/procurePrint"; | |
8789 | 9233 | function request( |
8790 | - option: PostServiceOrderProcurePrintOption, | |
9234 | + option: PostServiceOrderProcurePrintOption | |
8791 | 9235 | ): Promise<PostServiceOrderProcurePrintResponseSuccess> { |
8792 | 9236 | return requester(request.url, { |
8793 | 9237 | method: request.method, |
... | ... | @@ -8855,10 +9299,10 @@ export type PostServiceOrderProcureSendResponseSuccess = |
8855 | 9299 | * @consumes application/json |
8856 | 9300 | */ |
8857 | 9301 | export const postServiceOrderProcureSend = /* #__PURE__ */ (() => { |
8858 | - const method = 'post'; | |
8859 | - const url = '/service/order/procureSend'; | |
9302 | + const method = "post"; | |
9303 | + const url = "/service/order/procureSend"; | |
8860 | 9304 | function request( |
8861 | - option: PostServiceOrderProcureSendOption, | |
9305 | + option: PostServiceOrderProcureSendOption | |
8862 | 9306 | ): Promise<PostServiceOrderProcureSendResponseSuccess> { |
8863 | 9307 | return requester(request.url, { |
8864 | 9308 | method: request.method, |
... | ... | @@ -8906,8 +9350,8 @@ export type GetServiceOrderProvideInvoicingStatusResponseSuccess = |
8906 | 9350 | * @produces * |
8907 | 9351 | */ |
8908 | 9352 | export const getServiceOrderProvideInvoicingStatus = /* #__PURE__ */ (() => { |
8909 | - const method = 'get'; | |
8910 | - const url = '/service/order/provideInvoicingStatus'; | |
9353 | + const method = "get"; | |
9354 | + const url = "/service/order/provideInvoicingStatus"; | |
8911 | 9355 | function request(): Promise<GetServiceOrderProvideInvoicingStatusResponseSuccess> { |
8912 | 9356 | return requester(request.url, { |
8913 | 9357 | method: request.method, |
... | ... | @@ -8954,8 +9398,8 @@ export type GetServiceOrderProvideLogisticsStatusResponseSuccess = |
8954 | 9398 | * @produces * |
8955 | 9399 | */ |
8956 | 9400 | export const getServiceOrderProvideLogisticsStatus = /* #__PURE__ */ (() => { |
8957 | - const method = 'get'; | |
8958 | - const url = '/service/order/provideLogisticsStatus'; | |
9401 | + const method = "get"; | |
9402 | + const url = "/service/order/provideLogisticsStatus"; | |
8959 | 9403 | function request(): Promise<GetServiceOrderProvideLogisticsStatusResponseSuccess> { |
8960 | 9404 | return requester(request.url, { |
8961 | 9405 | method: request.method, |
... | ... | @@ -9002,8 +9446,8 @@ export type GetServiceOrderProvideOrderStatusResponseSuccess = |
9002 | 9446 | * @produces * |
9003 | 9447 | */ |
9004 | 9448 | export const getServiceOrderProvideOrderStatus = /* #__PURE__ */ (() => { |
9005 | - const method = 'get'; | |
9006 | - const url = '/service/order/provideOrderStatus'; | |
9449 | + const method = "get"; | |
9450 | + const url = "/service/order/provideOrderStatus"; | |
9007 | 9451 | function request(): Promise<GetServiceOrderProvideOrderStatusResponseSuccess> { |
9008 | 9452 | return requester(request.url, { |
9009 | 9453 | method: request.method, |
... | ... | @@ -9050,8 +9494,8 @@ export type GetServiceOrderProvidePaymentChannelResponseSuccess = |
9050 | 9494 | * @produces * |
9051 | 9495 | */ |
9052 | 9496 | export const getServiceOrderProvidePaymentChannel = /* #__PURE__ */ (() => { |
9053 | - const method = 'get'; | |
9054 | - const url = '/service/order/providePaymentChannel'; | |
9497 | + const method = "get"; | |
9498 | + const url = "/service/order/providePaymentChannel"; | |
9055 | 9499 | function request(): Promise<GetServiceOrderProvidePaymentChannelResponseSuccess> { |
9056 | 9500 | return requester(request.url, { |
9057 | 9501 | method: request.method, |
... | ... | @@ -9098,8 +9542,8 @@ export type GetServiceOrderProvidePaymentMethodResponseSuccess = |
9098 | 9542 | * @produces * |
9099 | 9543 | */ |
9100 | 9544 | export const getServiceOrderProvidePaymentMethod = /* #__PURE__ */ (() => { |
9101 | - const method = 'get'; | |
9102 | - const url = '/service/order/providePaymentMethod'; | |
9545 | + const method = "get"; | |
9546 | + const url = "/service/order/providePaymentMethod"; | |
9103 | 9547 | function request(): Promise<GetServiceOrderProvidePaymentMethodResponseSuccess> { |
9104 | 9548 | return requester(request.url, { |
9105 | 9549 | method: request.method, |
... | ... | @@ -9152,8 +9596,8 @@ export type PostServiceOrderProvideProcurementRolesResponseSuccess = |
9152 | 9596 | * @consumes application/json |
9153 | 9597 | */ |
9154 | 9598 | export const postServiceOrderProvideProcurementRoles = /* #__PURE__ */ (() => { |
9155 | - const method = 'post'; | |
9156 | - const url = '/service/order/provideProcurementRoles'; | |
9599 | + const method = "post"; | |
9600 | + const url = "/service/order/provideProcurementRoles"; | |
9157 | 9601 | function request(): Promise<PostServiceOrderProvideProcurementRolesResponseSuccess> { |
9158 | 9602 | return requester(request.url, { |
9159 | 9603 | method: request.method, |
... | ... | @@ -9201,8 +9645,8 @@ export type GetServiceOrderProvideProductBelongDepartmentResponseSuccess = |
9201 | 9645 | */ |
9202 | 9646 | export const getServiceOrderProvideProductBelongDepartment = |
9203 | 9647 | /* #__PURE__ */ (() => { |
9204 | - const method = 'get'; | |
9205 | - const url = '/service/order/provideProductBelongDepartment'; | |
9648 | + const method = "get"; | |
9649 | + const url = "/service/order/provideProductBelongDepartment"; | |
9206 | 9650 | function request(): Promise<GetServiceOrderProvideProductBelongDepartmentResponseSuccess> { |
9207 | 9651 | return requester(request.url, { |
9208 | 9652 | method: request.method, |
... | ... | @@ -9249,8 +9693,8 @@ export type GetServiceOrderProvideProductUnitResponseSuccess = |
9249 | 9693 | * @produces * |
9250 | 9694 | */ |
9251 | 9695 | export const getServiceOrderProvideProductUnit = /* #__PURE__ */ (() => { |
9252 | - const method = 'get'; | |
9253 | - const url = '/service/order/provideProductUnit'; | |
9696 | + const method = "get"; | |
9697 | + const url = "/service/order/provideProductUnit"; | |
9254 | 9698 | function request(): Promise<GetServiceOrderProvideProductUnitResponseSuccess> { |
9255 | 9699 | return requester(request.url, { |
9256 | 9700 | method: request.method, |
... | ... | @@ -9297,8 +9741,8 @@ export type GetServiceOrderProvideTokenResponseSuccess = |
9297 | 9741 | * @produces * |
9298 | 9742 | */ |
9299 | 9743 | export const getServiceOrderProvideToken = /* #__PURE__ */ (() => { |
9300 | - const method = 'get'; | |
9301 | - const url = '/service/order/provideToken'; | |
9744 | + const method = "get"; | |
9745 | + const url = "/service/order/provideToken"; | |
9302 | 9746 | function request(): Promise<GetServiceOrderProvideTokenResponseSuccess> { |
9303 | 9747 | return requester(request.url, { |
9304 | 9748 | method: request.method, |
... | ... | @@ -9366,10 +9810,10 @@ export type PostServiceOrderQueryAfterSalesInfoSnapshotResponseSuccess = |
9366 | 9810 | */ |
9367 | 9811 | export const postServiceOrderQueryAfterSalesInfoSnapshot = |
9368 | 9812 | /* #__PURE__ */ (() => { |
9369 | - const method = 'post'; | |
9370 | - const url = '/service/order/queryAfterSalesInfoSnapshot'; | |
9813 | + const method = "post"; | |
9814 | + const url = "/service/order/queryAfterSalesInfoSnapshot"; | |
9371 | 9815 | function request( |
9372 | - option: PostServiceOrderQueryAfterSalesInfoSnapshotOption, | |
9816 | + option: PostServiceOrderQueryAfterSalesInfoSnapshotOption | |
9373 | 9817 | ): Promise<PostServiceOrderQueryAfterSalesInfoSnapshotResponseSuccess> { |
9374 | 9818 | return requester(request.url, { |
9375 | 9819 | method: request.method, |
... | ... | @@ -9423,8 +9867,8 @@ export type PostServiceOrderQueryAnnualTargetResponseSuccess = |
9423 | 9867 | * @consumes application/json |
9424 | 9868 | */ |
9425 | 9869 | export const postServiceOrderQueryAnnualTarget = /* #__PURE__ */ (() => { |
9426 | - const method = 'post'; | |
9427 | - const url = '/service/order/queryAnnualTarget'; | |
9870 | + const method = "post"; | |
9871 | + const url = "/service/order/queryAnnualTarget"; | |
9428 | 9872 | function request(): Promise<PostServiceOrderQueryAnnualTargetResponseSuccess> { |
9429 | 9873 | return requester(request.url, { |
9430 | 9874 | method: request.method, |
... | ... | @@ -9491,10 +9935,10 @@ export type PostServiceOrderQueryCustomerInformationResponseSuccess = |
9491 | 9935 | * @consumes application/json |
9492 | 9936 | */ |
9493 | 9937 | export const postServiceOrderQueryCustomerInformation = /* #__PURE__ */ (() => { |
9494 | - const method = 'post'; | |
9495 | - const url = '/service/order/queryCustomerInformation'; | |
9938 | + const method = "post"; | |
9939 | + const url = "/service/order/queryCustomerInformation"; | |
9496 | 9940 | function request( |
9497 | - option: PostServiceOrderQueryCustomerInformationOption, | |
9941 | + option: PostServiceOrderQueryCustomerInformationOption | |
9498 | 9942 | ): Promise<PostServiceOrderQueryCustomerInformationResponseSuccess> { |
9499 | 9943 | return requester(request.url, { |
9500 | 9944 | method: request.method, |
... | ... | @@ -9563,10 +10007,10 @@ export type PostServiceOrderQueryCustomerNameInformationResponseSuccess = |
9563 | 10007 | */ |
9564 | 10008 | export const postServiceOrderQueryCustomerNameInformation = |
9565 | 10009 | /* #__PURE__ */ (() => { |
9566 | - const method = 'post'; | |
9567 | - const url = '/service/order/queryCustomerNameInformation'; | |
10010 | + const method = "post"; | |
10011 | + const url = "/service/order/queryCustomerNameInformation"; | |
9568 | 10012 | function request( |
9569 | - option: PostServiceOrderQueryCustomerNameInformationOption, | |
10013 | + option: PostServiceOrderQueryCustomerNameInformationOption | |
9570 | 10014 | ): Promise<PostServiceOrderQueryCustomerNameInformationResponseSuccess> { |
9571 | 10015 | return requester(request.url, { |
9572 | 10016 | method: request.method, |
... | ... | @@ -9634,10 +10078,10 @@ export type PostServiceOrderQueryHistoryOrderRecordResponseSuccess = |
9634 | 10078 | * @consumes application/json |
9635 | 10079 | */ |
9636 | 10080 | export const postServiceOrderQueryHistoryOrderRecord = /* #__PURE__ */ (() => { |
9637 | - const method = 'post'; | |
9638 | - const url = '/service/order/queryHistoryOrderRecord'; | |
10081 | + const method = "post"; | |
10082 | + const url = "/service/order/queryHistoryOrderRecord"; | |
9639 | 10083 | function request( |
9640 | - option: PostServiceOrderQueryHistoryOrderRecordOption, | |
10084 | + option: PostServiceOrderQueryHistoryOrderRecordOption | |
9641 | 10085 | ): Promise<PostServiceOrderQueryHistoryOrderRecordResponseSuccess> { |
9642 | 10086 | return requester(request.url, { |
9643 | 10087 | method: request.method, |
... | ... | @@ -9705,10 +10149,10 @@ export type PostServiceOrderQueryProductInformationResponseSuccess = |
9705 | 10149 | * @consumes application/json |
9706 | 10150 | */ |
9707 | 10151 | export const postServiceOrderQueryProductInformation = /* #__PURE__ */ (() => { |
9708 | - const method = 'post'; | |
9709 | - const url = '/service/order/queryProductInformation'; | |
10152 | + const method = "post"; | |
10153 | + const url = "/service/order/queryProductInformation"; | |
9710 | 10154 | function request( |
9711 | - option: PostServiceOrderQueryProductInformationOption, | |
10155 | + option: PostServiceOrderQueryProductInformationOption | |
9712 | 10156 | ): Promise<PostServiceOrderQueryProductInformationResponseSuccess> { |
9713 | 10157 | return requester(request.url, { |
9714 | 10158 | method: request.method, |
... | ... | @@ -9777,10 +10221,10 @@ export type PostServiceOrderQueryReportFormsInformationResponseSuccess = |
9777 | 10221 | */ |
9778 | 10222 | export const postServiceOrderQueryReportFormsInformation = |
9779 | 10223 | /* #__PURE__ */ (() => { |
9780 | - const method = 'post'; | |
9781 | - const url = '/service/order/queryReportFormsInformation'; | |
10224 | + const method = "post"; | |
10225 | + const url = "/service/order/queryReportFormsInformation"; | |
9782 | 10226 | function request( |
9783 | - option: PostServiceOrderQueryReportFormsInformationOption, | |
10227 | + option: PostServiceOrderQueryReportFormsInformationOption | |
9784 | 10228 | ): Promise<PostServiceOrderQueryReportFormsInformationResponseSuccess> { |
9785 | 10229 | return requester(request.url, { |
9786 | 10230 | method: request.method, |
... | ... | @@ -9834,8 +10278,8 @@ export type PostServiceOrderQuerySalesCodeResponseSuccess = |
9834 | 10278 | * @consumes application/json |
9835 | 10279 | */ |
9836 | 10280 | export const postServiceOrderQuerySalesCode = /* #__PURE__ */ (() => { |
9837 | - const method = 'post'; | |
9838 | - const url = '/service/order/querySalesCode'; | |
10281 | + const method = "post"; | |
10282 | + const url = "/service/order/querySalesCode"; | |
9839 | 10283 | function request(): Promise<PostServiceOrderQuerySalesCodeResponseSuccess> { |
9840 | 10284 | return requester(request.url, { |
9841 | 10285 | method: request.method, |
... | ... | @@ -9902,10 +10346,10 @@ export type PostServiceOrderQueryServiceOrderResponseSuccess = |
9902 | 10346 | * @consumes application/json |
9903 | 10347 | */ |
9904 | 10348 | export const postServiceOrderQueryServiceOrder = /* #__PURE__ */ (() => { |
9905 | - const method = 'post'; | |
9906 | - const url = '/service/order/queryServiceOrder'; | |
10349 | + const method = "post"; | |
10350 | + const url = "/service/order/queryServiceOrder"; | |
9907 | 10351 | function request( |
9908 | - option: PostServiceOrderQueryServiceOrderOption, | |
10352 | + option: PostServiceOrderQueryServiceOrderOption | |
9909 | 10353 | ): Promise<PostServiceOrderQueryServiceOrderResponseSuccess> { |
9910 | 10354 | return requester(request.url, { |
9911 | 10355 | method: request.method, |
... | ... | @@ -9959,8 +10403,8 @@ export type PostServiceOrderQuerySupplierResponseSuccess = |
9959 | 10403 | * @consumes application/json |
9960 | 10404 | */ |
9961 | 10405 | export const postServiceOrderQuerySupplier = /* #__PURE__ */ (() => { |
9962 | - const method = 'post'; | |
9963 | - const url = '/service/order/querySupplier'; | |
10406 | + const method = "post"; | |
10407 | + const url = "/service/order/querySupplier"; | |
9964 | 10408 | function request(): Promise<PostServiceOrderQuerySupplierResponseSuccess> { |
9965 | 10409 | return requester(request.url, { |
9966 | 10410 | method: request.method, |
... | ... | @@ -9974,6 +10418,77 @@ export const postServiceOrderQuerySupplier = /* #__PURE__ */ (() => { |
9974 | 10418 | return request; |
9975 | 10419 | })(); |
9976 | 10420 | |
10421 | +/** @description request parameter type for postServiceOrderRemindShipping */ | |
10422 | +export interface PostServiceOrderRemindShippingOption { | |
10423 | + /** | |
10424 | + * @description | |
10425 | + * dto | |
10426 | + */ | |
10427 | + body: { | |
10428 | + /** | |
10429 | + @description | |
10430 | + dto */ | |
10431 | + dto: Dto; | |
10432 | + }; | |
10433 | +} | |
10434 | + | |
10435 | +/** @description response type for postServiceOrderRemindShipping */ | |
10436 | +export interface PostServiceOrderRemindShippingResponse { | |
10437 | + /** | |
10438 | + * @description | |
10439 | + * OK | |
10440 | + */ | |
10441 | + 200: ServerResult; | |
10442 | + /** | |
10443 | + * @description | |
10444 | + * Created | |
10445 | + */ | |
10446 | + 201: any; | |
10447 | + /** | |
10448 | + * @description | |
10449 | + * Unauthorized | |
10450 | + */ | |
10451 | + 401: any; | |
10452 | + /** | |
10453 | + * @description | |
10454 | + * Forbidden | |
10455 | + */ | |
10456 | + 403: any; | |
10457 | + /** | |
10458 | + * @description | |
10459 | + * Not Found | |
10460 | + */ | |
10461 | + 404: any; | |
10462 | +} | |
10463 | + | |
10464 | +export type PostServiceOrderRemindShippingResponseSuccess = | |
10465 | + PostServiceOrderRemindShippingResponse[200]; | |
10466 | +/** | |
10467 | + * @description | |
10468 | + * 提醒发货 | |
10469 | + * @tags 内部订单 | |
10470 | + * @produces * | |
10471 | + * @consumes application/json | |
10472 | + */ | |
10473 | +export const postServiceOrderRemindShipping = /* #__PURE__ */ (() => { | |
10474 | + const method = "post"; | |
10475 | + const url = "/service/order/remindShipping"; | |
10476 | + function request( | |
10477 | + option: PostServiceOrderRemindShippingOption | |
10478 | + ): Promise<PostServiceOrderRemindShippingResponseSuccess> { | |
10479 | + return requester(request.url, { | |
10480 | + method: request.method, | |
10481 | + ...option, | |
10482 | + }) as unknown as Promise<PostServiceOrderRemindShippingResponseSuccess>; | |
10483 | + } | |
10484 | + | |
10485 | + /** http method */ | |
10486 | + request.method = method; | |
10487 | + /** request url */ | |
10488 | + request.url = url; | |
10489 | + return request; | |
10490 | +})(); | |
10491 | + | |
9977 | 10492 | /** @description request parameter type for postServiceOrderSaleCancelInvoicing */ |
9978 | 10493 | export interface PostServiceOrderSaleCancelInvoicingOption { |
9979 | 10494 | /** |
... | ... | @@ -10027,10 +10542,10 @@ export type PostServiceOrderSaleCancelInvoicingResponseSuccess = |
10027 | 10542 | * @consumes application/json |
10028 | 10543 | */ |
10029 | 10544 | export const postServiceOrderSaleCancelInvoicing = /* #__PURE__ */ (() => { |
10030 | - const method = 'post'; | |
10031 | - const url = '/service/order/saleCancelInvoicing'; | |
10545 | + const method = "post"; | |
10546 | + const url = "/service/order/saleCancelInvoicing"; | |
10032 | 10547 | function request( |
10033 | - option: PostServiceOrderSaleCancelInvoicingOption, | |
10548 | + option: PostServiceOrderSaleCancelInvoicingOption | |
10034 | 10549 | ): Promise<PostServiceOrderSaleCancelInvoicingResponseSuccess> { |
10035 | 10550 | return requester(request.url, { |
10036 | 10551 | method: request.method, |
... | ... | @@ -10098,10 +10613,10 @@ export type PostServiceOrderSendProductResponseSuccess = |
10098 | 10613 | * @consumes application/json |
10099 | 10614 | */ |
10100 | 10615 | export const postServiceOrderSendProduct = /* #__PURE__ */ (() => { |
10101 | - const method = 'post'; | |
10102 | - const url = '/service/order/sendProduct'; | |
10616 | + const method = "post"; | |
10617 | + const url = "/service/order/sendProduct"; | |
10103 | 10618 | function request( |
10104 | - option: PostServiceOrderSendProductOption, | |
10619 | + option: PostServiceOrderSendProductOption | |
10105 | 10620 | ): Promise<PostServiceOrderSendProductResponseSuccess> { |
10106 | 10621 | return requester(request.url, { |
10107 | 10622 | method: request.method, |
... | ... | @@ -10169,10 +10684,10 @@ export type PostServiceOrderShippingWarehouseChangeResponseSuccess = |
10169 | 10684 | * @consumes application/json |
10170 | 10685 | */ |
10171 | 10686 | export const postServiceOrderShippingWarehouseChange = /* #__PURE__ */ (() => { |
10172 | - const method = 'post'; | |
10173 | - const url = '/service/order/shippingWarehouseChange'; | |
10687 | + const method = "post"; | |
10688 | + const url = "/service/order/shippingWarehouseChange"; | |
10174 | 10689 | function request( |
10175 | - option: PostServiceOrderShippingWarehouseChangeOption, | |
10690 | + option: PostServiceOrderShippingWarehouseChangeOption | |
10176 | 10691 | ): Promise<PostServiceOrderShippingWarehouseChangeResponseSuccess> { |
10177 | 10692 | return requester(request.url, { |
10178 | 10693 | method: request.method, |
... | ... | @@ -10240,10 +10755,10 @@ export type PostServiceOrderSupplierPrintResponseSuccess = |
10240 | 10755 | * @consumes application/json |
10241 | 10756 | */ |
10242 | 10757 | export const postServiceOrderSupplierPrint = /* #__PURE__ */ (() => { |
10243 | - const method = 'post'; | |
10244 | - const url = '/service/order/supplierPrint'; | |
10758 | + const method = "post"; | |
10759 | + const url = "/service/order/supplierPrint"; | |
10245 | 10760 | function request( |
10246 | - option: PostServiceOrderSupplierPrintOption, | |
10761 | + option: PostServiceOrderSupplierPrintOption | |
10247 | 10762 | ): Promise<PostServiceOrderSupplierPrintResponseSuccess> { |
10248 | 10763 | return requester(request.url, { |
10249 | 10764 | method: request.method, |
... | ... | @@ -10311,10 +10826,10 @@ export type PostServiceOrderSupplierSendOrderResponseSuccess = |
10311 | 10826 | * @consumes application/json |
10312 | 10827 | */ |
10313 | 10828 | export const postServiceOrderSupplierSendOrder = /* #__PURE__ */ (() => { |
10314 | - const method = 'post'; | |
10315 | - const url = '/service/order/supplierSendOrder'; | |
10829 | + const method = "post"; | |
10830 | + const url = "/service/order/supplierSendOrder"; | |
10316 | 10831 | function request( |
10317 | - option: PostServiceOrderSupplierSendOrderOption, | |
10832 | + option: PostServiceOrderSupplierSendOrderOption | |
10318 | 10833 | ): Promise<PostServiceOrderSupplierSendOrderResponseSuccess> { |
10319 | 10834 | return requester(request.url, { |
10320 | 10835 | method: request.method, |
... | ... | @@ -10382,10 +10897,10 @@ export type PostServiceOrderToProcureAuditResponseSuccess = |
10382 | 10897 | * @consumes application/json |
10383 | 10898 | */ |
10384 | 10899 | export const postServiceOrderToProcureAudit = /* #__PURE__ */ (() => { |
10385 | - const method = 'post'; | |
10386 | - const url = '/service/order/toProcureAudit'; | |
10900 | + const method = "post"; | |
10901 | + const url = "/service/order/toProcureAudit"; | |
10387 | 10902 | function request( |
10388 | - option: PostServiceOrderToProcureAuditOption, | |
10903 | + option: PostServiceOrderToProcureAuditOption | |
10389 | 10904 | ): Promise<PostServiceOrderToProcureAuditResponseSuccess> { |
10390 | 10905 | return requester(request.url, { |
10391 | 10906 | method: request.method, |
... | ... | @@ -10453,10 +10968,10 @@ export type PostServiceOrderUpdateAnnexResponseSuccess = |
10453 | 10968 | * @consumes application/json |
10454 | 10969 | */ |
10455 | 10970 | export const postServiceOrderUpdateAnnex = /* #__PURE__ */ (() => { |
10456 | - const method = 'post'; | |
10457 | - const url = '/service/order/updateAnnex'; | |
10971 | + const method = "post"; | |
10972 | + const url = "/service/order/updateAnnex"; | |
10458 | 10973 | function request( |
10459 | - option: PostServiceOrderUpdateAnnexOption, | |
10974 | + option: PostServiceOrderUpdateAnnexOption | |
10460 | 10975 | ): Promise<PostServiceOrderUpdateAnnexResponseSuccess> { |
10461 | 10976 | return requester(request.url, { |
10462 | 10977 | method: request.method, |
... | ... | @@ -10524,10 +11039,10 @@ export type PostServiceOrderUpdateHirePurchaseResponseSuccess = |
10524 | 11039 | * @consumes application/json |
10525 | 11040 | */ |
10526 | 11041 | export const postServiceOrderUpdateHirePurchase = /* #__PURE__ */ (() => { |
10527 | - const method = 'post'; | |
10528 | - const url = '/service/order/updateHirePurchase'; | |
11042 | + const method = "post"; | |
11043 | + const url = "/service/order/updateHirePurchase"; | |
10529 | 11044 | function request( |
10530 | - option: PostServiceOrderUpdateHirePurchaseOption, | |
11045 | + option: PostServiceOrderUpdateHirePurchaseOption | |
10531 | 11046 | ): Promise<PostServiceOrderUpdateHirePurchaseResponseSuccess> { |
10532 | 11047 | return requester(request.url, { |
10533 | 11048 | method: request.method, |
... | ... | @@ -10595,10 +11110,10 @@ export type PostServiceOrderUpdateOrderResponseSuccess = |
10595 | 11110 | * @consumes application/json |
10596 | 11111 | */ |
10597 | 11112 | export const postServiceOrderUpdateOrder = /* #__PURE__ */ (() => { |
10598 | - const method = 'post'; | |
10599 | - const url = '/service/order/updateOrder'; | |
11113 | + const method = "post"; | |
11114 | + const url = "/service/order/updateOrder"; | |
10600 | 11115 | function request( |
10601 | - option: PostServiceOrderUpdateOrderOption, | |
11116 | + option: PostServiceOrderUpdateOrderOption | |
10602 | 11117 | ): Promise<PostServiceOrderUpdateOrderResponseSuccess> { |
10603 | 11118 | return requester(request.url, { |
10604 | 11119 | method: request.method, |
... | ... | @@ -10666,10 +11181,10 @@ export type PostServiceOrderUpdateReportFormsTargetResponseSuccess = |
10666 | 11181 | * @consumes application/json |
10667 | 11182 | */ |
10668 | 11183 | export const postServiceOrderUpdateReportFormsTarget = /* #__PURE__ */ (() => { |
10669 | - const method = 'post'; | |
10670 | - const url = '/service/order/updateReportFormsTarget'; | |
11184 | + const method = "post"; | |
11185 | + const url = "/service/order/updateReportFormsTarget"; | |
10671 | 11186 | function request( |
10672 | - option: PostServiceOrderUpdateReportFormsTargetOption, | |
11187 | + option: PostServiceOrderUpdateReportFormsTargetOption | |
10673 | 11188 | ): Promise<PostServiceOrderUpdateReportFormsTargetResponseSuccess> { |
10674 | 11189 | return requester(request.url, { |
10675 | 11190 | method: request.method, |
... | ... | @@ -10684,6 +11199,77 @@ export const postServiceOrderUpdateReportFormsTarget = /* #__PURE__ */ (() => { |
10684 | 11199 | return request; |
10685 | 11200 | })(); |
10686 | 11201 | |
11202 | +/** @description request parameter type for postServiceOrderUploadPaymentReceipt */ | |
11203 | +export interface PostServiceOrderUploadPaymentReceiptOption { | |
11204 | + /** | |
11205 | + * @description | |
11206 | + * dto | |
11207 | + */ | |
11208 | + body: { | |
11209 | + /** | |
11210 | + @description | |
11211 | + dto */ | |
11212 | + dto: UploadPaymentReceiptDTO; | |
11213 | + }; | |
11214 | +} | |
11215 | + | |
11216 | +/** @description response type for postServiceOrderUploadPaymentReceipt */ | |
11217 | +export interface PostServiceOrderUploadPaymentReceiptResponse { | |
11218 | + /** | |
11219 | + * @description | |
11220 | + * OK | |
11221 | + */ | |
11222 | + 200: ServerResult; | |
11223 | + /** | |
11224 | + * @description | |
11225 | + * Created | |
11226 | + */ | |
11227 | + 201: any; | |
11228 | + /** | |
11229 | + * @description | |
11230 | + * Unauthorized | |
11231 | + */ | |
11232 | + 401: any; | |
11233 | + /** | |
11234 | + * @description | |
11235 | + * Forbidden | |
11236 | + */ | |
11237 | + 403: any; | |
11238 | + /** | |
11239 | + * @description | |
11240 | + * Not Found | |
11241 | + */ | |
11242 | + 404: any; | |
11243 | +} | |
11244 | + | |
11245 | +export type PostServiceOrderUploadPaymentReceiptResponseSuccess = | |
11246 | + PostServiceOrderUploadPaymentReceiptResponse[200]; | |
11247 | +/** | |
11248 | + * @description | |
11249 | + * 上传回款单 | |
11250 | + * @tags 内部订单 | |
11251 | + * @produces * | |
11252 | + * @consumes application/json | |
11253 | + */ | |
11254 | +export const postServiceOrderUploadPaymentReceipt = /* #__PURE__ */ (() => { | |
11255 | + const method = "post"; | |
11256 | + const url = "/service/order/uploadPaymentReceipt"; | |
11257 | + function request( | |
11258 | + option: PostServiceOrderUploadPaymentReceiptOption | |
11259 | + ): Promise<PostServiceOrderUploadPaymentReceiptResponseSuccess> { | |
11260 | + return requester(request.url, { | |
11261 | + method: request.method, | |
11262 | + ...option, | |
11263 | + }) as unknown as Promise<PostServiceOrderUploadPaymentReceiptResponseSuccess>; | |
11264 | + } | |
11265 | + | |
11266 | + /** http method */ | |
11267 | + request.method = method; | |
11268 | + /** request url */ | |
11269 | + request.url = url; | |
11270 | + return request; | |
11271 | +})(); | |
11272 | + | |
10687 | 11273 | /** @description request parameter type for postServiceOrderViewImages */ |
10688 | 11274 | export interface PostServiceOrderViewImagesOption { |
10689 | 11275 | /** |
... | ... | @@ -10737,10 +11323,10 @@ export type PostServiceOrderViewImagesResponseSuccess = |
10737 | 11323 | * @consumes application/json |
10738 | 11324 | */ |
10739 | 11325 | export const postServiceOrderViewImages = /* #__PURE__ */ (() => { |
10740 | - const method = 'post'; | |
10741 | - const url = '/service/order/viewImages'; | |
11326 | + const method = "post"; | |
11327 | + const url = "/service/order/viewImages"; | |
10742 | 11328 | function request( |
10743 | - option: PostServiceOrderViewImagesOption, | |
11329 | + option: PostServiceOrderViewImagesOption | |
10744 | 11330 | ): Promise<PostServiceOrderViewImagesResponseSuccess> { |
10745 | 11331 | return requester(request.url, { |
10746 | 11332 | method: request.method, |
... | ... | @@ -10806,10 +11392,10 @@ export type GetServiceTogglesResponseSuccess = GetServiceTogglesResponse[200]; |
10806 | 11392 | * @produces * |
10807 | 11393 | */ |
10808 | 11394 | export const getServiceToggles = /* #__PURE__ */ (() => { |
10809 | - const method = 'get'; | |
10810 | - const url = '/service/toggles'; | |
11395 | + const method = "get"; | |
11396 | + const url = "/service/toggles"; | |
10811 | 11397 | function request( |
10812 | - option?: GetServiceTogglesOption, | |
11398 | + option?: GetServiceTogglesOption | |
10813 | 11399 | ): Promise<GetServiceTogglesResponseSuccess> { |
10814 | 11400 | return requester(request.url, { |
10815 | 11401 | method: request.method, | ... | ... |
src/utils/order.ts
1 | 1 | import { cloneDeep } from 'lodash'; |
2 | +import { getUserInfo } from '.'; | |
2 | 3 | export function getReceivingCompanyOptions(PAYEE_OPTIONS: any) { |
3 | 4 | let payeeOptions = cloneDeep(PAYEE_OPTIONS); |
4 | 5 | payeeOptions.ANY = '任意'; |
5 | 6 | return payeeOptions; |
6 | 7 | } |
8 | + | |
9 | +export function isSupplier(){ | |
10 | + let userInfo = getUserInfo(); | |
11 | + if(userInfo){ | |
12 | + return ['首能','枭源'].includes(userInfo.username); | |
13 | + } | |
14 | + return false; | |
15 | +} | ... | ... |