|
@@ -12,6 +12,7 @@ import {
|
12
|
12
|
API_SURE_SIGN,
|
13
|
13
|
API_SURE_BUY,
|
14
|
14
|
API_CUSTOMER_DETAILINFO,
|
|
15
|
+ API_SURE_ALLPAYMENT,
|
15
|
16
|
} from "@/constants/api";
|
16
|
17
|
import "./index.scss";
|
17
|
18
|
import { ROLE_CODE } from "@/constants/user";
|
|
@@ -325,6 +326,50 @@ export default withLayout((props) => {
|
325
|
326
|
Taro.navigateBack({ delta: 1 });
|
326
|
327
|
}, 2000);
|
327
|
328
|
});
|
|
329
|
+ } else if (CurrentStatusId === 6) {
|
|
330
|
+ let params = {};
|
|
331
|
+ for (let key in FormData) {
|
|
332
|
+ if (key !== "dividendsName" && key !== "dividendsPer") {
|
|
333
|
+ params[key] = { ...FormData }[key];
|
|
334
|
+ console.log(
|
|
335
|
+ "🚀 ~ file: index.jsx ~ line 202 ~ ToSubmit ~ FormData",
|
|
336
|
+ FormData
|
|
337
|
+ );
|
|
338
|
+ }
|
|
339
|
+ }
|
|
340
|
+ params.dividendsName = `${FormData.dividendsName}|${FormData.dividendsPer}%`;
|
|
341
|
+
|
|
342
|
+ console.log({
|
|
343
|
+ customerId: id,
|
|
344
|
+ customerSignatory: {
|
|
345
|
+ ...params,
|
|
346
|
+ channelId:
|
|
347
|
+ channelId === "null" || channelId === null ? "" : channelId,
|
|
348
|
+ channelCustomerId,
|
|
349
|
+ },
|
|
350
|
+ totalCommission:Number(params.totalCommission) * 100,
|
|
351
|
+ currentCommission:Number(params.currentCommission) * 100
|
|
352
|
+ },']]]]');
|
|
353
|
+ fetch({
|
|
354
|
+ url: API_SURE_ALLPAYMENT,
|
|
355
|
+ method: "put",
|
|
356
|
+ payload: {
|
|
357
|
+ customerId: id,
|
|
358
|
+ customerSignatory: {
|
|
359
|
+ ...params,
|
|
360
|
+ channelId:
|
|
361
|
+ channelId === "null" || channelId === null ? "" : channelId,
|
|
362
|
+ channelCustomerId,
|
|
363
|
+ },
|
|
364
|
+ totalCommission:Number(params.totalCommission) * 100,
|
|
365
|
+ currentCommission:Number(params.currentCommission) * 100
|
|
366
|
+ },
|
|
367
|
+ }).then(() => {
|
|
368
|
+ Taro.showToast({ title: "修改成功", icon: "none", duration: 2000 });
|
|
369
|
+ setTimeout(() => {
|
|
370
|
+ Taro.navigateBack({ delta: 1 });
|
|
371
|
+ }, 2000);
|
|
372
|
+ });
|
328
|
373
|
}
|
329
|
374
|
};
|
330
|
375
|
|