Commit a498cdfc authored by GuanHua's avatar GuanHua

fix: 修复发票功能bug

parent 99a616ea
...@@ -949,7 +949,7 @@ export default { ...@@ -949,7 +949,7 @@ export default {
'balance.invoice.columns.productName': '物料名称', 'balance.invoice.columns.productName': '物料名称',
'balance.invoice.columns.spec': '规格型号', 'balance.invoice.columns.spec': '规格型号',
'balance.invoice.columns.category': '品类', 'balance.invoice.columns.category': '品类',
'balance.invoice.columns.brand': 'brand', 'balance.invoice.columns.brand': '品牌',
'balance.invoice.columns.unit': '单位', 'balance.invoice.columns.unit': '单位',
'balance.invoice.columns.taxRate': '税率', 'balance.invoice.columns.taxRate': '税率',
'balance.invoice.columns.price': '单价(含税)', 'balance.invoice.columns.price': '单价(含税)',
......
...@@ -258,7 +258,7 @@ const InvoiceManage: React.FC = () => { ...@@ -258,7 +258,7 @@ const InvoiceManage: React.FC = () => {
const controllerBtns = ( const controllerBtns = (
<Space> <Space>
<AuthButton btnCode="readyAddBill.add"> <AuthButton btnCode="invoice.srm.add">
<Button icon={<PlusCircleOutlined />} type="primary" onClick={clickAdd}> <Button icon={<PlusCircleOutlined />} type="primary" onClick={clickAdd}>
{intl.formatMessage({ {intl.formatMessage({
id: 'purchaseRequisition.xinjian', id: 'purchaseRequisition.xinjian',
......
...@@ -140,6 +140,8 @@ const InvoiceForm: React.FC<InvoiceFormProps> = (props) => { ...@@ -140,6 +140,8 @@ const InvoiceForm: React.FC<InvoiceFormProps> = (props) => {
if (res.code === 1000 && res.data) { if (res.code === 1000 && res.data) {
return res.data as InvoiceDetailType return res.data as InvoiceDetailType
} else {
message.info(res.message)
} }
return undefined return undefined
} }
......
...@@ -417,6 +417,11 @@ const billInfo: ISchema = { ...@@ -417,6 +417,11 @@ const billInfo: ISchema = {
{ {
required: true, required: true,
message: getIntl().formatMessage({ id: 'balance.invoice.number.required', defaultMessage: '请输入发票号码' }), message: getIntl().formatMessage({ id: 'balance.invoice.number.required', defaultMessage: '请输入发票号码' }),
},
{
limitByte: true,
maxByte: 20,
message: '最长20个字符'
} }
], ],
}, },
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
} }
} }
.loginInput { .loginInput {
border: none; border: none;
outline: none; outline: none;
...@@ -36,9 +35,11 @@ ...@@ -36,9 +35,11 @@
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
height: 40px; height: 40px;
background-color: #F5F6F7;
input { input {
font-size: 14px; font-size: 14px;
background-color: #F5F6F7;
} }
&:hover, &:focus { &:hover, &:focus {
...@@ -46,3 +47,4 @@ ...@@ -46,3 +47,4 @@
border: none; border: none;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment