Commit 8721ea20 authored by GuanHua's avatar GuanHua

Merge branch 'dev-srm' of http://10.0.0.22:3000/lingxi/lingxi-business-paltform into dev-srm

parents 8afcaefd 8b9bff2b
export default { export default {
'/api/member': { // '/api/member': {
'target': 'http://10.0.0.12:8100', // 'target': 'http://10.0.0.12:8100',
'changeOrigin': true, // 'changeOrigin': true,
'pathRewrite': { '^/api/member': '/member' }, // 'pathRewrite': { '^/api/member': '/member' },
}, // },
'/api': { '/api': {
'target': process.env.BACK_GATEWAY || 'http://10.0.0.10:8100/', 'target': process.env.BACK_GATEWAY || 'http://10.0.0.10:8100/',
'changeOrigin': true, 'changeOrigin': true,
......
...@@ -58,13 +58,13 @@ const memberCenterRoute = { ...@@ -58,13 +58,13 @@ const memberCenterRoute = {
noMargin: true, noMargin: true,
name: '修改个人信息' name: '修改个人信息'
}, },
{ // {
path: `/memberCenter/home`, // path: `/memberCenter/home`,
name: 'home', // name: 'home',
icon: 'home', // icon: 'home',
key: 'home', // key: 'home',
component: '@/pages/home', // component: '@/pages/home',
}, // },
// ShopRoute, // ShopRoute,
// CommodityRoute, // CommodityRoute,
// srm开发临时使用... // srm开发临时使用...
...@@ -75,9 +75,9 @@ const memberCenterRoute = { ...@@ -75,9 +75,9 @@ const memberCenterRoute = {
// contracRoute, // contracRoute,
//... //...
// AuthConfigRoute, // AuthConfigRoute,
MemberRoute, // MemberRoute,
HandlingRoute, // HandlingRoute,
// ...asyncRoutes, ...asyncRoutes,
{ {
path: '/memberCenter/noAuth', path: '/memberCenter/noAuth',
auth: false, auth: false,
......
...@@ -9,6 +9,7 @@ import { Input, Radio, DatePicker, Checkbox } from '@formily/antd-components' ...@@ -9,6 +9,7 @@ import { Input, Radio, DatePicker, Checkbox } from '@formily/antd-components'
import moment from 'moment'; import moment from 'moment';
import styles from './index.less'; import styles from './index.less';
import { isEmpty } from 'lodash';
const actions = createFormActions() const actions = createFormActions()
const { onFieldChange$ } = FormEffectHooks; const { onFieldChange$ } = FormEffectHooks;
...@@ -148,7 +149,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => { ...@@ -148,7 +149,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
}} }}
/> />
<Field <Field
name="checkbox" name="isNow"
x-component="CheckboxGroup" x-component="CheckboxGroup"
description="勾选后供应商不能再提交报价单" description="勾选后供应商不能再提交报价单"
enum={[{ label: '立即截止报价', value: 1 }]} enum={[{ label: '立即截止报价', value: 1 }]}
...@@ -218,6 +219,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => { ...@@ -218,6 +219,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
params.discardTime = new Date(value.reasonTime).getTime(); params.discardTime = new Date(value.reasonTime).getTime();
} else if (modalType === 'date') { } else if (modalType === 'date') {
params.quotedPriceTime = new Date(value.quotedPriceTime).getTime(); params.quotedPriceTime = new Date(value.quotedPriceTime).getTime();
params.isNow = !isEmpty(value.isNow) ? 1 : 0;
} else if (modalType === 'next') { } else if (modalType === 'next') {
params.quotedPriceTime = new Date(value.quotedPriceTime).getTime(); params.quotedPriceTime = new Date(value.quotedPriceTime).getTime();
} else if (modalType === 'planAudit') { } else if (modalType === 'planAudit') {
......
...@@ -130,6 +130,8 @@ const OfferInquire = () => { ...@@ -130,6 +130,8 @@ const OfferInquire = () => {
columns={columns} columns={columns}
effects="purchaseInquiryNo" effects="purchaseInquiryNo"
fetch={PublicApi.getPurchaseConfirmQuotedPriceList} fetch={PublicApi.getPurchaseConfirmQuotedPriceList}
externalStatusFetch={PublicApi.getPurchasePurchaseInquiryExternalStatusPurchase}
interiorStatusFetch={PublicApi.getPurchasePurchaseInquiryInteriorStatusPurchase}
reload={ref} reload={ref}
/> />
<ModalOperate <ModalOperate
......
...@@ -31,7 +31,7 @@ export const EXTERNALLOGS: ColumnType<any>[] = [ ...@@ -31,7 +31,7 @@ export const EXTERNALLOGS: ColumnType<any>[] = [
title: '状态', title: '状态',
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={OFFTER_EXTERNALSTATE_COLOR[_text]}>{OFFTER_EXTERNALSTATE[_text]}</Tag> render: (_text: any, _record: any) => <Tag color={OFFTER_EXTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag>
}, },
{ {
title: '操作', title: '操作',
...@@ -77,7 +77,7 @@ export const INTERNALLOGS: ColumnType<any>[] = [ ...@@ -77,7 +77,7 @@ export const INTERNALLOGS: ColumnType<any>[] = [
title: '状态', title: '状态',
key: 'state', key: 'state',
dataIndex: 'state', dataIndex: 'state',
render: (_text: any, _record: any) => <Tag color={OFFTER_INTERNALSTATE_COLOR[_text]}>{OFFTER_INTERNALSTATE[_text]}</Tag> render: (_text: any, _record: any) => <Tag color={OFFTER_INTERNALSTATE_COLOR[_text] || 'default'}>{_record.stateName}</Tag>
}, },
{ {
title: '操作', title: '操作',
......
...@@ -338,7 +338,7 @@ export const DEMANDPLANINTERNALSTATE = [ ...@@ -338,7 +338,7 @@ export const DEMANDPLANINTERNALSTATE = [
export enum BUTTONAUTHORITY { export enum BUTTONAUTHORITY {
/** 提交审核修改删除查看 */ /** 提交审核修改删除查看 */
OEN = 1, ONE = 1,
/** 修改查看 */ /** 修改查看 */
TWO, TWO,
/** 报价查看 */ /** 报价查看 */
......
...@@ -5,13 +5,14 @@ import { ColumnType } from 'antd/lib/table/interface'; ...@@ -5,13 +5,14 @@ import { ColumnType } from 'antd/lib/table/interface';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import moment from 'moment' import moment from 'moment'
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { Row, Col, Space, Button, Dropdown, Menu, Tag, Badge, Popconfirm, Typography } from 'antd'; import { Row, Col, Space, Button, Tag, Badge, Popconfirm, Typography } from 'antd';
import { DeleteOutlined, DownOutlined, PlusOutlined } from '@ant-design/icons'; import { PlusOutlined } from '@ant-design/icons';
import { import {
INQUIRY_EXTERNALSTATE_COLOR, INQUIRY_EXTERNALSTATE_COLOR,
INQUIRY_INTERNALSTATE_COLOR, INQUIRY_INTERNALSTATE_COLOR,
OFFTER_EXTERNALSTATE_TYPE, OFFTER_EXTERNALSTATE_TYPE,
OFFTER_INTERNALSTATE_TYPE OFFTER_INTERNALSTATE_TYPE,
BUTTONAUTHORITY
} from '../../constants'; } from '../../constants';
const { Text } = Typography; const { Text } = Typography;
const AddInquiry = () => { const AddInquiry = () => {
...@@ -61,25 +62,20 @@ const AddInquiry = () => { ...@@ -61,25 +62,20 @@ const AddInquiry = () => {
dataIndex: 'operate', dataIndex: 'operate',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<> <>
{ (record.externalState !== OFFTER_EXTERNALSTATE_TYPE.WAITNOPASSINQUIRY_TYPE && {(record.button === BUTTONAUTHORITY.ONE) &&
(record.interiorState !== OFFTER_INTERNALSTATE_TYPE.AUDITNOPASS1_TYPE && <Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => fetchSubmitBatch(record.id)}>
record.interiorState !== OFFTER_INTERNALSTATE_TYPE.AUDITNOPASS2_TYPE)) <Button type='link'>
&& ( 提交
<Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => fetchSubmitBatch(record.id)}> </Button>
<Button type='link'> </Popconfirm>}
提交 {(record.button === BUTTONAUTHORITY.ONE || record.button === BUTTONAUTHORITY.TWO) &&
</Button> <Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/purchaseInquiry/edit?id=${record.id}&number=${record.purchaseInquiryNo}`)}>修改</Button>}
</Popconfirm> {(record.button === BUTTONAUTHORITY.ONE) &&
)} <Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => fetchDeleteBatch(record.id)}>
<Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/purchaseInquiry/edit?id=${record.id}&number=${record.purchaseInquiryNo}`)}>修改</Button> <Button type='link'>
{ record.interiorState === OFFTER_INTERNALSTATE_TYPE.WAITSUBMITAUDIT_TYPE 删除
&& ( </Button>
<Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => fetchDeleteBatch(record.id)}> </Popconfirm>}
<Button type='link'>
删除
</Button>
</Popconfirm>
)}
</> </>
) )
}]; }];
......
...@@ -12,9 +12,7 @@ import RecordLyout from '../../components/detail/components/recordLyout'; ...@@ -12,9 +12,7 @@ import RecordLyout from '../../components/detail/components/recordLyout';
import moment from 'moment'; import moment from 'moment';
import { import {
OFFTER_EXTERNALSTATE,
OFFTER_EXTERNALSTATE_COLOR, OFFTER_EXTERNALSTATE_COLOR,
OFFTER_INTERNALSTATE,
OFFTER_INTERNALSTATE_COLOR OFFTER_INTERNALSTATE_COLOR
} from '../../constants'; } from '../../constants';
import { CheckCircleOutlined, LinkOutlined, QuestionCircleOutlined } from '@ant-design/icons'; import { CheckCircleOutlined, LinkOutlined, QuestionCircleOutlined } from '@ant-design/icons';
...@@ -61,8 +59,8 @@ const DemandDetailed = () => { ...@@ -61,8 +59,8 @@ const DemandDetailed = () => {
{ {
col: [ col: [
{ label: '需求单号', extra: data.purchaseInquiryNo }, { label: '需求单号', extra: data.purchaseInquiryNo },
{ label: '外部状态', extra: <Tag color={OFFTER_EXTERNALSTATE_COLOR[data.externalState]}>{OFFTER_EXTERNALSTATE[data.externalState]}</Tag> }, { label: '外部状态', extra: <Tag color={OFFTER_EXTERNALSTATE_COLOR[data.externalState] || 'default'}>{data.externalStateName}</Tag> },
{ label: '内部状态', extra: <Badge status={OFFTER_INTERNALSTATE_COLOR[data.interiorState]} text={OFFTER_INTERNALSTATE[data.interiorState]} /> }, { label: '内部状态', extra: <Badge status={OFFTER_INTERNALSTATE_COLOR[data.interiorState] || 'default'} text={data.interiorStateName} /> },
{ label: '单据时间', extra: format(data.createTime,) }, { label: '单据时间', extra: format(data.createTime,) },
] ]
}, },
......
...@@ -88,6 +88,8 @@ const Inquiry = () => { ...@@ -88,6 +88,8 @@ const Inquiry = () => {
columns={columns} columns={columns}
effects="purchaseInquiryNo" effects="purchaseInquiryNo"
fetch={PublicApi.getPurchasePurchaseInquiryList} fetch={PublicApi.getPurchasePurchaseInquiryList}
externalStatusFetch={PublicApi.getPurchasePurchaseInquiryExternalStatusPurchase}
interiorStatusFetch={PublicApi.getPurchasePurchaseInquiryInteriorStatusPurchase}
reload={ref} reload={ref}
/> />
<ModalOperate <ModalOperate
......
import { ISchema} from '@formily/antd' import { ISchema} from '@formily/antd'
import { FORM_FILTER_PATH } from '@/formSchema/const' import { FORM_FILTER_PATH } from '@/formSchema/const'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { FILTEREXTERNALSTATE, FILTERINTERNALSTATE, FILTERCONFIRMINTERNALSTATE } from '../constants'
/** 采购询价 - 需求单查询 */ /** 采购询价 - 需求单查询 */
...@@ -69,7 +68,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = { ...@@ -69,7 +68,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTEREXTERNALSTATE enum: []
}, },
interiorState: { interiorState: {
type: 'string', type: 'string',
...@@ -79,7 +78,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = { ...@@ -79,7 +78,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTERINTERNALSTATE enum: []
}, },
} }
}, },
...@@ -607,9 +606,9 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = { ...@@ -607,9 +606,9 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTEREXTERNALSTATE enum: []
}, },
confirmInteriorState: { interiorState: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '内部状态', placeholder: '内部状态',
...@@ -617,7 +616,7 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = { ...@@ -617,7 +616,7 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTERCONFIRMINTERNALSTATE enum: []
}, },
} }
}, },
...@@ -946,7 +945,7 @@ export const OFFERSERAH_SCHEMA: ISchema = { ...@@ -946,7 +945,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTEREXTERNALSTATE enum: []
}, },
interiorState: { interiorState: {
type: 'string', type: 'string',
...@@ -956,7 +955,7 @@ export const OFFERSERAH_SCHEMA: ISchema = { ...@@ -956,7 +955,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
width: 160 width: 160
} }
}, },
enum: FILTERINTERNALSTATE enum: []
}, },
} }
}, },
......
...@@ -120,8 +120,8 @@ class ApiRequest { ...@@ -120,8 +120,8 @@ class ApiRequest {
baseRequest<IRequestSuccess<T>>(url, options).then(res => { baseRequest<IRequestSuccess<T>>(url, options).then(res => {
// 登录验证 // 登录验证
if (res.code === 1101) { if (res.code === 1101) {
// removeAuth() removeAuth()
// window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`) window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`)
message.destroy() message.destroy()
message.error(res.message) message.error(res.message)
reject(res) reject(res)
......
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