|
@@ -59,7 +59,7 @@ export default withLayout((props) => {
|
59
|
59
|
if (type === 'consultant') {
|
60
|
60
|
params = { name: FormData.name, phone: FormData.phone, sex: SexId }
|
61
|
61
|
} else {
|
62
|
|
- params = { ...FormData, sex: SexId, intention: BuildingId, realtyConsultant: CardId }
|
|
62
|
+ params = { ...FormData, sex: SexId, buildingId: BuildingId, realtyConsultant: CardId }
|
63
|
63
|
}
|
64
|
64
|
if (type === 'estateAgent') {
|
65
|
65
|
params.channelCustomerId = PersonId
|
|
@@ -144,14 +144,10 @@ export default withLayout((props) => {
|
144
|
144
|
Taro.showToast({ title: '请填写正确的客户电话', icon: 'none' })
|
145
|
145
|
return false
|
146
|
146
|
}
|
147
|
|
- if (BuildingId === null) {
|
|
147
|
+ if (BuildingId === null && type !== 'consultant') {
|
148
|
148
|
Taro.showToast({ title: '请选择客户的意向楼盘', icon: 'none' })
|
149
|
149
|
return false
|
150
|
150
|
}
|
151
|
|
- if (CardId === null) {
|
152
|
|
- Taro.showToast({ title: '请选择内场接待', icon: 'none' })
|
153
|
|
- return false
|
154
|
|
- }
|
155
|
151
|
if (!CanSubmit) {
|
156
|
152
|
setCanSubmit(true)
|
157
|
153
|
}
|
|
@@ -180,37 +176,36 @@ export default withLayout((props) => {
|
180
|
176
|
<text>性别</text>
|
181
|
177
|
<view className='FormLine flex-h'>
|
182
|
178
|
<view className='flex-item'>
|
183
|
|
- <Picker range-key='name' onChange={SexPickerChange} value={0} range={SexList}>
|
|
179
|
+ <Picker range-key='name' onChange={SexPickerChange} value={null} range={SexList}>
|
184
|
180
|
<text>{SexName || '请选择'}</text>
|
185
|
181
|
</Picker>
|
186
|
182
|
</view>
|
187
|
183
|
<text className='iconfont icon-jiantoudown'></text>
|
188
|
184
|
</view>
|
189
|
185
|
|
190
|
|
-
|
191
|
|
- <text>意向楼盘</text>
|
192
|
|
- <view className='FormLine flex-h'>
|
193
|
|
- <view className='flex-item'>
|
194
|
|
- <Picker range-key='name' onChange={PickerChange} value={0} range={BuildingList}>
|
195
|
|
- <text>{BuildingName || '请选择'}</text>
|
196
|
|
- </Picker>
|
197
|
|
- </view>
|
198
|
|
- </view>
|
199
|
|
-
|
200
|
|
- <text>内场接待(选填)</text>
|
201
|
|
- <view className='FormLine flex-h'>
|
202
|
|
- <view className='flex-item'>
|
203
|
|
- <Picker range-key='name' onChange={CardPickerChange} value={0} range={CardList}>
|
204
|
|
- <text>{CardName || '请选择'}</text>
|
205
|
|
- </Picker>
|
206
|
|
- </view>
|
207
|
|
- <Image mode='heightFix' src={defaultSpecialImage}></Image>
|
208
|
|
- <text>选择</text>
|
209
|
|
- </view>
|
210
|
|
-
|
211
|
186
|
{
|
212
|
187
|
type !== 'consultant' &&
|
213
|
188
|
<Block>
|
|
189
|
+ <text>意向楼盘</text>
|
|
190
|
+ <view className='FormLine flex-h'>
|
|
191
|
+ <view className='flex-item'>
|
|
192
|
+ <Picker range-key='name' onChange={PickerChange} value={null} range={BuildingList}>
|
|
193
|
+ <text>{BuildingName || '请选择'}</text>
|
|
194
|
+ </Picker>
|
|
195
|
+ </view>
|
|
196
|
+ </view>
|
|
197
|
+
|
|
198
|
+ <text>内场接待(选填)</text>
|
|
199
|
+ <view className='FormLine flex-h'>
|
|
200
|
+ <view className='flex-item'>
|
|
201
|
+ <Picker range-key='name' onChange={CardPickerChange} value={null} range={CardList}>
|
|
202
|
+ <text>{CardName || '请选择'}</text>
|
|
203
|
+ </Picker>
|
|
204
|
+ </view>
|
|
205
|
+ <Image mode='heightFix' src={defaultSpecialImage}></Image>
|
|
206
|
+ <text>选择</text>
|
|
207
|
+ </view>
|
|
208
|
+
|
214
|
209
|
<text>备注</text>
|
215
|
210
|
<view className='FormLine flex-h'>
|
216
|
211
|
<view className='flex-item'>
|