|
@@ -198,10 +198,13 @@
|
|
|
<template v-for="(slotItem, index) in processesData" v-slot:[slotItem.id]="{ item }" :key="slotItem.id">
|
|
|
<div style="width:100%">
|
|
|
<div v-if="pageActiveName !='4'">
|
|
|
- <span v-if="isShowCotent(slotItem,item)" style="font-weight:700;min-width:50px;line-height:18px;display:inline-block;cursor:pointer"
|
|
|
- :class="showCotentQuantity(slotItem,item)" @contextmenu="(e)=>handleContextmenu(slotItem,item,e)">
|
|
|
- {{showCotent(slotItem,item,'finishQuantity')}}
|
|
|
- </span>
|
|
|
+ <el-tooltip v-if="isShowCotent(slotItem,item)" class="box-item" effect="dark" :content="showCotentTwo(slotItem,item,'finishQuantity')"
|
|
|
+ placement="top-start">
|
|
|
+ <span style="font-weight:700;min-width:50px;line-height:18px;display:inline-block;cursor:pointer"
|
|
|
+ :class="showCotentQuantity(slotItem,item)" @contextmenu="(e)=>handleContextmenu(slotItem,item,e)">
|
|
|
+ {{showCotent(slotItem,item,'finishQuantity')}}
|
|
|
+ </span>
|
|
|
+ </el-tooltip>
|
|
|
<div v-else class="no-bk">
|
|
|
-
|
|
|
</div>
|
|
@@ -333,10 +336,13 @@
|
|
|
<template v-for="(slotItem, index) in processesData" v-slot:[slotItem.id]="{ item }" :key="slotItem.id">
|
|
|
<div style="width:100%">
|
|
|
<div v-if="pageActiveName !='4'">
|
|
|
- <span v-if="isShowCotent(slotItem,item)" style="font-weight:700;min-width:50px;line-height:18px;display:inline-block;cursor:pointer"
|
|
|
- :class="showCotentQuantity(slotItem,item)" @contextmenu="(e)=>handleContextmenu(slotItem,item,e)">
|
|
|
- {{showCotent(slotItem,item,'finishQuantity')}}
|
|
|
- </span>
|
|
|
+ <el-tooltip v-if="isShowCotent(slotItem,item)" class="box-item" effect="dark" :content="showCotentTwo(slotItem,item,'finishQuantity')"
|
|
|
+ placement="top-start">
|
|
|
+ <span style="font-weight:700;min-width:50px;line-height:18px;display:inline-block;cursor:pointer"
|
|
|
+ :class="showCotentQuantity(slotItem,item)" @contextmenu="(e)=>handleContextmenu(slotItem,item,e)">
|
|
|
+ {{showCotent(slotItem,item,'finishQuantity')}}
|
|
|
+ </span>
|
|
|
+ </el-tooltip>
|
|
|
<div v-else class="no-bk">
|
|
|
-
|
|
|
</div>
|
|
@@ -2311,6 +2317,24 @@ const showCotent = (slot, item, att) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+const showCotentTwo = (slot, item, att) => {
|
|
|
+ if (item && item.productionTaskProgressList) {
|
|
|
+ const current = item.productionTaskProgressList.find(
|
|
|
+ (x) => x.processesId == slot.id
|
|
|
+ );
|
|
|
+ if (current) {
|
|
|
+ return (
|
|
|
+ "已完成" +
|
|
|
+ current["schedulingCount"] +
|
|
|
+ " / 结存" +
|
|
|
+ current["finishQuantity"]
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const showCotentOne = (slot, item, att) => {
|
|
|
if (item && item.productionTaskProgressList) {
|
|
|
const current = item.productionTaskProgressList.find(
|