feat:Updated add order, review order, and financial information Drawer
对新增、审核接口进行了调整。新增了财务信息窗口。
Request to merge
zhongnanhuang
into
develop
-
Added 1 commit:
- 91ecba53 - feat: add production infomation item search
-
Added 1 commit:
- 7293ba72 - feat: update
-
mentioned in commit 08a71b12
started a discussion
on the diff
src/pages/Order/components/CheckModal.tsx
1 | +import { postServiceOrderCheckOrder } from '@/services'; | |
1 | 2 | import { ModalForm, ProFormTextArea } from '@ant-design/pro-components'; |
2 | -import { Form, message } from 'antd'; | |
3 | - | |
4 | -export default ({ setCheckVisible }) => { | |
3 | +import { Button, Form, message } from 'antd'; | |
4 | +export default ({ setCheckVisible, data, onClose }) => { | |
5 | 5 | const [form] = Form.useForm<{ name: string; company: string }>(); |
6 | + let subOrderIds: any[] = []; | |
7 | + const subOrderList = data.subOrderInformationLists; | |
8 | + //是单条子订单审核 | |
9 | + if (subOrderList === undefined) { | |
1 |
|
started a discussion
on the diff
src/pages/Order/components/CheckModal.tsx
3 | +import { Button, Form, message } from 'antd'; | |
4 | +export default ({ setCheckVisible, data, onClose }) => { | |
5 | 5 | const [form] = Form.useForm<{ name: string; company: string }>(); |
6 | + let subOrderIds: any[] = []; | |
7 | + const subOrderList = data.subOrderInformationLists; | |
8 | + //是单条子订单审核 | |
9 | + if (subOrderList === undefined) { | |
10 | + subOrderIds = [data.id]; | |
11 | + } else { | |
12 | + subOrderIds = subOrderList.map((subOrder) => subOrder.id); | |
13 | + } | |
14 | + async function doCheck(body: object) { | |
15 | + const res = await postServiceOrderCheckOrder({ | |
16 | + data: body, | |
17 | + }); | |
18 | + if (res.result === 0) { | |
1 |
|