Explorar o código

feature_20250912_服务商申请客资接入

zhujindu hai 2 meses
pai
achega
523ec72cb7
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      src/mixin/clew.js

+ 6 - 4
src/mixin/clew.js

@@ -43,10 +43,6 @@ export const clewMixins = {
               // 选中的题目Y:选中,N:未选中
               if (customerClueOptionList[i].value == 'Y') {
                 if (customerClueOptionList[i].customerClueItemList) {
-                  console.log(customerClueOptionList[i].customerClueItemList);
-                  if (optionList[val].customerClueName == '填写服务商代码(例:FSQ0000031)') {
-                    optionList[val].answerValue = 'FSQ' + optionList[val].answerValue;
-                  }
                   // 必填校验
                   this.isRequiredFlag(customerClueOptionList[i].customerClueItemList);
                   // 赋值选中题
@@ -80,6 +76,12 @@ export const clewMixins = {
           if (key == 'customerClueOptionList' || key == 'customerClueItemList') {
             num = num + 1;
           }
+          // 填写服务商代码 answerValue 添加 FSQ
+          if (key == 'customerClueName') {
+            if (obj[key] == '填写服务商代码(例:FSQ0000031)') {
+              obj['answerValue'] = 'FSQ' + obj['answerValue'];
+            }
+          }
           copy[key] = this.deepClone(obj[key], num);
         }
       }