瀏覽代碼

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

tags/小炒逻辑变更前
DESKTOP-BP1469S\1 2 年之前
父節點
當前提交
a92a60ebf4
共有 1 個檔案被更改,包括 12 行新增2 行删除
  1. +12
    -2
      src/pages/store/printer/printerTemplate/index.jsx

+ 12
- 2
src/pages/store/printer/printerTemplate/index.jsx 查看文件

@@ -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…
取消
儲存