Browse Source

Merge branch 'master' of http://10.2.1.24:10244/bpa/BPA.KitChen.Web

tags/小炒逻辑变更前
txb 2 years ago
parent
commit
cab5076f3b
8 changed files with 79 additions and 73 deletions
  1. +2
    -2
      src/pages/goods/goodsInfo/index.jsx
  2. +62
    -59
      src/pages/store/printer/Printer/index.jsx
  3. +2
    -0
      src/pages/store/storeDesktopNumber/index.jsx
  4. +5
    -5
      src/pages/sys/org/components/CreateForm.jsx
  5. +0
    -1
      src/pages/sys/user/components/OrgForm.jsx
  6. +0
    -1
      src/pages/sys/user/components/PwdForm.jsx
  7. +0
    -1
      src/pages/sys/user/components/RoleAuth.jsx
  8. +8
    -4
      src/pages/sys/user/index.jsx

+ 2
- 2
src/pages/goods/goodsInfo/index.jsx View File

@@ -353,7 +353,7 @@ const Advanced = (props) => {
//初始化
useEffect(() => {
function initGoodsType() {
goodsType({ current: 1, pageSize: 1000 }).then((r) => {
goodsType({ current: 1, status:0,pageSize: 1000 }).then((r) => {
var arr = r.data.data;
arr.forEach((element) => {
element.text = element.goodsType_Name;
@@ -363,7 +363,7 @@ const Advanced = (props) => {
});
}
function initGoodsBigType() {
goodsbigType({ current: 1, pageSize: 1000 }).then((r) => {
goodsbigType({ current: 1,status:0, pageSize: 1000 }).then((r) => {
var arr = r.data.data;
arr.forEach((element) => {
element.text = element.name;


+ 62
- 59
src/pages/store/printer/Printer/index.jsx View File

@@ -21,13 +21,13 @@ const PrinterInfo = () => {
const [storeFoodMenuAll, setStoreFoodMenuAll] = useState([]);
const [modalVisit, setModalVisit] = useState(false);
const [printerTemplaterList, setPrinterTemplaterList] = useState([]);
// 打印机店铺商品

useEffect(async () => {
GetStoreInfoList(1);
//获取模板
GetPrinterTemplater().then((re) => {
GetPrinterTemplater().then((re) => {
setPrinterTemplaterList(re.data);
});
}, [])
@@ -125,11 +125,11 @@ const PrinterInfo = () => {
avatar: 'https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg',
info: item,
content: (
<div style={{ flex: 1 ,width:'100%'}} >
<div style={{ overflow: 'auto', height: '555px',float:'left',width:'100%'}}>
<div style={{ flex: 1, width: '100%' }} >
<div style={{ overflow: 'auto', height: '555px', float: 'left', width: '100%' }}>
<ProForm
labelCol={{ span: 5 }}
style={{float:'left',width:'80%',margin:'10px'}}
style={{ float: 'left', width: '80%', margin: '10px' }}
onFinish={async (values) => {
var result = await UpdatePrinter(values);
if (result.data) {
@@ -161,7 +161,7 @@ const PrinterInfo = () => {
<ProForm.Item name="applicationId" label="应用ID" placeholder="请输入应用ID">
<Field mode={item.state} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px'}} name="applicationkey" label="应用秘钥" placeholder="请输入应用秘钥">
<ProForm.Item style={{ marginTop: '-10px' }} name="applicationkey" label="应用秘钥" placeholder="请输入应用秘钥">
<Field valueType="password" mode={item.state} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="terminalId" label="终端ID" placeholder="请输入终端ID">
@@ -186,13 +186,13 @@ const PrinterInfo = () => {
return list;
}}
/>
<div style={{ overflow: 'auto', width: '100%',float:'left',textAlign:'left',margin:'5px',padding:'5px'}}>
<div style={{ overflow: 'auto', width: '100%', float: 'left', textAlign: 'left', margin: '5px', padding: '5px' }}>
<ProFormText
mode={item.state}
mode={item.state}
name="goodsIdList"
valueType="checkbox"
label="商品"
request={ () => {
request={() => {
let list = [];
storeFoodMenuList?.data.map((item, index) => {
list.push({ label: item.foodName, value: item.foodId });
@@ -213,13 +213,14 @@ const PrinterInfo = () => {
<div style={{ flex: 1, }} >
<div style={{ height: 195, textAlign: 'center' }}
onClick={() => {
setModalVisit(true);
setModalVisit(true);
setCurrentStoreid(key);
}} >
<PlusOutlined style={{ fontSize: '50px', color: '#08c', marginTop: '60px' }} />
</div>
</div>
)});
)
});
return printerListHtml;
}

@@ -227,12 +228,12 @@ const PrinterInfo = () => {
return (
<PageContainer>
<Card ></Card>
<Card headStyle={{ border: '0px ' }} title="店铺商品" style={{ marginTop: '17px' }}>
<Tabs defaultActiveKey="1" tabPosition="left" onChange={async (key) => {}}>
<Card headStyle={{ border: '0px ' }} title="店铺打印机" style={{ marginTop: '17px' }}>
<Tabs defaultActiveKey="1" tabPosition="left" onChange={async (key) => { }}>
{storeInfoList?.map((item) => (

<TabPane tab={item.storeName} key={item.storeId}>
<ProList
params={{ 'storeid': item.storeId }}
actionRef={actionRef}
@@ -266,7 +267,7 @@ const PrinterInfo = () => {

</Tabs>
</Card>
{/* 弹框 */}
{/* 弹框 */}
<ModalForm
labelCol={{ span: 4 }}
visible={modalVisit}
@@ -274,7 +275,7 @@ const PrinterInfo = () => {
onCancel: () => setModalVisit(false),
}}
onFinish={async (values) => {
values.storeId =currentStoreid;
values.storeId = currentStoreid;
var result = await AddPrinter(values);
if (result.data) {
actionRef.current.reload();
@@ -287,52 +288,54 @@ const PrinterInfo = () => {
formRef={formRef}
layout={'horizontal'}
autoFocusFirstInput>
<ProFormText style={{ marginTop: '-10px', }} name="applicationId" label="应用ID" placeholder="请输入应用ID">
<Field mode={'edit'} />
</ProFormText>
<ProForm.Item style={{ marginTop: '-10px' }} name="applicationkey" label="应用秘钥" placeholder="请输入应用秘钥">
<Field valueType="password" mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="terminalId" label="终端ID" placeholder="终端ID">
<Field mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="terminalKey" label="终端秘钥" placeholder="终端秘钥">
<Field valueType="password" mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="name" label="打印机名称" placeholder="请输入打印机名称" >
<Field mode={'edit'} />
</ProForm.Item>
<div style={{ width:'98%' }} >
<ProFormText style={{ marginTop: '-10px', }} name="applicationId" label="应用ID" placeholder="请输入应用ID">
<Field mode={'edit'} />
</ProFormText>
<ProForm.Item style={{ marginTop: '-10px' }} name="applicationkey" label="应用秘钥" placeholder="请输入应用秘钥">
<Field valueType="password" mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="terminalId" label="终端ID" placeholder="终端ID">
<Field mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="terminalKey" label="终端秘钥" placeholder="终端秘钥">
<Field valueType="password" mode={'edit'} />
</ProForm.Item>
<ProForm.Item style={{ marginTop: '-10px' }} name="name" label="打印机名称" placeholder="请输入打印机名称" >
<Field mode={'edit'} />
</ProForm.Item>

<ProFormText
mode={'edit'}
name="templaterId"
label="模板"
placeholder="模板"
style={{ marginTop: '-10px' }}
request={() => {
var list = [];
printerTemplaterList?.map((item, index) => {
list.push({ label: item.title, value: item.id });
});
return list;
}}
/>
<ProFormText
mode={'edit'}
name="templaterId"
label="模板"
placeholder="模板"
style={{ marginTop: '-10px' }}
request={() => {
var list = [];
printerTemplaterList?.map((item, index) => {
list.push({ label: item.title, value: item.id });
});
return list;
}}
/>

<ProFormText
mode={'edit'}
name="goodsIdList"
valueType="checkbox"
label="商品"
placeholder="商品"
request={() => {
var list = [];
storeFoodMenuAll?.map((item, index) => {
list.push({ label: item.foodName, value: item.foodId });
});
return list;
<ProFormText
mode={'edit'}
name="goodsIdList"
valueType="checkbox"
label="商品"
placeholder="商品"
request={() => {
var list = [];
storeFoodMenuAll?.map((item, index) => {
list.push({ label: item.foodName, value: item.foodId });
});
return list;

}}
/>
}}
/>
</div>
</ModalForm>
</PageContainer>
);


+ 2
- 0
src/pages/store/storeDesktopNumber/index.jsx View File

@@ -98,6 +98,7 @@ const storeDesktopNumber = () => {
title: '桌号',
dataIndex: 'number',
align: 'center',
search: false,
render: item => (
<>
<Button type="primary" shape="circle">
@@ -110,6 +111,7 @@ const storeDesktopNumber = () => {
title: '适用店铺',
align: 'center',
dataIndex: 'storeList',
search: false,
render: tags => (
<>
{tags.map(tag => {


+ 5
- 5
src/pages/sys/org/components/CreateForm.jsx View File

@@ -27,10 +27,10 @@ const CreateForm = (props) => {
<Form.Item name="id" hidden={true}>
<Input />
</Form.Item>
<Form.Item name="code" label="机构编码" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入机构编码" />
<Form.Item name="code" label="组织编码" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入组织编码" />
</Form.Item>
<Form.Item name="name" label="机构名称" rules={[{ required: true, max: 64 }]}>
<Form.Item name="name" label="组织名称" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入名称" />
</Form.Item>
<Form.Item name="pid" label="上级名称" rules={[{ required: true }]}>
@@ -45,9 +45,9 @@ const CreateForm = (props) => {

<Form.Item
name="type"
label="机构类型"
label="组织类型"
defaultValue={props.values.type}
rules={[{ required: true, message: '请选择机构类型' }]}
rules={[{ required: true, message: '请选择组织类型' }]}
>
<Select placeholder="请选择机构类型">
<OptGroup>


+ 0
- 1
src/pages/sys/user/components/OrgForm.jsx View File

@@ -28,7 +28,6 @@ const OrgForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 0
- 1
src/pages/sys/user/components/PwdForm.jsx View File

@@ -17,7 +17,6 @@ const PwdForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 0
- 1
src/pages/sys/user/components/RoleAuth.jsx View File

@@ -17,7 +17,6 @@ const RoleForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 8
- 4
src/pages/sys/user/index.jsx View File

@@ -111,7 +111,7 @@ const userManager = () => {
api.GetRoleDic().then(r => {
var arr = [];
for (var key in r.data) {
arr.push(<Select.Option value={key}>{r.data[key]}</Select.Option>)
arr.push(<Option value={key}>{r.data[key]}</Option>)
}
SetselectData(arr);
api.GetUserRole(id).then(r => {
@@ -232,6 +232,10 @@ const userManager = () => {
dataIndex: 'adminType',
hideInSearch: true,
valueEnum: {
0: {
text: '无',
status: 'Default',
},
1: {
text: '超级管理员',
status: 'Processing',
@@ -252,11 +256,11 @@ const userManager = () => {
hideInSearch: true,
valueEnum: {
0: {
text: '正常',
text: '启用',
status: 'Processing',
},
1: {
text: '用',
text: '用',
status: 'Success',
},
},
@@ -425,7 +429,7 @@ const userManager = () => {
onFinish={async (value) => {
const values = {
sysUserId: stepFormValues.id,
orgId: value.orgId,
sysOrgId: value.orgId,
};
const success = await handleGrantData(values);
if (success) {


Loading…
Cancel
Save