Commit 18323ee8 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix: 修改采购询价BUG

parent 8b2f5f2c
...@@ -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') {
...@@ -229,6 +231,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => { ...@@ -229,6 +231,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
} else { } else {
params.password = value.password; params.password = value.password;
} }
return
fetch({ id, ...params }).then(res => { fetch({ id, ...params }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
onOk && onOk() onOk && onOk()
......
...@@ -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: '操作',
......
...@@ -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: []
}, },
} }
}, },
......
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