Commit fd1f83ba authored by 李腾's avatar 李腾

fix: 修复商户首次登录消息数据不正确的问题

parent 34d37bb5
const isProduction = process.env.NODE_ENV === 'production';
const isPre = process.env.PRE_ENV === 'pre';
const environment = 'yxm2';
const environment = 'sc';
const envAPi = {
api: `https://security-${environment}.liangkebang.net`, //'https://security-xyqb.liangkebang.net',
kdspOpApi: `https://sc-merchant-api-${environment}.liangkebang.net`,
......
......@@ -122,7 +122,7 @@ const Simple = props => {
const [messageData, setMessageData] = useState([]);
const userInfo = JSON.parse(localStorage.getItem('user') || '{}');
let userInfo = JSON.parse(localStorage.getItem('user') || '{}');
const toggle = () => {
setVisible(!visible);
......@@ -130,6 +130,13 @@ const Simple = props => {
// 初始化获取数据
const getMsgList = async () => {
if (!userInfo.supplierCode) {
userInfo = JSON.parse(localStorage.getItem('user') || '{}');
setTimeout(() => {
getMsgList();
}, 1000);
return;
}
const params = {
pageNo: 1,
pageSize: 1000,
......
......@@ -213,6 +213,9 @@ export const getColumns = props => {
hideInSearch: true,
width: 150,
render: (val, record) => {
if (record.status !== 14) {
return <div align="center">-</div>;
}
const serviceTime = moment(record.approvalEndTime).valueOf();
return (
<Countdown
......@@ -228,6 +231,7 @@ export const getColumns = props => {
if (dealStatus === 70) {
auditCountDown = [];
}
return [
...auditCountDown,
{
......
......@@ -499,6 +499,7 @@ const TableList = props => {
// eslint-disable-next-line no-unused-expressions
form?.resetFields();
setorderStatus('');
setOrderNo('');
// eslint-disable-next-line no-unused-expressions
form?.submit();
}}
......@@ -512,7 +513,11 @@ const TableList = props => {
type="primary"
onClick={() => {
if (ref.current) {
const obj = { ...ref.current.getFieldsValue(), logisticsStatus: props.type || 1 };
const obj = {
...ref.current.getFieldsValue(),
orderNo,
logisticsStatus: props.type || 1,
};
obj.startTime = startTimeStr;
obj.endTime = endTimeStr;
downOrder(obj);
......
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