|
@@ -56,12 +56,12 @@ export default withLayout((props) => {
|
56
|
56
|
url = API_CHANNEL_REPORT
|
57
|
57
|
}
|
58
|
58
|
let params = {}
|
59
|
|
- if(type === 'consultant') {
|
|
59
|
+ if (type === 'consultant') {
|
60
|
60
|
params = { name: FormData.name, phone: FormData.phone, sex: SexId }
|
61
|
61
|
} else {
|
62
|
62
|
params = { ...FormData, sex: SexId, intention: BuildingId, realtyConsultant: CardId }
|
63
|
63
|
}
|
64
|
|
- if(type === 'estateAgent') {
|
|
64
|
+ if (type === 'estateAgent') {
|
65
|
65
|
params.channelCustomerId = PersonId
|
66
|
66
|
params.channelId = user.userInfo.person.channelId
|
67
|
67
|
params.buildingId = BuildingId
|
|
@@ -144,11 +144,11 @@ export default withLayout((props) => {
|
144
|
144
|
Taro.showToast({ title: '请填写正确的客户电话', icon: 'none' })
|
145
|
145
|
return false
|
146
|
146
|
}
|
147
|
|
- if (BuildingId === null && type !== 'consultant') {
|
|
147
|
+ if (BuildingId === null) {
|
148
|
148
|
Taro.showToast({ title: '请选择客户的意向楼盘', icon: 'none' })
|
149
|
149
|
return false
|
150
|
150
|
}
|
151
|
|
- if (CardId === null && type !== 'consultant') {
|
|
151
|
+ if (CardId === null) {
|
152
|
152
|
Taro.showToast({ title: '请选择内场接待', icon: 'none' })
|
153
|
153
|
return false
|
154
|
154
|
}
|
|
@@ -187,29 +187,30 @@ export default withLayout((props) => {
|
187
|
187
|
<text className='iconfont icon-jiantoudown'></text>
|
188
|
188
|
</view>
|
189
|
189
|
|
|
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
|
+
|
190
|
211
|
{
|
191
|
212
|
type !== 'consultant' &&
|
192
|
213
|
<Block>
|
193
|
|
- <text>意向楼盘</text>
|
194
|
|
- <view className='FormLine flex-h'>
|
195
|
|
- <view className='flex-item'>
|
196
|
|
- <Picker range-key='name' onChange={PickerChange} value={0} range={BuildingList}>
|
197
|
|
- <text>{BuildingName || '请选择'}</text>
|
198
|
|
- </Picker>
|
199
|
|
- </view>
|
200
|
|
- </view>
|
201
|
|
-
|
202
|
|
- <text>内场接待(选填)</text>
|
203
|
|
- <view className='FormLine flex-h'>
|
204
|
|
- <view className='flex-item'>
|
205
|
|
- <Picker range-key='name' onChange={CardPickerChange} value={0} range={CardList}>
|
206
|
|
- <text>{CardName || '请选择'}</text>
|
207
|
|
- </Picker>
|
208
|
|
- </view>
|
209
|
|
- <Image mode='heightFix' src={defaultSpecialImage}></Image>
|
210
|
|
- <text>选择</text>
|
211
|
|
- </view>
|
212
|
|
-
|
213
|
214
|
<text>备注</text>
|
214
|
215
|
<view className='FormLine flex-h'>
|
215
|
216
|
<view className='flex-item'>
|