소스 검색

优化质检报告模板日期显示逻辑并处理空值情况

yusheng 5 달 전
부모
커밋
b341a40a4a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/inspectionReport/template/inspection_report1.vue
  2. 1 1
      src/views/inspectionReport/template/inspection_report2.vue

+ 1 - 1
src/views/inspectionReport/template/inspection_report1.vue

@@ -144,7 +144,7 @@
                   placeholder="选择日期"
                 />
               </div>
-              <div v-else>{{ basicInfoData.expirationDate }}</div>
+              <div v-else>{{ basicInfoData.expirationDate ||'/'}}</div>
             </td>
           </tr>
           <tr>

+ 1 - 1
src/views/inspectionReport/template/inspection_report2.vue

@@ -176,7 +176,7 @@
                   placeholder="选择日期"
                 />
               </div>
-              <div v-else>{{ basicInfoData.expirationDate }}</div>
+              <div v-else>{{ basicInfoData.expirationDate ||'/'}}</div>
             </td>
             <td style="width: 150px; border: 1px solid #ccc; padding: 8px"
               >报告日期</td