|
|
@@ -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) => { |
|
|
|