From 66275b61c700bf4307fa45a01ebb006c83a7e1a5 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Wed, 31 Jan 2024 18:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/company/account/index.jsx | 16 -- .../basic/batching/components/CreateForm.jsx | 36 ++--- src/pages/database/basic/batching/index.jsx | 51 ------- src/pages/database/goods/goodsInfo/index.jsx | 52 +++---- .../database/goods/goodstypemanage/index.jsx | 16 -- src/pages/database/goods/newgoods/index.jsx | 10 +- src/pages/device/deviceInfo/index.jsx | 10 -- .../productmanage/components/CreateAction.jsx | 18 +-- .../productmanage/components/CreateForm.jsx | 3 +- .../org/orgamange/components/CreateForm.jsx | 2 +- src/pages/org/users/components/RoleAuth.jsx | 1 + src/pages/org/users/index.jsx | 138 ++++++------------ 12 files changed, 96 insertions(+), 257 deletions(-) diff --git a/src/pages/company/account/index.jsx b/src/pages/company/account/index.jsx index a1eb97f..de5325e 100644 --- a/src/pages/company/account/index.jsx +++ b/src/pages/company/account/index.jsx @@ -175,22 +175,6 @@ const companyManage = () => { dataIndex: 'remark', hideInSearch: true, }, - { - title: '状态', - dataIndex: 'status', - hideInForm: true, - hideInSearch: true, - valueEnum: { - 0: { - text: '启用', - status: 'Processing', - }, - 1: { - text: '禁用', - status: 'Success', - }, - }, - }, { title: '创建时间', dataIndex: 'createAt', diff --git a/src/pages/database/basic/batching/components/CreateForm.jsx b/src/pages/database/basic/batching/components/CreateForm.jsx index d289e29..f9f0b90 100644 --- a/src/pages/database/basic/batching/components/CreateForm.jsx +++ b/src/pages/database/basic/batching/components/CreateForm.jsx @@ -11,7 +11,7 @@ const fieldLabels = { specs: '物料规格', code: '物料编码', aittribute: '物料属性', - typeID: '物料类别', + typeID: '物料分类', status: '物料状态', price: '成本价', netrecovery: '净料率(%)', @@ -41,7 +41,7 @@ const CreateForm = (props) => { }; useEffect(() => { getTableInfo(); - console.log("props.typeListData",props.typeListData) + console.log("props.uintListData",props.uintListData) setItems(props.typeListData) setitemsuity(props.uintListData) }, [modalVisible,props.typeListData,props.uintListData]); @@ -176,7 +176,7 @@ const CreateForm = (props) => { onFinish={props.onFinish} > - + { }} /> - + - + {/* { placeholder="请输入净料率" /> - + */} - + ( <> @@ -296,7 +297,7 @@ const CreateForm = (props) => { }} > { options={items} /> - + ( @@ -370,7 +372,7 @@ const CreateForm = (props) => { placeholder="请选择出库单位" /> */} - + {/* { ]} placeholder="请输入换算比例" /> - + */} {/* { dataIndex: 'code', ellipsis: true, }, - // { - // title: '关联外键', - // dataIndex: 'foreignKeyRe', - // hideInSearch: true, - // }, - { - title: '物料规格', - dataIndex: 'specs', - hideInSearch: true, - }, - { - title: '成本价', - dataIndex: 'price', - hideInSearch: true, - }, - { - title: '净料率(%)', - dataIndex: 'netrecovery', - hideInSearch: true, - }, - { - title: '物料属性', - dataIndex: 'aittribute', - hideInSearch: true, - valueEnum: { - 0: { - text: '成品', - }, - 1: { - text: '半成品', - }, - 2: { - text: '易耗品', - }, - }, - }, { title: '物料类别', dataIndex: 'typeID', @@ -232,21 +196,6 @@ const ProductManage = () => { options: UintList, }, }, - { - title: '状态', - dataIndex: 'status', - hideInForm: true, - valueEnum: { - 0: { - text: '正常', - status: 'Processing', - }, - 1: { - text: '停用', - status: 'Success', - }, - }, - }, { title: '创建时间', dataIndex: 'createAt', diff --git a/src/pages/database/goods/goodsInfo/index.jsx b/src/pages/database/goods/goodsInfo/index.jsx index 1d22992..bfb2c31 100644 --- a/src/pages/database/goods/goodsInfo/index.jsx +++ b/src/pages/database/goods/goodsInfo/index.jsx @@ -41,6 +41,7 @@ const Advanced = (props) => { const [BomId, setBomId] = useState(); const [UpdateBomVisible, setUpdateBomVisible] = useState(false); const [BomBatchingVisible,setBomBatchingVisible]= useState(false); + const [goodsTypeIdvalue, setgoodsTypeIdvalue] = useState(); //事件 const onFinish = async (values) => { const hide = message.loading('正在执行'); @@ -358,7 +359,11 @@ const Advanced = (props) => { ], } ] - + const onChange = (newValue) => { + setgoodsTypeIdvalue(newValue); + }; + const filterOption = (input, option) => + (option?.label ?? '').toLowerCase().includes(input.toLowerCase()); const contentList = { basis: ( { + + + @@ -387,6 +406,9 @@ const Advanced = (props) => { - { - matedata == undefined ? '' : ( - matedata.map((item, index) => { - return ( - - {item.name} - - ); - }) - ) - } - - */} - + diff --git a/src/pages/database/goods/goodstypemanage/index.jsx b/src/pages/database/goods/goodstypemanage/index.jsx index d29b861..27f96ad 100644 --- a/src/pages/database/goods/goodstypemanage/index.jsx +++ b/src/pages/database/goods/goodstypemanage/index.jsx @@ -158,22 +158,6 @@ const handleAdd = async (fields) => { hideInForm: true, hideInSearch: true, }, - { - title: '状态', - dataIndex: 'status', - hideInForm: true, - hideInSearch: true, - valueEnum: { - 0: { - text: '正常', - status: 'Processing', - }, - 1: { - text: '停用', - status: 'Success', - }, - }, - }, { title: '排序', dataIndex: 'goodsType_Sort', diff --git a/src/pages/database/goods/newgoods/index.jsx b/src/pages/database/goods/newgoods/index.jsx index 106c475..7f2e840 100644 --- a/src/pages/database/goods/newgoods/index.jsx +++ b/src/pages/database/goods/newgoods/index.jsx @@ -148,11 +148,11 @@ const GoodsManage = () => { hideInTable: true, hideInSearch: true, }, - { - title: '编码', - dataIndex: 'code', - valueType: 'textarea', - }, + // { + // title: '编码', + // dataIndex: 'code', + // valueType: 'textarea', + // }, { title: '名称', dataIndex: 'name', diff --git a/src/pages/device/deviceInfo/index.jsx b/src/pages/device/deviceInfo/index.jsx index 30f2905..3fdea7e 100644 --- a/src/pages/device/deviceInfo/index.jsx +++ b/src/pages/device/deviceInfo/index.jsx @@ -166,16 +166,6 @@ const GoodsTypeManage = () => { dataIndex: 'deviceTypeId', valueEnum: storeType, }, - - { - title: '状态', - dataIndex: 'status', - valueEnum: { - 0: { text: '启用', status: 'Processing' }, - 1: { text: '禁用', status: 'Success' }, - }, - hideInSearch: true, - }, { title: '设备唯一key', dataIndex: 'autoKey', diff --git a/src/pages/device/productmanage/components/CreateAction.jsx b/src/pages/device/productmanage/components/CreateAction.jsx index 1519c83..8107625 100644 --- a/src/pages/device/productmanage/components/CreateAction.jsx +++ b/src/pages/device/productmanage/components/CreateAction.jsx @@ -80,6 +80,7 @@ const handleChange=(value)=>{ dataIndex: 'list', valueType: 'formList', initialValue:optionitem, + style:{paddingTop:'20px'}, columns: [ { valueType: 'group', @@ -140,22 +141,6 @@ const handleChange=(value)=>{ } }, ] - - // const handleChange=(value)=>{ - - // } - // const onNameChange = (event) => { - // settypename(event.target.value); - // }; - // const addItem = async (e) => { - // e.preventDefault(); - // setItems([...items, {label:typename,value:index++} || `New item ${index++}`]); - // settypename(''); - // setTimeout(() => { - // inputRef.current?.focus(); - // }, 0); - // console.log(items) - // } return ( <> { visible={modalVisit} modalProps={{ forceRender: true,//切换显示模式后强制渲染其他模式表单 + onCancel:()=>setModalVisit(false) }} onVisibleChange={(vis)=>{ diff --git a/src/pages/device/productmanage/components/CreateForm.jsx b/src/pages/device/productmanage/components/CreateForm.jsx index 56af551..3204eae 100644 --- a/src/pages/device/productmanage/components/CreateForm.jsx +++ b/src/pages/device/productmanage/components/CreateForm.jsx @@ -91,7 +91,8 @@ const CreateForm = (props) => { setarttue(0) onChangedataType("digit") form.setFieldsValue({ - type: 0 + type: 0, + dataType:'digit' }); } },[props?.values]) diff --git a/src/pages/org/orgamange/components/CreateForm.jsx b/src/pages/org/orgamange/components/CreateForm.jsx index 95dfdba..0547252 100644 --- a/src/pages/org/orgamange/components/CreateForm.jsx +++ b/src/pages/org/orgamange/components/CreateForm.jsx @@ -57,7 +57,7 @@ const CreateForm = (props) => { - +