Browse Source

Merge branch 'feature_20250912_服务商申请客资接入' into uat(dev)

zhujindu 2 months ago
parent
commit
94b96f5bb8
3 changed files with 47 additions and 11 deletions
  1. 6 0
      src/mixin/clew.js
  2. 1 0
      src/views/clew/clewent.vue
  3. 40 11
      src/views/clew/complaintDetail/radioGroup.vue

+ 6 - 0
src/mixin/clew.js

@@ -76,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);
         }
       }

+ 1 - 0
src/views/clew/clewent.vue

@@ -770,6 +770,7 @@ export default {
           followUpResult: this.infoData.followUpResult,
           customerClueItemList: data.customerClueItemList,
         };
+        return;
         this.toastLoading(0, '加载中...', true);
         insertCustomerClueAnswer(form).then((res) => {
           this.toastLoading().clear();

+ 40 - 11
src/views/clew/complaintDetail/radioGroup.vue

@@ -30,16 +30,32 @@
           {{ val.customerClueName }}
         </div>
         <template v-if="parentOptionList.searchValue == val.itemOptionParentId">
-          <van-field
-            v-model="val.answerValue"
-            :placeholder="val.remark"
-            :minTextLength="val.minTextLength"
-            autosize
-            type="textarea"
-            :class="{
-              fieldInput: true,
-              rulesClass: val.answerValue != null && val.answerValue.length < val.minTextLength,
-            }" />
+          <template v-if="val.customerClueName == '填写服务商代码(例:FSQ0000031)'">
+            <div class="fws">
+              <van-field class="fwsLeft" v-model="fws" disabled />
+              <van-field
+                class="fwsRight"
+                v-model="val.answerValue"
+                :placeholder="val.remark"
+                type="number"
+                :class="{
+                  fieldInput: true,
+                  rulesClass: val.answerValue != null && val.answerValue.length < val.minTextLength,
+                }" />
+            </div>
+          </template>
+          <template v-else>
+            <van-field
+              v-model="val.answerValue"
+              :placeholder="val.remark"
+              :minTextLength="val.minTextLength"
+              autosize
+              type="textarea"
+              :class="{
+                fieldInput: true,
+                rulesClass: val.answerValue != null && val.answerValue.length < val.minTextLength,
+              }" />
+          </template>
           <span
             class="rulesErrorMessage"
             v-if="val.answerValue != null && val.answerValue.length < val.minTextLength">
@@ -143,7 +159,9 @@ export default {
     },
   },
   data() {
-    return {};
+    return {
+      fws: 'FSQ',
+    };
   },
   watch: {
     clueOptionList: {
@@ -289,5 +307,16 @@ export default {
       padding: 3px 0;
     }
   }
+  .fws {
+    display: flex;
+    flex-direction: row;
+    width: 90%;
+    padding: 5px 0;
+    .fwsLeft {
+      width: 50px;
+      font-weight: 600;
+      color: #000;
+    }
+  }
 }
 </style>