Forráskód Böngészése

feature_20250912_服务商申请客资接入

zhujindu 2 hónapja
szülő
commit
0c654fadc9

+ 4 - 0
src/mixin/clew.js

@@ -43,6 +43,10 @@ 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);
                   // 赋值选中题

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

@@ -764,6 +764,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>