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

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

parent 7e8cfbbf
import { ISchema} from '@formily/antd'
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'
/**
......@@ -250,7 +250,7 @@ export const enquieryOfferSearchSchema: ISchema = {
},
"x-component-props":{
placeholder:'搜索',
placeholder:'报价单号',
align: 'flex-left',
}
}
......@@ -282,43 +282,37 @@ export const enquieryOfferSearchSchema: ISchema = {
requisitionFormNo:{
type:'string',
"x-component-props":{
placeholder:'对应需求单号'
placeholder:'需求单号'
}
},
quotationSummary:{
type:'string',
"x-component-props":{
placeholder:'摘要'
placeholder:'报价单摘要'
}
},
demandMembers:{
type:'string',
"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:{
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":{
placeholder:'请选择单据时间'
},
......
......@@ -51,13 +51,15 @@ interface parmas {
freightPrice: number,
settlementWay: string,
pagetype?: any,
operation?: number
operation?: any
}
const detailInfo: React.FC<parmas> = (props) => {
const ref = useRef<any>({})
const { pagetype, operation } = props;
// const [pagetype, setpagetype] = useState(history.location.query.page_type)
const { pagetype } = props;
const { pathname } = history.location;
const type = pathname.split('/')[pathname.split('/').length - 1];
const [operation, setoperation] = useState<Number>(0)
let interiorStateList = []
let [isextraOption, setIsextraOption] = useState(false)
const [platType, setplatType] = useState(1) //需求对接类型
......@@ -293,8 +295,10 @@ const detailInfo: React.FC<parmas> = (props) => {
//在这做逻辑判断 判断路由 是由哪个页面进来的
useEffect(() => {
let pathname = history.location.pathname
init()
if(type === 'detail') {
setoperation(1)
}
}, [])
const init = () => {
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