Browse Source

feat(forecast-summary): 在子表中添加审批状态标签和时间格式化显示

yz 1 month ago
parent
commit
3e25edee29
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/views/forecast-summary/index.vue

+ 10 - 0
src/views/forecast-summary/index.vue

@@ -77,6 +77,16 @@
               <template slot="forecastQuantity" slot-scope="{row: sub}">
                 <span>{{ formatNumber(sub.forecastQuantity) }}</span>
               </template>
+              <!-- 子表中的审批状态展示成标签 -->
+              <template slot="approvalStatus" slot-scope="{row: sub}">
+                <el-tag :type="getApprovalStatusConfig(sub.approvalStatus).type" size="small">
+                  {{ getApprovalStatusConfig(sub.approvalStatus).label }}
+                </el-tag>
+              </template>
+              <!-- 子表中的审批时间格式化显示 -->
+              <template slot="approvedTime" slot-scope="{row: sub}">
+                <span>{{ sub.approvedTime ? formatDateTime(sub.approvedTime) : '-' }}</span>
+              </template>
             </avue-crud>
           </div>
         </div>