Commit 461e2d47 by zhaochengxiang

模型批量送审

parent 46d03551
...@@ -8,12 +8,7 @@ import produce from 'immer' ...@@ -8,12 +8,7 @@ import produce from 'immer'
import { Action, CatalogId, Editable, Holder, ModelerId, PermitCheckOut, ReadOnly, StateId } from '../../../../util/constant' import { Action, CatalogId, Editable, Holder, ModelerId, PermitCheckOut, ReadOnly, StateId } from '../../../../util/constant'
const FC = (props) => { const FC = (props) => {
const { visible, items = Array.from({ length: 10 }).map((_, i) => ({ const { visible, items, onCancel } = props
name: `模型${i}`,
cnName: `模型${i}`,
remark: '很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的',
id: i,
})), onCancel } = props
const [waiting, setWaiting] = React.useState(false) const [waiting, setWaiting] = React.useState(false)
const basicRef = React.useRef() const basicRef = React.useRef()
...@@ -142,7 +137,7 @@ const Basic = React.forwardRef(function ({}, ref) { ...@@ -142,7 +137,7 @@ const Basic = React.forwardRef(function ({}, ref) {
> >
<Form.Item <Form.Item
label='送审说明' label='送审说明'
name="remark" name="approvalName"
style={{ marginBottom }} style={{ marginBottom }}
rules={[{ required: true, message: '请填写送审说明!' }]} rules={[{ required: true, message: '请填写送审说明!' }]}
> >
...@@ -260,7 +255,11 @@ const List = React.forwardRef(function ({ items }, ref) { ...@@ -260,7 +255,11 @@ const List = React.forwardRef(function ({ items }, ref) {
const [tableData, setTableData] = React.useState(items) const [tableData, setTableData] = React.useState(items)
React.useImperativeHandle(ref, () => ({ React.useImperativeHandle(ref, () => ({
tableData, tableData: (tableData??[]).map(item => ({
id: item.id,
name: item.name,
})),
}), [tableData]) }), [tableData])
const cols = [ const cols = [
...@@ -325,7 +324,7 @@ const List = React.forwardRef(function ({ items }, ref) { ...@@ -325,7 +324,7 @@ const List = React.forwardRef(function ({ items }, ref) {
}, },
{ {
title: '送审备注', title: '送审备注',
dataIndex: 'reviewRemark', dataIndex: 'sendReviewComment',
render: (_, __, index) => ( render: (_, __, index) => (
<Input.TextArea rows={1} <Input.TextArea rows={1}
autoSize={{ minRows: 1, maxRows: 3 }} autoSize={{ minRows: 1, maxRows: 3 }}
......
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