Bladeren bron

Merge branch 'storemanagementweb' of http://10.2.1.24:10244/zhaoy/BPA.SAAS.Web into storemanagementweb

storemanagementweb
gwbvipvip 10 maanden geleden
bovenliggende
commit
27f8985c5a
3 gewijzigde bestanden met toevoegingen van 16 en 3 verwijderingen
  1. +1
    -0
      src/pages/database/bom/index.jsx
  2. +9
    -3
      src/pages/device/productmanage/components/CreateForm.jsx
  3. +6
    -0
      src/pages/device/productmanage/index.jsx

+ 1
- 0
src/pages/database/bom/index.jsx Bestand weergeven

@@ -215,6 +215,7 @@ const GoodsBomsManage = (props) => {
columns={columns}
actionRef={actionRef}
rowKey="id"
pagination={{ defaultPageSize: 10 }}
toolBarRender={() => [
<Button
type="primary"


+ 9
- 3
src/pages/device/productmanage/components/CreateForm.jsx Bestand weergeven

@@ -13,6 +13,7 @@ const CreateForm = (props) => {
const [displaybool,setdisplaybool]=useState('none');
const [displaylength,setdisplaylength]=useState('none');
const [displaytxtjson,setdisplaytxtjson]=useState('none');
const [disabledname,setdisabledname]=useState('false');
const [minnumber, setminnumber] = useState(0);
const [maxnumber, setmaxnumber] = useState(1);
const [ReadWrite, setReadWrite] = useState(0);
@@ -43,6 +44,7 @@ const CreateForm = (props) => {
if(props?.values?.type==1){
setdisplay("none")
setdisanumbled('none')
setdisplaytxtjson('none')
}else if(props?.values?.type==0){
setdisplay("block")
}
@@ -82,9 +84,13 @@ const CreateForm = (props) => {
setminnumber(0);
setmaxnumber(1);
}
if(props?.values?.isDefault){
setdisabledname(true)
}else{
setdisabledname(false)
}
}else{
setdisabledname(false)
console.log("xinjian")
setDisabled(false);
setdisplay("block")
@@ -233,7 +239,7 @@ const onChangeboolLabel1=(e)=>{
</Form.Item>
<Form.Item name="name" label="功能名称" rules={[{ required: true, max: 64, whitespace: true }]}>
<Input placeholder="请输入功能名称" />
<Input placeholder="请输入功能名称" disabled={disabledname} />
</Form.Item>
<Form.Item style={{display:display}} label={'数据类型'} name="dataType" rules={[{ required: false }]}>
<Select onChange={onChangedataType} defaultValue="digit">


+ 6
- 0
src/pages/device/productmanage/index.jsx Bestand weergeven

@@ -211,6 +211,12 @@ const bomtechnology = (props) => {
// search: true,
// valueEnum:DeviceVesionEnum
// },
{
title: '描述',
dataIndex: 'description',
valueType: 'textarea',
hideInSearch: true,
},
{
title: '创建时间',
dataIndex: 'createAt',


Laden…
Annuleren
Opslaan