Commit 30769d21 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复过滤不同工作流商品没效果的问题

parent da7d82f7
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-11 11:44:19
* @LastEditTime: 2021-08-23 09:59:10
* @Description: 维修商品抽屉组件
*/
import React from 'react';
......@@ -19,17 +19,11 @@ import {
import {
PayOutWorkState,
} from '@/constants/order';
import {
ORDER_TYPE_INQUIRY_CONTRACT,
ORDER_TYPE_BIDDING_CONTRACT,
ORDER_TYPE_TENDER_CONTRACT,
} from '@/constants/order';
import NiceForm from '@/components/NiceForm';
import NestTable from '@/components/NestTable';
import { goodItem, OrderListRes } from './interface';
import { listSearchSchema } from './schema';
import styles from './index.less';
import { PublicApi } from '@/services/api';
const formActions = createFormActions();
......@@ -483,7 +477,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
return filtered1;
}
// 过滤工作流不同的的商品
const filtered2 = filtered1.filter(item => item.processEnum === first.processEnum);
const filtered2 = filtered1.filter(item => item.processKey === first.processKey);
if (filtered2.length !== filtered1.length) {
message.warning('已过滤掉 售后工作流不同 商品');
}
......
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