|
@@ -45,22 +45,16 @@ export default withLayout(() => {
|
45
|
45
|
const submitForm = (data) => {
|
46
|
46
|
data = data || []
|
47
|
47
|
let params = []
|
48
|
|
- let budgetCheck = false
|
49
|
48
|
data.map((item) => {
|
50
|
49
|
if (item.key === 'budget') {
|
51
|
|
- budgetCheck = true
|
52
|
50
|
params.push({ ...item, key: 'minPrice', result: CurrentDemandId === 2 ? item.options[0] : item.options[0] * 10000 })
|
53
|
|
- params.push({ ...item, key: 'maxPrice', result: CurrentDemandId === 2 ? item.result : item.result * 10000 })
|
|
51
|
+ params.push({ ...item, key: 'maxPrice', result: CurrentDemandId === 2 ? item.result === '' ? 5000000 : item.result : item.result === '' ? 5000000 : item.result * 10000 })
|
54
|
52
|
} else {
|
55
|
53
|
if (item.result !== '' || item.resultId !== null) {
|
56
|
54
|
params.push(item)
|
57
|
55
|
}
|
58
|
56
|
}
|
59
|
57
|
})
|
60
|
|
- if(!budgetCheck) {
|
61
|
|
- params.push({question: '你的预算是多少?', result: 0, key: 'minPrice' })
|
62
|
|
- params.push({question: '你的预算是多少?', result: 5000000, key: 'maxPrice' })
|
63
|
|
- }
|
64
|
58
|
params.push({ question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
|
65
|
59
|
if(CurrentDemandId !== 3) {
|
66
|
60
|
params.push({ question: '意向区域', result: AreaInfo.id, key: 'intentArea' })
|