| | |
| | | <el-tooltip |
| | | v-for="(child, i) in item.procedureList" :key="i" |
| | | effect="dark" |
| | | content="已报工良品数1000;工序计划数500" |
| | | :content="'已报工良品数' + child.doneNum + ';工序计划数' + child.planNum" |
| | | placement="top"> |
| | | <div class="scroll_item_row_item" @click="jump(child.procedureId)"> |
| | | <div class="scroll_item_row_item_x"></div> |
| | | <img v-if="i == 0 || i == 1" src="@/assets/img/ic_complete@2x.png" alt="" /> |
| | | <span v-else>{{ child.rate }}%</span> |
| | | <!-- <img v-if="i == 0 || i == 1" src="@/assets/img/ic_complete@2x.png" alt="" /> --> |
| | | <span v-if="child.rate < 100">{{ child.rate }}%</span> |
| | | <img v-else src="@/assets/img/ic_complete@2x.png" alt="" /> |
| | | </div> |
| | | </el-tooltip> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { reactive, ref, onBeforeUnmount, onUnmounted, nextTick, computed, watch } from 'vue' |
| | | import { reactive, ref, onBeforeUnmount, onUnmounted, nextTick, computed, watch, onActivated } from 'vue' |
| | | import { getTop, getStockList, getWorkPlansList, getProcedureProcessList, getRecordLogPage, getDeviceCheckPage, getUnqualified7DayData, getUnqualifiedCateData } from '@/utils/api.js' |
| | | import { useCounterStore } from '@/stores/counter.js' |
| | | import * as echarts from 'echarts' |
| | |
| | | |
| | | watch(() => departId.value, (val) => { |
| | | if (val) { |
| | | init() |
| | | } |
| | | }) |
| | | |
| | | onActivated(() => { |
| | | console.log('departId', departId.value) |
| | | if (!departId.value) return |
| | | init() |
| | | console.log('onActivated') |
| | | }) |
| | | |
| | | start1() |
| | | |
| | | const init = () => { |
| | | // 当日员工产量TOP10 |
| | | getTop(companyId.value, departId.value) |
| | | .then(res => { |
| | |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | start1() |
| | | |
| | | /** |
| | | * 七日折线图 |
| | |
| | | position: relative; |
| | | .content_right_top_nr_bottom_yuan { |
| | | position: absolute; |
| | | top: 299px; |
| | | left: 168px; |
| | | top: 63%; |
| | | left: 37%; |
| | | z-index: 999; |
| | | width: 114px; |
| | | height: 114px; |