Commit 93d59b73 authored by TZW's avatar TZW

20221209

parent 0922d08a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-29 14:03:07 * @Date: 2022-11-29 14:03:07
* @Last Modified by: Li Hanlin * @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'; import { doFetch } from '@/utils/doFetch';
...@@ -10,7 +10,16 @@ import { useRequest } from 'ahooks'; ...@@ -10,7 +10,16 @@ import { useRequest } from 'ahooks';
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import InitForm from '../InitForm'; 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 [value, setValue] = useState('');
const [fieldscolumns, setfieldscolumns] = useState(columns); const [fieldscolumns, setfieldscolumns] = useState(columns);
const selectValueType = (type, options) => { const selectValueType = (type, options) => {
...@@ -83,6 +92,7 @@ const App = ({ setDrawer, onFinish, drawer, actionRef, columns, urlParams, formI ...@@ -83,6 +92,7 @@ const App = ({ setDrawer, onFinish, drawer, actionRef, columns, urlParams, formI
return ( return (
<> <>
<InitForm <InitForm
defaultFormValue={defaultFormValue}
extendField={selectextendField(formId)} extendField={selectextendField(formId)}
detailpath={urlParams?.detail || null} detailpath={urlParams?.detail || null}
params={{ id: drawer?.item?.id || 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) { ...@@ -325,6 +325,7 @@ function getcolumns(setdrawer) {
align: 'center', align: 'center',
search: false, search: false,
key: 'sectionIdList', key: 'sectionIdList',
hideInTable: true,
fieldProps: { fieldProps: {
placeholder: '请选择', placeholder: '请选择',
showSearch: true, showSearch: true,
...@@ -350,6 +351,7 @@ function getcolumns(setdrawer) { ...@@ -350,6 +351,7 @@ function getcolumns(setdrawer) {
mode: 'multiple', mode: 'multiple',
}, },
search: false, search: false,
hideInTable: true,
key: 'productionLineIdList', key: 'productionLineIdList',
align: 'center', align: 'center',
options: { options: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @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'; import * as React from 'react';
...@@ -192,6 +192,7 @@ function User(props) { ...@@ -192,6 +192,7 @@ function User(props) {
actionRef.current.reload(); 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