Przeglądaj źródła

优化随访任务。完成随访就禁止上传

张田田 10 miesięcy temu
rodzic
commit
0f3a0a231a
2 zmienionych plików z 20 dodań i 10 usunięć
  1. 13 3
      src/components/Follow.vue
  2. 7 7
      src/pages/index/care/issueService.vue

+ 13 - 3
src/components/Follow.vue

@@ -267,7 +267,7 @@ const previewImg = ref<string>('');
         </div>
         <div
           class="border-1 border-solid border-gray:50 pl-2 pd-10 ml-2"
-          v-if="(activeObj?.progress === '1' && activeObj?.symptomsData?.length > 0) || (activeObj.progress === '2' && activeObj?.fillin?.symptomsList?.length>0)"
+          v-if="(activeObj?.progress === '1' && activeObj?.symptomsData?.length > 0) || (activeObj.progress === '2' && activeObj?.fillin?.symptomsList?.length > 0)"
         >
           <div class="mb-3 border-b-0">
             1、请问您的症状有没有<span class="text-red-600">好转</span>或者<span class="text-red-600">恶化</span>?请先点击症状,再选择好转还是恶化。(没有操作的症状默认没有变化)
@@ -308,7 +308,7 @@ const previewImg = ref<string>('');
         <div class="border-1 border-solid border-gray:50 pl-2 pd-10 ml-2">
           <div class="mb-3">2、请问有没有出现<span class="text-red-600">新</span>的症状?</div>
           <div class="mb-8 ml-4 flex">
-            <div v-for="symptoms in selectSymptomsData" :key="symptoms.name" class="mr-4" @click="activeObj?.progress==='1'?changeTag(symptoms):''">
+            <div v-for="symptoms in selectSymptomsData" :key="symptoms.name" class="mr-4" @click="activeObj?.progress === '1' ? changeTag(symptoms) : ''">
               <div>
                 <div class="border-solid b-1 w-20 text-center" :class="activeObj.fillin.isHaveNewSyndrome === symptoms.id ? 'bg-blue text-#fff' : ''">
                   {{ symptoms.name }}
@@ -339,7 +339,15 @@ const previewImg = ref<string>('');
             <div class="flex">
               <!--            舌面-->
               <div class="flex flex-col items-center mr-4">
-                <a-upload :showUploadList="uploadProps" v-model:file-list="upImgList" list-type="picture-card" @preview="handlePreview" :maxCount="1" :customRequest="customUpload">
+                <a-upload
+                  :showUploadList="uploadProps"
+                  v-model:file-list="upImgList"
+                  list-type="picture-card"
+                  @preview="handlePreview"
+                  :maxCount="1"
+                  :customRequest="customUpload"
+                  :disabled="activeObj.progress === '2'"
+                >
                   <div v-if="upImgList.length < 1">
                     <plus-outlined />
                   </div>
@@ -355,6 +363,7 @@ const previewImg = ref<string>('');
                   @preview="handlePreview"
                   :maxCount="1"
                   :customRequest="customUpload"
+                  :disabled="activeObj.progress === '2'"
                 >
                   <div v-if="downImageList.length < 1">
                     <plus-outlined />
@@ -371,6 +380,7 @@ const previewImg = ref<string>('');
                   @preview="handlePreview"
                   :maxCount="1"
                   :customRequest="customUpload"
+                  :disabled="activeObj.progress === '2'"
                 >
                   <div v-if="faceImageList.length < 1">
                     <plus-outlined />

+ 7 - 7
src/pages/index/care/issueService.vue

@@ -507,7 +507,7 @@ function calculateCount(row: any) {
   const frequency = Number(row.frequencyMeasure) || 0;
   const maxCount = row.conditioningProgramDetail.cpDynamicPricingRule?.[1]?.max;
   const acCount = (row.acuMeridianNames?.length ?? 0) + (row.acuPointNames?.length ?? 0);
-  console.log(row, '添加计算数量的函数', pricingType, row.conditioningProgramDetail.pricingType);
+  // console.log(row, '添加计算数量的函数', pricingType, row.conditioningProgramDetail.pricingType);
   // 一口价
   if (pricingType === '0') {
     // 检查是否选择了"不限"
@@ -527,7 +527,7 @@ function calculateCount(row: any) {
     // 按穴位计价
     const frequencyType = Number(row.frequencyType) || 0;
     row.totalMeasure = Math.ceil((period / frequencyType) * frequency);
-    console.log(row.totalMeasure, 'row.totalMeasure', acCount, maxCount);
+    // console.log(row.totalMeasure, 'row.totalMeasure', acCount, maxCount);
     if (acCount > maxCount) {
       if (row.conditioningProgramDetail.cpDynamicPricingRule?.[1]?.priceType === 0) {
         // 单价
@@ -547,7 +547,7 @@ function calculateCount(row: any) {
         // row.totalMeasure = Math.ceil((period / frequencyType) * frequency);
       }
     } else {
-      console.log('数量很少', row.conditioningProgramDetail.cpDynamicPricingRule?.[0]);
+      // console.log('数量很少', row.conditioningProgramDetail.cpDynamicPricingRule?.[0]);
       if (row.conditioningProgramDetail.cpDynamicPricingRule?.length > 0) {
         if (row.conditioningProgramDetail.cpDynamicPricingRule?.[0]?.priceType === 0) {
           // 单价
@@ -612,10 +612,10 @@ function handleCancel() {
 watch(
   () => formData.items,
   (newData) => {
-    console.log(newData, 'newData');
+    // console.log(newData, 'newData');
     if (!newData) return;
     newData.forEach((row) => {
-      console.log(row, '数据更新');
+      // console.log(row, '数据更新');
       calculateCount(row);
       // if (row?.days || row?.frequencyType || row?.frequencyMeasure) {
       //   calculateCount(row);
@@ -920,9 +920,9 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
         <div
           class="patient-item"
           v-for="item in filteredPatients"
-          :key="item.patientId"
+          :key="item.id"
           @click="selectPatient(item)"
-          :class="{ active: currentPatient?.patientId === item.patientId }"
+          :class="{ active: currentPatient?.id === item.id }"
           style="cursor: pointer"
         >
           {{ item.patientName }} {{ item.patientAge }}岁