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

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

parents 11e48f20 d5d98f86
...@@ -47,8 +47,6 @@ const MultAddress = (props) => { ...@@ -47,8 +47,6 @@ const MultAddress = (props) => {
// 是否仅读 // 是否仅读
const { readOnly = null } = props.props const { readOnly = null } = props.props
console.log(_v, 'value')
let value = null let value = null
if(!_v.length) { if(!_v.length) {
value = [{ provinceCode: null, province: null, cityCode: null, city: null }] value = [{ provinceCode: null, province: null, cityCode: null, city: null }]
......
...@@ -49,6 +49,7 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => { ...@@ -49,6 +49,7 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
const [btnLoading, setBtnLoading] = useState(false) const [btnLoading, setBtnLoading] = useState(false)
const { pageStatus, id } = usePageStatus() const { pageStatus, id } = usePageStatus()
const [initFormValue, setInitFormValue] = useState<any>({}) const [initFormValue, setInitFormValue] = useState<any>({})
const publicFlag = useRef<boolean>(false)
// 会员列 // 会员列
const [memberColumn, setMemberColumn] = useState<any>(() => { const [memberColumn, setMemberColumn] = useState<any>(() => {
...@@ -90,16 +91,13 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => { ...@@ -90,16 +91,13 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
} else { } else {
return item return item
} }
} )) }))
} }
const handleSubmit = async (value) => { const handleSubmit = async (value) => {
console.log(value, '87')
setBtnLoading(true) setBtnLoading(true)
const params = paramsConversionFn(value) const params = paramsConversionFn(value)
console.log(params, '91')
if(!params.isQualificationCheck) { if(!params.isQualificationCheck) {
delete params.preCheckStartTime delete params.preCheckStartTime
delete params.preCheckEndTime delete params.preCheckEndTime
...@@ -201,8 +199,11 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => { ...@@ -201,8 +199,11 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
$('onFieldValueChange', 'inviteTenderType').subscribe(state => { $('onFieldValueChange', 'inviteTenderType').subscribe(state => {
if(state.value === PUBLIC_BID) { if(state.value === PUBLIC_BID) {
publicRef.current.setVisible(true) if(pageStatus === PageStatus.EDIT && !publicFlag.current) {
publicRef.current.setVisible(false)
} else {
publicRef.current.setVisible(true)
}
} else if(state.value === SYSTEM_BID) { } else if(state.value === SYSTEM_BID) {
// @todo 需调用后台接口获取匹配的会员数据 // @todo 需调用后台接口获取匹配的会员数据
// addSchemaAction.setFieldState('memberList', state => { // addSchemaAction.setFieldState('memberList', state => {
...@@ -211,6 +212,11 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => { ...@@ -211,6 +212,11 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
} else if(state.value === INVITE_BID) { } else if(state.value === INVITE_BID) {
} }
if(pageStatus === PageStatus.ADD) {
ctx.setFieldState('*(memberName, inviteTenderInStatus, tenderOutStatus, createTime)', state => state.props.visible = true)
}
}) })
$('onFieldValueChange', 'isQualificationCheck').subscribe(state => { $('onFieldValueChange', 'isQualificationCheck').subscribe(state => {
......
...@@ -161,21 +161,25 @@ const basicInfo: ISchema = { ...@@ -161,21 +161,25 @@ const basicInfo: ISchema = {
type: 'string', type: 'string',
title: '招标会员', title: '招标会员',
readOnly: true, readOnly: true,
visible: false,
}, },
inviteTenderInStatus: { inviteTenderInStatus: {
type: 'string', type: 'string',
title: '内部状态', title: '内部状态',
readOnly: true, readOnly: true,
visible: false,
}, },
tenderOutStatus: { tenderOutStatus: {
type: 'string', type: 'string',
title: '外部状态', title: '外部状态',
readOnly: true, readOnly: true,
visible: false,
}, },
createTime: { createTime: {
type: 'string', type: 'string',
title: '发布时间', title: '发布时间',
readOnly: true, readOnly: true,
visible: false,
}, },
isEdit: { isEdit: {
type: 'boolean', type: 'boolean',
......
...@@ -146,7 +146,7 @@ const callForBidsSearch: React.FC<{}> = () => { ...@@ -146,7 +146,7 @@ const callForBidsSearch: React.FC<{}> = () => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
$, $,
actions, actions,
'code', 'inviteTenderCode',
FORM_FILTER_PATH, FORM_FILTER_PATH,
); );
}, },
......
...@@ -8,7 +8,7 @@ import { BidInStateTexts, BidOutStateTexts } from '@/constants'; ...@@ -8,7 +8,7 @@ import { BidInStateTexts, BidOutStateTexts } from '@/constants';
export const tableListSchema: ISchema = { export const tableListSchema: ISchema = {
type: 'object', type: 'object',
properties: { properties: {
code: { inviteTenderCode: {
type: 'string', type: 'string',
"x-component": 'SearchFilter', "x-component": 'SearchFilter',
'x-component-props': { 'x-component-props': {
...@@ -69,7 +69,7 @@ export const tableListSchema: ISchema = { ...@@ -69,7 +69,7 @@ export const tableListSchema: ISchema = {
value: item, value: item,
})) }))
}, },
"[preCheckStartTime,preCheckEndTime]": { "[checkStartTime,checkEndTime]": {
type: 'array', type: 'array',
"x-component": 'DateRangePickerUnix', "x-component": 'DateRangePickerUnix',
'x-component-props': { 'x-component-props': {
......
...@@ -31,6 +31,13 @@ const mapColor = [ ...@@ -31,6 +31,13 @@ const mapColor = [
"rgb(101, 84, 192)", // 紫 "rgb(101, 84, 192)", // 紫
"rgb(230, 63, 59)", // 红 "rgb(230, 63, 59)", // 红
"rgb(0, 179, 122)", // 绿 "rgb(0, 179, 122)", // 绿
"rgb(96, 98, 102)", // 灰
"rgb(255, 153, 31)", // 黄
"rgb(63, 126, 210)", // 蓝
"rgb(101, 84, 192)", // 紫
"rgb(230, 63, 59)", // 红
"rgb(0, 179, 122)", // 绿
] ]
// 订单内部状态显示 // 订单内部状态显示
......
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