Commit f93d4a04 authored by wzy's avatar wzy

fix: 单据错误提示修改

parent d93437fe
import React, { useState, useRef, useEffect } from 'react';
import { getIntl, history } from 'umi';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Button, Card, Dropdown, Menu, Space, Badge, Popconfirm } from 'antd';
import { Button, Card, Dropdown, Menu, Space, Badge, Popconfirm, message } from 'antd';
import {
PlusOutlined,
DownOutlined,
......@@ -98,9 +98,16 @@ const Bills: React.FC<{}> = () => {
postProductInvoicesBatchReview({
ids,
reviewType,
}, {
ctlType: 'none',
})
.then(res => {
if (res.code !== 1000) {
if(res.code === 9999) {
message.info(res.message)
} else {
message.info(intl.formatMessage({ id: `${res.code}`, defaultMessage: res.message}))
}
return;
}
if (callback) {
......
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