提交 15a4d529 作者: 龚洪江

功能:意向订单流程操作问题

上级 f9f9d19d
...@@ -15,6 +15,7 @@ import TableItem from '~/components/order/selfTableItem'; ...@@ -15,6 +15,7 @@ import TableItem from '~/components/order/selfTableItem';
import { filterObjAttr } from '~/utils'; import { filterObjAttr } from '~/utils';
import './index.scss'; import './index.scss';
import qs from 'query-string'; import qs from 'query-string';
import { useSelector } from 'react-redux';
// 表格数据类型 // 表格数据类型
type TableType = InterListType<mallOrderListType>; type TableType = InterListType<mallOrderListType>;
...@@ -26,6 +27,8 @@ let query: ReqType = {}; ...@@ -26,6 +27,8 @@ let query: ReqType = {};
function ProductOrderView() { function ProductOrderView() {
// 路由钩子 // 路由钩子
const navigate = useNavigate(); const navigate = useNavigate();
const { userInfo } = useSelector((state: any) => state.UserInfo);
// 订单状态搜索列表 // 订单状态搜索列表
const [tranStatusList, setTranStatusList] = useState< const [tranStatusList, setTranStatusList] = useState<
{ value: number | undefined; label: string }[] { value: number | undefined; label: string }[]
...@@ -33,7 +36,7 @@ function ProductOrderView() { ...@@ -33,7 +36,7 @@ function ProductOrderView() {
// 订单操作按钮列表 // 订单操作按钮列表
const operateBtnList = [ const operateBtnList = [
{ {
getBtnStr: () => '确认订单', getBtnStr: () => (userInfo.companyInfoVO.companyType === 0 ? '确认订单' : ''),
status: 200, status: 200,
btnClick: (record: TableType[0]) => { btnClick: (record: TableType[0]) => {
setCurrentOrderItem({ ...record }); setCurrentOrderItem({ ...record });
...@@ -400,7 +403,8 @@ function ProductOrderView() { ...@@ -400,7 +403,8 @@ function ProductOrderView() {
) : ( ) : (
'' ''
)} )}
{[420].includes(record.statusCode) || isContinueApprove(record) ? ( {([420].includes(record.statusCode) || isContinueApprove(record)) &&
userInfo.companyInfoVO.companyType === 0 ? (
<Button type='link' onClick={() => showApprovalModalClick(record)}> <Button type='link' onClick={() => showApprovalModalClick(record)}>
凭证审批 凭证审批
</Button> </Button>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论