Преглед изворни кода

【服务项目维护】机构名称填了不显示

张田田 пре 10 месеци
родитељ
комит
60c80ced6c
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/service/AddItems.vue

+ 3 - 3
src/service/AddItems.vue

@@ -46,6 +46,7 @@ const { loading: branchLoading } = useRequest(branchMethod).onSuccess(({ data })
   branch.value = to(data);
 });
 const form = reactive<SystemModel>({
+  institutionName: '',
   conditioningProgramType: '',
   conditioningProgramSupplierId: '',
   institutionId: '',
@@ -94,14 +95,12 @@ function getisOffline(e: any, newOffline: any, newDelivery: any, newType: any) {
   let filterSupplierArr = supplierArr.value.filter((item: any) => item.id === e);
   if (filterSupplierArr.length > 0) {
     isShowOnline.value = filterSupplierArr.every((items: any) => {
-      console.log(items, 'filterSupplierArr');
       if (newType.length > 0) {
         return items.offlineCPTypes?.includes(newType[0]) && items.onlineCPTypes?.includes(newType[0]);
       } else {
         return false;
       }
     });
-    console.log(isShowOnline.value, 'isShowOnline2222');
     if (isShowOnline.value) {
       if (newOffline) {
         onlineArr.value = [newOffline];
@@ -135,7 +134,6 @@ function getisOffline(e: any, newOffline: any, newDelivery: any, newType: any) {
     onlineArr.value = [];
     deliverArr.value = [];
   }
-  console.log(isShowOnline.value, 'isShowOnline');
 }
 watch(
   [() => form.conditioningProgramType, () => form.institutionId, () => form.conditioningProgramSupplierId, () => form.isOffline, () => form.isDelivery],
@@ -169,6 +167,7 @@ function doSubmit() {
   formRef.value
     ?.validate()
     .then(() => {
+     
       form.photo = fileList.value[0]?.response?.url || '';
       submit(form);
     })
@@ -295,6 +294,7 @@ function getConditioningProgramSupplier(value: any) {
 }
 function handleSelect(value: string, node: any, extra: any) {
   form.institutionId = value;
+  form.institutionName = node.label;
 }
 </script>