|
|
@@ -157,6 +157,37 @@
|
|
|
{{ row.inTransitNum }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+ <template v-slot:inventoryStatusText="{ row }">
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ row.inventoryStatusText == '缺料'
|
|
|
+ ? 'statusRed'
|
|
|
+ : 'statusGreen'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ row.inventoryStatusText }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-slot:inTransitStatusText="{ row }">
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ row.inTransitStatusText == '缺料'
|
|
|
+ ? 'statusRed'
|
|
|
+ : 'statusGreen'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ row.inTransitStatusText }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-slot:finalStateText="{ row }">
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ row.finalStateText == '缺料' ? 'statusRed' : 'statusGreen'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ row.finalStateText }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<!-- <template v-slot:stockColor="{ row }">
|
|
|
<div :class="{ statusRed: row.stockStatus == '缺料' }">
|
|
|
{{ row.stockStatus }}
|
|
|
@@ -622,12 +653,20 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .statusRed {
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+
|
|
|
+ .statusGreen {
|
|
|
+ color: green;
|
|
|
+ }
|
|
|
+
|
|
|
.left_tree {
|
|
|
width: 250px;
|
|
|
max-height: 600px;
|
|
|
min-height: 300px;
|
|
|
overflow: auto;
|
|
|
border: 1px solid #ccc;
|
|
|
- margin-right: 10px;
|
|
|
+ margin-right: 10px;
|
|
|
}
|
|
|
</style>
|