|
@@ -39,6 +39,7 @@ export default withLayout((props) => {
|
39
|
39
|
const [CurrnetConsultant, setCurrnetConsultant] = useState({})
|
40
|
40
|
|
41
|
41
|
const [SuccessDate, setSuccessDate] = useState(null)
|
|
42
|
+ const [channelCustomerId, setChannelCustomerId] = useState(null)
|
42
|
43
|
|
43
|
44
|
const [StatusList] = useState([
|
44
|
45
|
{ name: '认筹', id: 3 },
|
|
@@ -68,6 +69,7 @@ export default withLayout((props) => {
|
68
|
69
|
if(CurrentStatusId - 0 === 3) {
|
69
|
70
|
setFormData({ ...FormData, ...res?.customerPreparatory })
|
70
|
71
|
}
|
|
72
|
+ setChannelCustomerId(res?.channelCustomer?.channelCustomerId)
|
71
|
73
|
setRenChouData({ ...RenChouData, ...res?.customerPreparatory })
|
72
|
74
|
if((res.customerSignatory || []).length) {
|
73
|
75
|
let customerSignatory = res.customerSignatory[0]
|
|
@@ -157,7 +159,7 @@ export default withLayout((props) => {
|
157
|
159
|
|
158
|
160
|
const ToSubmit = () => {
|
159
|
161
|
if (CurrentStatusId === 3) {
|
160
|
|
- fetch({ url: API_SURE_CHIP, method: 'put', payload: { customerId: id, customerPreparatory: { ...FormData, channelId: channelId === 'null' || channelId === null ? '' : channelId } } }).then(() => {
|
|
162
|
+ fetch({ url: API_SURE_CHIP, method: 'put', payload: { customerId: id, customerPreparatory: { ...FormData, channelId: channelId === 'null' || channelId === null ? '' : channelId, channelCustomerId, } } }).then(() => {
|
161
|
163
|
Taro.showToast({ title: '修改成功', icon: 'none', duration: 2000 })
|
162
|
164
|
setTimeout(() => {
|
163
|
165
|
Taro.navigateBack({ delta: 1 })
|
|
@@ -171,7 +173,7 @@ export default withLayout((props) => {
|
171
|
173
|
}
|
172
|
174
|
}
|
173
|
175
|
params.dividendsName = `${FormData.dividendsName}|${FormData.dividendsPer}%`
|
174
|
|
- fetch({ url: API_SURE_SIGN, method: 'put', payload: { customerId: id, customerSignatory: { ...params, channelId: channelId === 'null' || channelId === null ? '' : channelId } } }).then(() => {
|
|
176
|
+ fetch({ url: API_SURE_SIGN, method: 'put', payload: { customerId: id, customerSignatory: { ...params, channelId: channelId === 'null' || channelId === null ? '' : channelId, channelCustomerId, } } }).then(() => {
|
175
|
177
|
Taro.showToast({ title: '修改成功', icon: 'none', duration: 2000 })
|
176
|
178
|
setTimeout(() => {
|
177
|
179
|
Taro.navigateBack({ delta: 1 })
|
|
@@ -185,7 +187,7 @@ export default withLayout((props) => {
|
185
|
187
|
}
|
186
|
188
|
}
|
187
|
189
|
params.dividendsName = `${FormData.dividendsName}|${FormData.dividendsPer}%`
|
188
|
|
- fetch({ url: API_SURE_BUY, method: 'put', payload: { customerId: id, customerSignatory: { ...params, channelId: channelId === 'null' || channelId === null ? '' : channelId } } }).then(() => {
|
|
190
|
+ fetch({ url: API_SURE_BUY, method: 'put', payload: { customerId: id, customerSignatory: { ...params, channelId: channelId === 'null' || channelId === null ? '' : channelId, channelCustomerId, } } }).then(() => {
|
189
|
191
|
Taro.showToast({ title: '修改成功', icon: 'none', duration: 2000 })
|
190
|
192
|
setTimeout(() => {
|
191
|
193
|
Taro.navigateBack({ delta: 1 })
|