Commit aaa477c3 authored by 前端-许冠华's avatar 前端-许冠华

Merge branch 'fix-0518-bug' into 'v2-220518'

fix: 修复发票功能bug See merge request linkseeks-design/pro-platform!606
parents 7893a7e4 a498cdfc
......@@ -949,7 +949,7 @@ export default {
'balance.invoice.columns.productName': '物料名称',
'balance.invoice.columns.spec': '规格型号',
'balance.invoice.columns.category': '品类',
'balance.invoice.columns.brand': 'brand',
'balance.invoice.columns.brand': '品牌',
'balance.invoice.columns.unit': '单位',
'balance.invoice.columns.taxRate': '税率',
'balance.invoice.columns.price': '单价(含税)',
......
......@@ -258,7 +258,7 @@ const InvoiceManage: React.FC = () => {
const controllerBtns = (
<Space>
<AuthButton btnCode="readyAddBill.add">
<AuthButton btnCode="invoice.srm.add">
<Button icon={<PlusCircleOutlined />} type="primary" onClick={clickAdd}>
{intl.formatMessage({
id: 'purchaseRequisition.xinjian',
......
......@@ -140,6 +140,8 @@ const InvoiceForm: React.FC<InvoiceFormProps> = (props) => {
if (res.code === 1000 && res.data) {
return res.data as InvoiceDetailType
} else {
message.info(res.message)
}
return undefined
}
......
......@@ -417,6 +417,11 @@ const billInfo: ISchema = {
{
required: true,
message: getIntl().formatMessage({ id: 'balance.invoice.number.required', defaultMessage: '请输入发票号码' }),
},
{
limitByte: true,
maxByte: 20,
message: '最长20个字符'
}
],
},
......
......@@ -27,7 +27,6 @@
}
}
.loginInput {
border: none;
outline: none;
......@@ -36,9 +35,11 @@
border-radius: 4px;
font-size: 14px;
height: 40px;
background-color: #F5F6F7;
input {
font-size: 14px;
background-color: #F5F6F7;
}
&:hover, &:focus {
......@@ -46,3 +47,4 @@
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