张田田 před 8 měsíci
rodič
revize
7b3772ae2f

+ 0 - 4
src/components/EditEquirement.vue

@@ -84,7 +84,6 @@ const deviceTypesLoading = ref(false);
 async function getDeviceType() {
   deviceTypesLoading.value = true;
   const res = await getDictionaryMethod('fdhb_device_type');
-  // console.log(res, '设备类型');
   if (res && res.length > 0) {
     deviceTypes.value = res.map((item: any) => ({
       id: item.value,
@@ -99,7 +98,6 @@ const insLoading = ref(false);
 async function getInstitution(orgId: string | number) {
   insLoading.value = true;
   const res = await branchMethod(1, 0, Number(orgId));
-  console.log(res, '获取机构');
   if (res && res.length > 0) {
     insArr.value = res;
   }
@@ -221,8 +219,6 @@ const formProps = reactive<VxeFormProps>({
 
 const formEmits: VxeFormListeners = {
   submit({ data }) {
-    console.log(data, '提交数据');
-
     // 验证必填字段
     if (!data.deviceType) {
       notification.error({

+ 0 - 2
src/components/EditMoreEquirement.vue

@@ -5,7 +5,6 @@ import EditOrganization from '@/components/EditOrganization.vue';
 import EditProcesses from '@/components/EditProcesses.vue';
 
 function editOrganization() {
-  console.log('修改所属组织');
   VxeUI.modal.open({
     title: '修改所属组织',
     content: '请选择所属组织',
@@ -25,7 +24,6 @@ function editOrganization() {
 }
 
 function editProcessConfig() {
-  console.log('修改流程配置');
   VxeUI.modal.open({
     title: '修改流程配置',
     content: '请选择流程配置',

+ 1 - 21
src/components/EditOrganization.vue

@@ -17,7 +17,6 @@ const emits = defineEmits<{
 const model = ref<EquirementModel>({ ...defaultModel });
 
 watchEffect(() => {
-  console.log(props.data, 'props.data');
   if (props.data) {
     model.value = { ...defaultModel, ...props.data };
   }
@@ -45,7 +44,6 @@ const insLoading = ref(false);
 async function getInstitution(orgId: string | number) {
   insLoading.value = true;
   const res = await branchMethod(1, 0, Number(orgId));
-  console.log(res, '获取机构');
   if (res && res.length > 0) {
     insArr.value = res;
   }
@@ -130,7 +128,6 @@ const formProps = reactive<VxeFormProps>({
 
 const formEmits: VxeFormListeners = {
   submit({ data }) {
-    console.log(data, '提交数据');
     if (!data?.orgId) {
       notification.error({ message: '请选择需要修改的组织' });
       return;
@@ -140,7 +137,7 @@ const formEmits: VxeFormListeners = {
       return;
     }
     // const selectedOrg = branch.value.find((item) => item.value === model.value.orgId);
-    
+
     emits('submit', {
       orgId: data?.orgId,
       institutionId: data?.institutionId,
@@ -153,24 +150,7 @@ const formEmits: VxeFormListeners = {
 function cancel() {
   VxeUI.modal.close('import-organization');
 }
-
-// 添加submitting状态
 const submitting = ref(false);
-
-// const handleSubmit = () => {
-
-//   // 假设 model.value.newOrganization 是选中的组织id
-//   const selectedOrg = branch.value.find(item => item.value === model.value.newOrganization);
-//   console.log(selectedOrg, 'selectedOrg');
-//   emits('submit', {
-//     institutionId: selectedOrg.value,
-//     institutionName: selectedOrg.label
-//   });
-// };
-
-onBeforeMount(async () => {
-  // 不需要在这里处理 props.data,因为它是设备数组,不是表单数据
-});
 </script>
 
 <template>

+ 0 - 2
src/components/EditProcesses.vue

@@ -75,7 +75,6 @@ const formProps = reactive<VxeFormProps>({
 
 const formEmits: VxeFormListeners = {
   submit({ data }) {
-    console.log(data, '提交数据');
     submit(data).then(() => {
       notification.success({
         message: '操作成功',
@@ -86,7 +85,6 @@ const formEmits: VxeFormListeners = {
 };
 
 function cancel() {
-  console.log('取消');
   VxeUI.modal.close('edit-process-config');
 }
 

+ 0 - 3
src/components/EditSupplier.vue

@@ -25,7 +25,6 @@ watchEffect(() => {
   model.value = {
     collaborateDepts
   }
-  console.log(model.value, 'model');
 });
 
 const branch = ref<any[]>([]);
@@ -41,7 +40,6 @@ const { loading: branchLoading } = useRequest(branchMethod).onSuccess(({ data })
     }) : [];
   }
   branch.value = to(data);
-  console.log(branch.value, 'branch');
 });
 const { loading, send: load } = useRequest((params) => supplierMethod(1, 10, params), {
   immediate: false,
@@ -158,7 +156,6 @@ const formEmits: VxeFormListeners<FormModel> = {
         deptName: item.label
       }
     })
-    console.log(data, '转换之后的新增');
     submit(data).then(() => {
       notification.success({
         message: '操作成功',

+ 0 - 1
src/components/Follow.vue

@@ -106,7 +106,6 @@ const symptomsValue = ref({
 
 // 处理父级点击
 const handleParentClick = (name: string) => {
-  console.log(symptomsValue.value, '点击症状选择');
   if (symptomsValue.value.parent === name) {
     // 如果点击的是当前选中的父级,则清空选择
     symptomsValue.value = {

+ 0 - 3
src/components/Institution.vue

@@ -26,9 +26,6 @@ const gridOptions = reactive<VxeGridProps<FollowModel>>({
 });
 // 表格引用
 const gridRef = ref<VxeGridInstance>();
-onMounted(() => {
-  console.log(props.data, 'props.data');
-});
 </script>
 
 <template>

+ 0 - 16
src/components/SearchableSelect.vue

@@ -160,7 +160,6 @@ watch(
 
 let searchTimer: number | null = null;
 const debouncedSearch = async (keyword: string) => {
-  console.log(keyword, 'keyword==>');
   if (searchTimer) clearTimeout(searchTimer);
 
   searchTimer = setTimeout(async () => {
@@ -189,7 +188,6 @@ const debouncedSearch = async (keyword: string) => {
     isLoading.value = true;
     try {
       const result = await cpMedicinesMethod(1, 10, { keyword });
-      console.log(result, 'result==>');
       allOptions.value = deduplicateOptions(result.data);
       currentPage.value = 1;
       hasMore.value = allOptions.value.length < result.total;
@@ -199,7 +197,6 @@ const debouncedSearch = async (keyword: string) => {
       lastViewedOptions.value = [...allOptions.value];
       lastViewedPage.value = currentPage.value;
       lastViewedHasMore.value = hasMore.value;
-      console.log('搜索成功保存状态:', lastViewedOptions.value.length, '条数据');
     } catch (error) {
       console.error('搜索失败:', error);
       allOptions.value = [];
@@ -216,19 +213,16 @@ const handleSearch = (value: string) => {
 };
 
 const handleChange = (value: any) => {
-  console.log(value, 'value==>', allOptions.value);
   if (value === '__load_more__' || value === '__initial_loading__' || value === '__loading__' || value === undefined) return;
 
   selectedValue.value = value;
   emit('update:modelValue', value);
 
   const selectedOption = allOptions.value.find((option) => option.name === value) || null;
-  console.log(selectedOption, 'selectedOption==>', value);
   emit('change', value, selectedOption);
 };
 
 const handleDropdownVisibleChange = (visible: boolean) => {
-  console.log(visible, 'visible==>', allOptions.value.length, isLoading.value);
 
   if (visible) {
     // 首次展开时,如果没有数据就显示加载状态
@@ -236,7 +230,6 @@ const handleDropdownVisibleChange = (visible: boolean) => {
       isLoading.value = true;
       cpMedicinesMethod(1, 10, { keyword: searchKeyword.value })
         .then((result) => {
-          console.log(result, '首次展开获取的result');
           if (result && result.data && result.data.length > 0) {
             allOptions.value = deduplicateOptions(result.data);
             currentPage.value = 1;
@@ -248,7 +241,6 @@ const handleDropdownVisibleChange = (visible: boolean) => {
             lastViewedOptions.value = [...allOptions.value];
             lastViewedPage.value = currentPage.value;
             lastViewedHasMore.value = hasMore.value;
-            console.log('首次加载保存状态:', lastViewedOptions.value.length, '条数据');
           }
         })
         .catch((error) => {
@@ -261,13 +253,11 @@ const handleDropdownVisibleChange = (visible: boolean) => {
     }
   } else {
     // 关闭下拉框时,保存当前状态作为上一次浏览状态
-    console.log('关闭下拉框,当前数据条数:', allOptions.value.length);
     if (allOptions.value.length > 0) {
       hasInitialData.value = true;
       lastViewedOptions.value = [...allOptions.value];
       lastViewedPage.value = currentPage.value;
       lastViewedHasMore.value = hasMore.value;
-      console.log('保存状态:', lastViewedOptions.value.length, '条数据');
     }
     searchKeyword.value = '';
   }
@@ -294,17 +284,12 @@ const loadMore = async () => {
   isPreloading.value = true;
   try {
     const nextPage = currentPage.value + 1;
-    console.log('当前页:', currentPage.value, '下一页:', nextPage);
-    console.log('当前数据条数:', allOptions.value.length);
 
     const result = await cpMedicinesMethod(nextPage, 10, { keyword: searchKeyword.value });
-    console.log('新获取数据:', result.data);
-    console.log('新数据条数:', result.data.length);
 
     // 批量更新数据,避免逐条渲染
     batchUpdateOptions(result.data);
 
-    console.log('合并后数据条数:', allOptions.value.length);
 
     // 立即更新状态
     currentPage.value = nextPage;
@@ -315,7 +300,6 @@ const loadMore = async () => {
     lastViewedOptions.value = [...allOptions.value];
     lastViewedPage.value = currentPage.value;
     lastViewedHasMore.value = hasMore.value;
-    console.log('loadMore保存状态:', lastViewedOptions.value.length, '条数据');
   } catch (error) {
     console.error('加载更多失败:', error);
   } finally {

+ 2 - 13
src/pages/index/care/conditioningRecord.vue

@@ -6,8 +6,7 @@ import type { ConditioningRecordListModel, ConditioningRecordListQuery } from '@
 
 import ServicePackageDetail from '@/service/ServicePackageDetail.vue';
 import CareProcess from '@/service/CareProgress.vue';
-import { usePagination, useRequest } from 'alova/client';
-import { notification } from 'ant-design-vue';
+import { usePagination } from 'alova/client';
 
 import { type VxeFormListeners, type VxeFormProps, type VxeGridInstance, type VxeGridListeners, type VxeGridProps, VxeUI } from 'vxe-table';
 
@@ -152,12 +151,7 @@ function conditioningProcess(model?: ConditioningRecordListModel) {
     title: model?.id ? `调养过程` : `新增调养过程`,
     height:window.innerHeight,
     width:window.innerWidth,
-    fullscreen:true,  
-    // height: 700,
-    // width: 1200,
-    // position: {
-    //   top: Math.min(100, window.innerHeight * 0.1),
-    // },
+    fullscreen:true,
     escClosable: true,
     destroyOnClose: true,
     id: `conditioning-process-modal`,
@@ -185,11 +179,6 @@ function serviceDetail(model?: ConditioningRecordListModel, index?: number) {
     height:window.innerHeight,
     width:window.innerWidth,  
     fullscreen:true,
-    // height: 700,
-    // width: 1200,
-    // position: {
-    //   top: Math.min(100, window.innerHeight * 0.1),
-    // },
     escClosable: true,
     destroyOnClose: true,
     slots: {

+ 0 - 1
src/pages/index/care/configured.vue

@@ -190,7 +190,6 @@ onSuccess(({ data: { data } }) => {
 async function getDeviceType() {
   deviceTypesLoading.value = true;
   const res = await getDictionaryMethod('fdhb_device_type');
-  console.log(res, '设备类型');
   if (res && res.length > 0) {
     deviceTypes.value = res.map((item: any) => ({
       id: item.label,

+ 0 - 6
src/pages/index/care/institutionService.vue

@@ -218,15 +218,9 @@ function editInstitution(model?: SystemCwModel, index?: number) {
   const types = 'institution';
   VxeUI.modal.open({
     title: model?.id ? `修改机构服务` : `新增机构服务`,
-    // height: 700,
-    // width: 1200,
     height: window.innerHeight,
     width: window.innerWidth,
     fullscreen: true,
-    // position: {
-    //   top: Math.min(100, window.innerHeight * 0.1),
-    //   left: Math.min(100, window.innerWidth * 0.1),
-    // },
     escClosable: true,
     destroyOnClose: true,
     id: `edit-system-service-modal`,

+ 0 - 11
src/pages/index/care/issueService.vue

@@ -5,7 +5,6 @@ import { MinusCircleOutlined, EyeOutlined, EditOutlined } from '@ant-design/icon
 import { notification } from 'ant-design-vue';
 import { message } from 'ant-design-vue';
 import type { OpenConditioningSchemeModel, SystemCwModel } from '@/model/care.model';
-import PatientTagWidget from '@/widgets/PatientTagWidget.vue';
 import AcupointEdit from '@/service/AcupointEdit.vue';
 import ServiceDetail from '@/service/ServiceDetail.vue';
 import {
@@ -31,7 +30,6 @@ import dayjs from 'dayjs';
 import { getPatientHealthRecordsMethod } from '@/request/api/report.api';
 
 type FollowModel = Partial<OpenConditioningSchemeModel>;
-// const props = defineProps<{ data: FollowModel }>();
 
 const form = reactive<FollowModel>({
   id: 0,
@@ -156,11 +154,9 @@ function getPatientRecord(id: any) {
     }
   });
 }
-// const report=ref({})
 async function getCpRecordDetail(id: string) {
   await getCpDetailMethod({ id }).then((res) => {
     formData.items = res?.items ?? [];
-    // form = res;
     form.conditioningWrapName = res?.conditioningWrapName;
     form.estimatedStartDate = res?.estimatedStartDate;
     form.estimatedEndDate = res?.estimatedEndDate;
@@ -1151,7 +1147,6 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
             <span style="margin-left: 16px" v-if="form.phone">电话:</span>
             <span>{{ form.phone }}</span>
           </div>
-          <!-- <div v-if="!form.progress || currentPatient?.status === '1'"> -->
           <div v-else>
             <a-checkbox v-model:checked="deliveryChecked">配送</a-checkbox>
             <template v-if="deliveryChecked">
@@ -1231,7 +1226,6 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
   display: flex;
   flex-direction: row;
   width: 100vw;
-  /* min-height: 100vh; */
   height: var(--page-main-container);
   overflow: hidden;
   background: #fff;
@@ -1251,7 +1245,6 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
   flex: 1 1 0;
   overflow: auto;
   min-height: 0;
-  // 让内容撑满剩余空间
 }
 .patient-item {
   padding: 10px 0;
@@ -1310,9 +1303,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
   flex: none;
   width: 190px;
   border-left: 1px solid #eee;
-  //padding: 16px 8px;
   background: #fafbfc;
-  /* min-height: 100vh; */
   box-sizing: border-box;
   > section {
     margin: 16px 0;
@@ -1352,9 +1343,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
   margin-right: 10px;
 }
 .scroll-content {
-  /* max-height: 600px;  */
   overflow-y: auto;
-  /* 可选:让滚动条更美观 */
   scrollbar-width: thin;
   scrollbar-color: #aaa #f5f5f5;
 }

+ 0 - 7
src/pages/index/care/supplier.vue

@@ -110,7 +110,6 @@ const gridOptions = reactive<VxeGridProps<SupplierModel>>({
     custom: true,
     zoom: true,
     slots: {
-      // buttons: 'handle',
       tools: 'toolbar-extra',
     },
   },
@@ -247,7 +246,6 @@ function deleteSupplier(model: SupplierModel, index: number) {
   });
 }
 function seeSupplyProject(model?: SupplierModel, index?: number) {
-  //   console.log(model, 'seeSupplyProject');
   VxeUI.modal.open({
     id: 'supplyProject-modal',
     title: '供应项目',
@@ -268,7 +266,6 @@ function seeSupplyProject(model?: SupplierModel, index?: number) {
   });
 }
 function seeInstitution(model?: SupplierModel, index?: number) {
-  // console.log(model?.collaborateDepts, '查看合作机构');
   VxeUI.modal.open({
     id: 'institution-modal',
     title: '合作机构',
@@ -289,10 +286,6 @@ function seeInstitution(model?: SupplierModel, index?: number) {
   });
 }
 function editSupplier(model?: SupplierModel, index?: number) {
-  console.log(model, 'model');
-  // if (model?.id && model.collaborateDepts && model.collaborateDepts.length>0) {
-  //   model.collaborateDepts = model?.collaborateDepts?.map((item) => item.deptIds) || [];
-  // }
   VxeUI.modal.open({
     id: 'supplier-modal',
     title: model?.id ? `修改供应商` : `新增供应商`,

+ 1 - 2
src/pages/index/care/systemService.vue

@@ -1,12 +1,11 @@
 <script setup lang="ts">
 import { ref } from 'vue';
-import Institution from '@/components/institution.vue';
 import EditSystemService from '@/service/EditSystemService.vue';
 import type { SystemCwModel, SystemCwQuery } from '@/model/care.model';
 import ServicePackageDetail from '@/service/ServicePackageDetail.vue';
 // 接口数据
 import { getSystemCpListMethod, deleteSystemCwMethod } from '@/request/api/care.api';
-import { usePagination, useRequest } from 'alova/client';
+import { usePagination } from 'alova/client';
 import { notification } from 'ant-design-vue';
 
 import { type VxeFormListeners, type VxeFormProps, type VxeCardInstance, type VxeCardListeners, type VxeCardProps, VxeUI } from 'vxe-pc-ui';

+ 5 - 39
src/pages/index/equipment/registe.vue

@@ -1,20 +1,16 @@
 <script setup lang="ts">
 import { type VxeFormListeners, type VxeFormProps, type VxeGridInstance, type VxeGridListeners, type VxeGridProps, VxeUI } from 'vxe-pc-ui';
-import { list2Groups } from '@/tools/data';
 import { usePagination, useRequest } from 'alova/client';
 import { notification } from 'ant-design-vue';
-import { DatePicker } from 'ant-design-vue';
 import { getDictionaryMethod } from '@/request/api/dictionary.api';
 import dayjs from 'dayjs';
 import EditEquirement from '@/components/EditEquirement.vue';
-import EditMoreEquirement from '@/components/EditMoreEquirement.vue';
 import EditOrganization from '@/components/EditOrganization.vue';
 
-// model
 import type { EquirementModel, EquirementQuery } from '@/model/device.model';
 
 // 接口数据
-import { planDeleteMethod, planUpdateStatusMethod, allTagsSearchMethod } from '@/request/api/follow.api';
+import { allTagsSearchMethod } from '@/request/api/follow.api';
 import { getDeviceRegisterMethod, deleteDeviceRegisterMethod, updateDeviceRegisterOrganizationMethod } from '@/request/api/device.api';
 import { branchMethod } from '@/request/api/system.api';
 // 获取设备列表
@@ -87,7 +83,6 @@ const searchFormProps = reactive<VxeFormProps<EquirementQuery>>({
         events: {
           change(val: any) {
             insArr.value = [];
-            console.log(val.data.orgId, '组织');
             if (val.data.orgId) {
               // 清空表单中的机构名称字段
               if (model.value) {
@@ -95,9 +90,9 @@ const searchFormProps = reactive<VxeFormProps<EquirementQuery>>({
               }
               getInstitution(val.data.orgId);
             }
-          }
-        }
-      }
+          },
+        },
+      },
     },
     {
       span: 6,
@@ -157,7 +152,6 @@ const insArr = ref<any[]>([]);
 async function getInstitution(orgId: string | number) {
   insLoading.value = true;
   const res = await branchMethod(1, 0, Number(orgId));
-  console.log(res, '获取机构');
   if (res && res.length > 0) {
     insArr.value = res;
   }
@@ -193,7 +187,6 @@ const gridOptions = reactive<VxeGridProps<EquirementModel>>({
     custom: true,
     zoom: true,
     slots: {
-      // buttons: 'handle',
       tools: 'toolbar-extra',
     },
   },
@@ -209,20 +202,6 @@ const gridOptions = reactive<VxeGridProps<EquirementModel>>({
     { field: 'orgName', title: '组织名称' },
     { field: 'institutionName', title: '机构名称' },
     { field: 'deviceCode', title: '设备ID' },
-    // {
-    //   title: '流程配置',
-    //   align: 'center',
-    //   children: [
-    //     { field: 'name', title: '建档', align: 'center' },
-    //     { field: 'name', title: '舌面诊', align: 'center' },
-    //     { field: 'name', title: '舌面分析报告', align: 'center' },
-    //     { field: 'name', title: '脉诊', align: 'center' },
-    //     { field: 'name', title: '脉象分析报告', align: 'center' },
-    //     { field: 'name', title: '问诊', align: 'center' },
-    //     { field: 'name', title: '健康分析报告', align: 'center' },
-    //     { field: 'name', title: '调理方案', align: 'center' },
-    //   ],
-    // },
     { field: 'remark', title: '备注' },
     { field: 'updateBy', title: '修改人' },
     { field: 'updateTime', title: '修改时间' },
@@ -275,7 +254,6 @@ onSuccess(({ data: { data } }) => {
 async function getDeviceType() {
   deviceTypesLoading.value = true;
   const res = await getDictionaryMethod('fdhb_device_type');
-  console.log(res, '设备类型');
   if (res && res.length > 0) {
     deviceTypes.value = res.map((item: any) => ({
       id: item.value,
@@ -308,7 +286,7 @@ function deleteEquirement(model: EquirementModel, index: number) {
     },
   });
 }
-
+// 新增或编辑设备
 function editEquirement(model?: EquirementModel, index?: number) {
   VxeUI.modal.open({
     title: model?.id ? `修改设备` : `新增设备`,
@@ -354,19 +332,7 @@ function importOrganization() {
         return h(EditOrganization, {
           data: selectedRows,
           onSubmit(org: any) {
-            // console.log(org, '传过来的参数');
-            // 1. 替换选中设备的组织信息
-            // const updatedDevices = selectedRows.map((row: any) => ({
-            //   ...row,
-            //   institutionId: org.institutionId,
-            //   orgId: org.orgId,
-            //   // institutionName: org.institutionName,
-            // }));
-            // 2. 调用批量更新接口(假设接口为 updateDeviceRegisterOrganizationMethod)
-            // 你需要根据接口实际参数调整
-            // console.log(selectedRows, 'updatedDevices');
             const deviceIds = selectedRows.map((item: any) => item.id);
-            console.log(deviceIds, 'deviceIds');
             updateDeviceRegisterOrganizationMethod({ deviceIds, orgId: org.orgId, institutionId: org.institutionId })
               .then(() => {
                 notification.success({ message: '批量修改成功' });

+ 0 - 1
src/pages/index/tcmRecuperation/institution.vue

@@ -81,7 +81,6 @@ const searchFormProps = reactive<VxeFormProps<PlanQuery>>({
         events: {
           click(slotParams, { name }) {
             if (name === 'add') {
-              console.log('新增');
               // 新增
               editPlan();
             }

+ 0 - 1
src/pages/index/tcmRecuperation/system.vue

@@ -81,7 +81,6 @@ const searchFormProps = reactive<VxeFormProps<PlanQuery>>({
         events: {
           click(slotParams, { name }) {
             if (name === 'add') {
-              console.log('新增');
               // 新增
               editPlan();
             }

+ 0 - 3
src/request/api/care.api.ts

@@ -12,7 +12,6 @@ export function supplierMethod(page: number, size: number, query?: SupplierQuery
 
 // 新增和编辑供应商
 export function supplierEditMethod(data: Partial<SupplierModel>) {
-  // console.log(data, '新增和编辑供应商');
   return data?.id
     ? request.Post(`/fdhb-pc/conditioningManage/supplier/updateCpSupplier`, { ...data, id: data.id }, { name: 'edit-supplier' })
     : request.Post(`/fdhb-pc/conditioningManage/supplier/addCpSupplier`, { ...data }, { name: 'edit-supplier' });
@@ -46,7 +45,6 @@ export function getAllSystemCpMethod() {
 }
 // 新增和编辑系统项目和新增编辑项目列表。  项目列表就是机构项目
 export function systemCpEditMethod(data: Partial<SystemItemModel>) {
-  // console.log(data, '新增和编辑项目1111111111');
   if (data.addType === 'system') {
     return data?.id
       ? request.Post(`/fdhb-pc/conditioningManage/program/updateSystemCp`, { ...data, id: data.id }, { name: 'edit-system-cp' })
@@ -271,7 +269,6 @@ export function pageOrgCwMethod(page: number, size: number, query?: Record<strin
 // }
 // 新增机构调理包
 export function addOrgCwMethod(data: Partial<SystemCwModel>) {
-  // console.log(data, '新增机构调理包');
   return data?.id
     ? request.Post(`/fdhb-pc/conditioningManage/wrap/updateInstitutionCw`, { ...data, id: data.id }, { name: 'edit-org-cw' })
     : request.Post(`/fdhb-pc/conditioningManage/wrap/addInstitutionCw`, { ...data }, { name: 'add-org-cw' });

+ 0 - 1
src/request/api/follow.api.ts

@@ -200,7 +200,6 @@ export function EvaluateDetailMethod(data: Partial<EvaluationModel>) {
 
         task.analysis = fromHealthReportAnalysis(task.tonguefaceAnalysisReport ?? {})
       }
-      console.log('log-->', data);
 
       return data;
     },

+ 2 - 6
src/service/AcupointEdit.vue

@@ -1,6 +1,6 @@
 <script setup lang="ts">
-import { ref, computed, watch } from 'vue';
-import { Radio, Button, notification } from 'ant-design-vue';
+import { ref, computed } from 'vue';
+import { notification } from 'ant-design-vue';
 import { VxeUI } from 'vxe-pc-ui';
 import { MinusCircleOutlined } from '@ant-design/icons-vue';
 import { pageAcupointMethod, pageMeridianMethod } from '@/request/api/care.api';
@@ -43,7 +43,6 @@ function handleSelect(selectedItem: any) {
     inputValue.value = '';
     return;
   }
-  // console.log(mode.value === 'acupoint', 'selectedItem');
   if (selectedItem && selectedItem) {
     if (mode.value === 'acupoint') {
       acupointList.value.push({
@@ -89,8 +88,6 @@ const tableData = computed(() => {
 
 // 保存
 function save() {
-  console.log('save', props.data);
-  // console.log("acupointList:",acupointList.value, "meridianList:",meridianList.value);
   props.data.cwcpAcuPoints = [...acupointList.value];
   props.data.cwcpAcuMeridians = [...meridianList.value];
 
@@ -189,7 +186,6 @@ onMounted(() => {
 </template>
 
 <style scoped lang="scss">
-/* 可根据实际需求自定义样式 */
 .table-header-bar {
   display: flex;
   justify-content: flex-end;

+ 7 - 33
src/service/AddItems.vue

@@ -55,7 +55,6 @@ const { loading: branchLoading } = useRequest(branchMethod).onSuccess(({ data })
       : [];
   };
   branch.value = to(data);
-  console.log(branch.value, '获取所有的机构');
 });
 const form = reactive<SystemItemModel>({
   institutionName: '',
@@ -108,11 +107,7 @@ const deliverArr = ref<string[]>([]);
 const rules = {
   name: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
   conditioningProgramType: [{ required: true, message: '请选择方案类型', trigger: 'change' }],
-  // 移除 pricingType 验证,使用动态验证
-  // 移除 conditioningProgramSupplierId 验证,使用动态验证
   institutionId: [{ required: true, message: '请选择机构名称', trigger: 'change' }],
-  // 移除 isOffline 验证,使用动态验证
-  // 移除 projectType 验证,使用自定义验证
 };
 const isShowOnline = ref<boolean>(false);
 const isShowDelivery = ref<boolean>(false);
@@ -235,7 +230,7 @@ function doSubmit() {
   form.isForWrap = checkedList.value.includes('1') ? 'Y' : null;
   form.isForInfer = checkedList.value.includes('2') ? 'Y' : null;
   // 服务包项目相关必填
-  if (form.addType === 'itemsList' && checkedList.value.includes('1') || form.addType === 'system') {
+  if ((form.addType === 'itemsList' && checkedList.value.includes('1')) || form.addType === 'system') {
     // 计价规则
     if (!form.pricingType) {
       message.error('请选择计价规则');
@@ -260,14 +255,14 @@ function doSubmit() {
       }
     }
     // 供应商
-    if(form.addType === 'itemsList' && checkedList.value.includes('1')){
+    if (form.addType === 'itemsList' && checkedList.value.includes('1')) {
       if (!form.conditioningProgramSupplierId) {
         message.error('请选择供应商');
         return;
       }
-    }else if(form.addType === 'system'){
-     form.isOffline = 'N';
-     form.isDelivery = 'N';
+    } else if (form.addType === 'system') {
+      form.isOffline = 'N';
+      form.isDelivery = 'N';
     }
     // 线下项目
     if (isShowOnline.value && !form.isOffline) {
@@ -315,16 +310,14 @@ function doSubmit() {
     .then(() => {
       form.photo = fileList.value[0]?.response?.url || fileList.value[0]?.url || '';
       form.itemImgFirst = optionsList.value[0]?.response?.url || optionsList.value[0]?.url || '';
-      // form.itemVideoFirst = fileList.value[0]?.response?.url || fileList.value[0]?.url || '';
       // 合并推导逻辑数据到表单数据中
       if (hasDerivationLogic.value && derivationData.value.cpPatientMatchRule) {
         form.cpPatientMatchRule = { ...derivationData.value.cpPatientMatchRule };
       }
-      // console.log('提交的最后数据', form);
       submit(form);
     })
     .catch((error) => {
-      // console.error('Validation Error:', error);
+      console.error('Validation Error:', error);
       message.error('请完善必填项');
     });
 }
@@ -344,7 +337,6 @@ async function getConditioningProgramType() {
 }
 
 onMounted(async () => {
-  // console.log(props.data, '获取传来的数据');
   // getHerb('');
   const deptId = localStorage.getItem('deptId');
   if (props.data.addType === 'system' && deptId) {
@@ -356,7 +348,6 @@ onMounted(async () => {
   form.addType = props.data.addType;
   if (props.data.id || props.data.sourceId) {
     const res: any = await getConditioningSchemeDetailMethod(props.data);
-    // console.log(res, 'res==>');
     const checked: string[] = [];
     if (res.isForWrap === 'Y') checked.push('1');
     if (res.isForInfer === 'Y') checked.push('2');
@@ -410,18 +401,14 @@ onMounted(async () => {
       ];
     }
 
-    // console.log(props.data, 'form==>');
     if (props.data.addType === 'itemsList' && props.data.sourceId) {
       form.sourceId = form.id;
       form.institutionId = '';
       delete form.id;
     }
   }
-  // 获取供应商
-  // getSupplier({});
   // 获取方案类型
   getConditioningProgramType();
-  // console.log(form, 'form==>');
 });
 const emits = defineEmits<{
   submit: [data?: SystemItemModel];
@@ -450,7 +437,6 @@ const handlePreview = async (file: UploadFile) => {
 };
 
 function customUpload(e: any) {
-  // uploadApi 你的二次封装上传接口
   UploadIFile(e.file)
     .then((res) => {
       // 调用实例的成功方法通知组件该文件上传成功
@@ -491,7 +477,6 @@ function beforeVideoUpload(file: File) {
 function handleVideoPreview(file: UploadFile) {
   const videoUrl = file.response?.url || file.url || form.itemVideoFirst;
   if (videoUrl) {
-    // 创建一个模态框来预览视频
     VxeUI.modal.open({
       title: '视频预览',
       width: 800,
@@ -580,8 +565,6 @@ function customVideoRequest(e: any) {
       onSuccess(res, e);
       uploading.value = false;
       message.success('视频上传成功');
-
-      console.log('上传视频成功', form.itemVideoFirst);
     })
     .catch((err) => {
       clearInterval(progressInterval);
@@ -589,7 +572,6 @@ function customVideoRequest(e: any) {
       progress.value = 0;
       onError(err);
       message.error('视频上传失败,请重试');
-      console.error('视频上传失败:', err);
     });
 }
 
@@ -642,7 +624,6 @@ function getConditioningProgramSupplier(value: any) {
   form.isDelivery = null;
   isShowDelivery.value = false;
 }
-// 修正参数以适配 a-tree-select 的 @select 事件
 function handleSelect(value: any, node: any) {
   form.institutionId = value;
   if (node && node.label) {
@@ -661,7 +642,7 @@ const plainOptions = [
 // 推导逻辑
 const hasDerivationLogic = ref(false); // 添加推导逻辑状态跟踪
 const derivationData = ref<any>({});
-// 新增:判断推导逻辑内容是否为空
+// 判断推导逻辑内容是否为空
 const isDerivationEmpty = computed(() => {
   const rule = derivationData.value.cpPatientMatchRule;
   if (!rule) return true;
@@ -693,7 +674,6 @@ function handleDerivation() {
             checkedList: checkedList.value,
           },
           onSubmit: (data: any) => {
-            console.log('推导逻辑传来的数据', data);
             derivationData.value = data;
             hasDerivationLogic.value = true; // 设置推导逻辑已编辑
           },
@@ -1055,7 +1035,6 @@ function handleDerivation() {
 }
 .herb-dosage {
   width: 70px;
-  /* padding: 2px 6px; */
   font-size: 14px;
   margin-right: 10px;
 }
@@ -1080,7 +1059,6 @@ function handleDerivation() {
   display: flex;
   justify-content: center;
   gap: 16px;
-  /* margin-top: 32px; */
 }
 .slider-section {
   margin-bottom: 16px;
@@ -1139,19 +1117,15 @@ function handleDerivation() {
 }
 .video-preview {
   border-radius: 6px;
-  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
   background: #000;
   width: 120px !important;
   height: 100px !important;
-  /* outline: none; */
 }
 .video-preview video {
   border-radius: 6px;
-  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
   background: #000;
   width: 120px;
   height: 100px;
-  /* outline: none; */
 }
 .video-preview .ant-btn-link {
   padding: 0;

+ 0 - 1
src/service/CareProgress.vue

@@ -175,7 +175,6 @@ interface Model extends SymptomItemVo {
 }
 // 查看健康评估
 function open(row: Model) {
-  // console.log(row, '查看健康评估');
   const component = defineAsyncComponent(() => import('@/components/ReportPreview.vue'));
   const id = `drawer:report:preview`;
   const onDestroy = () => {

+ 2 - 14
src/service/ConfirmItems.vue

@@ -69,12 +69,10 @@ watch(
 );
 let showOffLine = ref<boolean>(false);
 function getIsonline(newSupplierId: any) {
-  // 早期返回:检查必要条件
   if (!supplierArr.value?.length || !newSupplierId || !props.data?.conditioningProgramType) {
     return;
   }
 
-  // 使用 find 替代 filter,性能更好
   const supplier = supplierArr.value.find((item) => item.id === newSupplierId);
   if (!supplier) {
     return;
@@ -109,7 +107,6 @@ watch(
   () => props.data.conditioningProgramSupplierId,
   async (newSupplierId: any) => {
     if (newSupplierId) {
-      // 等待下一个 tick,确保数据更新
       await nextTick();
       if (supplierArr.value && supplierArr.value.length > 0) {
         getIsonline(newSupplierId);
@@ -150,17 +147,14 @@ const handlePreview = async (file: UploadFile) => {
 
 function removeHerb(idx: number) {
   if (Array.isArray(props.data.cpMedicines)) {
-    // eslint-disable-next-line vue/no-mutating-props
     props.data.cpMedicines.splice(idx, 1);
   }
 }
 
 function addHerb() {
   if (!Array.isArray(props.data.cpMedicines)) {
-    // eslint-disable-next-line vue/no-mutating-props
     props.data.cpMedicines = [] as any[];
   }
-  // eslint-disable-next-line vue/no-mutating-props
   (props.data.cpMedicines as any[]).push({ name: '', dosage: '' } as any);
 }
 
@@ -310,9 +304,7 @@ function handleOk() {
     });
   });
 }
-// 创建一个响应式变量来控制 checkbox 的状态
 const isOffline = ref<boolean>(false);
-// 切换状态的函数
 function toggleOnlineStatus() {
   props.data.isOffline = isOffline.value ? 'Y' : 'N';
 }
@@ -412,9 +404,7 @@ function handleSelect(value: string, node: any, extra: any) {
         <template v-for="(herb, idx) in data.cpMedicines || []" :key="idx">
           <div class="herb-item">
             <button class="herb-remove" @click="removeHerb(idx)" type="button">×</button>
-            <!-- eslint-disable-next-line vue/no-mutating-props -->
             <RemoteSelect :load="cpMedicinesMethod" key-prop="name" v-model:value="herb.name" />
-            <!-- eslint-disable-next-line vue/no-mutating-props -->
             <a-input v-model:value="herb.dosage" class="herb-dosage" placeholder="剂量" />
             <span>g</span>
           </div>
@@ -424,7 +414,6 @@ function handleSelect(value: string, node: any, extra: any) {
     </div>
     <div class="form-row">
       <label><span class="required-star">*</span>机构名称:</label>
-      <!-- eslint-disable-next-line vue/no-mutating-props -->
       <a-tree-select
         v-model:value="data.institutionId"
         style="width: 400px"
@@ -438,7 +427,6 @@ function handleSelect(value: string, node: any, extra: any) {
     </div>
     <div class="form-row">
       <label><span class="required-star">*</span>供应商:</label>
-      <!-- eslint-disable-next-line vue/no-mutating-props -->
       <a-select v-model:value="data.conditioningProgramSupplierId" :options="supplierOptions" placeholder="请选择供应商" style="width: 400px" allow-clear class="mr-10" />
       <a-checkbox v-model:checked="isOffline" style="margin-right: 8px" @change="toggleOnlineStatus" v-show="showOffLine"> 线下项目 </a-checkbox>
     </div>
@@ -573,8 +561,8 @@ html,
 .form-actions-center {
   display: flex;
   justify-content: center;
-  gap: 16px; /* 按钮间距 */
-  margin-top: 32px; /* 与表单内容的距离,可调整 */
+  gap: 16px;
+  margin-top: 32px; 
 }
 .primary {
   background: #1890ff;

+ 0 - 2
src/service/Derivation.vue

@@ -29,7 +29,6 @@ function cancel() {
 }
 // 确定
 function confirm() {
-  console.log(props.data, 'formData==>');
   if(props.data?.checkedList.includes('2')){
     const matchRule = formData.cpPatientMatchRule as {
       diagnoseDiseaseNames?: any[];
@@ -110,7 +109,6 @@ async function getTabooCrowds() {
   }
 }
 onMounted(async () => {
-  console.log('props.data', props.data);
   // 获取欲病状态
   getDesiredConditions();
   // 获取性别

+ 0 - 1
src/service/EditConfigured.vue

@@ -139,7 +139,6 @@ const rowConfig = reactive<VxeTablePropTypes.RowConfig>({
 });
 const columnConfig = reactive<VxeTablePropTypes.ColumnConfig>({});
 const rowDragstartEvent: VxeTableEvents.RowDragstart = ({ row }) => {
-  console.log(`拖拽开始 ${row}`);
 };
 
 const rowDragendEvent: VxeTableEvents.RowDragend = ({ newRow, oldRow }) => {

+ 2 - 9
src/service/EditSystemService.vue

@@ -176,7 +176,6 @@ const filteredProjects = computed(() => {
 });
 
 function onSelectProject({ row }: any) {
-  console.log(row, '选择添加的项目');
   if ((formData.items ?? []).some((item) => item.conditioningProgramDetail?.name === row.name)) {
     notification.warning({
       message: '不能重复添加该项目',
@@ -379,9 +378,7 @@ function calculateCount(row: any) {
 // 添加监听器
 watch(
   () => formData.items,
-  (newData,oldData) => {
-    // console.log(newData, 'newData');
-    // console.log(oldData, 'oldData');
+  (newData) => {
     if (!newData) return;
     newData.forEach((row: any) => {
       if (row?.days || row?.frequencyType || row?.frequencyMeasure) {
@@ -547,7 +544,6 @@ onMounted(async () => {
 });
 
 const tableData = computed(() => {
-  // console.log(formData.items, 'tableData');
   return [...(formData.items ?? []), { ...emptyRow }];
 });
 
@@ -574,7 +570,6 @@ function addInstitution() {
           data: formData,
           institutionId: formData.institutionId ? formData.institutionId : deptId.value,
           onSubmit(data: SystemCwModel) {
-            console.log(data, '引入服务包');
             VxeUI.modal.close(`systemService-list-modal`);
           },
         });
@@ -601,7 +596,6 @@ const setVisible = (value: boolean): void => {
 const previewImg = ref<string>('');
 // 预览图片
 const handlePreview = async (file: UploadFile) => {
-  console.log(file, '预览图片');
   previewImg.value = file.response?.url ?? file.thumbUrl;
   visible.value = true;
 };
@@ -624,7 +618,6 @@ function handleSelect(value: string, node: any, extra: any) {
   formData.institutionName = node.label;
 }
 function openPopover() {
-  console.log('openPopover');
   showProjectPopover.value = true;
 }
 </script>
@@ -637,7 +630,7 @@ function openPopover() {
         <span style="white-space: nowrap; margin-right: 8px">机构名称:</span>
         <a-tree-select
           v-model:value="formData.institutionId"
-          style="width: 220px"
+          style="width: 280px"
           :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
           placeholder="请选择"
           tree-default-expand-all

+ 0 - 6
src/service/IntroduceProjectList.vue

@@ -34,7 +34,6 @@ const dataObj = reactive({
 });
 // 获取详情数据
 async function getDetailData(data?: SystemItemModel) {
-  console.log(data, '点击确定');
   const res: any = await getCopyCwMethod(dataObj as Partial<SystemCwModel>);
   if (res && res.items && res.items.length > 0) {
     tableData.value = res.items;
@@ -45,12 +44,9 @@ onMounted(async () => {
   detailData.value = res;
   if (res && res.items && res.items.length > 0) {
     tableData.value = res.items;
-
-
   }
 });
 function addProject(row: any) {
-  console.log(row, '添加项目');
   row.sourceId = row.id;
   delete row.id;
   const addType = 'itemsList';
@@ -72,7 +68,6 @@ function addProject(row: any) {
               addType,
             },
             onSubmit(data?: SystemItemModel) {
-              console.log(data, '点击确定');
               // 点击确定 刷新列表
               getDetailData();
               VxeUI.modal.close(`health-consultation-modal`);
@@ -97,7 +92,6 @@ function addProject(row: any) {
               addType,
             },
             onSubmit(data?: SystemItemModel) {
-              console.log(data, '点击确定刷新列表');
               // 点击确定 刷新列表
               getDetailData();
               VxeUI.modal.close(`add-items-modal`);

+ 1 - 1
src/service/ServiceDetail.vue

@@ -11,7 +11,7 @@ onMounted(async () => {
     const res = await getConditioningSchemeDetailMethod(props.data);
     Object.assign(props.data, res);
   } catch (error) {
-    console.log(error, 'getCpDetailMethod-error');
+    console.error('获取项目详情失败:', error);
   }
 });
 function handleVideoPreview() {

+ 0 - 3
src/service/ServiceItemsConfirm.vue

@@ -154,7 +154,6 @@ function deleteConfirm(model: SystemItemModel, index: number) {
 }
 // 确认项目
 function sureItem(model?: SystemItemModel, index?: number) {
-  // console.log(model, 'model');
   const addType = 'confirm';
   if (model?.name === '健康咨询' || model?.name === '健康评估') {
     VxeUI.modal.open({
@@ -174,7 +173,6 @@ function sureItem(model?: SystemItemModel, index?: number) {
           return h(HealthEvaluation, <any>{
             data: {...model,addType},
             onChange: (data: SystemItemModel) => {
-              console.log(data, '确认项目');
               // 确认成功之后刷新页面
               refresh(page.value);
             },
@@ -200,7 +198,6 @@ function sureItem(model?: SystemItemModel, index?: number) {
         return h(ConfirmItems, <any>{
           data: model,
           onSubmit(data: SystemItemModel) {
-            console.log("确认项目")
             refresh(page.value);
             VxeUI.modal.close(`confirm-item-modal`);
           },

+ 1 - 1
src/service/ServiceItemsList.vue

@@ -56,7 +56,7 @@ const searchFormProps = reactive<VxeFormProps<SystemIteQuery>>({
         },
       },
     },
-    { field: 'types', title: '项目应用', span: 8, itemRender: {
+    { field: 'types', title: '项目应用', span: 6, itemRender: {
         name: 'VxeCheckboxGroup',
         options: [
           { label: '服务包项目', value: '1' },

+ 1 - 6
src/service/ServiceItemsSystem.vue

@@ -178,7 +178,6 @@ function deleteItems(model: SystemItemModel, index: number) {
   });
 }
 function seeItems(model?: SystemItemModel, index?: number) {
-  console.log(model, 'model');
   if (model?.isErasable === 'N') {
     // 健康咨询 健康评估 查看
     VxeUI.modal.open({
@@ -224,11 +223,8 @@ function seeItems(model?: SystemItemModel, index?: number) {
   }
 }
 function editItems(model?: SystemItemModel, index?: number) {
-  console.log(model,"编辑项目")
-  const addType = 'system';
-  console.log(model, 'model');
+    const addType = 'system';
   if (model?.isErasable === 'N') {
-    console.log(model, '健康咨询和健康评估');
     // 健康咨询 健康评估 x显示
     VxeUI.modal.open({
       title: model?.conditioningProgramType ?? '项目',
@@ -245,7 +241,6 @@ function editItems(model?: SystemItemModel, index?: number) {
               addType,
             },
             onSubmit(data: SystemItemModel) {
-              console.log(data, 'onChange');
               refresh(page.value);
               VxeUI.modal.close(`health-consultation-modal`);
             },

+ 0 - 1
src/service/ServicePackageDetail.vue

@@ -36,7 +36,6 @@ watch(tableData, (newValue, oldValue) => {
 });
 onMounted(async () => {
   await getRecordDetail();
-  console.log('tableDat111111',props.data);
 });
 
 // 转方案

+ 0 - 1
src/views/ProcessConfigDemo.vue

@@ -5,7 +5,6 @@ import { ref } from 'vue';
 const showModal = ref(false);
 
 function handleSubmit(data: any) {
-  console.log('提交的数据:', data);
   showModal.value = false;
 }