Commit 93d59b73 authored by TZW's avatar TZW

20221209

parent 0922d08a
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-29 14:03:07
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-07 10:11:53
* @Last Modified time: 2022-12-09 13:14:11
*/
import { doFetch } from '@/utils/doFetch';
......@@ -10,7 +10,16 @@ import { useRequest } from 'ahooks';
import { useState, useEffect } from 'react';
import InitForm from '../InitForm';
const App = ({ setDrawer, onFinish, drawer, actionRef, columns, urlParams, formId }) => {
const App = ({
setDrawer,
onFinish,
drawer,
actionRef,
columns,
urlParams,
formId,
defaultFormValue,
}) => {
const [value, setValue] = useState('');
const [fieldscolumns, setfieldscolumns] = useState(columns);
const selectValueType = (type, options) => {
......@@ -83,6 +92,7 @@ const App = ({ setDrawer, onFinish, drawer, actionRef, columns, urlParams, formI
return (
<>
<InitForm
defaultFormValue={defaultFormValue}
extendField={selectextendField(formId)}
detailpath={urlParams?.detail || null}
params={{ id: drawer?.item?.id || null }}
......
import React, { useState, useEffect } from 'react';
import { ProDescriptions } from '@ant-design/pro-components';
export default (props) => {
return (
<>
<div>
<h3>单号</h3>
</div>
<ProDescriptions />
</>
);
};
......@@ -325,6 +325,7 @@ function getcolumns(setdrawer) {
align: 'center',
search: false,
key: 'sectionIdList',
hideInTable: true,
fieldProps: {
placeholder: '请选择',
showSearch: true,
......@@ -350,6 +351,7 @@ function getcolumns(setdrawer) {
mode: 'multiple',
},
search: false,
hideInTable: true,
key: 'productionLineIdList',
align: 'center',
options: {
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-07 10:15:25
* @Last Modified time: 2022-12-09 13:13:57
*/
import * as React from 'react';
......@@ -192,6 +192,7 @@ function User(props) {
actionRef.current.reload();
}
}}
defaultFormValue={drawer.item}
/>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment