diff --git a/config/proxy.js b/config/proxy.js index 15cfb87..1828479 100644 --- a/config/proxy.js +++ b/config/proxy.js @@ -9,7 +9,7 @@ export default { dev: { '/saasbase/': { - target: 'http://10.2.1.26:21995/saasbase/', + target: 'http://localhost:5006', changeOrigin: true, secure: false, //关闭证书验证 pathRewrite: { diff --git a/src/pages/company/account/components/CreateForm.jsx b/src/pages/company/account/components/CreateForm.jsx index fab4c96..cf2acc4 100644 --- a/src/pages/company/account/components/CreateForm.jsx +++ b/src/pages/company/account/components/CreateForm.jsx @@ -37,7 +37,7 @@ const CreateForm = (props) => { message: '邮箱格式不正确', }]}> - + {/* diff --git a/src/pages/company/account/index.jsx b/src/pages/company/account/index.jsx index 0ce10ce..a1eb97f 100644 --- a/src/pages/company/account/index.jsx +++ b/src/pages/company/account/index.jsx @@ -165,23 +165,6 @@ const companyManage = () => { dataIndex: 'email', ellipsis: true, }, - { - title: '所属平台', - dataIndex: 'type', - valueType: 'select', - ellipsis:true, - valueEnum: { - 0: { - text: '团餐', - }, - 1: { - text: '门店', - }, - 2: { - text: '后厨', - }, - }, - }, { title: '电话', dataIndex: 'phone', @@ -261,45 +244,19 @@ const companyManage = () => { > 删除 , - { - // api.GetRoleMenu(record.sysRoleId).then((r) => { - // setRow(r.data); - // handleUpdateMenuModalVisible(true); - // }); - // setStepFormValues(record); - // }} - > - {' '} - LOGO设置 - , + // { + // // api.GetRoleMenu(record.sysRoleId).then((r) => { + // // setRow(r.data); + // // handleUpdateMenuModalVisible(true); + // // }); + // // setStepFormValues(record); + // // }} + // > + // {' '} + // LOGO设置 + // , ]; - //供应商下架 - - template.push( - { - // record.status = record.status == 0 ? 0 : 0; - if (record.status == 1) { - //启用 - api.Enable(record.id).then((r) => { - message.success('启用成功,即将刷新'); - actionRef.current.reload(); - }); - } else { - //禁用 - api.Disable(record.id).then((r) => { - message.success('禁用成功,即将刷新'); - actionRef.current.reload(); - }); - } - }} - > - {' '} - {record.status == 0 ? '禁用' : '启用'} - , - ); return template; }, }, diff --git a/src/pages/database/basic/batching/components/CreateForm.jsx b/src/pages/database/basic/batching/components/CreateForm.jsx index 3d711e9..58b62e9 100644 --- a/src/pages/database/basic/batching/components/CreateForm.jsx +++ b/src/pages/database/basic/batching/components/CreateForm.jsx @@ -7,7 +7,7 @@ import styles from './style.less'; import api from '../service' const fieldLabels = { name: '物料名称', - stockUint: '库存单位', + stockUint: '物料单位', specs: '物料规格', code: '物料编码', aittribute: '物料属性', @@ -264,6 +264,12 @@ const CreateForm = (props) => { label={fieldLabels.typeID} name="typeID" style={{width: 235,}} + rules={[ + { + required: true, + message: '请选择物料类别', + }, + ]} placeholder="请选择物料类别" fieldProps={{ dropdownRender:(menu) => ( @@ -340,7 +346,7 @@ const CreateForm = (props) => { options={itemsuity} /> - + {/* { request={async () => itemsuity} placeholder="请选择出库单位" /> - + */} { placeholder="请选择状态" /> */} - + {/* - + */} {/* { dataIndex: 'code', ellipsis: true, }, - { - title: '关联外键', - dataIndex: 'foreignKeyRe', - }, + // { + // 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: '成品', @@ -214,12 +219,13 @@ const ProductManage = () => { title: '物料类别', dataIndex: 'typeID', valueType: 'select', + hideInSearch: true, fieldProps: { options: TypeList, }, }, { - title: '库存单位', + title: '物料单位', dataIndex: 'stockUint', valueType: 'select', fieldProps: { @@ -263,23 +269,6 @@ const ProductManage = () => { {' '} 更新 , - { - var parm={id:record.id,status:record.status == 0 ? 1 : 0} - api.updateStatus(parm).then((r) => { - if (r.succeeded) { - message.success('操作成功'); - actionRef.current.reload(); - }else{ - message.error(e.error); - } - }); - }} - > - {' '} - {record.status == 0 ? '禁用' : '启用'} - , { initGoodsUnit(); initGoodsType(); initGetbomType(); - intBatching(); + //intBatching();//默认原料 //} }, [tabStatus]) @@ -191,11 +191,11 @@ const Advanced = (props) => { }) } - function intBatching(){ - getproductpage().then((r) => { - setMatedata(r.data); - }); - } + // function intBatching(){ + // getproductpage().then((r) => { + // setMatedata(r.data); + // }); + // } function initTypeList(){ initGetbomType(); } @@ -404,7 +404,7 @@ const Advanced = (props) => { /> - + { treeDefaultExpandAll /> - - - - + {/* + */} + + + - - + + - + +