Explorar o código

生产订单:生产进度

lxf hai 1 ano
pai
achega
f9bcf56bac
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      src/views/production/schedule/production-order/index.vue

+ 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>