Procházet zdrojové kódy

生产订单:生产进度

lxf před 1 rokem
rodič
revize
f9bcf56bac

+ 10 - 1
src/views/production/schedule/production-order/index.vue

@@ -30,7 +30,16 @@
           </div>
         </template>
         <template #schedule="{ item }">
-          <div>生产进度</div>
+          <div>
+            <div v-if="item.productionOrderScheduleVoList && item.productionOrderScheduleVoList.length > 0">
+              <el-progress
+                type="circle"
+                v-for="(row, index) in item.productionOrderScheduleVoList"
+                :key="index"
+                :percentage="Math.round((row.productionQuantity / row.completeQuantity) * 100)"
+                :status="Math.round((row.productionQuantity / row.completeQuantity) * 100) == 100 ? 'success' : ''" />
+            </div>
+          </div>
         </template>
       </byTable>
     </el-card>