Browse Source

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

tags/小炒逻辑变更前
DESKTOP-BP1469S\1 2 years ago
parent
commit
a92a60ebf4
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      src/pages/store/printer/printerTemplate/index.jsx

+ 12
- 2
src/pages/store/printer/printerTemplate/index.jsx View File

@@ -1,4 +1,4 @@
import { Form, Tabs, Row, Col, Card } from 'antd';
import { Form, Tabs, Row, Col, Card,Radio,message } from 'antd';
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
import React, { useState, useRef, useEffect } from 'react';
import ProForm, { ProFormText, ModalForm } from '@ant-design/pro-form';
@@ -16,6 +16,8 @@ const printerTemplateInfo = () => {
useEffect(() => {
GetStoreTemplaterList();
}, [])
useEffect(() => {
}, [activeKey])

const GetStoreTemplaterList = () => {
GetPrinterTemplater().then((r) => {
@@ -47,12 +49,21 @@ const printerTemplateInfo = () => {
isShowPrintTime: value.isShowPrintTime,
isShowNumber: value.isShowNumber,
Footer: value.Footer,
type:value.type
}}
autoFocusFirstInput>

<ProForm.Item name="id" hidden={true} >
<Field mode={'edit'} />
</ProForm.Item>

<ProForm.Item name="type" label="小票类型" rules={[{ required: true }]}>
<Radio.Group >
<Radio value={1}>收银(出餐)小票</Radio>
<Radio value={2}>贴纸小票</Radio>
</Radio.Group>
</ProForm.Item>

<ProForm.Item name="title" label="标题" placeholder="标题">
<Field mode={'edit'} />
</ProForm.Item>
@@ -95,7 +106,6 @@ const printerTemplateInfo = () => {
add(targetKey);
}


};

const add = (targetKey) => {


Loading…
Cancel
Save