Bladeren bron

提交相关代码

Lijy 6 maanden geleden
bovenliggende
commit
f2133ede12

+ 1 - 1
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/components/common/pullDownSelector.vue

@@ -168,7 +168,7 @@ function confirmClick() {
 onBeforeUpdate(() => {
   checkboxRefs.value = [];
 });
-
+console.log(props, '<=== ')
 onMounted(() => {
   selectChecked.value = props.multipleChoice ? [] : null;
   const isItAnArray = Array.isArray(props.options);

+ 6 - 1
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/tasks/addEditor.vue

@@ -62,7 +62,7 @@
             {{ vantFormVal.contactsIdName }}
           </template>
         </van-field>
-        <van-field v-model="vantFormVal.executorId" name="executorId" label="执行人" placeholder="请选择" is-link readonly class="resetStyles"
+        <van-field v-model="vantFormVal.executorId" name="executorId" label="执行人" placeholder="请选择" is-link readonly class="resetStyles" :disabled="!vantFormVal.priority && vantFormVal.priority != 0"
           @click="showSelectionBox('executorId', allContactsList)">
           <template #input v-if="vantFormVal.executorIdName && vantFormVal.executorIdName.length > 0">
             <TranslationComponent :openId="vantFormVal.executorIdName" />
@@ -429,6 +429,11 @@ function initializeData() {
     }
   })
   formVal.value = props.formValue
+  if((taskType || taskType == 0) && taskType != 3) {
+    const filed = taskType == 0 ? 'customId' : taskType == 1 ? 'businessOpportunityId' : taskType == 2 ? 'orderId' : 'clueId'
+    const value = taskType == 0 ? customId : taskType == 1 ? businessOpportunityId : taskType == 2 ? orderId : clueId
+    getContactData(filed, value)
+  }
 }
 
 useLifecycle({