Ver código fonte

优化编辑展示穴位

张田田 7 meses atrás
pai
commit
ffa5b7a772

+ 1 - 0
src/components/RecordsIndicatorPreview.vue

@@ -27,6 +27,7 @@ watch(
   (records) => {
     if (records && records.length > 0) {
       indicatorRecords.value = transformIndicators(records);
+      return indicatorRecords.value = indicatorRecords.value.filter(model => !!model.records?.length);
     } else if (!patientId.value) {
       indicatorRecords.value = [];
     }

+ 3 - 1
src/pages/index/care/issueService.vue

@@ -1170,7 +1170,9 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
                   @click="currentPatient?.status === '0' ? null : editPart(row)"
                   :style="{ color: '#1890ff', cursor: 'pointer' }"
                 >
-                  {{ row?.acuPointNames.concat(row?.acuMeridianNames)?.join('、') === '' ? (currentPatient?.status === '0' ? '' : '编辑') : row?.acuPointNames.concat(row?.acuMeridianNames)?.join('、') }}
+                  {{ row?.acuPointNames.concat(row?.acuMeridianNames)?.join('、') === '' ? 
+                  (currentPatient?.status === '0' ? '' : '编辑') : 
+                  row?.acuPointNames.concat(row?.acuMeridianNames)?.join('、') }}
                 </a>
               </template>
             </vxe-column>

+ 4 - 1
src/service/EditSystemService.vue

@@ -940,7 +940,10 @@ function openPopover() {
 
         <vxe-column field="conditioningProgramDetail.pricingType" title="穴位/经络/部位" width="120">
           <template #default="{ row }">
-            <a @click="editPart(row)" style="color: #1890ff; cursor: pointer" v-if="row?.conditioningProgramDetail?.pricingType === '1'">编辑</a>
+            <a @click="editPart(row)" style="color: #1890ff; cursor: pointer"
+             v-if="row?.conditioningProgramDetail?.pricingType === '1'">{{ 
+            (((row?.acuPointNames || []).concat(row?.acuMeridianNames || []).filter(Boolean).join('、')) || '编辑')
+             }}</a>
           </template>
         </vxe-column>
         <vxe-column field="remark" title="说明" width="180">