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

修改需求发布查看详情显示审核按钮的问题

parent 7e8cfbbf
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 {TimeList, demandQuoteExternalState} from '../../common/statusList' import {TimeList, demandQuoteExternalState , demandQuoteInteriorState} from '../../common/statusList'
import TranactionRoute from 'config/routes/tranactionRoute' import TranactionRoute from 'config/routes/tranactionRoute'
/** /**
...@@ -250,7 +250,7 @@ export const enquieryOfferSearchSchema: ISchema = { ...@@ -250,7 +250,7 @@ export const enquieryOfferSearchSchema: ISchema = {
}, },
"x-component-props":{ "x-component-props":{
placeholder:'搜索', placeholder:'报价单号',
align: 'flex-left', align: 'flex-left',
} }
} }
...@@ -282,43 +282,37 @@ export const enquieryOfferSearchSchema: ISchema = { ...@@ -282,43 +282,37 @@ export const enquieryOfferSearchSchema: ISchema = {
requisitionFormNo:{ requisitionFormNo:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'对应需求单号' placeholder:'需求单号'
} }
}, },
quotationSummary:{ quotationSummary:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'摘要' placeholder:'报价单摘要'
} }
}, },
demandMembers:{ demandMembers:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'报价会员' placeholder:'需求会员'
} }
}, },
// category:{
// type:'string',
// 'x-component': 'CustomInputSearch',
// 'x-component-props': {
// placeholder: '商品品类',
// showSearch: true,
// showArrow: true,
// defaultActiveFirstOption: false,
// filterOption: false,
// notFoundContent: null,
// style: { width: '174px', lineHeight: '32px' },
// searchValue: null,
// dataoption: []
// }
// // "x-component-props":{
// // placeholder:'请选择品类'
// // },
// // enum:[]
// },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, "x-component-props":{
placeholder:'外部状态'
},
enum: demandQuoteExternalState
},
externalState:{
type:'string',
"x-component-props":{
placeholder:'内部状态'
},
enum: demandQuoteInteriorState
},
interiorState:{
type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
......
...@@ -51,13 +51,15 @@ interface parmas { ...@@ -51,13 +51,15 @@ interface parmas {
freightPrice: number, freightPrice: number,
settlementWay: string, settlementWay: string,
pagetype?: any, pagetype?: any,
operation?: number operation?: any
} }
const detailInfo: React.FC<parmas> = (props) => { const detailInfo: React.FC<parmas> = (props) => {
const ref = useRef<any>({}) const ref = useRef<any>({})
const { pagetype, operation } = props; const { pagetype } = props;
// const [pagetype, setpagetype] = useState(history.location.query.page_type) const { pathname } = history.location;
const type = pathname.split('/')[pathname.split('/').length - 1];
const [operation, setoperation] = useState<Number>(0)
let interiorStateList = [] let interiorStateList = []
let [isextraOption, setIsextraOption] = useState(false) let [isextraOption, setIsextraOption] = useState(false)
const [platType, setplatType] = useState(1) //需求对接类型 const [platType, setplatType] = useState(1) //需求对接类型
...@@ -293,8 +295,10 @@ const detailInfo: React.FC<parmas> = (props) => { ...@@ -293,8 +295,10 @@ const detailInfo: React.FC<parmas> = (props) => {
//在这做逻辑判断 判断路由 是由哪个页面进来的 //在这做逻辑判断 判断路由 是由哪个页面进来的
useEffect(() => { useEffect(() => {
let pathname = history.location.pathname
init() init()
if(type === 'detail') {
setoperation(1)
}
}, []) }, [])
const init = () => { const init = () => {
PublicApi.getOrderRequisitionFormDetails({ id: id }).then(res => { PublicApi.getOrderRequisitionFormDetails({ id: id }).then(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